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

Loading…
Cancel
Save