duhe
2025-08-19 3bd61bd433fb39fedecd33f8f7e8e0d4d059ce1d
WebTM/views/³µ¼ä¹ÜÀí/¹¤ÐòÁ÷ת¿¨/WW_EntrustWorkOrderBillEdit.html
@@ -11,6 +11,7 @@
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <script src="../../../layuiadmin/PageTitle.js"></script>
    <style>
        .main-btn { /*头部主按钮*/
            padding: 0 2px; /*调整按钮左右空隙大小*/
@@ -57,6 +58,7 @@
                        </div>
                    </div>
                    <div class="layui-tab" lay-filter="tab-POStockInBill">
                        <h1 style="text-align:center;"><b>工序委外派工</b></h1>
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1" style="padding:1px;" class="layui-this">基本信息</li>
                            <li lay-id="2" style="padding:1px;">其他信息</li>
@@ -92,7 +94,7 @@
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                </button>
                                            </div>
                                        </div>
                                        </div>
                                        <div class="layui-col-xs3 layui-inline">
                                            <label class="layui-form-label">派工日期</label>
                                            <div class="layui-input-inline">
@@ -100,7 +102,7 @@
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                    <div class="layui-row">
                                        <div class="layui-col-xs6 layui-inline">
                                            <label class="layui-form-label" style="width:12.5%">备注</label>
                                            <div class="layui-input-inline">
@@ -231,6 +233,13 @@
        //#region è¿›å…¥é¡µé¢å³åŠ è½½
        //#region ã€åŠ¨æ€èŽ·å–æ¨¡å—åç§°ã€‘
        var HModuleType = "3740";
        //通过单据类型,从数据库动态获取单据模块命名,引用js文件 PageTitle.js
        var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType);
        $("h1").html('<b>' + HPageTitle + '</b>');
            //#endregion
        //初始化界面
        set_ClearBill();
@@ -352,7 +361,7 @@
                            shift: 2,
                            area: ['90%', '90%'],
                            maxmin: true,
                            content: ['../../../views/Baseset/基础资料/Gy_MaterialList.html', 'yes'],
                            content: ['../../基础资料/公用基础资料/Gy_Material.html', 'yes'],
                            btn: ['确定', '取消']
                            , btn1: function (index, layero) {
                                //按钮【按钮一】的回调
@@ -362,10 +371,10 @@
                                    return layer.msg('请选择数据');
                                }
                                obj.update({
                                    HMaterName: checkStatus.data[0].HName
                                    HMaterName: checkStatus.data[0].物料名称
                                    , HMaterID: checkStatus.data[0].HItemID
                                    , HMaterNumber: checkStatus.data[0].HNumber
                                    , HMaterModel: checkStatus.data[0].HModel
                                    , HMaterNumber: checkStatus.data[0].物料代码
                                    , HMaterModel: checkStatus.data[0].规格型号
                                });
                                layer.close(layer.index);
@@ -414,7 +423,7 @@
                , shade: 0.6 //遮罩透明度
                //, maxmin: true //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../Baseset/基础资料/Gy_DepartmentList.html', 'yes']
                , content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html', 'yes']
                , btn: ['确定', '取消']
                , btn1: function (index, layero) {
@@ -424,7 +433,7 @@
                    if (checkStatus.data.length === 0) {
                        return layer.msg('请选择数据');
                    }
                    $("#HDeptName").val(checkStatus.data[0].HName);
                    $("#HDeptName").val(checkStatus.data[0].部门名称);
                    $("#HDeptID").val(checkStatus.data[0].HItemID);
                    layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                }
@@ -490,7 +499,7 @@
            //表头
            columns = [ //表头
                { type: 'checkbox', totalRowText: '合计行' }
                , { type: 'numbers', title: '序号', totalRow: true }
                , { type: 'numbers', title: '序号' }
                , { field: 'HMainID', title: '委外派工单主ID', hide: true }// ç”¨äºŽæ‰“印时获取数据
                , { field: 'HEntryID', title: '委外派工单子ID', hide: true }// ç”¨äºŽæ‰“印时获取数据
                , { field: 'HOrderBillNo', title: '订单号' }
@@ -499,12 +508,12 @@
                , { field: 'HMaterNumber', title: '加工产品代码' }
                , { field: 'HMaterName', title: '加工产品名称', width:220 }
                , { field: 'HMaterModel', title: '加工产品规格' }
                , { field: 'HQty', title: '委外数量', edit: 'text', width:90 }
                , { field: 'HQty', title: '委外数量', totalRow: true, edit: 'text', width:90 }
                , { field: 'HEntrustType', title: '委外加工类型', edit: 'text' }
                , { field: 'HNextProcName', title: '委外下道工序', edit: 'text' }
                , { field: 'HPrice', title: '加工单价', edit: 'text', width: 90 }
                , { field: 'HOutQty', title: '转出数量', edit: 'text', width: 90 }
                , { field: 'HInQty', title: '接收数量', edit: 'text', width: 90}
                , { field: 'HPrice', title: '加工单价', totalRow: true, edit: 'text', width: 90 }
                , { field: 'HOutQty', title: '转出数量', totalRow: true, edit: 'text', width: 90 }
                , { field: 'HInQty', title: '接收数量', totalRow: true, edit: 'text', width: 90}
                , { field: 'HInDate', title: '回厂时间', width: 120, templet: "<div>{{d.HInDate ==null ?'':layui.util.toDateString(d.HInDate, 'yyyy-MM-dd')}}</div>", event: 'HInDate' }
                , { field: 'HWorkProcFlow', title: '产品工艺', edit: 'text' }
                , { field: 'HMaterLenModel', title: '料件尺寸', edit: 'text'}
@@ -520,6 +529,7 @@
                , elem: '#mainTable'
                , toolbar: '#toolbarDemo'
                , page: false
                , totalRow: true
                , cellMinWidth: 120
                , height: 400
                , cols: [columns]