Browse Source

计划员配置

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

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

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

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

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

Loading…
Cancel
Save