From 8d1a27af40f3ebe9343a11eaede198e93836fa79 Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期一, 29 三月 2021 16:45:32 +0800
Subject: [PATCH] 出库增加备注修改功能

---
 src/main/webapp/static/js/pakStore/pakStore.js |   35 ++++++++++++++++++++++++++++++++++-
 1 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/pakStore/pakStore.js b/src/main/webapp/static/js/pakStore/pakStore.js
index 55db1b3..3f712f8 100644
--- a/src/main/webapp/static/js/pakStore/pakStore.js
+++ b/src/main/webapp/static/js/pakStore/pakStore.js
@@ -6,7 +6,10 @@
         {fixed: 'left', field: 'count', title: '鏁伴噺(蹇呭~)', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'}
     ];
     cols.push.apply(cols, matCols);
-    cols.push({fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80})
+    cols.push(
+        {field: 'memo', title:'澶囨敞', align: 'center'},
+        {fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120}
+        )
     return cols;
 }
 
@@ -89,6 +92,7 @@
     // 鐩戝惉琛屽伐鍏蜂簨浠�
     table.on('tool(chooseData)', function(obj){
         var data = obj.data;
+
         switch (obj.event) {
             case 'remove':
                 for (var i = matCodeData.length - 1; i >= 0; i--) {
@@ -102,6 +106,35 @@
                         // 瑕嗙洊render鏂规硶鐨刣one
                     }});
                 break;
+            case 'memo':
+               var memoLayer = layer.open({
+                    type: 2,
+                    title: '澶囨敞',
+                    maxmin: true,
+                    area: ['400px', '215px'],
+                    shadeClose: false,
+                    content: 'matMemo.html',
+                    btn: ['淇濆瓨', '鍙栨秷'],
+                    style: 'text-algin: center',
+                    yes:  function(index, layero){
+                        var memo = layer.getChildFrame('body', index).find("#memo")[0].value;
+                        matCodeData.map(function (item) {
+                            if (item.matNo === data.matNo) {
+                                item.memo = memo;
+                            }
+                        });
+                        // 閲嶇疆琛ㄦ牸鏁版嵁
+                        tableIns.reload({data: matCodeData,done:function (res) {
+                            limit();
+                            getInBound();
+                            layer.close(memoLayer);
+                        }});
+                    },
+                    success: function(layero, index){
+
+                    }
+                });
+                break;
         }
     });
 

--
Gitblit v1.9.1