From 86eddac955bc81a2eaa26eb5b5be053939db5b6e Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 4 Jul 2024 09:16:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/demandforecastingMain/index.ts | 10 +++++++++- .../demandforecastingMain.data.ts | 19 +++++++++++-------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/api/wms/demandforecastingMain/index.ts b/src/api/wms/demandforecastingMain/index.ts index 68b471769..1c1478e5d 100644 --- a/src/api/wms/demandforecastingMain/index.ts +++ b/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' }) -} \ No newline at end of file +} + + +// 计划员 +export const queryUserPlanerList = async () => { + return await request.post({ url: `/wms/demandforecasting-main/queryUserPlanerList`,data:{} }) + +} + diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts index a7bc10e7c..529031a9f 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts +++ b/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([ 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([ field: 'supplierCode', sort: 'custom', table: { - width: 150 + width: 150, }, isSearch: true, search: { componentProps: { + multiple: true, enterSearch:true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择供应商代码', // 输入框占位文本