From d64724c092e9aa860c888d3e4106d41a8dfe99e8 Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期三, 30 三月 2022 17:30:53 +0800
Subject: [PATCH] PDA加删除提示+器具档案批量生成

---
 WebTM/views/验收入库/其他入库/Kf_OtherInBill_FastList.html |  107 ++++++++++++++++++++++++++---------------------------
 1 files changed, 53 insertions(+), 54 deletions(-)

diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_FastList.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_FastList.html"
index 2e0d858..686ee01 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_FastList.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\205\266\344\273\226\345\205\245\345\272\223/Kf_OtherInBill_FastList.html"
@@ -226,60 +226,59 @@
 
         form.on('submit(cmdDelete)', function () {//鍒犻櫎
             var checkStatus = table.checkStatus('dj-table')
-            , data = checkStatus.data;
-            // console.log(data);
-            // var sInterID = $('#HInterID').val()
-            var sInterID = data[0].HInterID
-            //var sMaterID = data[0].HMaterID   
-            //var sBillType = $('#HBillType').val()
-            //var sAuxPropID = data[0].HAuxPropID
-            ////var sMTONo = data[0].HMTONo
-            //var sMTONo = 0
-            //var sSourceInterID = data[0].HSourceInterID
-            //var sSourceEntryID = data[0].HSourceEntryID
-            $.ajax(
-               {
-                   type: "Get",
-                   url: GetWEBURL() + "/Web/Delete_Json",
-                   async: true,
-                   data: { "sHInterID": sInterID },
-                   dataType: "json",
-                   success: function (data) {
-                       if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                           //layer.msg(data.Message, { icon: 1 });
-                           table.render({
-                               elem: '#dj-table'
-                               , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
-                               , cellMinWidth: 80
-                               , toolbar: '#toolbarDemo'
-                               , where: { HBillType: '1203', sWhere: '' }
-                               , cols: [[
-                                   { type: 'radio' }
-                                , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
-                                , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
-                                , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
-                                , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
-                                , { field: 'HQty', title: '鏁伴噺', width: 100 }
-                                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
-                                , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 }
-                                , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
-                               ]]
-                         , height: 500
-                           })
-                       }
-                       else {
-                           layer.msg(data.Message, { icon: 2 });
-                       }
-                   },
-                   error: function (err) {
-                       layer.msg('閿欒' + err, {
-                           icon: 5,
-                           time: 20000
-                       }, function () {
-                           //do something
-                       });
-                   }
-               });
+                , data = checkStatus.data;
+            if (checkStatus.data.length === 1) {
+                var sInterID = data[0].HInterID
+            //閫昏緫鍒犻櫎鏂规硶
+                layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
+                    $.ajax(
+                        {
+                            type: "Get",
+                            url: GetWEBURL() + "/Web/Delete_Json",
+                            async: true,
+                            data: { "sHInterID": sInterID },
+                            dataType: "json",
+                            success: function (data) {
+                                if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                                    //layer.msg(data.Message, { icon: 1 });
+                                    table.render({
+                                        elem: '#dj-table'
+                                        , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
+                                        , cellMinWidth: 80
+                                        , toolbar: '#toolbarDemo'
+                                        , where: { HBillType: '1203', sWhere: '' }
+                                        , cols: [[
+                                            { type: 'radio' }
+                                            , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
+                                            , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
+                                            , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
+                                            , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
+                                            , { field: 'HQty', title: '鏁伴噺', width: 100 }
+                                            , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
+                                            , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 }
+                                            , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
+                                        ]]
+                                        , height: 500
+                                    })
+                                }
+                                else {
+                                    layer.msg(data.Message, { icon: 2 });
+                                }
+                            },
+                            error: function (err) {
+                                layer.msg('閿欒' + err, {
+                                    icon: 5,
+                                    time: 20000
+                                }, function () {
+                                    //do something
+                                });
+                            }
+                        });
+                })
+            }
+            else {
+                layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
+            }
         });
 
         

--
Gitblit v1.9.1