zhaoxuebing 8 months ago
parent
commit
9ed99e2fb5
  1. 8
      src/api/wms/demandforecastingMain/index.ts
  2. 32
      src/views/wms/basicDataManage/orderManage/shift/shift.data.ts
  3. 9
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts
  4. 17
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue
  5. 28
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

8
src/api/wms/demandforecastingMain/index.ts

@ -50,7 +50,13 @@ export const deleteDemandforecastingMain = async (id: number) => {
// 导出要货预测主 Excel
export const exportDemandforecastingMain = async (params) => {
return await request.download({ url: `/wms/demandforecasting-main/export-excel`, params })
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/demandforecasting-main/export-excel-senior', data })
} else {
return await request.download({ url: `/wms/demandforecasting-main/export-excel`, params })
}
}
// 下载用户导入模板

32
src/views/wms/basicDataManage/orderManage/shift/shift.data.ts

@ -32,28 +32,28 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
dateFormat: 'HH:mm:ss'
},
sort: 'custom',
sort: 'custom',
table: {
width: 180
width: 180,
},
form: {
component: 'DatePicker',
component: 'TimePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'time',
dateFormat: 'HH:mm:ss',
valueFormat: 'x',
}
},
isSearch: true,
search: {
show: true,
component: 'DatePicker',
component: 'TimePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
valueFormat: 'HH:mm:ss',
type: 'timeSelect',
}
}
},
@ -63,28 +63,28 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
dateFormat: 'HH:mm:ss',
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
component: 'TimePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'time',
dateFormat: 'HH:mm:ss',
valueFormat: 'x',
}
},
isSearch: true,
search: {
show: true,
component: 'DatePicker',
component: 'TimePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
valueFormat: 'HH:mm:ss',
type: 'timeSelect',
}
}
},

9
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts

@ -338,6 +338,15 @@ export const DeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '操作',
field: 'action',
isForm: false,
table: {
width: 150,
fixed: 'right'
}
}
]))
//表单校验

17
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

@ -62,6 +62,7 @@
<script setup lang="ts">
import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRecordDetailRules } from './deliverRecordMain.data'
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
@ -125,12 +126,15 @@ const buttonBaseClick = (val, item) => {
}
// -
const butttondata = (row) => {
return []
}
const butttondata = (row) => [
defaultButtons.mainListPointBtn(null), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'point') { //
handlePoint(row)
}
}
/** 详情操作 */
@ -155,6 +159,13 @@ const handleExport = async () => {
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/929209659733770240?token=' + getAccessToken())
//
const handlePoint = async (row) => {
window.open(src.value+'&id='+row.id)
}
//
const searchFormClick = (searchData) => {
tableObject.params = {

28
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

@ -251,6 +251,20 @@ export const DemandforecastingMainRules = reactive({
* @returns {Array}
*/
export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disbaled: true
}
}
},
{
label: '预测时间类型',
field: 'predictTimeType',
@ -387,20 +401,6 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
}]
}
},
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disbaled: true
}
}
},
{
label: '物料代码',
field: 'itemCode',

Loading…
Cancel
Save