chenhaozhe
2025-11-05 f3b6e9ba2e4274b3821551bd1bdfafb40f0e0e26
调整 首检检验单 检验值模板 模块
3个文件已修改
256 ■■■■ 已修改文件
components/ZLGL/InspectValueTemplate.vue 85 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/ZLGL/shoujianjianyan/form.vue 169 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/ZLGL/shoujianjianyan/table.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/ZLGL/InspectValueTemplate.vue
@@ -66,37 +66,43 @@
            <view class="form-item">
                <view class="left">检验值</view>
                <view class="right">
                    <input type="text" v-model="checkData.HInSpectVal" />
                    <input type="number" v-model="checkData.HInSpectVal" />
                </view>
            </view>
            <view class="form-item">
                <view class="left">目标值</view>
                <view class="right ">
                    <input type="text" v-model="checkData.HTargetVal" />
                    <input type="number" v-model="checkData.HTargetVal" @blur="CalculateLimitOffset(1)" />
                </view>
            </view>
            <view class="form-item">
                <view class="left">上限值</view>
                <view class="right disabled">
                    <input type="text" v-model="checkData.HUpLimit" disabled />
                <view class="right" :class="[AnalysisMethodStatus == 1?'disabled':'']">
                    <input type="number" v-model="checkData.HUpLimit" :disabled="AnalysisMethodStatus == 1"  @blur="CalculateLimitOffset(2)" />
                </view>
            </view>
            <view class="form-item">
                <view class="left">下限值</view>
                <view class="right disabled">
                    <input type="text" v-model="checkData.HDownLimit" disabled />
                <view class="right" :class="[AnalysisMethodStatus == 1?'disabled':'']">
                    <input type="number" v-model="checkData.HDownLimit" :disabled="AnalysisMethodStatus == 1"  @blur="CalculateLimitOffset(3)" />
                </view>
            </view>
            <view class="form-item">
                <view class="left">上偏差</view>
                <view class="right disabled">
                    <input type="text" v-model="checkData.HUpOffset" disabled />
                <view class="right" :class="[
                   (AnalysisMethodStatus == 1 || AnalysisMethodStatus == 3)?'disabled':''
                ]">
                    <input type="number" v-model="checkData.HUpOffset"
                        :disabled="AnalysisMethodStatus == 1 || AnalysisMethodStatus == 3"  @blur="CalculateLimitOffset(4)" />
                </view>
            </view>
            <view class="form-item">
                <view class="left">下偏差</view>
                <view class="right disabled">
                    <input type="text" v-model="checkData.HDownOffset" disabled />
                <view class="right" :class="[
                   (AnalysisMethodStatus == 1 || AnalysisMethodStatus == 3)?'disabled':''
                ]">
                    <input type="number" v-model="checkData.HDownOffset"
                        :disabled="AnalysisMethodStatus == 1 || AnalysisMethodStatus == 3"  @blur="CalculateLimitOffset(5)" />
                </view>
            </view>
            <view style="width: 100%;border-bottom: 1px solid #e3e3e3;"></view>
@@ -120,8 +126,7 @@
                            {{ item.HInSpectResult == 1?"合格":"不合格" }}
                        </view>
                        <view>
                            <switch style="width: 3em; transform:scale(0.7);"
                                :checked="item.HInSpectResult == 1"
                            <switch style="width: 3em; transform:scale(0.7);" :checked="item.HInSpectResult == 1"
                                @change="HInSpectResultChange(index, $event)" />
                        </view>
                    </view>
@@ -130,9 +135,9 @@
                            v-model="item.HInSpectValueB_Text"
                            @update:modelValue="HInSpectValueBChange(index, $event)"></uni-combox>
                        <input v-else-if="checkData.HAnalysisMethod == 2" type="number" v-model="item.HInSpectValue"
                            @blur="InSpectValueChange(item,index)" @confirm="InSpectValueChange(item,index)" />
                            @blur="InSpectValueChange(item,index)" @confirm="InSpectValueChange(item,index)" @focus="item.HInSpectValue = ''" />
                        <input v-else type="number" v-model="item.HInSpectValueT"
                            @blue="InSpectValueTChange(item, index)" @confirm="InSpectValueTChange(item, index)" />
                            @blue="InSpectValueTChange(item, index)" @confirm="InSpectValueTChange(item, index)" @focus="item.HInSpectValueT = ''"/>
                    </view>
                </view>
            </view>
@@ -157,7 +162,14 @@
                    HResult2: '',
                    HStatus: true,
                    HCompareSymbol: "=", // 默认为=号
                    HUnitName: ''
                    HUnitName: '',
                    HAnalysisMethod: 0,
                    HTargetVal: 0,
                    HUpOffset: 0,
                    HDownOffset: 0,
                    HUpLimit: 0,
                    HDownLimit: 0,
                    HSampleUnRightQty: 0
                },
                InSpectValues: [],
                InitInSpectValNameList: [],
@@ -188,6 +200,7 @@
            } = this.bindData
            Object.assign(this.checkData, data, JSON.parse(JSON.stringify(this.bindData)))
            this.checkData.HStatus = this.checkData.HStatus ? true : false
            this.checkData.HResult2 = this.checkData.HResult == 1 ? '合格' : '不合格'
            // 判断是否有缓存数据或者缓存数据是否与样本数一致
            if (!list || list.length != this.checkData.HSampleQty) {
                for (let index = 0; index < this.checkData.HSampleQty; index++) {
@@ -221,12 +234,52 @@
                }
            }
        },
        computed: {
            AnalysisMethodStatus: {
                get() {
                    console.log('this.checkData.HAnalysisMethod: ', this.checkData.HAnalysisMethod);
                    if (this.checkData.HAnalysisMethod == 1) {
                        return 1
                    } else if (this.checkData.HAnalysisMethod == 2) {
                        return 2
                    }
                    return 3
                }
            }
        },
        beforeDestroy() {
            // 注销前,提交数据的检验值
            this.set_SaveValue()
            this.$emit("syncCheckData", this.checkData)
        },
        methods: {
            CalculateLimitOffset(mode) { // 重新计算上限值的偏差值
                switch (mode) {
                    // 目标值变更
                    case 1:
                        this.checkData.HUpOffset = 0
                        this.checkData.HUpLimit = this.checkData.HTargetVal
                        this.checkData.HDownOffset = 0
                        this.checkData.HDownLimit = this.checkData.HTargetVal
                        break;
                        // 上限值变更
                    case 2:
                        this.checkData.HUpOffset = eval(`${this.checkData.HUpLimit}-${this.checkData.HTargetVal}`)
                        break;
                        // 下限值变更
                    case 3:
                        this.checkData.HDownOffset = eval(`${this.checkData.HDownLimit}-${this.checkData.HTargetVal}`)
                        break;
                        // 上偏差值变更
                    case 4:
                        this.checkData.HUpLimit = eval(`${this.checkData.HUpOffset}-${this.checkData.HTargetVal}`)
                        break;
                        // 下偏差值变更
                    case 5:
                        this.checkData.HDownLimit = eval(`${this.checkData.HDownOffset}-${this.checkData.HTargetVal}`)
                        break;
                }
            },
            // 其他分析 检验值变化时判断
            InSpectValueTChange(item, index) {
                console.log('item,: ', item);
@@ -371,6 +424,7 @@
                        count
                    } = res.data
                    if (count == 1) {
                        console.log('InspectValuesData: ', data);
                        // 当前 检验值页签中 保存的数据个数和数据库中的个数大 或者相等,取数据库中的数据,多的补空
                        if (this.InSpectValues.length >= data.length) {
                            let InSpectValuesNew = this.InSpectValues.slice(data.length, this.InSpectValues.length)
@@ -464,6 +518,7 @@
                if (this.checkData.HStatus) { // true 为 检验合格, false为检验 不合格
                    if (unPassNum > unRightQty) {
                        this.checkData.HResult2 = '不合格'
                    } else {
                        this.checkData.HResult2 = '合格'
                    }
pages/ZLGL/shoujianjianyan/form.vue
@@ -28,18 +28,18 @@
                    </view>
                    <view class="form-item">
                        <view class="left">源单类型</view>
                        <view class="right" style="position: relative">
                            <picker mode="selector" :range="HSourceBillTypeNameList"
                        <view class="right" style="position: relative" :class="!hasSourceBill?'':'disabled'">
                            <picker mode="selector" :range="HSourceBillTypeNameList" :disabled="hasSourceBill"
                                @change="HSourceBillTypeNameChange">
                                <input type="text" placeholder="请输入或扫描源单号" v-model="HSourceBillType" />
                                <input type="text" placeholder="请选择源单类型" v-model="HSourceBillType" />
                                <view class="picker-overlay"></view>
                            </picker>
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">源单单号</view>
                        <view class="right">
                            <input type="text" placeholder="请输入或扫描源单号" v-model="hform.HSourceBillNo"
                        <view class="right" :class="!hasSourceBill?'':'disabled'">
                            <input type="text" :disabled="hasSourceBill" placeholder="请输入或扫描源单号" v-model="hform.HSourceBillNo"
                                @confirm="getSourceBillInfo(hform.HSourceBillNo)" />
                        </view>
                        <view class="icon-wrapper-big">
@@ -177,61 +177,61 @@
                    <view class="form-item">
                        <view class="left">制单人</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HMaker" disabled />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">制单日期</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HMakeDate" disabled />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">审核人</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HChecker" disabled />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">审核日期</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HCheckDate" disabled />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">关闭人</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HCloseMan" disabled />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">关闭日期</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HCloseDate" disabled />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">修改人</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HUpDater" disabled />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">修改日期</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HUpDateDate" disabled />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">作废人</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HDeleteMan" disabled />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">作废日期</view>
                        <view class="right disabled">
                            <input type="text" value="" disabled />
                            <input type="text" :value="hform.HDeleteDate" disabled />
                        </view>
                    </view>
                </view>
@@ -381,7 +381,10 @@
                                    <text>样本不合格数:</text>{{ SamplingItem.HSampleUnRightQty }}
                                </view>
                                <view class="detail editable">
                                    <text>样本破坏数:</text>{{ SamplingItem.HSampleDamageQty }}
                                    <text>样本破坏数:</text>
                                    <view class="sampleDestory">
                                        <input type="number" v-model="SamplingItem.HSampleDamageQty" />
                                    </view>
                                </view>
                                <view class="detail editable">
                                    <text>检验结果:</text>
@@ -487,6 +490,9 @@
                mainTabSelected: 1,
                subTabSelected: 1,
                // 源单状态控制
                hasSourceBill: false,
                // 控制当前显示的弹窗模块
                enablePopupModule: "",
@@ -595,11 +601,11 @@
                    HDeleteMan: "",
                    HUpDateDate: "",
                    HDeleteDate: "",
                    HResult: "",
                    HResult: 1,
                    HAnalysisMethod: "",
                    HResDec: "",
                    HStatus: "",
                    HStatus: 1,
                    HMainSourceBillType: "",
                    HMainSourceInterID: "0",
@@ -748,7 +754,7 @@
                    this.hform.HProcExchBillNo = data[0].流转卡号;
                    this.hform.HProcExchInterID = data[0].HProcExchInterID;
                    this.hform.HProcExchEntryID = data[0].HProcExchEntryID || 0;
                    this.hform.HProcExchQty = data[0].流转卡数量;
                    this.hform.HProcExchQty = data[0].流转卡数量 || 0;
                    this.hform.HICMOBillNo = data[0].任务单;
                    this.hform.HICMOInterID = data[0].HICMOInterID;
                    this.hform.HICMOQty = data[0].HICMOQty || 0;
@@ -759,11 +765,13 @@
                    this.hform.HMainSourceBillNo = data[0].单据号;
                    this.hform.HMainSourceBillType = data[0].HBillType;
                    this.hform.HMainSourceInterID = data[0].HInterID;
                    this.hform.HICMOEntryID = data[0].HICMOEntryID || 0;
                    this.hform.HICMOEntryID = data[0].HICMOEntryID || 1;
                    this.hform.HQCSchemeName = data[0].检验方案名称;
                    this.hform.HQCSchemeID = data[0].检验方案ID;
                    this.hform.HProcName = data[0].当前工序;
                    this.hform.HBatchNo = data[0].批号;
                    this.hasSourceBill = true
                    this.get_CheckItem();
                } catch (err) {
                    CommonUtils.showTips({
@@ -799,7 +807,7 @@
                    this.hform.HProcExchBillNo = data[0].流转卡号;
                    this.hform.HProcExchInterID = data[0].HProcExchInterID;
                    this.hform.HProcExchEntryID = data[0].HProcExchEntryID;
                    this.hform.HProcExchQty = data[0].流转卡数量;
                    this.hform.HProcExchQty = data[0].流转卡数量 || 0;
                    this.hform.HICMOBillNo = data[0].任务单;
                    this.hform.HICMOInterID = data[0].HICMOInterID;
                    this.hform.HICMOQty = data[0].HICMOQty;
@@ -810,11 +818,11 @@
                    this.hform.HMainSourceBillNo = data[0].单据号;
                    this.hform.HMainSourceBillType = data[0].HBillType;
                    this.hform.HMainSourceInterID = data[0].HInterID;
                    this.hform.HICMOEntryID = data[0].HICMOEntryID;
                    this.hform.HICMOEntryID = data[0].HICMOEntryID || 1;
                    this.hform.HQCSchemeName = data[0].检验方案名称;
                    this.hform.HQCSchemeID = data[0].检验方案ID;
                    this.hform.HProcName = data[0].当前工序;
                    this.hasSourceBill = true
                    this.get_CheckItem();
                } catch (err) {
                    CommonUtils.showTips({
@@ -850,7 +858,7 @@
                    HProcExchBillNo = data[0].流转卡号;
                    HProcExchInterID = data[0].HProcExchInterID;
                    HProcExchEntryID = data[0].HProcExchEntryID;
                    HProcExchQty = data[0].流转卡数量;
                    HProcExchQty = data[0].流转卡数量 || 0;
                    HICMOBillNo = data[0].生产订单号;
                    HICMOInterID = data[0].HICMOInterID;
                    HICMOQty = data[0].HICMOQty;
@@ -861,8 +869,8 @@
                    HMainSourceBillNo = data[0].单据号;
                    HMainSourceBillType = data[0].HBillType;
                    HMainSourceInterID = data[0].HInterID;
                    HICMOEntryID = data[0].HICMOEntryID;
                    HICMOEntryID = data[0].HICMOEntryID || 1;
                    this.hasSourceBill = true
                    this.get_CheckItem();
                } catch (err) {
                    CommonUtils.showTips({
@@ -898,7 +906,7 @@
                    this.hform.HProcExchBillNo = data[0].流转卡号;
                    this.hform.HProcExchInterID = data[0].HProcExchInterID;
                    this.hform.HProcExchEntryID = data[0].HProcExchEntryID;
                    this.hform.HProcExchQty = data[0].流转卡数量;
                    this.hform.HProcExchQty = data[0].流转卡数量 || 0;
                    this.hform.HICMOBillNo = data[0].任务单;
                    this.hform.HICMOInterID = data[0].HICMOInterID;
                    this.hform.HICMOQty = data[0].HICMOQty;
@@ -909,11 +917,16 @@
                    this.hform.HMainSourceBillNo = data[0].单据号;
                    this.hform.HMainSourceBillType = data[0].HBillType;
                    this.hform.HMainSourceInterID = data[0].HInterID;
                    this.hform.HICMOEntryID = data[0].HICMOEntryID;
                    this.hform.HICMOEntryID = data[0].HICMOEntryID || 1;
                    this.hform.HQCSchemeName = data[0].检验方案名称;
                    this.hform.HQCSchemeID = data[0].检验方案ID;
                    this.hform.HProcName = data[0].当前工序;
                    for(let i =0; i<data.length;i++) {
                        this.addCheckItem(data[i])
                    }
                    this.hasSourceBill = true
                    this.get_CheckItem();
                } catch (err) {
                    CommonUtils.showTips({
@@ -1179,7 +1192,7 @@
            // 结论修改
            HResultChange(id, e) {
                console.log("e: ", e);
                this.checkItems[id]["HResult"] = e.detail.value ? 1 : 0;
                this.checkItems[id]["HResult"] = e.detail.value ? 1 : 2;
                this.HCheckLastResult();
            },
@@ -1187,7 +1200,7 @@
            HCheckLastResult() {
                let unPassNum = 0;
                for (var key in this.checkItems) {
                    if (this.checkItems[key]["HResult"] == 0) {
                    if (!(this.checkItems[key]["HResult"] == 1)) {
                        unPassNum++;
                    }
                }
@@ -1302,7 +1315,7 @@
                    let data = e["retVal"][key];
                    Object.assign(this.hform, {
                        HICMOInterID: data.hmainid,
                        HICMOEntryID: data.HEntryID,
                        HICMOEntryID: data.HEntryID || 1,
                        HICMOBillNo: data.单据号,
                        HMaterNumber: data.产品代码,
                        HMaterName: data.产品名称,
@@ -1491,6 +1504,13 @@
            },
            // 带出检验项目
            async get_CheckItem() {
                // 首先清空检验项目 和 检验值
                this.checkItems = {}
                for (let key in this.subTabs) {
                    if (key.substring(1) == "_") {
                        this.$delete(this.subTabs, key)
                    }
                }
                try {
                    let res = await CommonUtils.doRequest2Async({
                        url: "/Web/GetCheckItemByCheckProjectID",
@@ -1541,9 +1561,11 @@
                                HInspectionLevel: data[i].检验水平,
                                HRejectQty: data[i].拒绝数,
                                HStrictness: data[i].严格度,
                                HSampleUnRightQty: "",
                                HSampleUnRightQty: 0,
                                HAQL: data[i].AQL,
                                HSamplingType: data[i].抽样类型,
                                HCompareSymbol: data[i].比较符,
                                HTargetVal: data[i].目标值 || 0,
                            };
                            this.addCheckItem(checkItem);
@@ -1592,12 +1614,20 @@
                    });
                }
            },
            // 检验项目返回值
            // 检验值返回值
            InspectValueComplete(e) {
                console.log("e: ", e);
                let key = e.num;
                e.HStatus = e.HStatus ? 1 : 0
                if(e.HResult2 == ''){
                    e.HResult2 = this.checkItems[key].HResult
                }
                Object.assign(this.checkItems[key], e);
                this.checkItems[key].HInspectResultToSee = this.checkItems[key].HResult2;
                this.checkItems[key].HResult = this.checkItems[key].HResult2 == '合格' ? 1 : 2;
                this.HCheckLastResult();
            },
            checkSubmitValidate() {
                if (this.hform.HICMOQty == "" || this.hform.HICMOQty <= 0) {
@@ -1607,7 +1637,7 @@
                    return false;
                }
                if (this.hform.HFirstCheckEmp) {
                if (this.hform.HFirstCheckEmp == 0) {
                    CommonUtils.showTips({
                        message: "检验员未选择!",
                    });
@@ -1615,7 +1645,7 @@
                }
                for (let key in this.checkItems) {
                    if (this.checkItems[key].HQCCheckItemID) {
                    if (!this.checkItems[key].HQCCheckItemID) {
                        CommonUtils.showTips({
                            message: `第${this.checkItems[key].num}行检验项目不能为空!`,
                        });
@@ -1654,7 +1684,7 @@
                    }
                    if (
                        this.checkItems[key].HSampleUnRightQty == "" ||
                        this.checkItems[key].HSampleUnRightQty == null
                        this.checkItems[key].HSampleUnRightQty == 0
                    ) {
                        this.checkItems[key].HSampleUnRightQty = 0;
                    }
@@ -1666,15 +1696,17 @@
                return true;
            },
            async submit() {
                if (!this.checkSubmitValidate) {
                if (!this.checkSubmitValidate()) {
                    return;
                }
                try {
                    console.log('this.$refs: ',this.$refs);
                    // 检查是否有未切换的检验值模块(是否包含set_SaveValue方法),如果有,则运行一次保存检验值的方法,根据检验值是否保存成功再执行下一步
                    if (typeof this.$refs.InspectValueModules != "undefined") {
                    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;
                        await this.InspectValueComplete(this.$refs.InspectValueModules[0].checkData)
                    }
                    let InspectValuesTrans = [];
                    let HInterID = this.hform.HInterID;
@@ -1682,25 +1714,21 @@
                        let HEntryID = key;
                        InspectValuesTrans.push(
                            `${JSON.stringify(this.InspectValues[key])};${HInterID};${HEntryID}`
                            `${JSON.stringify(this.InspectValues[key])}`
                        );
                    }
                    let checkItemsArray = [];
                    for (var key in this.checkItems) {
                        checkItemsArray.push(this.checkItems[key].data);
                        let checkItem = JSON.parse(JSON.stringify(this.checkItems[key]))
                        delete checkItem.data
                        checkItemsArray.push(checkItem);
                    }
                    console.log('checkItemsArray: ',checkItemsArray);
                    let sMainSub = `${JSON.stringify(this.hform)};${JSON.stringify(
          checkItemsArray
        )};${this.operationType};${getUserInfo()["Czymc"]};${InspectValuesTrans[0]}`;
                    console.log("this.checkItems: ", this.checkItems);
                    let msg = {
                        sMainSub: sMainSub,
                        sValues: InspectValuesTrans,
                    };
                    console.log("msg: ", msg);
                    let res = await CommonUtils.doRequest2Sync({
                        url: "/QC_FirstPieceCheckBill/set_SaveBill",
                        data: {
@@ -1784,16 +1812,16 @@
                            HICMOBillNo: data[0].任务单号,
                            HICMOQty: data[0].任务单数量,
                            HICMOInterID: data[0].HICMOInterID,
                            HICMOEntryID: data[0].HICMOEntryID,
                            HICMOEntryID: data[0].HICMOEntryID || 1,
                            HMaterID: data[0].HMaterID,
                            HMaterName: data[0].物料名称,
                            HMaterNumber: data[0].物料代码,
                            HProcID: data[0].HProcID,
                            HProcName: data[0].HProcName,
                            HProcExchQty: data[0].HProcExchQty,
                            HProcExchQty: data[0].HProcExchQty || 0,
                            HProcExchBillNo: data[0].HProcExchBillNo,
                            HProcExchInterID: data[0].HProcExchInterID,
                            HProcExchEntryID: data[0].HProcExchEntryID,
                            HProcExchEntryID: data[0].HProcExchEntryID || 0,
                            HFirstCheckEmp: data[0].HFirstCheckEmp,
                            HFirstCheckEmpName: data[0].质检员名称,
                            HQCSchemeID: data[0].检验方案ID,
@@ -1817,7 +1845,7 @@
                            HInspectionLevel: data[0].检验水平,
                            HRejectQty: data[0].拒绝数,
                            HStrictness: data[0].严格度,
                            HSampleUnRightQty: data[0].样本不合格数,
                            HSampleUnRightQty: data[0].样本不合格数 || 0,
                            HSampleUnRightQty2: data[0].样本不合格数,
                            HAQL: data[0].AQL,
                            HUnitID: data[0].HUnitID,
@@ -1837,9 +1865,21 @@
                            HShiftsName: data[0].班次名称,
                            HErrTreatment: data[0].异常临时处理方案,
                            HBatchNo: data[0].批号,
                            HLastResult: data[0].判定结论 == "合格" ? "true" : "false",
                            HLastResult: data[0].判定结论 == "合格" ? true : false,
                            HTakeSampleCheckBillID: data[0].HTakeSampleCheckBillID,
                            HTakeSampleCheckBillNo: data[0].HTakeSampleCheckBillNo,
                            HAnalysisMethod: function(){
                                if(data[0].HAnalysisMethod == 1) {
                                    return '定性检验'
                                }else if(data[0].HAnalysisMethod == 2) {
                                    return '定量检验'
                                }else {
                                    return '其他检验'
                                }
                            }(),
                        });
                        for (let i = 0; i < data.length; i++) {
@@ -1859,10 +1899,8 @@
                                HAvg: data[i].平均值,
                                HRemark: data[i].表体备注,
                                HAnalysisMethod: data[i].分析方法 == "定性分析" ?
                                    1 :
                                    data[i].分析方法 == "定量分析" ?
                                    2 :
                                    3,
                                    1 : data[i].分析方法 == "定量分析" ?
                                    2 : 3,
                                HKeyInspect: data[i].重点检查 == "否" ? false : true,
                                HSampleSchemeID: data[i].HSampleSchemeID,
                                HUnitID: data[i].HUnitID,
@@ -1885,8 +1923,13 @@
                                HSamplingType: 0,
                                HSamplingType: data[i].抽样类型,
                                HStrictness: data[i].严格度,
                                HInspectResultToSee: data[i].检验结果
                            });
                        }
                        this.hasSourceBill = true
                    } else {
                        CommonUtils.showTips({
                            title: "温馨提示",
@@ -1907,8 +1950,10 @@
            if (this.operationType == 1) {
                await this.getMaxBillNo();
            } else if (this.operationType == 2) {
            } else if (this.operationType == 3) {
                await this.RoadBillMain();
            } else if (this.operationType == 3) {}
            }
            await this.InitHSource();
            await this.InitHWorkShift();
@@ -2124,6 +2169,16 @@
                display: inline-flex;
                flex-direction: row;
                align-items: center;
                text {
                    flex-shrink: 0;
                }
                .sampleDestory {
                    border: 1px solid #acacac;
                    border-radius: 10%;
                    padding: 0 12rpx;
                }
            }
        }
    }
pages/ZLGL/shoujianjianyan/table.vue
@@ -344,7 +344,7 @@
            edit(item) {
                console.log("editItem:", item)
                uni.navigateTo({
                    url: `/pages/ZLGL/shoujianjianyan/form?operationType=2&linterid=${item.hmainid}`
                    url: `/pages/ZLGL/shoujianjianyan/form?operationType=3&linterid=${item.hmainid}`
                })
            }
        },