From f3821f128b741387271ec3f95819304dffa829ac Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期四, 08 五月 2025 08:45:48 +0800
Subject: [PATCH] 完成 代码列超链接功能

---
 WebTM/views/基础资料/公用基础资料/Gy_CusType.html            |   33 +++++++++++++++++++++++++++++++++
 WebTM/views/生产管理/宝工排产/JIT_DayPlanPlatForm_New.html |    1 +
 2 files changed, 34 insertions(+), 0 deletions(-)

diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CusType.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CusType.html"
index 7c8234b..03ba35f 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CusType.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CusType.html"
@@ -271,6 +271,32 @@
             });
             //#endregion
 
+            //#region  鐩戝惉缃戞牸琛ㄤ綋浜嬩欢
+            table.on('tool(mainTable)', function (obj) {
+                var data = obj.data
+                if (obj.event == '瀹㈡埛鍒嗙被浠g爜') {  // 璁剧疆瀹㈡埛鍒嗙被浠g爜瓒呰秴閾炬帴
+                    var hid = data.HItemID.toString()
+                    debugger;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '缂栬緫瀹㈡埛鍒嗙被'
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../鍏敤鍩虹璧勬枡/Add_Edit_Gy_CusType.html?OperationType=3&linterid=' + hid + '&HSouceBillType='
+                        , resize: false,
+                        end: function () {
+                            //鍒锋柊椤甸潰,
+                            location.reload();
+                        }
+                        , cancel: function () {
+                            //$(".layui-btn").removeClass("layui-btn-disabled");
+                        }
+                    })
+                }
+            })
+            //#endregion
             //#region 鐐瑰嚮琛岄�変腑楂樹寒
             table.on('row(mainTable)', function (obj) {
                 //閫変腑琛屾敼鍙橀鑹�
@@ -818,6 +844,12 @@
                                 option.cols[0][i + 1]["templet"] = null;
                                 if (option.cols[0][i + 1]["title"].search("鏃堕棿") !== -1) {
                                     option.cols[0][i + 1]["templet"] = "<div>{{d." + option.cols[0][i + 1]["field"] + " ==null ?'':layui.util.toDateString(d." + option.cols[0][i + 1]["field"] + ", 'yyyy-MM-dd')}}</div>"
+                                } else if (option.cols[0][i + 1]["title"].search("瀹㈡埛鍒嗙被浠g爜") !== -1) {
+                                    option.cols[0][i + 1]["templet"] = function (d) {
+                                        return '<span style="color: blue;">' + d.瀹㈡埛鍒嗙被浠g爜 + '</span>'
+                                    }
+                                    option.cols[0][i + 1]["style"] = 'cursor: pointer;'
+                                    option.cols[0][i + 1]["event"] = '瀹㈡埛鍒嗙被浠g爜'
                                 }
                             }
                             //鍙栨秷鍐荤粨鍒�
@@ -838,6 +870,7 @@
                                     option.cols[0][i + 1]["fixed"] = "left";
                                 }
                             }
+                            console.log(option)
                             table.render(option);
                         } else {
                             table.render(option);
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\256\235\345\267\245\346\216\222\344\272\247/JIT_DayPlanPlatForm_New.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\256\235\345\267\245\346\216\222\344\272\247/JIT_DayPlanPlatForm_New.html"
index 8aa9f10..c215268 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\256\235\345\267\245\346\216\222\344\272\247/JIT_DayPlanPlatForm_New.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\256\235\345\267\245\346\216\222\344\272\247/JIT_DayPlanPlatForm_New.html"
@@ -1675,6 +1675,7 @@
                                 }
                             }
                         }
+                        console.log(option)
                         ins = table.render(option);
                         layer.close(ajaxLoad);
                         DisPlay_HideColumn(HModName, sessionStorage["HUserName"], option);

--
Gitblit v1.9.1