duhe
2025-05-21 dd321e110c7e6c8d0e0efa7c9123cc981e1352c3
器具分类:维护页面 代码 设置为超链接,可以跳转到编辑页面
2个文件已修改
44 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/公用基础资料/Gy_MouldType.html 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -3268,7 +3268,7 @@
      <publishTime>04/17/2025 08:09:27</publishTime>
    </File>
    <File Include="views/基础资料/公用基础资料/Add_Edit_Gy_MouldType.html">
      <publishTime>05/21/2025 20:10:54</publishTime>
      <publishTime>05/21/2025 20:16:42</publishTime>
    </File>
    <File Include="views/基础资料/公用基础资料/Add_Edit_Gy_OrderBackInfo.html">
      <publishTime>04/11/2023 16:34:43</publishTime>
@@ -3545,7 +3545,7 @@
      <publishTime>10/11/2024 11:32:36</publishTime>
    </File>
    <File Include="views/基础资料/公用基础资料/Gy_MouldType.html">
      <publishTime>05/21/2025 20:14:24</publishTime>
      <publishTime>05/21/2025 20:41:06</publishTime>
    </File>
    <File Include="views/基础资料/公用基础资料/Gy_MouldType_Excel.html">
      <publishTime>10/11/2024 11:32:36</publishTime>
WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/Gy_MouldType.html
@@ -361,23 +361,26 @@
                var data = obj.data;
                //单据号超链接
                if (obj.event == '单据号') {                  //检查 obj.event æ˜¯å¦ç­‰äºŽå­—符串 '单据号'。如果等于,则执行if循环
                    var linterid = data.hmainid.toString();    //声明变量linterid ä¸º data.hmainid
                if (obj.event == '代码') {                  //检查 obj.event æ˜¯å¦ç­‰äºŽå­—符串 '单据号'。如果等于,则执行if循环
                    var hID = data.HItemID;
                    TagParentId = data.HParentID;
                    //if (AllowLoadData(sSubStr) != false) {//非空验证
                    layer.open({                //使用 layer的open打开弹出 å±‚
                        type: 2                         //表示弹出层的内容是一个 iframe
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '编辑'   //设置弹出层的名字和变量
                        , closeBtn: 1//显示关闭按钮
                        , title: '编辑模治具分类'
                        , closeBtn: 1
                        , shade: 0.6 //遮罩透明度
                        , maxmin: true //允许全屏最小化
                        , anim: 0 //0-6的动画形式,-1不开启
                        , content: ['../公用基础资料/Add_Edit_Gy_MouldType.html?hID=' + linterid + '&HType=Modify&TagParentId=' + TagParentId + '', 'yes']//设置 iframe çš„ URL,URL ä¸­åŒ…含了查询参数,来调用所需要的值
                        , resize: false,  //是否允许用户调整弹出大小
                        end: function () {  //当关闭时调用
                            get_FastQuery(table, option);
                        , content: ['../公用基础资料/Add_Edit_Gy_MouldType.html?hID=' + hID + '&HType=Modify&TagParentId=' + TagParentId + '', 'yes']
                        , resize: false,
                        end: function () {
                            //刷新页面,
                            location.reload();
                        }
                        , cancel: function () {  //点击取消时使用回调
                        , cancel: function () {
                            //$(".layui-btn").removeClass("layui-btn-disabled");
                        }
                    })
@@ -415,7 +418,14 @@
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
                                } else if (data[i].name == '单据号') {
                                   col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: '单据号' });
                                } else {
                                } else if (data[i].name == 'HNumber') {
                                    col.push({
                                        field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: '代码', templet: function (d) {
                                            return '<span style="color: blue;">' + d.HNumber + '</span>'
                                        }, style: 'cursor: pointer;'
                                    });
                                }
                                else {
                                    switch (data[i].Type) {
                                        //int
                                        case 'DateTime':
@@ -435,7 +445,11 @@
                                    { type: 'checkbox', fixed: 'left', totalRowText: '合计行' }
                                    , { field: 'HItemID', title: 'HItemID', sort: true, hide: true, sort: true }
                                    , { field: 'HParentID', title: 'HParentID', sort: true, hide: true, sort: true }
                                    , { field: 'HNumber', title: '代码', width: 200, sort: true }
                                    , {
                                        field: 'HNumber', title: '代码', width: 200, sort: true, event: '代码', templet: function (d) {
                                            return '<span style="color: blue;">' + d.HNumber + '</span>'
                                        }, style: 'cursor: pointer;'
                                    }
                                    , { field: 'HName', title: '名称', width: 200, sort: true }
                                    , { field: 'HLevel', title: '等级', width: 200, sort: true }
                                    , { field: 'HEndFlag', title: '明细标记', width: 200, sort: true }