From ad643da4a87fd46bff66cdd4e95b9fa7a3239438 Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期二, 20 七月 2021 17:07:15 +0800
Subject: [PATCH] 产量汇报提交保存

---
 WebTM/views/生产管理/生产汇报单/Sc_Add_ICMOReportBillList.html |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html"
index 05d1dd0..5f998c4 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\346\261\207\346\212\245\345\215\225/Sc_Add_ICMOReportBillList.html"
@@ -177,6 +177,19 @@
                 , laydate = layui.laydate
                 , element = layui.element;
 
+            var fn1 = function (field) {
+                return function (data) {
+                    var value = data[field];
+                    return [
+                        '<select name="type" lay-filter="type" lay-search="true" value="' + value + '">',
+                        '<option value="" >璇烽�夋嫨鐘舵��</option>',
+                        '<option value="0"' + (value === 0 ? 'selected' : '') + '>鍥戒骇</option>',
+                        '<option value="1"' + (value === 1 ? 'selected' : '') + '>杩涘彛</option>',
+                        '</select>'
+                    ].join('');
+                };
+            };
+
             //甯歌鐢ㄦ硶
             laydate.render({
                 elem: '#HDate'
@@ -200,7 +213,7 @@
                     { type: 'checkbox', fixed: 'left' }
                     , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe", width: 100 }
                     , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true }
-                    , { field: 'HMaterCode', title: '鐗╂枡浠g爜', edit: 'text', event: 'HMaterCode', width: 100 }
+                    , { field: 'HMaterCode', title: '鐗╂枡浠g爜', edit: 'text', event: 'HMaterCode', width: 100, templet: fn1('HMaterCode') }
                     , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', edit: 'text', width: 100 }
                     , { field: 'HMaterSpec', title: '瑙勬牸鍨嬪彿', edit: 'text', width: 100 }
                     , { field: 'HUnitID', title: 'HUnitID', edit: 'text', width: 100, hide: true }
@@ -218,6 +231,8 @@
                 ]]
                 , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
             };
+          
+
             //鍒ゆ柇鏄惁鏂板
             if (hID == null || hID == 0) {
                 //鍒濆鍔犺浇琛ㄦ牸{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }

--
Gitblit v1.9.1