From 72754bdb080100b6cabec7d1f1a982fea2d6f4cf Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 11 六月 2025 08:02:18 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/设备管理/Sb_EquipDotCheckBillEdit.html |  317 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 301 insertions(+), 16 deletions(-)

diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html"
index 8f90645..9141a73 100644
--- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html"
+++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html"
@@ -14,6 +14,7 @@
     <script src="../../layuiadmin/Scripts/webConfig.js"></script>
     <script src="../../layuiadmin/PubCustom.js"></script>
     <script src="../../layuiadmin/PageTitle.js"></script>
+    <script src="../../layuiadmin/zgqCustom/zgqCustom.js"></script>
     <style type="text/css">
         .layui-form-label {
             width: 95px;
@@ -44,10 +45,11 @@
                         </div>
                         <div class="layui-card-body">
                             <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
-                                <!--<ul class="layui-tab-title">
-                                <li class="layui-this">鍩烘湰淇℃伅</li>-->
-                                <!--<li>鍏朵粬淇℃伅</li>-->
-                                <!--</ul>-->
+                                <ul class="layui-tab-title">
+                                    <li class="layui-this">鍩烘湰淇℃伅</li>
+                                    <li>闄勪欢淇℃伅</li>
+                                    <li>鍒跺崟淇℃伅</li>
+                                </ul>
                                 <h1 style="text-align: center; padding: 10px 0;"><b>璁惧鐐规璁板綍鍗�</b></h1>
                                 <div class="layui-tab-content">
                                     <div class="layui-tab-item layui-show">
@@ -172,6 +174,99 @@
                                             </div>
                                         </div>
                                     </div>
+                                    <!--闄勪欢淇℃伅-->
+                                    <div class="layui-tab-item">
+                                        <div class="layui-form-item" style="padding-top: 10px;">
+                                            <div class="layui-upload">
+                                                <button type="button" class="layui-btn" id="testList">閫夋嫨鏂囦欢</button><input class="layui-upload-file" type="file" accept="" name="file" multiple="">
+                                                <div class="layui-upload-list">
+                                                    <table class="layui-table" lay-filter="fileTable">
+                                                        <thead>
+                                                            <tr>
+                                                                <th>鏂囦欢鍚�</th>
+                                                                <th>鍥剧墖</th>
+                                                                <th>澶у皬</th>
+                                                                <th>鐘舵��</th>
+                                                                <th>鎿嶄綔</th>
+                                                            </tr>
+                                                        </thead>
+                                                        <tbody id="ProImgByList" class="ProImgByList">
+                                                        </tbody>
+                                                    </table>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <!--鍒跺崟淇℃伅-->
+                                    <div class="layui-tab-item">
+                                        <div class="layui-form-item">
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">鍒跺崟浜�</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">瀹℃牳浜�</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">鍏抽棴浜�</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">淇敼浜�</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+
+                                        </div>
+                                        <div class="layui-form-item">
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">鍒跺崟鏃ユ湡</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">瀹℃牳鏃ユ湡</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">鍏抽棴鏃ユ湡</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">淇敼鏃ユ湡</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+                                        </div>
+                                        <div class="layui-form-item">
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">浣滃簾浜�</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label" style="width: 85px;">浣滃簾鏃ユ湡</label>
+                                                <div class="layui-input-block" style="margin-left: 120px;">
+                                                    <input type="text" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </div>
                                 </div>
                             </div>
                         </div>
@@ -221,7 +316,7 @@
             base: '../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
         }).extend({
             index: 'lib/index' //涓诲叆鍙fā鍧�
-        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
+        }).use(['index', 'form', 'laydate', 'table', 'element', 'upload'], function () {
 
             //#region 鍏敤鍙橀噺
             var $ = layui.$
@@ -230,6 +325,7 @@
                 , table = layui.table
                 , form = layui.form
                 , laydate = layui.laydate
+                , upload = layui.upload
                 , element = layui.element;
 
             var option = [];
@@ -255,9 +351,14 @@
             //鍒ゆ柇鎿嶄綔绫诲瀷
             if (OperationType == 1) {//鏃犳簮鏂板
                 set_AddFNew();
+                //鏂囦欢閫夋嫨鍒濆鍖�
+                PicUpload();
             }
             else if (OperationType == 3) {//缂栬緫
                 set_EditFromGrid(linterid);
+                //鏂囦欢閫夋嫨鍒濆鍖�
+                PicUpload();
+                getFile();
             }
             else {
                 layer.alert("鏈煡鎿嶄綔绫诲瀷锛�", { icon: 5 });
@@ -298,7 +399,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true
-                    , content: ['../璁惧绠$悊/璁惧妗f/Gy_EquipFileMainList.html', 'yes']
+                    , content: ['../璁惧绠$悊/璁惧妗f/Gy_EquipFileMainList.html?openType=2', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
                         //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
@@ -334,7 +435,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true
-                    , content: ['../鍩虹璧勬枡/鐢熶骇鍩虹璧勬枡/Gy_ShiftsList.html', 'yes']
+                    , content: ['../鍩虹璧勬枡/鐢熶骇鍩虹璧勬枡/Gy_ShiftsList.html?openType=2', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
                         //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
@@ -413,7 +514,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true,
-                    content: ['../璁惧绠$悊/璁惧瑙勭▼鍗�/Sb_EquipDotCheckRuleList.html', 'yes'],
+                    content: ['../璁惧绠$悊/璁惧瑙勭▼鍗�/Sb_EquipDotCheckRuleList.html?openType=2', 'yes'],
                     btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
                         //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
@@ -488,9 +589,9 @@
                                     buttonArr = [];//娓呯┖鏁扮粍
                                     for (var i = 0; i < DJData.data.length; i++) {
                                         var checkrow = {
-                                            "HDotCheckItemID": DJData.data[i].HDotCheckItemID, "HDotCheckCode": DJData.data[i].HDotCheckCode, "HDotCheckItem": DJData.data[i].HDotCheckItem,
-                                            "HDotCheckPart": DJData.data[i].HDotCheckPart, "HManagerID": DJData.data[i].HManagerID, "HManagerCode": DJData.data[i].HManagerCode,
-                                            "HManagerName": DJData.data[i].HManagerName, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y"
+                                            "HDotCheckItemID": DJData.data[i].HDotCheckItemID, "HDotCheckCode": DJData.data[i].鐐规椤圭洰浠g爜, "HDotCheckItem": DJData.data[i].鐐规椤圭洰,
+                                            "HDotCheckPart": DJData.data[i].鐐规閮ㄤ綅, "HManagerID": DJData.data[i].璐熻矗浜篒D, "HManagerCode": DJData.data[i].璐熻矗浜轰唬鐮�,
+                                            "HManagerName": DJData.data[i].璐熻矗浜哄悕绉�, "HDotCheckItemClassID": 0, "HDotCheckItemClassName": "", "HDotCheckItemMethodID": 0, "HDotCheckItemMethodName": "", "HDotCheckResult": "Y"
                                         };
                                         buttonArr.push(checkrow);  //灏嗕箣鍓嶇殑鏁版嵁瀛樺偍
                                     }
@@ -522,7 +623,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true,
-                    content: ['../璁惧绠$悊/Sb_EquipDotCheckPlanBillList.html', 'yes'],
+                    content: ['../璁惧绠$悊/Sb_EquipDotCheckPlanBillList.html?openType=2', 'yes'],
                     btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
                         //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
@@ -534,8 +635,8 @@
                         $("#HPlanName").val(checkStatus.data[0].鍗曟嵁鍙�);
                         $("#HPlanNo").val(checkStatus.data[0].鍗曟嵁鍙�);
                         $("#HEquipDotCheckPlanInterID").val(checkStatus.data[0].hmainid);                        
-                        //$("#HEquipName").val(checkStatus.data[0].璁惧鍚嶇О);
-                        //$("#HEquipID").val(checkStatus.data[0].璁惧ID);
+                        $("#HEquipName").val(checkStatus.data[0].璁惧鍚嶇О);
+                        $("#HEquipID").val(checkStatus.data[0].璁惧ID);
                         $("#HEquipDotCheckRuleInterID").val(checkStatus.data[0].HMouldDotCheckRuleID);
                         $("#HEquipDotCheckRuleInterNo").val(checkStatus.data[0].璁惧鐐规瑙勭▼);
                         layer.close(index);  //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
@@ -546,7 +647,7 @@
             });
 
             function get_DocCheckItem3() {
-                var HPlanID = $("#HPlanNo").val() //鐐规璁″垝ID
+                var HPlanID = $("#HEquipDotCheckPlanInterID").val() //鐐规璁″垝ID
                 var HDate = $("#HDate").val(); //褰撳ぉ鏃ユ湡
                 $.ajax({
                     url: GetWEBURL() + "/Sb_EquipDotCheckPlanBill/Sb_EquipDotCheckPlanBill_PlanList",
@@ -988,9 +1089,10 @@
                     data: {
                         "HID": linterid
                     },
+                    async: false,
                     success: function (result) {
                         if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                            var data = result.data.h_v_Sb_EquipDotCheckBillList[0];
+                            var data = result.data.h_v_Sb_EquipDotCheckBill_Edit2[0];
                             form.val("component-form-group", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
                                 "HBillNo": data.鍗曟嵁鍙�
                                 , "HDate": formatDate(data.鏃ユ湡)
@@ -1010,6 +1112,16 @@
                                 , "HDotCheckNote": data.鐐规鏁版嵁 //鐐规鏁版嵁
                                 , "HShiftsID": data.HShiftsID //
                                 , "HShiftsName": data.鐝鍚嶇О //鐝鍚嶇О
+                                , "HMaker": data.鍒跺崟浜�
+                                , "HMakeDate": data.鍒跺崟鏃ユ湡 == null ? "" : Format(new Date(data.鍒跺崟鏃ユ湡), "yyyy-MM-dd")
+                                , "HChecker": data.瀹℃牳浜�
+                                , "HCheckDate": data.瀹℃牳鏃ユ湡 == null ? "" : Format(new Date(data.瀹℃牳鏃ユ湡), "yyyy-MM-dd")
+                                , "HUpDater": data.淇敼浜�
+                                , "HUpDateDate": data.淇敼鏃ユ湡 == null ? "" : Format(new Date(data.淇敼鏃ユ湡), "yyyy-MM-dd")
+                                , "HCloseMan": data.鍏抽棴浜�
+                                , "HCloseDate": data.鍏抽棴鏃ユ湡 == null ? "" : Format(new Date(data.鍏抽棴鏃ユ湡), "yyyy-MM-dd")
+                                , "HDeleteMan": data.浣滃簾浜�
+                                , "HDeleteDate": data.浣滃簾鏃ユ湡 == null ? "" : Format(new Date(data.浣滃簾鏃ユ湡), "yyyy-MM-dd")
                                 //, "HLastResult": data.鏈�缁堢粨璁� == "鍚堟牸" ? "OK" : "NG" //鏈�缁堢粨璁�
                             });
 
@@ -1062,6 +1174,113 @@
                     }
                 });
             }
+
+            //#region 鏂囦欢涓婁紶
+            function PicUpload() {
+                //澶氬浘鐗囦笂浼�
+                //澶氭枃浠跺垪琛ㄧず渚�
+                var ProImgByList = $('#ProImgByList')
+                    , uploadListIns = upload.render({
+                        elem: '#testList'
+
+                        , url: GetWEBURL() + "/Sb_EquipDotCheckBill/UploadFile"
+                        , accept: 'file'
+                        , multiple: true
+                        , auto: false
+                        //, bindAction: '#testListAction' //鎸夋壄缁戝畾
+                        , data: { "HBillNo": $("#HBillNo").val(), "HRemark": $("#HRemark").val(), "HUserName": sessionStorage["HUserName"] }
+                        , choose: function (obj) {
+                            var files = this.files = obj.pushFile(); //灏嗘瘡娆¢�夋嫨鐨勬枃浠惰拷鍔犲埌鏂囦欢闃熷垪
+                            //璇诲彇鏈湴鏂囦欢
+                            obj.preview(function (index, file, result) {
+                                var tr = $(['<tr id="upload-' + index + '">'
+                                    , '<td>' + file.name + '</td>'
+                                    , '<td>' + '<img onclick=\"previewImg(this)\" id="showImg" class="ImgClass" style="width: 150px; margin:10px;cursor:pointer;"src="' + result + '" alt="' + file.name + '">' + '</td>'
+                                    , '<td>' + (file.size / 1014).toFixed(1) + 'kb</td>'
+                                    , '<td>绛夊緟涓婁紶</td>'
+                                    , '<td>'
+                                    , '<button class="layui-btn layui-btn-xs demo-reload ">涓婁紶</button>'
+                                    , '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete">鍒犻櫎</button>'
+                                    , '</td>'
+                                    , '</tr>'].join(''));
+
+
+                                //鍗曚釜閲嶄紶
+                                tr.find('.demo-reload').on('click', function () {
+                                    obj.upload(index, file);
+                                    return false;
+                                });
+
+                                //鍒犻櫎
+                                tr.find('.demo-delete').on('click', function () {
+                                    delete files[index]; //鍒犻櫎瀵瑰簲鐨勬枃浠�
+                                    tr.remove();
+                                    uploadListIns.config.elem.next()[0].value = ''; //娓呯┖ input file 鍊硷紝浠ュ厤鍒犻櫎鍚庡嚭鐜板悓鍚嶆枃浠朵笉鍙��
+                                });
+
+                                ProImgByList.append(tr);
+
+                            });
+                        }
+                        , done: function (res, index, upload) {
+                            if (res.code == 1) { //涓婁紶鎴愬姛
+                                var tr = ProImgByList.find('tr#upload-' + index)
+                                    , tds = tr.children();
+                                tds.eq(3).html('<span style="color: #5FB878;">涓婁紶鎴愬姛</span>');
+                                tds.eq(4).html(''); //娓呯┖鎿嶄綔
+
+                                return delete this.files[index]; //鍒犻櫎鏂囦欢闃熷垪宸茬粡涓婁紶鎴愬姛鐨勬枃浠�
+                            }
+                            this.error(index, upload);
+                        }
+                        , error: function (index, upload) {
+                            var tr = ProImgByList.find('tr#upload-' + index)
+                                , tds = tr.children();
+                            tds.eq(2).html('<span style="color: #FF5722;">涓婁紶澶辫触[妫�鏌ユ枃浠跺悕鍙婃枃浠舵牸寮廬</span>');
+                            tds.eq(3).find('.demo-reload').removeClass('layui-hide'); //鏄剧ず涓婁紶
+                        }
+                    });
+            }
+            //#endregion
+
+            //#region 缂栬緫鏃�,鑾峰彇宸蹭笂浼犵殑鏂囦欢鍒楄〃
+            function getFile() {
+                var ProImgByList = $('#ProImgByList')
+                $.ajax({
+                    url: GetWEBURL() + '/Sb_EquipDotCheckBill/Filelist',
+                    type: "GET",
+                    data: { "HBillNo": $("#HBillNo").val() },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            var index = 0;
+                            for (var i = 0; i < data1.data.length; i++) {
+                                var tr = $(['<tr id="upload-' + i + '">'
+                                    , '<td style="display:none">' + data1.data[i].HItemID + '</td>'
+                                    , '<td style="display:none">' + data1.data[i].HSourceBillNo + '</td>'
+                                    , '<td>' + data1.data[i].HFileName + '</td>'
+                                    , '<td>' + '<img onclick=\"previewImg(this)\" id="showImg' + i + '" class="ImgClass" style="width: 150px; margin:10px;cursor:pointer;"src="' + data1.data[i].HFilePath + '" alt="' + data1.data[i].HFileName + '">' + '</td>'
+                                    , '<td>' + (data1.data[i].HFileSize / 1014).toFixed(1) + 'kb</td>'
+                                    , '<td style="color: #5FB878;">涓婁紶鎴愬姛</td>'
+                                    , '<td style="display:none">' + data1.data[i].url + '</td>'
+                                    , '<td>'
+                                    , '<button class="layui-btn layui-btn-xs  demo-dowload" type="button" id="deltefile" onclick="javascript:dowload(this)"><i class="layui-icon layui-icon-download-circle layuiadmin-button-btn"></i>涓嬭浇</button>'
+                                    , '<button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" type="button" id="deltefile" onclick="javascript:toManager(this)"><i class="layui-icon layui-icon-delete layuiadmin-button-btn"></i>鍒犻櫎</button>'
+                                    , '</td>'
+                                    , '</tr>'].join(''));
+
+                                $('#ProImgByList').append(tr);
+                            }
+
+                        } else {
+                            layer.alert(data1.code + data1.Message, { icon: 5 });
+                        }
+                    }, error: function () {
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                    }
+                });
+            }
+            //#endregion           
+
             // 琛ㄥ崟鏁版嵁缂栬緫鏃堕棿鏍煎紡鍖�
             function formatDate(date) {
                 var d = new Date(date),
@@ -1143,6 +1362,72 @@
         function GetHManagerValue(obj) {
             OptionData = obj;
         }
+
+        function previewImg(obj) {
+            var img = new Image();
+            img.src = obj.src;
+            var height = img.height * 1.2; //鑾峰彇鍥剧墖楂樺害
+            var width = img.width * 1.2; //鑾峰彇鍥剧墖瀹藉害
+            var imgHtml = "<img src='" + obj.src + "' width='100%' height='100%'/>";
+            //寮瑰嚭灞�
+            layer.open({
+                type: 1,
+                shade: 0.8,
+                offset: 'auto',
+                area: ['80%', '80%'],
+                shadeClose: true,
+                scrollbar: false,
+                title: "鍥剧墖棰勮", //涓嶆樉绀烘爣棰�
+                content: imgHtml, //鎹曡幏鐨勫厓绱狅紝娉ㄦ剰锛氭渶濂借鎸囧畾鐨勫厓绱犺瀛樻斁鍦╞ody鏈�澶栧眰锛屽惁鍒欏彲鑳借鍏跺畠鐨勭浉瀵瑰厓绱犳墍褰卞搷
+                cancel: function () {
+                    //layer.msg('鎹曡幏灏辨槸浠庨〉闈㈠凡缁忓瓨鍦ㄧ殑鍏冪礌涓婏紝鍖呰9layer鐨勭粨鏋�', { time: 5000, icon: 6 });
+                }
+            });
+        }
+
+        //#region 涓嬭浇宸蹭笂浼犵殑鏂囦欢
+        function dowload(r) {
+            //寰楀埌褰撳墠鎵�鍦ㄨ
+            var rows = r.parentNode.parentNode.rowIndex;
+            //寰楀埌鎵�鍦ㄨ鐨勭浜斿垪鐨勫唴瀹�:鏂囦欢鍦板潃
+            var url = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(6)").html();
+            /*window.location.href = url;*/
+            window.open(url)
+        }
+        //#endregion
+
+        //#region 鍒犻櫎宸蹭笂浼犵殑鏂囦欢
+        function toManager(r) {
+            //寰楀埌褰撳墠鎵�鍦ㄨ
+            var rows = r.parentNode.parentNode.rowIndex;
+            //寰楀埌鎵�鍦ㄨ鐨勭涓�鍒楃殑鍐呭:涓婚敭ID
+            var HItemID = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(0)").html();
+            //寰楀埌鎵�鍦ㄨ鐨勭浜屽垪鐨勫唴瀹�:鍗曟嵁鍙�
+            var HSourceBillNo = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(1)").html();
+            //寰楀埌鎵�鍦ㄨ鐨勭涓夊垪鐨勫唴瀹�:鏂囦欢鍚嶇О
+            var HFileName = $("#ProImgByList tr:eq(" + (rows - 1) + ") td:eq(2)").html();
+            layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
+
+                //鍒犻櫎宸蹭笂浼犳枃浠�
+                $.ajax({
+                    url: GetWEBURL() + '/Sb_EquipDotCheckBill/DeleteFilelist',
+                    type: "GET",
+                    data: { "HItemID": HItemID, "HSourceBillNo": HSourceBillNo, "HFileName": HFileName },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            layer.alert(data1.Message, { icon: 1 });
+                            $("#ProImgByList tr").eq((rows - 1)).remove();
+                        }
+                        else {
+                            layer.alert(data1.code + data1.Message, { icon: 5 });
+                        }
+                    }, error: function () {
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                    }
+                });
+            })
+        }
+        //#endregion
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1