From b0a47811ab80b107e085bc1db575f583b0696922 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 22 九月 2023 15:41:21 +0800
Subject: [PATCH] 物料:表格单选框改为复选框 生产领料单:更改选择物料时访问的弹窗页面,重量根据新的物料重新计算 生产领料单列表:相关操作后的刷新操作由页面刷新变为根据过滤条件查询,列设置最后一列不能设置问题修正

---
 WebTM/views/领料发货/领料出库/Kf_MateOutBillLEdit.html |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html"
index 8e768ce..0172096 100644
--- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html"
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillLEdit.html"
@@ -1361,7 +1361,7 @@
                                 shift: 2,
                                 area: ['80%', '80%'],
                                 maxmin: true,
-                                content: ['../../PublicPage/PartInformation.html', 'yes'],
+                                content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_MaterialList.html', 'yes'],
                                 btn: ['纭畾', '鍙栨秷']
                                 , btn1: function (index, layero) {
 
@@ -1394,8 +1394,17 @@
 
                                         option.data[rowIndex + i].HDesignLife = 0;
                                         option.data[rowIndex + i].HLeaveLife = 0;
-                                        option.data[rowIndex + i].HQty = 1;
                                         option.data[rowIndex + i].HMoney = 0;
+
+
+                                        //鏍规嵁鐗╂枡鐨� 鐗╂枡鍏紡 璁$畻 閲嶉噺
+                                        var HWeight = $("#HWeight").val();
+                                        var HWaterQty = $("#HWaterQty").val();
+                                        if (option.data[rowIndex + i].HMaterRuleType == "鏌撴枡") {
+                                            option.data[rowIndex + i].HQty = option.data[rowIndex + i].HRate * HWeight;
+                                        } else if (option.data[rowIndex + i].HMaterRuleType == "鍔╁墏") {
+                                            option.data[rowIndex + i].HQty = option.data[rowIndex + i].HRate * HWaterQty;
+                                        }
                                     }
                                     table.render(option);
 

--
Gitblit v1.9.1