|
|
@ -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 |
|
|
|
})) |
|
|
|
})):[] |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|