chenhaozhe
2025-11-28 a636d17f2817ec0317149a26bfcfb9c31b26730d
WebTM/views/ÖÊÁ¿¹ÜÀí/À´ÁϼìÑéµ¥/QC_Add_Edit_POStockInCheckBillList.html
@@ -103,7 +103,7 @@
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label" style="width: 85px;">源单类型</label>
                                            <label class="layui-form-label" style="width: 85px;">源单类型<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 120px;">
                                                <select name="HMainSourceBillType" id="HMainSourceBillType">
                                                    <option value="1102" selected>采购订单</option>
@@ -113,7 +113,7 @@
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label" style="width: 85px;">源单单号</label>
                                            <label class="layui-form-label" style="width: 85px;">源单单号<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 77px;">
                                                <input type="text" class="layui-input" name="HMainSourceBillNo"
                                                    id="HMainSourceBillNo"
@@ -229,24 +229,24 @@
                                            <label class="layui-form-label" style="width: 85px;">检验SN</label>
                                            <div class="layui-input-block" style="margin-left: 120px;">
                                                <input type="text" class="layui-input" name="HRemarkSN" id="HRemarkSN"
                                                    style="display: inline-block;">
                                                       style="display: inline-block;">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label"
                                                style="width: 85px;padding: 9px 18px;">产品代码</label>
                                                   style="width: 85px;padding: 9px 18px;">产品代码<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 77px;">
                                                <input type="text" class="layui-input" name="HMaterNumber"
                                                    id="HMaterNumber" value=""
                                                    style="background-color:#efefef4d;width: 60%;display: inline-block;"
                                                    readonly>
                                                       id="HMaterNumber" value=""
                                                       style="background-color:#efefef4d;width: 60%;display: inline-block;"
                                                       readonly>
                                                <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID"
                                                    value="0"
                                                    style="background-color:#efefef4d;width: 60%;display: none;"
                                                    readonly>
                                                       value="0"
                                                       style="background-color:#efefef4d;width: 60%;display: none;"
                                                       readonly>
                                                <button class="layui-btn layuiadmin-btn-order" type="button"
                                                    lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater"
                                                    style="padding: 0 10px;float: right;margin-right: 3px;">
                                                        lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater"
                                                        style="padding: 0 10px;float: right;margin-right: 3px;">
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                </button>
                                            </div>
@@ -255,42 +255,49 @@
                                            <label class="layui-form-label" style="width: 85px;">产品名称</label>
                                            <div class="layui-input-block" style="margin-left: 120px;">
                                                <input type="text" class="layui-input" name="HMaterName" id="HMaterName"
                                                    style="background-color:#efefef4d;display: inline-block;" readonly>
                                                       style="background-color:#efefef4d;display: inline-block;" readonly>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label"
                                                style="width: 85px;padding: 9px 18px;">检验员</label>
                                                   style="width: 85px;padding: 9px 18px;">检验员<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 77px;">
                                                <input type="text" class="layui-input" name="HFirstCheckEmpName"
                                                    id="HFirstCheckEmpName"
                                                    style="background-color:#efefef4d;width: 60%;display: inline-block;"
                                                    readonly>
                                                       id="HFirstCheckEmpName"
                                                       style="background-color:#efefef4d;width: 60%;display: inline-block;"
                                                       readonly>
                                                <input type="hidden" name="HFirstCheckEmp" id="HFirstCheckEmp"
                                                    value="0">
                                                       value="0">
                                                <button class="layui-btn layuiadmin-btn-order" type="button"
                                                    lay-submit="" lay-filter="btnSearchHFirstCheckEmp"
                                                    id="btnSearchHFirstCheckEmp"
                                                    style="padding: 0 10px;float: right;margin-right: 3px;">
                                                        lay-submit="" lay-filter="btnSearchHFirstCheckEmp"
                                                        id="btnSearchHFirstCheckEmp"
                                                        style="padding: 0 10px;float: right;margin-right: 3px;">
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                </button>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label"
                                                style="width: 85px;padding: 9px 18px;">检验方案</label>
                                                   style="width: 85px;padding: 9px 18px;">检验方案<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 77px;">
                                                <input type="text" class="layui-input" name="HQCSchemeName"
                                                    id="HQCSchemeName"
                                                    style="background-color:#efefef4d;width: 60%;display: inline-block;"
                                                    readonly>
                                                       id="HQCSchemeName"
                                                       style="background-color:#efefef4d;width: 60%;display: inline-block;"
                                                       readonly>
                                                <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" value="0">
                                                <button class="layui-btn layuiadmin-btn-order" type="button"
                                                    lay-submit="" lay-filter="btnSearchQCScheme" id="btnSearchQCScheme"
                                                    style="padding: 0 10px;float: right;margin-right: 3px;">
                                                        lay-submit="" lay-filter="btnSearchQCScheme" id="btnSearchQCScheme"
                                                        style="padding: 0 10px;float: right;margin-right: 3px;">
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                </button>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label" style="width: 85px;">收货数量</label>
                                            <div class="layui-input-block" style="margin-left: 120px;">
                                                <input type="text" class="layui-input" name="HQty" id="HQty"
                                                    style="background-color:#efefef4d;" readonly value="0">
                                            </div>
                                        </div>
                                    </div>
@@ -311,7 +318,7 @@
                                        </div>
                                        <div class="layui-inline" id="hidediv1" style="margin-left:20px;">
                                            <label class="layui-form-label"
                                                style="width: 85px;padding: 9px 18px;">工序</label>
                                                style="width: 85px;padding: 9px 18px;">工序<label style="color:red"> * </label></label>
                                            <div class="layui-input-block" style="margin-left: 77px;">
                                                <input type="text" class="layui-input" name="HProcName" id="HProcName"
                                                    style="background-color:#efefef4d;width: 60%;display: inline-block;"
@@ -2475,6 +2482,7 @@
                    },
                    success: function (layero, index) {
                        btnSearchCheckSampleScheme
                    }
                });
@@ -2482,6 +2490,8 @@
            //表体信息抽样方案弹窗
            form.on('submit(btnSearchCheckSampleScheme)', function () {
                var nowindex = $("#HEntryID").val()-1;
                var inspectMethod = table.cache["mainTable"][nowindex].HAnalysisMethod;
                //页面层-自定义
                layer.open({
                    type: 2,
@@ -2491,7 +2501,7 @@
                    shift: 2,
                    area: ['90%', '90%'],
                    maxmin: true,
                    content: ['../../../views/Baseset/基础资料/Gy_SampleSchemeListView.html', 'yes'],
                    content: ['../../../views/Baseset/基础资料/Gy_SampleSchemeListView.html?', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -2558,7 +2568,7 @@
            //#region ã€é€‰æ£€éªŒæ–¹æ¡ˆèŽ·å–è¡¨ä½“æ£€éªŒé¡¹ç›®ä¿¡æ¯ã€‘
            function get_CheckItem() {
                var HBatchQty = $("#HProcExchQty").val() == 0 ? $("#HICMOQty").val() : $("#HProcExchQty").val();
                var HBatchQty = $("#HQty").val() == 0 ? $("#HICMOQty").val() : $("#HQty").val();
                $.ajax({
                    url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID",
                    type: "GET",
@@ -2582,6 +2592,7 @@
                                        "HInspectMethodID": data[i]["HInspectMethodID"], "HInspectMethodName": data[i]["检验方法"], "HInspectBasisID": data[i]["HInspectBasisID"], "HInspectBasisName": data[i]["检验依据"],
                                    }
                                );
                                SampleNum.push(data[0].样本量);
                            }
@@ -3149,7 +3160,7 @@
                        , { field: 'HQualityStdName', title: '质量标准', edit: 'text', event: "HQualityStdID" },
                        , { field: 'HInspectMethodID', title: 'HInspectMethodID', edit: 'text', hide: true },
                        , { field: 'HInspectMethodName', title: '检验方法', edit: 'text', event: "HInspectMethodID" },
                        , { field: 'HInspectMethodName', title: '检验方法', edit: 'text', event: "HInspectMethodID", style: 'white-space: nowrap; overflow: hidden;text-overflow: ellipsis;'},
                        , { field: 'HInspectBasisID', title: 'HInspectBasisID', edit: 'text', hide: true },
                        , { field: 'HInspectBasisName', title: '检验依据', edit: 'text', event: "HInspectBasisID" },
@@ -4317,12 +4328,14 @@
                var HEntryID = $("#HEntryID").val() - 1;//数组下标
                if (UnRightQty > HAcceptQty) {
                    $("#HResult" + (Number(HEntryID) + Number(1))).val(2); //不合格
                    table.cache["mainTable"][HEntryID].HResult = 2
                    $("#HInspectResultToSee").val('不合格');
                    $("#HInspectResultToSee2").val('不合格');
                    $("#HInspectResultToSee").css("background-color", "#F0D6E3");//改变检验结果输入框背景颜色
                    $("#HInspectResultToSee2").css("background-color", "#F0D6E3");//改变检验结果输入框背景颜色
                } else {
                    $("#HResult" + (Number(HEntryID) + Number(1))).val(1); //合格
                    table.cache["mainTable"][HEntryID].HResult = 1
                    $("#HInspectResultToSee").val('合格');
                    $("#HInspectResultToSee2").val('合格');
                    $("#HInspectResultToSee").css("background-color", "#CEE3F2");//改变检验结果输入框背景颜色
@@ -4934,6 +4947,7 @@
                            $("#HMainSourceEntryID").val(res.data[0].HEntryID)
                            $("#HQCSchemeName").val(res.data[0].检验方案名称);
                            $("#HQCSchemeID").val(res.data[0].检验方案ID);
                            $("#HQty").val(res.data[0].实收数量);
                            //获取表体检验项目信息
                            get_CheckItem();
                        }