From 80f996bc7ca278c8157ceaa035fac666c7a58d61 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 25 七月 2025 13:03:19 +0800
Subject: [PATCH] 迦南:超链接自动登录

---
 WebTM/views/公共页面/Kf_SourceBillEditDlg_PDA.html |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git "a/WebTM/views/\345\205\254\345\205\261\351\241\265\351\235\242/Kf_SourceBillEditDlg_PDA.html" "b/WebTM/views/\345\205\254\345\205\261\351\241\265\351\235\242/Kf_SourceBillEditDlg_PDA.html"
index d72f20d..4637da9 100644
--- "a/WebTM/views/\345\205\254\345\205\261\351\241\265\351\235\242/Kf_SourceBillEditDlg_PDA.html"
+++ "b/WebTM/views/\345\205\254\345\205\261\351\241\265\351\235\242/Kf_SourceBillEditDlg_PDA.html"
@@ -46,6 +46,14 @@
                                 <input type="text" name="HMater" id="HMater" lay-verify="HMater" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
                             </div>
                         </div>
+                        <div class="layui-row">
+                            <div class="layui-col-xs3">
+                                <label class="layui-form-label" style="width:60px;padding-left:0px;">鍏宠仈椤�</label>
+                            </div>
+                            <div class="layui-col-xs9">
+                                <input type="text" name="HCustom" id="HCustom" lay-verify="HCustom" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+                            </div>
+                        </div>
                         <div class="layui-row" style="margin-top: 10px; margin-bottom: 10px; float: right;">
                             <button type="button" lay-submit="" lay-filter="cmdQuery" class="layui-btn" id="cmdQuery">鏌ヨ</button>
                             <button type="button" lay-submit="" lay-filter="cmdOK" class="layui-btn" id="cmdOK">杩斿洖</button>
@@ -93,6 +101,7 @@
             var HMaker = sessionStorage["HUserName"]
             var HSourceBillNo = "";
             var HMater = "";
+            var HCustom = "";
             var listOption = [];
             var columns = "";
             var HModName = "Kf_SourceBillEditDlg_PDA";
@@ -186,6 +195,7 @@
             form.on('submit(cmdQuery)', function () {
                 HSourceBillNo = $("#HSourceBillNo").val();
                 HMater = $("#HMater").val();
+                HCustom = $("#HCustom").val();
                 //鏄剧ず鐗╂枡鍒楄〃淇℃伅
                 DisBillEntryList();
             });
@@ -219,15 +229,16 @@
             //#region 鏄剧ず鐗╂枡鍒楄〃淇℃伅
 
             function DisBillEntryList() {
+                layer.load(3)
                 $.ajax({
                     type: "GET",
                     url: GetWEBURL() + '/WEBSController/GetSourceBillList_Json',
                     async: true,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
-                    data: { "HBillType": HBillType, "HSourceBillType": HSourceBillType, "HStockOrgID": HStockOrgID, "HSourceBillNo": HSourceBillNo, "HMater": HMater },
+                    data: { "HBillType": HBillType, "HSourceBillType": HSourceBillType, "HStockOrgID": HStockOrgID, "HSourceBillNo": HSourceBillNo, "HMater": HMater, "HCustom": HCustom },
                     success: function (result) {
+                        var data = [];
+                        var col = [];
                         if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                            var data = [];
-                            var col = [];
                             //缁欑┖鐨勬暟缁勮祴鍊�
                             for (var key in result.list) {
                                 //鍔ㄦ�佽幏鍙栧垪琛ㄦ墍鏈夊垪鍚�
@@ -263,9 +274,15 @@
                             table.render(listOption);
                         }
                         else {
-                            listOption.cols = [columns];
-                            listOption.data = result.data;
-                            table.cache['dj-table'] = null;         //娓呯┖琛ㄦ牸缂撳瓨鏁版嵁
+                            listOption.cols = [[
+                                { field: '鏃ユ湡', title: '鏃ユ湡', width: 100 }
+                                , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 100 }
+                                , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 100 }
+                                , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 100 }
+                                , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
+                                , { field: '鏁伴噺', title: '鏁伴噺', width: 100 }
+                            ]];
+                            listOption.data = data;
                             table.render(listOption);
                             //layer.msg(result.Message);
                             //layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
@@ -273,6 +290,7 @@
                     },
                     complete: function (XHR, TS) { XHR = null }//鍥炴敹璧勬簮
                 });
+                layer.closeAll("loading");
             }
 
             //#endregion

--
Gitblit v1.9.1