1
chenhaozhe
2025-11-14 346f95358c235aece0e226dd5e933323a5d416f0
1
1个文件已修改
48 ■■■■ 已修改文件
pages/ZLGL/shoujianjianyan/firstCheckBill.vue 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/ZLGL/shoujianjianyan/firstCheckBill.vue
@@ -39,8 +39,8 @@
                    <view class="form-item">
                        <view class="left">源单单号</view>
                        <view class="right" :class="!hasSourceBill?'':'disabled'">
                            <input type="text" :disabled="hasSourceBill" placeholder="请输入或扫描源单号" v-model="hform.HSourceBillNo"
                                @confirm="getSourceBillInfo(hform.HSourceBillNo)" />
                            <input type="text" :disabled="hasSourceBill" placeholder="请输入或扫描源单号"
                                v-model="hform.HSourceBillNo" @confirm="getSourceBillInfo(hform.HSourceBillNo)" />
                        </view>
                        <view class="icon-wrapper-big">
                            <uni-icons class="right-icon" type="scan" style="
@@ -235,6 +235,7 @@
                        </view>
                    </view>
                </view>
            </view>
        </view>
        <!-- 子表区域 -->
@@ -491,7 +492,7 @@
                mainTabSelected: 1,
                subTabSelected: 1,
                // 源单状态控制
                hasSourceBill: false,
@@ -771,7 +772,7 @@
                    this.hform.HQCSchemeID = data[0].检验方案ID;
                    this.hform.HProcName = data[0].当前工序;
                    this.hform.HBatchNo = data[0].批号;
                    this.hasSourceBill = true
                    this.get_CheckItem();
                } catch (err) {
@@ -922,11 +923,11 @@
                    this.hform.HQCSchemeName = data[0].检验方案名称;
                    this.hform.HQCSchemeID = data[0].检验方案ID;
                    this.hform.HProcName = data[0].当前工序;
                    for(let i =0; i<data.length;i++) {
                    for (let i = 0; i < data.length; i++) {
                        this.addCheckItem(data[i])
                    }
                    this.hasSourceBill = true
                    this.get_CheckItem();
                } catch (err) {
@@ -1620,7 +1621,7 @@
                console.log("e: ", e);
                let key = e.num;
                e.HStatus = e.HStatus ? 1 : 0
                if(e.HResult2 == ''){
                if (e.HResult2 == '') {
                    e.HResult2 = this.checkItems[key].HResult
                }
                Object.assign(this.checkItems[key], e);
@@ -1701,9 +1702,10 @@
                    return;
                }
                try {
                    console.log('this.$refs: ',this.$refs);
                    console.log('this.$refs: ', this.$refs);
                    // 检查是否有未切换的检验值模块(是否包含set_SaveValue方法),如果有,则运行一次保存检验值的方法,根据检验值是否保存成功再执行下一步
                    if (typeof this.$refs.InspectValueModules != "undefined" && this.$refs.InspectValueModules.length > 0) {
                    if (typeof this.$refs.InspectValueModules != "undefined" && this.$refs.InspectValueModules
                        .length > 0) {
                        // 加载有检验值模块
                        await this.$refs.InspectValueModules[0].set_SaveValue();
                        this.InspectValues[0] = this.$refs.InspectValueModules[0].InSpectValues;
@@ -1720,11 +1722,11 @@
                    }
                    let checkItemsArray = [];
                    for (var key in this.checkItems) {
                        let checkItem = JSON.parse(JSON.stringify(this.checkItems[key]))
                        let checkItem = JSON.parse(JSON.stringify(this.checkItems[key]))
                        delete checkItem.data
                        checkItemsArray.push(checkItem);
                    }
                    console.log('checkItemsArray: ',checkItemsArray);
                    console.log('checkItemsArray: ', checkItemsArray);
                    let sMainSub = `${JSON.stringify(this.hform)};${JSON.stringify(
          checkItemsArray
        )};${this.operationType};${getUserInfo()["Czymc"]};${InspectValuesTrans[0]}`;
@@ -1869,17 +1871,17 @@
                            HLastResult: data[0].判定结论 == "合格" ? true : false,
                            HTakeSampleCheckBillID: data[0].HTakeSampleCheckBillID,
                            HTakeSampleCheckBillNo: data[0].HTakeSampleCheckBillNo,
                            HAnalysisMethod: function(){
                                if(data[0].HAnalysisMethod == 1) {
                            HAnalysisMethod: function() {
                                if (data[0].HAnalysisMethod == 1) {
                                    return '定性检验'
                                }else if(data[0].HAnalysisMethod == 2) {
                                } else if (data[0].HAnalysisMethod == 2) {
                                    return '定量检验'
                                }else {
                                    return '其他检验'
                                } else {
                                    return '其他检验'
                                }
                            }(),
                        });
@@ -1926,10 +1928,10 @@
                                HStrictness: data[i].严格度,
                                HInspectResultToSee: data[i].检验结果
                            });
                        }
                        this.hasSourceBill = true
                    } else {
                        CommonUtils.showTips({
@@ -1951,7 +1953,7 @@
            if (this.operationType == 1) {
                await this.getMaxBillNo();
            } else if (this.operationType == 2) {
            } else if (this.operationType == 3) {
                await this.RoadBillMain();
            }