|
|
@ -9,7 +9,11 @@ import {Itembasic} from "@/views/wms/basicDataManage/itemManage/itembasic/itemba |
|
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
|
import * as DemandforecastingMainApi from '@/api/wms/demandforecastingMain' |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
const planerList = await DemandforecastingMainApi.queryUserPlanerList() |
|
|
|
console.log('planerList',planerList) |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 要货预测主表 |
|
|
@ -27,16 +31,14 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isSearch:true, |
|
|
|
search:{ |
|
|
|
component:'Select', |
|
|
|
value:planerList.length>0?[planerList[0]['planerId']]:[], |
|
|
|
componentProps: { |
|
|
|
showAll:true,// 备用做全选
|
|
|
|
multiple:true, |
|
|
|
options:[{ |
|
|
|
label:'1111', |
|
|
|
value: 1111 |
|
|
|
},{ |
|
|
|
label:'222', |
|
|
|
value: 222 |
|
|
|
}] |
|
|
|
options:planerList.map(item=>({ |
|
|
|
label:item.planerUsername, |
|
|
|
value:item.planerId |
|
|
|
})) |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -45,11 +47,12 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'supplierCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
width: 150, |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
search: { |
|
|
|
componentProps: { |
|
|
|
multiple: true, |
|
|
|
enterSearch:true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
|
|
|
|