From 1e9a52cf65f364b4332a008210700adbaea0c35e Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 06 九月 2024 11:34:16 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/northglass-erp/src/views/sd/delivery/CreateDelivery.vue |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/sd/delivery/CreateDelivery.vue b/north-glass-erp/northglass-erp/src/views/sd/delivery/CreateDelivery.vue
index b521dc8..58243e5 100644
--- a/north-glass-erp/northglass-erp/src/views/sd/delivery/CreateDelivery.vue
+++ b/north-glass-erp/northglass-erp/src/views/sd/delivery/CreateDelivery.vue
@@ -14,6 +14,7 @@
 import footSum from "@/hook/footSum";
 import {changeFilterEvent,filterChanged} from "@/hook"
 import companyInfo from "@/stores/sd/companyInfo";
+import {multiply} from "@/utils/decimal";
 
 //璇█鑾峰彇
 const { t } = useI18n()
@@ -211,7 +212,6 @@
         pageTotal.value=res.data.total
         titleUploadData.value=deepClone(res.data.delivery)
         titleUploadData.value.deliveryId=str
-        console.log(titleUploadData.value)
 
         //鏍规嵁瀹℃牳鐘舵�佹樉绀哄鏍告寜閽垨鑰呮槸鍙嶅鎸夐挳
 
@@ -298,6 +298,7 @@
   customConfig: {
     storage: true
   },
+  checkboxConfig:{checkAll:true},
   mouseConfig:{selected: true},//榧犳爣閫変腑
   keyboardConfig:{isArrow: true, isDel: true, isEnter: true, isTab: true, isEdit: true, isChecked: true},
   editConfig: {
@@ -585,6 +586,16 @@
 
 })
 
+const editClosedEvent = ({ row, column }) => {
+
+  if (['deliveryDetail.quantity'].includes(column.property)) {
+    if(parseInt(row.deliveryDetail.quantity)===0){
+      xGrid.value.setCheckboxRow(row, false);
+    }
+  }
+
+}
+
 
 </script>
 
@@ -678,6 +689,7 @@
           v-bind="gridOptions"
           v-on="gridEvents"
           :edit-rules="validRules"
+          @edit-closed="editClosedEvent"
 
       >
         <template #num1_filter="{ column, $panel }">

--
Gitblit v1.8.0