zrg
2024-04-23 bdceb850d70a08f597c2ff0b51266d78a0c86b3f
WebTM/views/ϵͳ¹ÜÀí/Óû§¹ÜÀí/Xt_UserListEdit.html
@@ -244,6 +244,18 @@
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="layui-inline">
                                                                <label class="layui-form-label">工作中心</label>
                                                                <div class="layui-input-inline">
                                                                    <div class="layui-input-inline">
                                                                        <input type="text" name="HWorkCenterName" id="HWorkCenterName" readonly class="layui-input" value="" style="float:left;width:150px;">
                                                                        <input type="text" name="HWorkCenterID" id="HWorkCenterID" value="0" hidden>
                                                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHWorkCenterID" style="width:40px;">
                                                                            <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="layui-form-item">
                                                            <div class="layui-inline">
@@ -429,6 +441,11 @@
            //表头信息  è°ƒå…¥ä»“库弹窗
            form.on('submit(HSCWHList)', function () {
                Gy_Warehouse(2);
            });
            //表头信息 å·¥ä½œä¸­å¿ƒ
            form.on('submit(btnHWorkCenterID)', function () {
                btnHWorkCenterID();
            });
            //表头信息  ä¾›åº”商弹窗
@@ -750,6 +767,40 @@
                });
            }
            //工作中心
            function btnHWorkCenterID() {
                //页面层-自定义
                layer.open({
                    type: 2,
                    skin: 'layui-layer-rim', //加上边框
                    title: '工作中心列表',
                    closeBtn: 1,
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../../views/基础资料/公用基础资料/Gy_WorkCenter.html', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
                        //按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HWorkCenterName").val(checkStatus.data[0].工作中心名称);
                        $("#HWorkCenterID").val(checkStatus.data[0].HItemID);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false å¼€å¯è¯¥ä»£ç å¯ç¦æ­¢ç‚¹å‡»è¯¥æŒ‰é’®å…³é—­
                    },
                });
            }
            //供应商列表
            function Gy_Supplier() {
                //页面层-自定义
@@ -946,6 +997,8 @@
                                , "HSourceName": data.生产资源
                                , "HCheckEmpID": data.HCheckEmpID
                                , "HCheckEmpName": data.检验员
                                , "HWorkCenterID": data.HWorkCenterID
                                , "HWorkCenterName": data.工作中心
                            });
                        } else {