Browse Source

HL-5830SCP-要货预测-计划员,只导出最新版本数据传参问题

hella_online_20240904
zhang_li 2 months ago
parent
commit
08c2f6cb6b
  1. 4
      src/api/wms/demandforecastingDetail/index.ts
  2. 2
      src/api/wms/demandforecastingMain/index.ts
  3. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts
  4. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

4
src/api/wms/demandforecastingDetail/index.ts

@ -35,11 +35,12 @@ const getPageParams = (params)=>{
params.endDate = params.dueDate[1].format('YYYY-MM-DD')
}
}
console.log(params.dueDate)
if (!params.dueDate || params.dueDate.length == 0) {
params.startDate = ''
params.endDate = ''
}
params.dueDate = ''
// params.dueDate = ''
//计划员
if(params.planerId&&params.planerId.length>0){
@ -83,7 +84,6 @@ export const getDemandforecastingDetailPage = async (params) => {
return await request.post({ url: '/wms/demandforecasting-detail/senior', data })
} else {
params = getPageParams(params)
console.log('params',params)
return await request.get({ url: `/wms/demandforecasting-detail/page`, params })
}
}

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

@ -89,7 +89,7 @@ const getPageParams = (params)=>{
params.startDate = ''
params.endDate = ''
}
params.dueDate = ''
// params.dueDate = ''
//计划员
if(params.planerId&&params.planerId.length>0){

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

@ -265,7 +265,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false,
search: {
component: 'DatePicker',
// value: [dayjs(), dayjs().subtract(-3,'month')],
value: [dayjs(), dayjs().subtract(-3,'month')],
componentProps: {
valueFormat: 'YYYY-MM-DD',
type: 'daterange',

1
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -171,7 +171,6 @@ const onSearchChange = (field, value)=>{
}
}
const searchClick = async (data)=>{
console.log('3444',tableObject.params)
await setSearchParamsHead(data)
// updateDateTableColumns()
setSearchParams(data)

Loading…
Cancel
Save