From 5e3f4bd2bf3a6e30989b274a0a6ab8b8463e58e2 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 11 Dec 2025 11:02:18 +0800 Subject: [PATCH] =?UTF-8?q?2025-12-11=20=E7=94=9F=E4=BA=A7=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=88=97=E8=A1=A8=E5=B7=A5=E8=89=BA=E8=B7=AF=E7=BA=BF?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=B9=E9=87=8F=E4=BF=AE=E6=94=B9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=B8=89=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=9A=E7=94=9F=E4=BA=A7=E6=80=BB=E6=95=B0=E3=80=81?= =?UTF-8?q?=E6=80=BB=E5=8D=B7=E6=95=B0=E3=80=81=E6=AF=8F=E5=8D=B7=E6=80=BB?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shopOrder/soroutingAvailableResource.js | 3 + src/views/modules/qc/inboundNotification.vue | 1 + src/views/modules/qc/outboundNotification.vue | 1 + .../shopOrder/shopOrder/shopOrderList.vue | 127 +++++++++++++++++- 4 files changed, 126 insertions(+), 6 deletions(-) diff --git a/src/api/shopOrder/soroutingAvailableResource.js b/src/api/shopOrder/soroutingAvailableResource.js index 108e1e1..ff9de61 100644 --- a/src/api/shopOrder/soroutingAvailableResource.js +++ b/src/api/shopOrder/soroutingAvailableResource.js @@ -6,3 +6,6 @@ export const getSORoutingAvailableResource = data => createAPI(`/shoporder/sorou // 修改生产订单工序可用机台 export const updateSORoutingAvailableResource = data => createAPI(`/shoporder/soroutingAvailableResource/updateSORoutingAvailableResource`,'post',data) + +// 批量更新工艺路线(生产总数、总卷数、每卷总数、备注) +export const batchUpdateSORouting = data => createAPI(`/shoporder/sorouting/batchUpdateSORouting`,'post',data) \ No newline at end of file diff --git a/src/views/modules/qc/inboundNotification.vue b/src/views/modules/qc/inboundNotification.vue index 891f505..7055468 100644 --- a/src/views/modules/qc/inboundNotification.vue +++ b/src/views/modules/qc/inboundNotification.vue @@ -180,6 +180,7 @@ 删除 批量编辑 批量保存 + 取消编辑 删除 批量编辑 批量保存 + 取消编辑 + 批量编辑 + 批量保存 + 取消编辑 @@ -432,7 +448,7 @@ 导出 - + 主菜单 @@ -444,7 +460,7 @@ ({ + site: this.$store.state.user.site, + orderNo: this.modelData.orderNo, + itemNo: item.itemNo, + productionQty: item.productionQty || 0, + totalRollQty: item.totalRollQty || 0, + totalPerVolume: item.totalPerVolume || 0, + remark: item.remark || '' + })) + this.routingBatchSaveLoading = true + batchUpdateSORouting(params).then(({data}) => { + if (data && data.code === 0) { + this.$message.success('保存成功') + this.routingEditBatchVisible = false + this.getShopOrderDetail() + } else { + this.$message.error(data.msg || '保存失败') + } + }).finally(() => { + this.routingBatchSaveLoading = false + }) + }, // 工艺路线管理 getRouting() { if (!this.modelData.orderNo) { @@ -3205,7 +3315,12 @@ export default { /deep/ .customer-tab .el-tabs__content { padding: 3px !important; +} +/* 工艺路线表格行高样式,确保批量编辑时input框显示完全 */ +.el-table /deep/ .cell { + height: auto; + line-height: 1.5; } /deep/ .customer-tab .el-tabs__item {