WebTM/views/»ù´¡×ÊÁÏ/Éú²ú»ù´¡×ÊÁÏ/Add_Edit_Gy_Source.html
@@ -60,7 +60,7 @@
                                    <div class="layui-col-xs4 layui-inline">
                                        <label class="layui-form-label">工作中心*</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="HCenter" id="HCenter" class="layui-input" value="" style="float:left;width:150px; background-color:#efefef4d;" readonly>
                                            <input type="text" name="HCenter" id="HCenter" class="layui-input" value="" style="float:left;width:150px; background-color:#efefef4d;">
                                            <input type="hidden" name="HCenterID" id="HCenterID" value="0">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HWorkingProcedure-BT" style="width:40px;">
                                                <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
@@ -229,7 +229,7 @@
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
        }).use(['index', 'form', 'laydate', 'table', 'element', 'tableSelect'], function () {
        //#region å…¬ç”¨å˜é‡
            var $ = layui.$
@@ -237,7 +237,8 @@
                , layer = layui.layer
                , table = layui.table
                , form = layui.form
                , element = layui.element;
                , element = layui.element
                , tableSelect = layui.tableSelect;
            var date = new Date();
            var day = date.getDate();
            var month = date.getMonth() + 1;
@@ -313,6 +314,51 @@
                get_checkWorkCenter();
            });
            //工作中心输入框
            tableSelect.render({
                elem: '#HCenter',//输入框dom选择
                searchKey: '工作中心名称,工作中心代码',//查询的列名
                sWhere: " and ç¦ç”¨æ ‡è®° != 'Y' and HUSEORGID = '100038' ",//table搜索sWhere条件 //默认筛选项
                ajaxSelect: function (sWhere) {
                    var data = '';
                    $.ajax({
                        url: GetWEBURL() + '/Gy_WorkCenter/list',
                        type: "GET",
                        data: { "sWhere": sWhere, "user": '翁涛涛' },
                        async: false,
                        success: function (data1) {
                            if (data1.count == 1) {
                                data = data1.data
                            }
                        },
                        error: function () {
                            layer.alert('获取列表失败!', { icon: 15, title: '通信错误' });
                        }
                    });
                    return data;
                },//设置前端分页时可以设置的
                table: {
                    //url: GetWEBURL() + 'Gy_Supplier/page',
                    //where: { user: '翁涛涛', Organization: '浙江智云迈思' },
                    cols: [[
                        { type: 'radio', fixed: 'left' },//需要加这个fixed属性不然点击checkbox会触发行点击导致无法正确点击
                        //{ field: 'HItemID', title: 'HItemID' },
                        { field: '工作中心名称', title: '工作中心名称' },
                        { field: '工作中心代码', title: '工作中心代码' },
                    ]],
                    page: true,
                    limit: 5,
                    limits: [5]
                },
                done: function (elem, data) {
                    if (data != []) {
                        $("#HCenter").val(data.data[0]['工作中心名称']);
                        $("#HCenterID").val(data.data[0]['HItemID']);
                    }
                }
            })
            //选择班组按钮
            form.on('submit(ProductionTeam-BT)', function () {
                get_checkGroup();