Browse Source

计划员配置

master_hella_20240701
wangyufei 4 months ago
parent
commit
b5f16c42d8
  1. 25
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts
  2. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

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

@ -15,15 +15,20 @@ import * as DemandforecastingDetailApi from '@/api/wms/demandforecastingDetail'
import dayjs from 'dayjs'
const { t } = useI18n() // 国际化
let planerList = await DemandforecastingMainApi.queryUserPlanerList()
if(planerList.length>0){
planerList.unshift({
planerId:'ALL',
planerNickname:t('ts.全选'),
planerUsername:t('ts.全选'),
})
let planerList = []
try {
planerList = await DemandforecastingMainApi.queryUserPlanerList()
if(planerList.length>0){
planerList.unshift({
planerId:'ALL',
planerNickname:t('ts.全选'),
planerUsername:t('ts.全选'),
})
}
console.log('planerList',planerList)
} catch (error) {
}
console.log('planerList',planerList)
/**
* @returns {Array}
@ -117,10 +122,10 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
multiple:true,
emptyValues:[null, undefined],
valueOnClear:null,
options:planerList.map(item=>({
options:planerList.length>0?planerList.map(item=>({
label:item.planerUsername,
value:item.planerId
}))
})):[]
}
},
},

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

@ -208,7 +208,11 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
await getListHead()
try {
await getListHead()
} catch (error) {
}
// updateDateTableColumns()
getList()
importTemplateData.templateUrl = await DemandforecastingMainApi.importTemplate()

Loading…
Cancel
Save