WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sb_Add_MouldRepairWorkBillList.html
@@ -136,13 +136,16 @@
                                                    </button>
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">维修开始日期</label>
                                                <label class="layui-form-label">供应商<label style="color:red"> * </label></label>
                                                <div class="layui-input-inline">
                                                    <input class="layui-input" name="HRepairBeginDate" id="HRepairBeginDate" autocomplete="off" timeFormat="yyyy-MM-dd">
                                                    <input type="text" name="HSupName" id="HSupName" class="layui-input" value="" style="float:left;width:150px;">
                                                    <input type="hidden" name="HSupID" id="HSupID" class="layui-input" value="" style="float:left;width:150px;">
                                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupList" 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">
@@ -158,19 +161,15 @@
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">维修结束日期</label>
                                                <label class="layui-form-label">维修开始日期</label>
                                                <div class="layui-input-inline">
                                                    <input class="layui-input" name="HRepairEndDate" id="HRepairEndDate" autocomplete="off" timeFormat="yyyy-MM-dd">
                                                    <input class="layui-input" name="HRepairBeginDate" id="HRepairBeginDate" autocomplete="off" timeFormat="yyyy-MM-dd">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">供应商<label style="color:red"> * </label></label>
                                                <label class="layui-form-label">维修结束日期</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="HSupName" id="HSupName" class="layui-input" value="" style="float:left;width:150px;">
                                                    <input type="hidden" name="HSupID" id="HSupID" class="layui-input" value="" style="float:left;width:150px;">
                                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="HSupList" style="width:40px;">
                                                        <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                    </button>
                                                    <input class="layui-input" name="HRepairEndDate" id="HRepairEndDate" autocomplete="off" timeFormat="yyyy-MM-dd">
                                                </div>
                                            </div>
                                        </div>
@@ -345,7 +344,7 @@
            //通过单据类型,从数据库动态获取单据模块命名,引用js文件 PageTitle.js
            var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType);
            $("h1").html('<b>' + HPageTitle + '</b>');
         //#endregion
            //#endregion
            //初始化表单插件
            set_InitFrom();
@@ -563,7 +562,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes'],
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html?Type=HManager', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -601,7 +600,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes'],
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html?Type=HEmp', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -639,7 +638,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/采购基础资料/Gy_Supplier.html', 'yes'],
                    content: ['../../基础资料/采购基础资料/Gy_Supplier.html?Type=HSup', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -1006,7 +1005,8 @@
                        $("#HPlanInterID").val(0);
                        $("#HBillNo").val(d.data[0].HBillNo);
                        $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
                        $("#HRepairBeginDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
                        $("#HRepairEndDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
                    }
                });
            }
@@ -1579,7 +1579,57 @@
                return true;
            }
        }
                            //#endregion
        //#endregion
        function GetMouldFileValue(obj) {  //器具档案
            $("#HMouldID").val(obj[0].hmainid);//器具id
            $("#HName").val(obj[0].模具名称);//器具名称
            $("#HMouldCode").val(obj[0].模具编号);//器具代码
            $("#HModel").val(obj[0].模具型号);//器具规格
        }
        function GetRepairValue(obj) {  //维修项目
            $("#HRepairID").val(obj[0].hitemid);//维修项目id
            $("#HRepairName").val(obj[0].维修项目);//维修项目名称
        }
        function GetHDeptNameValue(obj) {  //返回部门
            $("#HDeptID").val(obj[0].HItemID);//维修部门id
            $("#HDeptName").val(obj[0].部门名称);//维修部门名称
        }
        function GetHManagerValue(obj) {  //返回主管
            $("#HManagerName").val(obj[0].职员名称);
            $("#HManagerID").val(obj[0].HItemID);
        }
        function GetHEmpValue(obj) {  //返回维修人
            $("#HEmpName").val(obj[0].职员名称);
            $("#HEmpID").val(obj[0].HItemID);
        }
        function GetHSupNameValue(obj) {  //返回供应商
            $("#HSupID").val(obj[0].HItemID);//供应商id
            $("#HSupName").val(obj[0].供应商名称);//供应商名称
        }
        function GetEquipFileValue(obj) {  //返回设备
            $("#HEquipID").val(obj[0].hmainid);//设备id
            $("#HEquipName").val(obj[0].设备名称);//设备名称
        }
        function GetMouldConkBookValue(obj) {   //器具故障登记单
            $("#HMainSourceBillNo").val(obj[0].单据号);
            $("#HMainSourceInterID").val(obj[0].hmainid);
            $("#HMainSourceEntryID").val(obj[0].hsubid);
        }
        function GetMouldRepairSendWorkValue(obj) {   //器具维修派工单
            $("#HMainSourceBillNo").val(obj[0].单据号);
            $("#HMainSourceInterID").val(obj[0].hmainid);
            $("#HMainSourceEntryID").val(obj[0].hsubid);
        }
    </script>
</body>
</html>