From 3b6c504ac0071a09599aa81c9752f79602c5277f Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Wed, 20 Mar 2024 14:56:32 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliver/purchasePlanMain/index.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue index 157816868..8d4556556 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue @@ -441,6 +441,7 @@ // 主子数据 提交 const submitForm = async (formType, data) => { data.subList = [] + let flag = false for (let item of tableData.value) { await PurchaseDetailApi.getPurchaseDetailPageCheckData({ number: item.poNumber, @@ -449,13 +450,20 @@ console.log("【要货计划】-每条数据结果",item) if(res.list[0].type == 'DISCRETE'){//只有离散单需要这个校验 if (item.planQty > res.list[0].orderQty - res.list[0].plannedQty) { + flag = true; message.error('要货计划数量不得大于订单数量-已计划数量') return + }else{ + data.subList.push(item) // 拼接子表数据参数 } + }else{ + data.subList.push(item) // 拼接子表数据参数 } - data.subList.push(item) // 拼接子表数据参数 }) } + if(flag){ + return; + } if (data.subList.length == tableData.value.length) { try { if (formType === 'create') { From ee9a4a9506a87b2928ca04fa6560151ca3b83f76 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Wed, 20 Mar 2024 16:09:28 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierManage/supplieritem/supplieritem.data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts index 2395499b8..1e891afbf 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts @@ -319,7 +319,7 @@ export const SupplieritemRules = reactive({ ], supplierItemCode: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' }, - { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} + // { validator:validateYS, message: '请输入正确的代码', trigger: 'blur'} ], // packUnit: [ // { required: true, message: '请选择供应商包装单位', trigger: 'change' } From cf1ea7f3930c1e7c042b38bcd535fe1fa516c5e2 Mon Sep 17 00:00:00 2001 From: chenfang Date: Wed, 20 Mar 2024 16:12:24 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E5=A4=87=E8=B4=A7=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=9B=E5=BB=BA=E8=80=85=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/itembasic/index.ts | 2 +- src/api/wms/itempackage/index.ts | 2 +- .../stockup/stockupMainJob/stockupMainJob.data.ts | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/api/wms/itembasic/index.ts b/src/api/wms/itembasic/index.ts index 52a8dec1b..20f58f85c 100644 --- a/src/api/wms/itembasic/index.ts +++ b/src/api/wms/itembasic/index.ts @@ -34,7 +34,7 @@ export const getItembasicPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return request.post({ url: '/wms/itembasic/senior', data }) + return await request.post({ url: '/wms/itembasic/senior', data }) } else { return await request.get({ url: `/wms/itembasic/page`, params }) } diff --git a/src/api/wms/itempackage/index.ts b/src/api/wms/itempackage/index.ts index 5d4a850fa..5270dbc2f 100644 --- a/src/api/wms/itempackage/index.ts +++ b/src/api/wms/itempackage/index.ts @@ -24,7 +24,7 @@ export const getItempackagingPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return request.post({ url: '/wms/itempackage/senior', data }) + return await request.post({ url: '/wms/itempackage/senior', data }) } else { return await request.get({ url: `/wms/itempackage/page`, params }) } diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts index 2ef94ee4b..c8aca1d29 100644 --- a/src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts +++ b/src/views/wms/deliversettlementManage/stockup/stockupMainJob/stockupMainJob.data.ts @@ -284,6 +284,11 @@ export const StockupMainJob = useCrudSchemas(reactive([ field: 'outInventoryStatuses', sort: 'custom', }, + { + label: '创建者', + field: 'creator', + sort: 'custom', + }, { label: '创建时间', field: 'createTime', From 78a11a28687a5c7f79b84072a308e36fc4604fee Mon Sep 17 00:00:00 2001 From: chenfang Date: Wed, 20 Mar 2024 16:24:14 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=8C=85=E8=A3=85?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=B0=83=E7=94=A8api=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicDataManage/itemManage/itempackage/itempackage.data.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts b/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts index 87c40736f..f1ca43fe7 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts @@ -32,8 +32,6 @@ export const Itempackaging = useCrudSchemas(reactive([ searchCondition: [{ key: 'available', value: 'TRUE', - action: '==', - isSearch: true, isMainValue: false }] } From 11fc5a4261bbcbcf8efe4b2dff4d2e79e0bffe97 Mon Sep 17 00:00:00 2001 From: bjang03 Date: Wed, 20 Mar 2024 17:08:13 +0800 Subject: [PATCH 5/7] =?UTF-8?q?1=E3=80=81=E7=BB=91=E5=AE=9A=E8=AE=BE?= =?UTF-8?q?=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/workstation/index.ts | 12 ++- src/components/workstationBind/index.ts | 3 +- .../src/{workstationBind.vue => Detail.vue} | 81 +++++++++++-------- src/views/mes/workstation/index.vue | 61 ++++++++++---- src/views/mes/workstation/workstation.data.ts | 16 ++++ 5 files changed, 119 insertions(+), 54 deletions(-) rename src/components/workstationBind/src/{workstationBind.vue => Detail.vue} (89%) diff --git a/src/api/mes/workstation/index.ts b/src/api/mes/workstation/index.ts index 1e8e44a8f..d426cd3f4 100644 --- a/src/api/mes/workstation/index.ts +++ b/src/api/mes/workstation/index.ts @@ -46,4 +46,14 @@ export const exportWorkstation = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/mes/workstation/get-import-template' }) -} \ No newline at end of file +} +// 查询班组列表 +export const getTeamPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/team/senior', data }) + } else { + return await request.get({ url: `/wms/team/page`, params }) + } +} diff --git a/src/components/workstationBind/index.ts b/src/components/workstationBind/index.ts index bbab7d7c3..e7d199c89 100644 --- a/src/components/workstationBind/index.ts +++ b/src/components/workstationBind/index.ts @@ -1,3 +1,2 @@ -import workstationBind from './src/workstationBind.vue' import detail from './src/Detail.vue' -export { workstationBind,detail } +export {detail } diff --git a/src/components/workstationBind/src/workstationBind.vue b/src/components/workstationBind/src/Detail.vue similarity index 89% rename from src/components/workstationBind/src/workstationBind.vue rename to src/components/workstationBind/src/Detail.vue index df08c7e94..5b39f255b 100644 --- a/src/components/workstationBind/src/workstationBind.vue +++ b/src/components/workstationBind/src/Detail.vue @@ -15,7 +15,6 @@