Browse Source

计划员

master_hella_20240701
wangyufei 4 months ago
parent
commit
86eddac955
  1. 10
      src/api/wms/demandforecastingMain/index.ts
  2. 19
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

10
src/api/wms/demandforecastingMain/index.ts

@ -80,4 +80,12 @@ export const exportDemandforecastingMain = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/demandforecasting-main/get-import-template' })
}
}
// 计划员
export const queryUserPlanerList = async () => {
return await request.post({ url: `/wms/demandforecasting-main/queryUserPlanerList`,data:{} })
}

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

@ -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: '请选择供应商代码', // 输入框占位文本

Loading…
Cancel
Save