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