From 5535e952a9ad15a997a183ed224c7f01e5aacbf2 Mon Sep 17 00:00:00 2001
From: ch <37327@LLOOCCY>
Date: 星期四, 14 四月 2022 09:25:46 +0800
Subject: [PATCH] 1

---
 WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_FastList.html |  143 ++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 109 insertions(+), 34 deletions(-)

diff --git "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_FastList.html" "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_FastList.html"
index d2d9e58..6553c82 100644
--- "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_FastList.html"
+++ "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_FastList.html"
@@ -38,6 +38,7 @@
                         <ul class="layui-tab-title" lay-filter="tab-all">
                             <li lay-id="1">缂撳瓨鍒楄〃</li>
                             <li lay-id="2">宸蹭笂浼犲垪琛�</li>
+                            <li lay-id="3">宸蹭笂浼犳煡璇�</li>
                         </ul>
                         <div class="layui-tab-content">
                             <div class="layui-tab-item  layui-show">
@@ -51,6 +52,28 @@
                                 <div class="layui-row">
                                     <div class="layui-col-xs12">
                                         <table class="layui-hide" id="yd-table" lay-filter="yd-table"></table>
+                                    </div>
+                                </div>
+                            </div>
+                            <div class="layui-tab-item">
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">鍗曟嵁鍙�</label>
+                                    <div class="layui-input-block">
+                                        <input type="text" class="layui-input" name="HBillNo" id="HBillNo">
+                                    </div>
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">婧愬崟鍙�</label>
+                                    <div class="layui-input-block">
+                                        <input type="text" class="layui-input" name="HSourceBillNo" id="HSourceBillNo">
+                                    </div>
+                                </div>
+                                <div class="layui-col-xs2">
+                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdQuery">鏌ヨ</button>
+                                </div>
+                                <div class="layui-row">
+                                    <div class="layui-col-xs12">
+                                        <table class="layui-hide" id="sy-table" lay-filter="sy-table"></table>
                                     </div>
                                 </div>
                             </div>
@@ -99,7 +122,7 @@
         , form = layui.form
         , element = layui.element;
         //娓呯┖鐣岄潰  new
-
+        var sBillType = '1207'
         //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new
 
         //鍔犺浇婧愬崟绫诲瀷
@@ -253,43 +276,75 @@
         form.on('submit(cmdDelete)', function () {//鍒犻櫎
             var checkStatus = table.checkStatus('dj-table')
                 , data = checkStatus.data;
-            var sInterID = data[0].HInterID
-            $.ajax(
-                {
-                    type: "Get",
-                    url: GetWEBURL() + "/ProductInBillList/Delete_Json",
-                    async: true,
-                    data: { "sHInterID": sInterID },
-                    dataType: "json",
-                    success: function (data) {
-                        if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�,
-                            layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
-                                // 寰楀埌frame绱㈠紩
-                                var index = layer.getFrameIndex(window.name);
-                                //鍏抽棴褰撳墠frame
-                                layer.close(index);
-                                //淇敼涓哄姛鍚庡埛鏂扮晫闈�
-                                window.location.reload();
-                            });
-                        }
-                        else {
-                            layer.msg(data.Message, { icon: 2 });
-                        }
-                    },
-                    error: function (err) {
-                        layer.msg('閿欒' + err, {
-                            icon: 5,
-                            time: 20000
-                        }, function () {
-                            //do something
+            if (checkStatus.data.length === 1) {
+                var sInterID = data[0].HInterID;
+                //閫昏緫鍒犻櫎鏂规硶
+                layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
+                    $.ajax(
+                        {
+                            type: "Get",
+                            url: GetWEBURL() + "/ProductInBillList/Delete_Json",
+                            async: true,
+                            data: { "sHInterID": sInterID },
+                            dataType: "json",
+                            success: function (data) {
+                                if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�,
+                                    layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                        // 寰楀埌frame绱㈠紩
+                                        var index = layer.getFrameIndex(window.name);
+                                        //鍏抽棴褰撳墠frame
+                                        layer.close(index);
+                                        //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                        window.location.reload();
+                                    });
+                                }
+                                else {
+                                    layer.msg(data.Message, { icon: 2 });
+                                }
+                            },
+                            error: function (err) {
+                                layer.msg('閿欒' + err, {
+                                    icon: 5,
+                                    time: 20000
+                                }, function () {
+                                    //do something
+                                });
+                            }
                         });
-                    }
-                });
+                })
+            }
+            else {
+                layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
+            }
+            
         });
-        
+        //鏌ヨ
+        form.on('submit(cmdQuery)', function () {
+            var HBillNo = $("#HBillNo").val();
+            var HSourceBillNo = $("#HSourceBillNo").val();
+            //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
+            $.ajax({
+                url: GetWEBURL() + '/Gy_Mould/list1',
+                type: "GET",
+                data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo },
+                success: function (data1) {
+                    if (data1.count == 1) {
+                        option.data = data1.data;
+                        table.render(option);
+                        layer.close(index);
+                    } else {
+                        layer.close(index);
+                        layer.alert(data1.code + data1.Message, { icon: 5 });
+                    }
+                }, error: function () {
+                    layer.close(index);
+                    layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                }
+            });
+        });
        
         
-        var sBillType = '1207'
+        
                 table.render({
                     elem: '#dj-table'
                     , url: GetWEBURL() + '/Web/chanpinruk'
@@ -338,6 +393,26 @@
                 layer.closeAll("loading");
             }
         })
+
+        //宸蹭笂浼犳煡璇�
+        table.render({
+            elem: '#sy-table'
+            , toolbar: '#toolbarDemo'
+            , cols: [[
+                { type: 'radio' }
+                , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
+                , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
+                , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
+                , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
+                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 100 }
+                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 100 }
+                , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 100 }
+                , { field: 'HQty', title: '鏁伴噺', width: 100 }
+                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
+                , { field: 'HOrgID', title: '缁勭粐', width: 100 }
+            ]]
+            , height: 500
+        })
         //鍒锋柊鏄庣粏椤电
         table.render({
             elem: '#mx-table' 

--
Gitblit v1.9.1