From d2d07a34a4f3523d7a57d796c9797d149bdc7a4b Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 6 Jun 2025 14:30:12 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E9=97=AE=E9=A2=98131=EF=BC=9A?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E7=BB=91=E5=AE=9A=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E5=B7=B2=E7=BB=91=E5=AE=9A=E9=94=80=E5=94=AE?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=BB=BF=E8=89=B2=E8=83=8C=E6=99=AF=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=BB=BF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/mes/MesPurchaseOrderMapper.xml | 3 ++- hw-ui/src/views/mes/purchaseOrder/index.vue | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesPurchaseOrderMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesPurchaseOrderMapper.xml index d7a8fa99..c9902466 100644 --- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesPurchaseOrderMapper.xml +++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesPurchaseOrderMapper.xml @@ -416,7 +416,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" mpo.order_amount, mpo.complete_amount, mpo.approve_date, mpo.erp_modify_date, mpo.plan_delivery_date, mpo.begin_date, mpo.end_date, mpo.order_status, mpo.complete_date, mpo.specification_parameter, mpo.src_bill_no, mpo.purchase_org_id, mpo.tond_base, - mbmi.material_code,mbmi.material_name,mbmi.material_spec,mbmi.always_flag,mpi.project_name + mbmi.material_code,mbmi.material_name,mbmi.material_spec,mbmi.always_flag,mpi.project_name, + IF((select count(*) from mes_order_bind mob where mob.purchase_order_id = mpo.purchase_order_id and mob.sale_order_id > 0) > 0, '1', '0') bindFlag from mes_purchase_order mpo left join mes_base_material_info mbmi on mpo.material_id =mbmi.erp_id left join mes_project_info mpi on mpo.tond_base=mpi.erp_id diff --git a/hw-ui/src/views/mes/purchaseOrder/index.vue b/hw-ui/src/views/mes/purchaseOrder/index.vue index 5b67f47b..405afc0f 100644 --- a/hw-ui/src/views/mes/purchaseOrder/index.vue +++ b/hw-ui/src/views/mes/purchaseOrder/index.vue @@ -144,7 +144,7 @@ - + @@ -590,7 +590,20 @@ export default { }).then(() => { this.$modal.msgSuccess("执行成功"); }).catch(() => {}); - } + }, + + tableRowClassName({row}) { + //绿色背景采购订单绑定已销售订单 + if (row.bindFlag === '1') { + return 'success-row'; + } + return ''; + }, } }; +