Browse Source

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

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

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

@ -35,6 +35,10 @@ const getPageParams = (params)=>{
params.endDate = params.dueDate[1].format('YYYY-MM-DD') params.endDate = params.dueDate[1].format('YYYY-MM-DD')
} }
} }
if (!params.dueDate || params.dueDate.length == 0) {
params.startDate = ''
params.endDate = ''
}
params.dueDate = '' params.dueDate = ''
//计划员 //计划员

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

@ -85,6 +85,10 @@ const getPageParams = (params)=>{
params.endDate = params.dueDate[1].format('YYYY-MM-DD') params.endDate = params.dueDate[1].format('YYYY-MM-DD')
} }
} }
if (!params.dueDate || params.dueDate.length == 0) {
params.startDate = ''
params.endDate = ''
}
params.dueDate = '' params.dueDate = ''
//计划员 //计划员

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

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

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

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

Loading…
Cancel
Save