Browse Source

要货预测导出api更新

master
chenfang 9 months ago
parent
commit
5f56abae29
  1. 8
      src/api/wms/demandforecastingMain/index.ts
  2. 32
      src/views/wms/basicDataManage/orderManage/shift/shift.data.ts
  3. 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 // 导出要货预测主 Excel
export const exportDemandforecastingMain = async (params) => { 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, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'HH:mm:ss'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180,
}, },
form: { form: {
component: 'DatePicker', component: 'TimePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'time',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isSearch: true, isSearch: true,
search: { search: {
show: true, show: true,
component: 'DatePicker', component: 'TimePicker',
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'HH:mm:ss',
type: 'daterange', type: 'timeSelect',
} }
} }
}, },
@ -63,28 +63,28 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'HH:mm:ss',
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
form: { form: {
component: 'DatePicker', component: 'TimePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'time',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isSearch: true, isSearch: true,
search: { search: {
show: true, show: true,
component: 'DatePicker', component: 'TimePicker',
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'HH:mm:ss',
type: 'daterange', type: 'timeSelect',
} }
} }
}, },

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

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

Loading…
Cancel
Save