From 7c5d65605209ace74fa51f98f8ba9d61ed913dbd Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 23 Dec 2024 17:03:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=A6=81=E8=B4=A7=E9=A2=84?= =?UTF-8?q?=E6=B5=8BFWHL-37?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/demandforecastingMain/index.ts | 6 ++ src/locales/en-US.ts | 6 ++ src/locales/zh-CN.ts | 9 +- .../demandforecastingMain.data.ts | 97 +++++++++++++++++++ .../demandforecastingMain/index.vue | 88 ++++++++++++++++- 5 files changed, 200 insertions(+), 6 deletions(-) diff --git a/src/api/wms/demandforecastingMain/index.ts b/src/api/wms/demandforecastingMain/index.ts index cbb7bfb59..a8e96a0c5 100644 --- a/src/api/wms/demandforecastingMain/index.ts +++ b/src/api/wms/demandforecastingMain/index.ts @@ -156,4 +156,10 @@ export const updateIsRead = async (data) => { return await request.post({ url: `/wms/demandforecasting-main/updateIsRead`,data }) } +//更新要货预测 +export const updateDemandforecaste = async (data) => { + return await request.post({ url: `/wms/demandforecasting-detail/queryQADDemandforecasting`,data }) +} + + diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 3ab92f9ba..aff39d14f 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1602,6 +1602,12 @@ export default { '周转箱(周转包装)':'Turnover box (turnover packing)', '外购件':'Outside purchased parts', '请填供应商信息!':'Please fill in the supplier information!', + 更新要货预测:'Update demand forecast', + 全部更新:'All updated', + 按供应商更新:'Updated by vendor', + 按物料更新:'Update by material', + '填写物料号(填写多个物料号)':'Fill in the material number (fill in multiple material numbers)', + '填写供应商代码(填写多个供应商)':'Fill in the vendor code (fill in multiple vendors)', }, diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 4541510d0..eddcea95c 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1600,9 +1600,12 @@ export default { '周转箱(周转包装)':'周转箱(周转包装)', '外购件':'外购件', '请填供应商信息!':'请填供应商信息!', - // 自制备件:'', - // 自制备件:'', - // 自制备件:'', + 更新要货预测:'更新要货预测', + 全部更新:'全部更新', + 按供应商更新:'按供应商更新', + 按物料更新:'按物料更新', + '填写物料号(填写多个物料号)':'填写物料号(填写多个物料号)', + '填写供应商代码(填写多个供应商)':'填写供应商代码(填写多个供应商)', diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts index ee80b26df..d6bca2d43 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts @@ -501,3 +501,100 @@ export const DemandforecastingDetailRules = reactive({ ], poLine: [{required:true, message: '请选择订单行', trigger: 'blur'}] }) + + +export const UpdateMain = useCrudSchemas(reactive([ + { + label: '全部更新', + field: 'isAll', + sort: 'custom', + isForm: true, + dictType: DICT_TYPE.FALSE_OR_TRUE, + dictClass: 'string', + form: { + component: 'Radio', + // value: 1, + // componentProps:{ + // options: [{ + // value: 1, + // label: '全部更新' + // }, + // { + // value: 2, + // label: '按供应商更新' + // }, + // { + // value: 3, + // label: '按物料更新' + // }] + // } + }, + }, + { + label: '供应商代码', + field: 'supplierCode', + sort: 'custom', + table: { + width: 150, + }, + form: { + componentProps: { + disabled:true, + dialogWidth:'700px',//搜索出来弹窗的宽度 + multiple: true, + enterSearch:false, + isSearchList: false, // 开启查询弹窗 + searchListPlaceholder: '填写供应商代码(填写多个供应商)', // 输入框占位文本 + searchField: 'supplierCode', // 查询弹窗赋值字段 + searchTitle: '供应商信息', // 查询弹窗标题 + searchAllSchemas: Supplier1.allSchemas, // 查询弹窗所需类 + searchPage: DemandforecastingMainApi.querySupplierList, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }], + // verificationParams: [{ + // key: 'codes', + // action: '==', + // value: '', + // isMainValue: false, + // isSearch: true, + // isFormModel: true, + // }], + // verificationPage: DemandforecastingMainApi.querySupplierList, // 校验数去焦点输入是否正确的方法 + } + } + }, + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + isForm: true, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + disabled:true, + dialogWidth:'700px',//搜索出来弹窗的宽度 + multiple: true, + enterSearch:false, + isSearchList: false, // 开启查询弹窗 + searchListPlaceholder: '填写物料号(填写多个物料号)', // 输入框占位文本 + searchField: 'itemCode', // 查询弹窗赋值字段 + searchTitle: '物料基础信息', // 查询弹窗标题 + searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类 + searchPage: SupplieritemApi.getSupplieritemPageSCP, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] + } + } + } +])) + +//表单校验 +export const UpdateMainRules = reactive({ + +}) \ No newline at end of file diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue index d36758d0f..272861361 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue @@ -1,7 +1,15 @@ - + +