llj
昨天 026fef3c576f0ca2b346dd0bc06e274947f33246
设备管理,模具管理等相关多语言配置
5个文件已修改
730 ■■■■ 已修改文件
pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill.vue 173 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue 162 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/shangmudan/MouldUpperBill.vue 155 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/xiamodan/MouldLowerBill.vue 122 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue 118 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBill.vue
@@ -1,8 +1,12 @@
<template>
    <view>
        <view class="tabs" id="tabs">
            <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">基本信息</view>
            <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">其他信息</view>
            <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">
                {{ $t("Sb_EquipConkBookBill.tabBasic") == "Sb_EquipConkBookBill.tabBasic" ? "基本信息" : $t("Sb_EquipConkBookBill.tabBasic") }}
            </view>
            <view :class="tabs == 2 ? 'on':''" @tap="tabs = 2">
                {{ $t("Sb_EquipConkBookBill.tabOther") == "Sb_EquipConkBookBill.tabOther" ? "其他信息" : $t("Sb_EquipConkBookBill.tabOther") }}
            </view>
        </view>
        <!-- 基本信息 -->
        <template v-if="tabs == 0">
@@ -11,94 +15,85 @@
                overflow: 'auto'
            }">
                <view class="form-item">
                    <view class="title">设备条码:</view>
                    <view class="title">{{ $t("Sb_EquipConkBookBill.HBarCode") == "Sb_EquipConkBookBill.HBarCode" ? "设备条码:" : $t("Sb_EquipConkBookBill.HBarCode") }}</view>
                    <view :class="enableEdit?'right':'righton'">
                        <input v-model="hform.HBarCode" :disabled="!enableEdit"
                            @confirm="GetMessageByBarCode(hform.HBarCode)" placeholder="请输入(或扫描)设备条码" />
                            @confirm="GetMessageByBarCode(hform.HBarCode)" :placeholder="$t('Sb_EquipConkBookBill.HBarCode_Placeholder') == 'Sb_EquipConkBookBill.HBarCode_Placeholder' ? '请输入(或扫描)设备条码' : $t('Sb_EquipConkBookBill.HBarCode_Placeholder')" />
                    </view>
                    <view class="icon-wrapper">
                        <uni-icons type="scan" size="20" @click="toScanCode"></uni-icons>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">开始时间:</view>
                    <view class="title">{{ $t("Sb_EquipConkBookBill.HConkBeginDate") == "Sb_EquipConkBookBill.HConkBeginDate" ? "开始时间:" : $t("Sb_EquipConkBookBill.HConkBeginDate") }}</view>
                    <view class="right">
                        <uni-datetime-picker type="datetime" :clear-icon="false" v-model="hform.HRepairPlanBeginDate">
                            <input :value="hform.HConkBeginDate" />
                            <input :value="hform.HConkBeginDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '请选择' : $t('Gy.HDate_Placeholder')" />
                        </uni-datetime-picker>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title required">故障类别:</view>
                    <view class="title required">{{ $t("Sb_EquipConkBookBill.HConkTypeName") == "Sb_EquipConkBookBill.HConkTypeName" ? "故障类别:" : $t("Sb_EquipConkBookBill.HConkTypeName") }}</view>
                    <zxz-uni-data-select required class="right" :localdata="HConkTypeList" dataKey="故障类别名称"
                        dataValue="hitemid" v-model="hform.HConkTypeID">
                    </zxz-uni-data-select>
                    <!-- <input disabled v-model="hform.HDeptName" placeholder="请选择部门" /> -->
                </view>
                <view class="form-item">
                    <view class="title required">故障原因:</view>
                    <view class="title required">{{ $t("Sb_EquipConkBookBill.HConkReasonName") == "Sb_EquipConkBookBill.HConkReasonName" ? "故障原因:" : $t("Sb_EquipConkBookBill.HConkReasonName") }}</view>
                    <zxz-uni-data-select required class="right" :localdata="HConkReasonList" dataKey="HName"
                        dataValue="HItemID" v-model="hform.HConkReasonID">
                    </zxz-uni-data-select>
                    <!-- <input disabled v-model="hform.HDeptName" placeholder="请选择部门" /> -->
                </view>
                <view class="form-item">
                    <view class="title">故障描述:</view>
                    <view class="title">{{ $t("Sb_EquipConkBookBill.HExplanation") == "Sb_EquipConkBookBill.HExplanation" ? "故障描述:" : $t("Sb_EquipConkBookBill.HExplanation") }}</view>
                    <view class="right">
                        <textarea v-model="hform.HExplanation" placeholder="请输入故障描述" />
                        <textarea v-model="hform.HExplanation" :placeholder="$t('Sb_EquipConkBookBill.HExplanation_Placeholder') == 'Sb_EquipConkBookBill.HExplanation_Placeholder' ? '请输入故障描述' : $t('Sb_EquipConkBookBill.HExplanation_Placeholder')" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据号:</view>
                    <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "单据号:" : $t("Gy.HBillNo") }}</view>
                    <view class="righton">
                        <input disabled v-model="hform.HBillNo" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据日期:</view>
                    <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "单据日期:" : $t("Gy.HDate") }}</view>
                    <view class="righton">
                        <input disabled v-model="hform.HDate" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title required">部门:</view>
                    <view class="title required">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "部门:" : $t("Gy.HDeptName") }}</view>
                    <zxz-uni-data-select required class="right" :localdata="HDeptList" dataKey="部门名称"
                        dataValue="HItemID" v-model="hform.HDeptID">
                    </zxz-uni-data-select>
                    <!-- <input disabled v-model="hform.HDeptName" placeholder="请选择部门" /> -->
                </view>
                <view class="form-item">
                    <view class="title required">发现人:</view>
                    <view class="title required">{{ $t("Sb_EquipConkBookBill.HEmpName") == "Sb_EquipConkBookBill.HEmpName" ? "发现人:" : $t("Sb_EquipConkBookBill.HEmpName") }}</view>
                    <zxz-uni-data-select required class="right" :localdata="HEmpList" dataKey="HName"
                        dataValue="HItemID" v-model="hform.HEmpID">
                    </zxz-uni-data-select>
                    <!-- <input disabled v-model="hform.HDeptName" placeholder="请选择部门" /> -->
                </view>
                <view class="form-item">
                    <view class="title required">验收人:</view>
                    <view class="title required">{{ $t("Sb_EquipConkBookBill.HManagerName") == "Sb_EquipConkBookBill.HManagerName" ? "验收人:" : $t("Sb_EquipConkBookBill.HManagerName") }}</view>
                    <zxz-uni-data-select required class="right" :localdata="HEmpList" dataKey="HName"
                        dataValue="HItemID" v-model="hform.HManagerID">
                    </zxz-uni-data-select>
                    <!-- <input disabled v-model="hform.HDeptName" placeholder="请选择部门" /> -->
                </view>
                <view class="form-item">
                    <view class="title">设备名称:</view>
                    <view class="title">{{ $t("Sb_EquipConkBookBill.HBarName") == "Sb_EquipConkBookBill.HBarName" ? "设备名称:" : $t("Sb_EquipConkBookBill.HBarName") }}</view>
                    <view class="righton">
                        <input v-model="hform.HBarName" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">设备规格:</view>
                    <view class="title">{{ $t("Sb_EquipConkBookBill.HBarSpec") == "Sb_EquipConkBookBill.HBarSpec" ? "设备规格:" : $t("Sb_EquipConkBookBill.HBarSpec") }}</view>
                    <view class="righton">
                        <input v-model="hform.HBarSpec" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">设备型号:</view>
                    <view class="title">{{ $t("Sb_EquipConkBookBill.HBarModel") == "Sb_EquipConkBookBill.HBarModel" ? "设备型号:" : $t("Sb_EquipConkBookBill.HBarModel") }}</view>
                    <view class="righton">
                        <input v-model="hform.HBarModel" disabled />
                    </view>
@@ -113,49 +108,49 @@
                overflow: 'auto'
            }">
                <view class="form-item">
                    <view class="title">创建人:</view>
                    <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "创建人:" : $t("Gy.HMaker") }}</view>
                    <view class="righton">
                        <input v-model="hform.HMaker" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">创建日期:</view>
                    <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "创建日期:" : $t("Gy.HMakeDate") }}</view>
                    <view class="righton">
                        <input v-model="hform.HMakeDate" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改人:</view>
                    <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "修改人:" : $t("Gy.HUpDater") }}</view>
                    <view class="righton">
                        <input v-model="hform.HUpDater" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改日期:</view>
                    <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "修改日期:" : $t("Gy.HUpDateDate") }}</view>
                    <view class="righton">
                        <input v-model="hform.HUpDateDate" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核人:</view>
                    <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "审核人:" : $t("Gy.HChecker") }}</view>
                    <view class="righton">
                        <input v-model="hform.HChecker" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核时间:</view>
                    <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "审核时间:" : $t("Gy.HCheckDate") }}</view>
                    <view class="righton">
                        <input v-model="hform.HCheckDate" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">作废人:</view>
                    <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "作废人:" : $t("Gy.HDeleteMan") }}</view>
                    <view class="righton">
                        <input v-model="hform.HDeleteMan" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">作废日期:</view>
                    <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "作废日期:" : $t("Gy.HDeleteDate") }}</view>
                    <view class="righton">
                        <input v-model="hform.HDeleteDate" />
                    </view>
@@ -165,12 +160,11 @@
        </template>
        <!-- 操作按钮 -->
        <view class="buttons" id="buttons">
            <button class="btn-a" size="mini" @tap="submit">提交</button>
            <button class="btn-a" size="mini" @tap="submit">{{ $t("Sb_EquipConkBookBill.submit") == "Sb_EquipConkBookBill.submit" ? "提交" : $t("Sb_EquipConkBookBill.submit") }}</button>
            <view style="flex: 1;"></view>
            <button class="btn-a" size="mini" @tap="addNew">新增</button>
            <button class="btn-c" size="mini" @tap="goBack">退出</button>
            <button class="btn-a" size="mini" @tap="addNew">{{ $t("Sb_EquipConkBookBill.addNew") == "Sb_EquipConkBookBill.addNew" ? "新增" : $t("Sb_EquipConkBookBill.addNew") }}</button>
            <button class="btn-c" size="mini" @tap="goBack">{{ $t("Sb_EquipConkBookBill.goBack") == "Sb_EquipConkBookBill.goBack" ? "退出" : $t("Sb_EquipConkBookBill.goBack") }}</button>
        </view>
        <!-- <xe-upload ref="XeUpload" :options="uploadOptions" @callback="handleUploadCallback"></xe-upload> -->
    </view>
</template>
@@ -278,14 +272,14 @@
                        this.HConkTypeList = data
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            message: `获取故障类别失败: ${Message}`
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: `${this.$t('Sb_EquipConkBookBill.getConkTypeFailed') == 'Sb_EquipConkBookBill.getConkTypeFailed' ? '获取故障类别失败' : this.$t('Sb_EquipConkBookBill.getConkTypeFailed')}: ${Message}`
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '温馨提示',
                        message: `获取故障类别失败: ${err}`
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: `${this.$t('Sb_EquipConkBookBill.getConkTypeFailed') == 'Sb_EquipConkBookBill.getConkTypeFailed' ? '获取故障类别失败' : this.$t('Sb_EquipConkBookBill.getConkTypeFailed')}: ${err}`
                    })
                }
            },
@@ -308,14 +302,14 @@
                        this.HConkReasonList = data
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            message: `获取故障原因失败: ${Message}`
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: `${this.$t('Sb_EquipConkBookBill.getConkReasonFailed') == 'Sb_EquipConkBookBill.getConkReasonFailed' ? '获取故障原因失败' : this.$t('Sb_EquipConkBookBill.getConkReasonFailed')}: ${Message}`
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '温馨提示',
                        message: `获取故障原因失败: ${err}`
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: `${this.$t('Sb_EquipConkBookBill.getConkReasonFailed') == 'Sb_EquipConkBookBill.getConkReasonFailed' ? '获取故障原因失败' : this.$t('Sb_EquipConkBookBill.getConkReasonFailed')}: ${err}`
                    })
                }
            },
@@ -327,37 +321,37 @@
            ValidCheck() {
                if (this.hform.HEquipID == 0) {
                    return {
                        Message: "未录入设备信息,请先录入设备信息!",
                        Message: this.$t('Sb_EquipConkBookBill.noEquipInfo') == 'Sb_EquipConkBookBill.noEquipInfo' ? '未录入设备信息,请先录入设备信息!' : this.$t('Sb_EquipConkBookBill.noEquipInfo'),
                        state: false
                    }
                }
                if (this.hform.HDeptID == 0) {
                    return {
                        Message: "部门不得为空!",
                        Message: this.$t('Sb_EquipConkBookBill.deptRequired') == 'Sb_EquipConkBookBill.deptRequired' ? '部门不得为空!' : this.$t('Sb_EquipConkBookBill.deptRequired'),
                        state: false
                    }
                }
                if (this.hform.HEmpID == 0) {
                    return {
                        Message: "发现人不得为空!",
                        Message: this.$t('Sb_EquipConkBookBill.discovererRequired') == 'Sb_EquipConkBookBill.discovererRequired' ? '发现人不得为空!' : this.$t('Sb_EquipConkBookBill.discovererRequired'),
                        state: false
                    }
                }
                if (this.hform.HManagerID == 0) {
                    return {
                        Message: "验收人不得为空!",
                        Message: this.$t('Sb_EquipConkBookBill.checkerRequired') == 'Sb_EquipConkBookBill.checkerRequired' ? '验收人不得为空!' : this.$t('Sb_EquipConkBookBill.checkerRequired'),
                        state: false
                    }
                }
                if (this.hform.HConkReasonID == 0) {
                    return {
                        Message: "故障原因不得为空!",
                        Message: this.$t('Sb_EquipConkBookBill.reasonRequired') == 'Sb_EquipConkBookBill.reasonRequired' ? '故障原因不得为空!' : this.$t('Sb_EquipConkBookBill.reasonRequired'),
                        state: false
                    }
                }
                if (this.hform.HConkTypeID == 0) {
                    return {
                        Message: "故障类别不得为空!",
                        Message: this.$t('Sb_EquipConkBookBill.typeRequired') == 'Sb_EquipConkBookBill.typeRequired' ? '故障类别不得为空!' : this.$t('Sb_EquipConkBookBill.typeRequired'),
                        state: false
                    }
                }
@@ -397,14 +391,14 @@
                    },
                    success: (uploadRes) => {
                        CommonUtils.showTips({
                            message: "上传成功"
                            message: this.$t('Sb_EquipConkBookBill.uploadSuccess') == 'Sb_EquipConkBookBill.uploadSuccess' ? '上传成功' : this.$t('Sb_EquipConkBookBill.uploadSuccess')
                        })
                        this.attachmentInfo[index].status = "上传成功"
                        this.attachmentInfo[index].status = this.$t('Sb_EquipConkBookBill.uploadSuccess') == 'Sb_EquipConkBookBill.uploadSuccess' ? '上传成功' : this.$t('Sb_EquipConkBookBill.uploadSuccess')
                    },
                    fail: (err) => {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            message: `上传失败: ${err}`
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: `${this.$t('Sb_EquipConkBookBill.uploadFailed') == 'Sb_EquipConkBookBill.uploadFailed' ? '上传失败' : this.$t('Sb_EquipConkBookBill.uploadFailed')}: ${err}`
                        })
                    }
                })
@@ -412,8 +406,8 @@
            delFile(index) {
                console.log('attachmentInfo: ', this.attachmentInfo[index]);
                uni.showModal({
                    title: '提示',
                    content: '确认要删除 " ' + this.attachmentInfo[index].fileName + ' " 删除后将不可恢复!',
                    title: this.$t('Sb_EquipConkBookBill.confirmTitle') == 'Sb_EquipConkBookBill.confirmTitle' ? '提示' : this.$t('Sb_EquipConkBookBill.confirmTitle'),
                    content: this.$t('Sb_EquipConkBookBill.delConfirm') == 'Sb_EquipConkBookBill.delConfirm' ? '确认要删除 " ' : this.$t('Sb_EquipConkBookBill.delConfirm') + this.attachmentInfo[index].fileName + this.$t('Sb_EquipConkBookBill.delConfirmSuffix') == 'Sb_EquipConkBookBill.delConfirmSuffix' ? ' " 删除后将不可恢复!' : this.$t('Sb_EquipConkBookBill.delConfirmSuffix'),
                    success: (res) => {
                        if (res.confirm) {
                            this.attachmentInfo.splice(index, 1)
@@ -428,7 +422,7 @@
                this.attachmentInfo.push({
                    fileName: fileInfo.name,
                    size: fileInfo.size,
                    status: '等待上传',
                    status: this.$t('Sb_EquipConkBookBill.uploadWaiting') == 'Sb_EquipConkBookBill.uploadWaiting' ? '等待上传' : this.$t('Sb_EquipConkBookBill.uploadWaiting'),
                    filePath: fileInfo.tempFilePath
                })
            },
@@ -455,13 +449,13 @@
                        this.HShiftsList = data
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: Message
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '温馨提示',
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: err
                    })
                }
@@ -487,13 +481,13 @@
                        this.HDeptList = data
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: Message
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '温馨提示',
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: err
                    })
                }
@@ -522,13 +516,13 @@
                        this.HEmpList = data
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: Message
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '温馨提示',
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: err
                    })
                }
@@ -571,14 +565,14 @@
                        this.enableEdit = false
                    } else {
                        CommonUtils.showTips({
                            title: "温馨提示",
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: Message
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: "温馨提示",
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: err
                    })
                }
@@ -631,14 +625,14 @@
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            message: `获取点检规程错误: ${Message}`
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: `${this.$t('Sb_EquipConkBookBill.getCheckRuleFailed') == 'Sb_EquipConkBookBill.getCheckRuleFailed' ? '获取点检规程错误' : this.$t('Sb_EquipConkBookBill.getCheckRuleFailed')}: ${Message}`
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '温馨提示',
                        message: `获取点检规程错误: ${err}`
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: `${this.$t('Sb_EquipConkBookBill.getCheckRuleFailed') == 'Sb_EquipConkBookBill.getCheckRuleFailed' ? '获取点检规程错误' : this.$t('Sb_EquipConkBookBill.getCheckRuleFailed')}: ${err}`
                    })
                }
            },
@@ -669,8 +663,8 @@
                    this.hform.HBillNo = data[0]["HBillNo"]
                } catch (err) {
                    CommonUtils.showTips({
                        title: "温馨提示",
                        message: "获取单据信息异常: " + err
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: `${this.$t('Sb_EquipConkBookBill.getBillInfoFailed') == 'Sb_EquipConkBookBill.getBillInfoFailed' ? '获取单据信息异常' : this.$t('Sb_EquipConkBookBill.getBillInfoFailed')}: ` + err
                    })
                }
            },
@@ -709,8 +703,8 @@
                    } = res.data
                    if (count == 1) {
                        uni.showModal({
                            title: '提示',
                            content: res.data.Message + '。是否继续新增?(点击取消返回上级页面)',
                            title: this.$t('Sb_EquipConkBookBill.confirmTitle') == 'Sb_EquipConkBookBill.confirmTitle' ? '提示' : this.$t('Sb_EquipConkBookBill.confirmTitle'),
                            content: res.data.Message + (this.$t('Sb_EquipConkBookBill.continueAdd') == 'Sb_EquipConkBookBill.continueAdd' ? '。是否继续新增?(点击取消返回上级页面)' : this.$t('Sb_EquipConkBookBill.continueAdd')),
                            success: (res) => {
                                if (res.confirm) {
                                    console.log('用户点击确定');
@@ -727,16 +721,16 @@
                        });
                    } else {
                        CommonUtils.showTips({
                            title: "温馨提示",
                            message: "提交单据失败: " + Message
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: `${this.$t('Sb_EquipConkBookBill.submitFailed') == 'Sb_EquipConkBookBill.submitFailed' ? '提交单据失败' : this.$t('Sb_EquipConkBookBill.submitFailed')}: ` + Message
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: "温馨提示",
                        message: "提交单据失败: " + err
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: `${this.$t('Sb_EquipConkBookBill.submitFailed') == 'Sb_EquipConkBookBill.submitFailed' ? '提交单据失败' : this.$t('Sb_EquipConkBookBill.submitFailed')}: ` + err
                    })
                }
            },
@@ -762,15 +756,15 @@
                        this.enableEdit = false
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            message: `获取故障登记单失败: ${msg}`
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: `${this.$t('Sb_EquipConkBookBill.getEditFailed') == 'Sb_EquipConkBookBill.getEditFailed' ? '获取故障登记单失败' : this.$t('Sb_EquipConkBookBill.getEditFailed')}: ${msg}`
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '温馨提示',
                        message: `获取故障登记单失败: ${err}`
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: `${this.$t('Sb_EquipConkBookBill.getEditFailed') == 'Sb_EquipConkBookBill.getEditFailed' ? '获取故障登记单失败' : this.$t('Sb_EquipConkBookBill.getEditFailed')}: ${err}`
                    })
                }
            },
@@ -803,19 +797,22 @@
                        })
                    } else {
                        CommonUtils.showTips({
                            title: "温馨提示",
                            message: `获取设备数据失败: ${Message}`
                            title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                            message: `${this.$t('Sb_EquipConkBookBill.getEquipFailed') == 'Sb_EquipConkBookBill.getEquipFailed' ? '获取设备数据失败' : this.$t('Sb_EquipConkBookBill.getEquipFailed')}: ${Message}`
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: "温馨提示",
                        message: `获取设备数据失败: ${err}`
                        title: this.$t('Sb_EquipConkBookBill.tipTitle') == 'Sb_EquipConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sb_EquipConkBookBill.tipTitle'),
                        message: `${this.$t('Sb_EquipConkBookBill.getEquipFailed') == 'Sb_EquipConkBookBill.getEquipFailed' ? '获取设备数据失败' : this.$t('Sb_EquipConkBookBill.getEquipFailed')}: ${err}`
                    })
                }
            }
        },
        onLoad(e) {
            uni.setNavigationBarTitle({
                title: this.$t("Sb_EquipConkBookBill.title") == 'Sb_EquipConkBookBill.title' ? '设备故障登记单' : this.$t("Sb_EquipConkBookBill.title")
            })
            console.log('e: ', e);
            if (!e.operationType) {
                this.operationType = 1
pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBill.vue
@@ -2,33 +2,36 @@
    <view>
        <view class="form">
            <view class="tabs">
                <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">基本信息</view>
                <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">其他信息</view>
                <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">
                    {{ $t("Sc_MouldConkBookBill.tabBasic") == "Sc_MouldConkBookBill.tabBasic" ? "基本信息" : $t("Sc_MouldConkBookBill.tabBasic") }}
                </view>
                <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">
                    {{ $t("Sc_MouldConkBookBill.tabOther") == "Sc_MouldConkBookBill.tabOther" ? "其他信息" : $t("Sc_MouldConkBookBill.tabOther") }}
                </view>
            </view>
            <view v-if="tabs == 0">
                <view class="form-item">
                    <view class="title">模具条码</view>
                    <view class="title">{{ $t("Sc_MouldConkBookBill.HBarCode") == "Sc_MouldConkBookBill.HBarCode" ? "模具条码" : $t("Sc_MouldConkBookBill.HBarCode") }}</view>
                    <view class="right" :class="barcodeReadOnly?'readonly':''">
                        <input type="text" :disabled="barcodeReadOnly" :focus="barCodeFocus" v-model="hform.HBarCode"
                            @confirm="getHBarCodeData(hform.HBarCode)" />
                            @confirm="getHBarCodeData(hform.HBarCode)" :placeholder="$t('Sc_MouldConkBookBill.HBarCode_Placeholder') == 'Sc_MouldConkBookBill.HBarCode_Placeholder' ? '请输入(或扫描)模具条码' : $t('Sc_MouldConkBookBill.HBarCode_Placeholder')" />
                    </view>
                    <uni-icons type="scan"
                        style="background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;flex-shrink: 0;"
                        size="20" @click="toScanCode"></uni-icons>
                </view>
                <view class="form-item" @click="searchModule">
                    <view class="title">模具</view>
                    <view class="title">{{ $t("Sc_MouldConkBookBill.HMould") == "Sc_MouldConkBookBill.HMould" ? "模具" : $t("Sc_MouldConkBookBill.HMould") }}</view>
                    <view class="righton" style="width: 350rpx;">
                        <input placeholder="请选择模具" />
                        <input :placeholder="$t('Sc_MouldConkBookBill.HMould_Placeholder') == 'Sc_MouldConkBookBill.HMould_Placeholder' ? '请选择模具' : $t('Sc_MouldConkBookBill.HMould_Placeholder')" />
                    </view>
                    <uni-icons type="search"
                        style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
                        size="20"></uni-icons>
                </view>
                <view class="form-item">
                    <view class="title">故障发生日期</view>
                    <view class="title">{{ $t("Sc_MouldConkBookBill.HConkBeginDate") == "Sc_MouldConkBookBill.HConkBeginDate" ? "故障发生日期" : $t("Sc_MouldConkBookBill.HConkBeginDate") }}</view>
                    <view class="right">
                        <uni-datetime-picker type="date">
                            <view style="font-size: 30rpx;">{{hform.HConkBeginDate}}</view>
@@ -36,33 +39,31 @@
                    </view>
                </view>
                <view class="form-item">
                    <view class="title required">故障类别</view>
                    <view class="title required">{{ $t("Sc_MouldConkBookBill.HConkTypeName") == "Sc_MouldConkBookBill.HConkTypeName" ? "故障类别" : $t("Sc_MouldConkBookBill.HConkTypeName") }}</view>
                    <view class="right">
                        <uni-combox :candidates="ConkTypeNameList" placeholder="请选择故障类别" v-model="hform.HConkTypeName"
                            @input="ConkTypeNameChange"></uni-combox>
                        <uni-combox :candidates="ConkTypeNameList" :placeholder="$t('Sc_MouldConkBookBill.HConkTypeName_Placeholder') == 'Sc_MouldConkBookBill.HConkTypeName_Placeholder' ? '请选择故障类别' : $t('Sc_MouldConkBookBill.HConkTypeName_Placeholder')" v-model="hform.HConkTypeName" @input="ConkTypeNameChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title required">故障原因</view>
                    <view class="title required">{{ $t("Sc_MouldConkBookBill.HConkReasonName") == "Sc_MouldConkBookBill.HConkReasonName" ? "故障原因" : $t("Sc_MouldConkBookBill.HConkReasonName") }}</view>
                    <view class="right">
                        <uni-combox :candidates="ConkReasonNameList" placeholder="请选择故障原因"
                            v-model="hform.HConkReasonName" @input="ConkReasonChange"></uni-combox>
                        <uni-combox :candidates="ConkReasonNameList" :placeholder="$t('Sc_MouldConkBookBill.HConkReasonName_Placeholder') == 'Sc_MouldConkBookBill.HConkReasonName_Placeholder' ? '请选择故障原因' : $t('Sc_MouldConkBookBill.HConkReasonName_Placeholder')" v-model="hform.HConkReasonName" @input="ConkReasonChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">故障描述</view>
                    <view class="title">{{ $t("Sc_MouldConkBookBill.HExplanation") == "Sc_MouldConkBookBill.HExplanation" ? "故障描述" : $t("Sc_MouldConkBookBill.HExplanation") }}</view>
                    <view class="right">
                        <textarea value="" style="height: 6em;" maxlength="2000" placeholder="请输入故障描述..." />
                        <textarea value="" style="height: 6em;" maxlength="2000" :placeholder="$t('Sc_MouldConkBookBill.HExplanation_Placeholder') == 'Sc_MouldConkBookBill.HExplanation_Placeholder' ? '请输入故障描述...' : $t('Sc_MouldConkBookBill.HExplanation_Placeholder')" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据号</view>
                    <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "单据号" : $t("Gy.HBillNo") }}</view>
                    <view class="right">
                        <input name="HInterID" v-model="hform.HBillNo" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据日期</view>
                    <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "单据日期" : $t("Gy.HDate") }}</view>
                    <view class="right">
                        <uni-datetime-picker type="date">
                            <view style="font-size: 30rpx;">{{hform.HDate}}</view>
@@ -70,91 +71,88 @@
                    </view>
                </view>
                <view class="form-item">
                    <view class="title required">部门</view>
                    <view class="title required">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "部门" : $t("Gy.HDeptName") }}</view>
                    <view class="right">
                        <uni-combox :candidates="DeptNameList" placeholder="请选择部门" v-model="hform.HDeptName"
                            @input="DeptChange"></uni-combox>
                        <uni-combox :candidates="DeptNameList" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '请选择部门' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="DeptChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title required">发现人</view>
                    <view class="title required">{{ $t("Sc_MouldConkBookBill.HEmpName") == "Sc_MouldConkBookBill.HEmpName" ? "发现人" : $t("Sc_MouldConkBookBill.HEmpName") }}</view>
                    <view class="right">
                        <uni-combox :candidates="EmpNameList" placeholder="请选择发现人" v-model="hform.HEmpName"
                            @input="EmpChange"></uni-combox>
                        <uni-combox :candidates="EmpNameList" :placeholder="$t('Sc_MouldConkBookBill.HEmpName_Placeholder') == 'Sc_MouldConkBookBill.HEmpName_Placeholder' ? '请选择发现人' : $t('Sc_MouldConkBookBill.HEmpName_Placeholder')" v-model="hform.HEmpName" @input="EmpChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title required">验收人</view>
                    <view class="title required">{{ $t("Sc_MouldConkBookBill.HManagerName") == "Sc_MouldConkBookBill.HManagerName" ? "验收人" : $t("Sc_MouldConkBookBill.HManagerName") }}</view>
                    <view class="right">
                        <uni-combox :candidates="EmpNameList" placeholder="请选择验收人" v-model="hform.HManagerName"
                            @input="ManagerChange"></uni-combox>
                        <uni-combox :candidates="EmpNameList" :placeholder="$t('Sc_MouldConkBookBill.HManagerName_Placeholder') == 'Sc_MouldConkBookBill.HManagerName_Placeholder' ? '请选择验收人' : $t('Sc_MouldConkBookBill.HManagerName_Placeholder')" v-model="hform.HManagerName" @input="ManagerChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">模具名称</view>
                    <view class="title">{{ $t("Sc_MouldConkBookBill.HBarName") == "Sc_MouldConkBookBill.HBarName" ? "模具名称" : $t("Sc_MouldConkBookBill.HBarName") }}</view>
                    <view class="righton">
                        <input disabled type="text" placeholder="请输入器具名称" v-model="hform.HBarName" />
                        <input disabled type="text" :placeholder="$t('Sc_MouldConkBookBill.HBarName_Placeholder') == 'Sc_MouldConkBookBill.HBarName_Placeholder' ? '请输入器具名称' : $t('Sc_MouldConkBookBill.HBarName_Placeholder')" v-model="hform.HBarName" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">模具规格</view>
                    <view class="title">{{ $t("Sc_MouldConkBookBill.HBarSpec") == "Sc_MouldConkBookBill.HBarSpec" ? "模具规格" : $t("Sc_MouldConkBookBill.HBarSpec") }}</view>
                    <view class="righton">
                        <input disabled type="text" placeholder="请输入器具规格" v-model="hform.HBarSpec" />
                        <input disabled type="text" :placeholder="$t('Sc_MouldConkBookBill.HBarSpec_Placeholder') == 'Sc_MouldConkBookBill.HBarSpec_Placeholder' ? '请输入器具规格' : $t('Sc_MouldConkBookBill.HBarSpec_Placeholder')" v-model="hform.HBarSpec" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">模具型号</view>
                    <view class="title">{{ $t("Sc_MouldConkBookBill.HBarModel") == "Sc_MouldConkBookBill.HBarModel" ? "模具型号" : $t("Sc_MouldConkBookBill.HBarModel") }}</view>
                    <view class="righton">
                        <input disabled type="text" placeholder="请输入器具型号" v-model="hform.HBarModel" />
                        <input disabled type="text" :placeholder="$t('Sc_MouldConkBookBill.HBarModel_Placeholder') == 'Sc_MouldConkBookBill.HBarModel_Placeholder' ? '请输入器具型号' : $t('Sc_MouldConkBookBill.HBarModel_Placeholder')" v-model="hform.HBarModel" />
                    </view>
                </view>
            </view>
            <view v-if="tabs == 1">
                <view class="form-item">
                    <view class="title">创建人:</view>
                    <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "创建人:" : $t("Gy.HMaker") }}</view>
                    <view class="righton">
                        <input type="text" v-model="hform.HMaker" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">创建日期:</view>
                    <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "创建日期:" : $t("Gy.HMakeDate") }}</view>
                    <view class="righton">
                        <input type="text" v-model="hform.HMakeDate" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改人:</view>
                    <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "修改人:" : $t("Gy.HUpDater") }}</view>
                    <view class="righton">
                        <input type="text" v-model="hform.HUpDater" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改日期:</view>
                    <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "修改日期:" : $t("Gy.HUpDateDate") }}</view>
                    <view class="righton">
                        <input type="text" v-model="hform.HUpDateDate" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核人:</view>
                    <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "审核人:" : $t("Gy.HChecker") }}</view>
                    <view class="righton">
                        <input type="text" v-model="hform.HChecker" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核日期:</view>
                    <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "审核日期:" : $t("Gy.HCheckDate") }}</view>
                    <view class="righton">
                        <input type="text" v-model="hform.HCheckDate" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">作废人:</view>
                    <view class="title">{{ $t("Gy.HDeleteMan") == "Gy.HDeleteMan" ? "作废人:" : $t("Gy.HDeleteMan") }}</view>
                    <view class="righton">
                        <input type="text" v-model="hform.HDeleteMan" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">作废日期:</view>
                    <view class="title">{{ $t("Gy.HDeleteDate") == "Gy.HDeleteDate" ? "作废日期:" : $t("Gy.HDeleteDate") }}</view>
                    <view class="righton">
                        <input type="text" v-model="hform.HDeleteDate" disabled />
                    </view>
@@ -163,10 +161,10 @@
            <view class="bottom-btn">
                <button :class="EnableSave?'btn-a':'btn-c'" :disabled="!EnableSave" size="mini"
                    @tap="submit">提交</button>
                    @tap="submit">{{ $t("Sc_MouldConkBookBill.submit") == "Sc_MouldConkBookBill.submit" ? "提交" : $t("Sc_MouldConkBookBill.submit") }}</button>
                <view style="flex: 1;"></view>
                <button class="btn-a" size="mini" @tap="addNew">新增</button>
                <button class="btn-c" size="mini" @tap="goBack">退出</button>
                <button class="btn-a" size="mini" @tap="addNew">{{ $t("Sc_MouldConkBookBill.addNew") == "Sc_MouldConkBookBill.addNew" ? "新增" : $t("Sc_MouldConkBookBill.addNew") }}</button>
                <button class="btn-c" size="mini" @tap="goBack">{{ $t("Sc_MouldConkBookBill.goBack") == "Sc_MouldConkBookBill.goBack" ? "退出" : $t("Sc_MouldConkBookBill.goBack") }}</button>
            </view>
        </view>
    </view>
@@ -270,6 +268,9 @@
        },
        async onLoad(e) {
            uni.setNavigationBarTitle({
                title: this.$t("Sc_MouldConkBookBill.title") == 'Sc_MouldConkBookBill.title' ? '模具故障登记单' : this.$t("Sc_MouldConkBookBill.title")
            })
            console.log(e, this.userInfo)
            this.operationType = e.operationType || 1
            if (this.operationType == 1) {
@@ -333,14 +334,14 @@
                        this.ConkTypeNameList = Array.from(data).map(elem => elem['故障类别名称'])
                    } else {
                        CommonUtils.showTips({
                            title: '错误提示',
                            message: "初始化故障类型错误: " + Message,
                            title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '错误提示' : this.$t('Sc_MouldConkBookBill.errorTitle'),
                            message: this.$t('Sc_MouldConkBookBill.initConkTypeFailed') == 'Sc_MouldConkBookBill.initConkTypeFailed' ? '初始化故障类型错误: ' : this.$t('Sc_MouldConkBookBill.initConkTypeFailed') + Message,
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '错误提示',
                        message: "初始化故障类型错误: " + err,
                        title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '错误提示' : this.$t('Sc_MouldConkBookBill.errorTitle'),
                        message: this.$t('Sc_MouldConkBookBill.initConkTypeFailed') == 'Sc_MouldConkBookBill.initConkTypeFailed' ? '初始化故障类型错误: ' : this.$t('Sc_MouldConkBookBill.initConkTypeFailed') + err,
                    })
                }
            },
@@ -377,14 +378,14 @@
                        this.ConkReasonNameList = Array.from(data).map(elem => elem['HName'])
                    } else {
                        CommonUtils.showTips({
                            title: '错误提示',
                            message: "初始化故障原因错误: " + Message,
                            title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '错误提示' : this.$t('Sc_MouldConkBookBill.errorTitle'),
                            message: this.$t('Sc_MouldConkBookBill.initConkReasonFailed') == 'Sc_MouldConkBookBill.initConkReasonFailed' ? '初始化故障原因错误: ' : this.$t('Sc_MouldConkBookBill.initConkReasonFailed') + Message,
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '错误提示',
                        message: "初始化故障原因错误: " + err,
                        title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '错误提示' : this.$t('Sc_MouldConkBookBill.errorTitle'),
                        message: this.$t('Sc_MouldConkBookBill.initConkReasonFailed') == 'Sc_MouldConkBookBill.initConkReasonFailed' ? '初始化故障原因错误: ' : this.$t('Sc_MouldConkBookBill.initConkReasonFailed') + err,
                    })
                }
            },
@@ -421,14 +422,14 @@
                        this.DeptNameList = Array.from(data).map(elem => elem['HName'])
                    } else {
                        CommonUtils.showTips({
                            title: '错误提示',
                            message: "初始化部门错误: " + Message,
                            title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '错误提示' : this.$t('Sc_MouldConkBookBill.errorTitle'),
                            message: this.$t('Sc_MouldConkBookBill.initDeptFailed') == 'Sc_MouldConkBookBill.initDeptFailed' ? '初始化部门错误: ' : this.$t('Sc_MouldConkBookBill.initDeptFailed') + Message,
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '错误提示',
                        message: "初始化部门错误: " + err,
                        title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '错误提示' : this.$t('Sc_MouldConkBookBill.errorTitle'),
                        message: this.$t('Sc_MouldConkBookBill.initDeptFailed') == 'Sc_MouldConkBookBill.initDeptFailed' ? '初始化部门错误: ' : this.$t('Sc_MouldConkBookBill.initDeptFailed') + err,
                    })
                }
            },
@@ -467,14 +468,14 @@
                        this.EmpNameList = Array.from(data).map(elem => elem['HName'])
                    } else {
                        CommonUtils.showTips({
                            title: '错误提示',
                            message: "初始化职员错误: " + Message,
                            title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '错误提示' : this.$t('Sc_MouldConkBookBill.errorTitle'),
                            message: this.$t('Sc_MouldConkBookBill.initEmpFailed') == 'Sc_MouldConkBookBill.initEmpFailed' ? '初始化职员错误: ' : this.$t('Sc_MouldConkBookBill.initEmpFailed') + Message,
                        })
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '错误提示',
                        message: "初始化职员错误: " + err,
                        title: this.$t('Sc_MouldConkBookBill.errorTitle') == 'Sc_MouldConkBookBill.errorTitle' ? '错误提示' : this.$t('Sc_MouldConkBookBill.errorTitle'),
                        message: this.$t('Sc_MouldConkBookBill.initEmpFailed') == 'Sc_MouldConkBookBill.initEmpFailed' ? '初始化职员错误: ' : this.$t('Sc_MouldConkBookBill.initEmpFailed') + err,
                    })
                }
            },
@@ -537,7 +538,7 @@
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval': '10', //超时时间
                    'timeoutText': '未识别到二维码' //超时提醒
                    'timeoutText': this.$t('Sc_MouldConkBookBill.scanTimeoutText') == 'Sc_MouldConkBookBill.scanTimeoutText' ? '未识别到二维码' : this.$t('Sc_MouldConkBookBill.scanTimeoutText') //超时提醒
                }, (ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
@@ -559,7 +560,7 @@
            async getHBarCodeData(HBarCode) {
                if (!HBarCode) {
                    CommonUtils.showTips({
                        message: '条形码不能为空'
                        message: this.$t('Sc_MouldConkBookBill.barCodeEmpty') == 'Sc_MouldConkBookBill.barCodeEmpty' ? '条形码不能为空' : this.$t('Sc_MouldConkBookBill.barCodeEmpty')
                    })
                    return
                }
@@ -585,15 +586,15 @@
                    } else {
                        this.refreshBarCodeState()
                        return CommonUtils.showTips({
                            title: '温馨提示',
                            title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sc_MouldConkBookBill.tipTitle'),
                            message: Message
                        })
                    }
                } catch (err) {
                    this.refreshBarCodeState()
                    return CommonUtils.showTips({
                        title: '温馨提示',
                        message: "接口请求失败" + err
                        title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sc_MouldConkBookBill.tipTitle'),
                        message: this.$t('Sc_MouldConkBookBill.requestFailed') == 'Sc_MouldConkBookBill.requestFailed' ? '接口请求失败' : this.$t('Sc_MouldConkBookBill.requestFailed') + err
                    })
                }
@@ -627,7 +628,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('Sc_MouldConkBookBill.requestFailed') == 'Sc_MouldConkBookBill.requestFailed' ? '接口请求失败' : this.$t('Sc_MouldConkBookBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -637,15 +638,15 @@
                let message = ''
                if (!this.hform.HConkTypeName) {
                    message = '未填写故障类别'
                    message = this.$t('Sc_MouldConkBookBill.noConkType') == 'Sc_MouldConkBookBill.noConkType' ? '未填写故障类别' : this.$t('Sc_MouldConkBookBill.noConkType')
                } else if (!this.hform.HConkReasonName) {
                    message = '未填写故障原因'
                    message = this.$t('Sc_MouldConkBookBill.noConkReason') == 'Sc_MouldConkBookBill.noConkReason' ? '未填写故障原因' : this.$t('Sc_MouldConkBookBill.noConkReason')
                } else if (!this.hform.HDeptName) {
                    message = '未填写部门'
                    message = this.$t('Sc_MouldConkBookBill.noDept') == 'Sc_MouldConkBookBill.noDept' ? '未填写部门' : this.$t('Sc_MouldConkBookBill.noDept')
                } else if (!this.hform.HEmpName) {
                    message = '未填写发现人'
                    message = this.$t('Sc_MouldConkBookBill.noDiscoverer') == 'Sc_MouldConkBookBill.noDiscoverer' ? '未填写发现人' : this.$t('Sc_MouldConkBookBill.noDiscoverer')
                } else if (!this.hform.HManagerName) {
                    message = '未填写验收人'
                    message = this.$t('Sc_MouldConkBookBill.noChecker') == 'Sc_MouldConkBookBill.noChecker' ? '未填写验收人' : this.$t('Sc_MouldConkBookBill.noChecker')
                }
                if (!message) {
                    return true
@@ -692,8 +693,8 @@
                    } = res.data
                    if (count == 1) {
                        uni.showModal({
                            title: '提示',
                            content: res.data.Message + '。是否继续新增?',
                            title: this.$t('Sc_MouldConkBookBill.confirmTitle') == 'Sc_MouldConkBookBill.confirmTitle' ? '提示' : this.$t('Sc_MouldConkBookBill.confirmTitle'),
                            content: res.data.Message + (this.$t('Sc_MouldConkBookBill.continueAdd') == 'Sc_MouldConkBookBill.continueAdd' ? '。是否继续新增?' : this.$t('Sc_MouldConkBookBill.continueAdd')),
                            success: (res) => {
                                if (res.confirm) {
                                    console.log('用户点击确定');
@@ -710,14 +711,14 @@
                        });
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sc_MouldConkBookBill.tipTitle'),
                            message: Message
                        })
                        this.EnableSave = true
                    }
                } catch (err) {
                    CommonUtils.showTips({
                        title: '温馨提示',
                        title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sc_MouldConkBookBill.tipTitle'),
                        message: err
                    })
                    this.EnableSave = true
@@ -726,8 +727,8 @@
            goBack() {
                uni.showModal({
                    title: '提示',
                    content: '确认要退出当前页面吗?',
                    title: this.$t('Sc_MouldConkBookBill.confirmTitle') == 'Sc_MouldConkBookBill.confirmTitle' ? '提示' : this.$t('Sc_MouldConkBookBill.confirmTitle'),
                    content: this.$t('Sc_MouldConkBookBill.exitConfirm') == 'Sc_MouldConkBookBill.exitConfirm' ? '确认要退出当前页面吗?' : this.$t('Sc_MouldConkBookBill.exitConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -759,7 +760,7 @@
                        console.log('data: ', data.h_v_Sc_MouldConkBookBillList_Edit);
                        let data1 = data.h_v_Sc_MouldConkBookBillList_Edit[0]
                        this.hform.HMainSourceBillType = HSourceBillType
                        this.HMainSourceBillType = '器具故障登记单'
                        this.HMainSourceBillType = this.$t('Sc_MouldConkBookBill.sourceBillTypeName') == 'Sc_MouldConkBookBill.sourceBillTypeName' ? '器具故障登记单' : this.$t('Sc_MouldConkBookBill.sourceBillTypeName')
                        this.hform.HMainSourceBillNo = data1.单据号
                        this.hform.HMainSourceInterID = data1.hmainid
                        this.hform.HMainSourceEntryID = data1.hsubid
@@ -773,8 +774,8 @@
                       
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            message: `获取源单失败: ${Message}`
                            title: this.$t('Sc_MouldConkBookBill.tipTitle') == 'Sc_MouldConkBookBill.tipTitle' ? '温馨提示' : this.$t('Sc_MouldConkBookBill.tipTitle'),
                            message: this.$t('Sc_MouldConkBookBill.getSourceFailed') == 'Sc_MouldConkBookBill.getSourceFailed' ? '获取源单失败: ' : this.$t('Sc_MouldConkBookBill.getSourceFailed') + Message
                        })
                    }
@@ -788,6 +789,7 @@
</script>
<style lang="scss" scoped>
    /* 样式保持不变 */
    .form {
        width: 668rpx;
        margin: 20rpx auto;
pages/MJGL/shangmudan/MouldUpperBill.vue
@@ -2,9 +2,10 @@
    <view>
        <view class="form">
            <view class="form-item">
                <view class="title">条码</view>
                <view class="title">{{ $t("MouldUpperBill.HBarCode") == "MouldUpperBill.HBarCode" ? "条码" : $t("MouldUpperBill.HBarCode") }}</view>
                <view class="right" style="width: 350rpx;">
                    <input type="text" :focus="HBarCodeFocus" v-model="hform.HBarCode" placeholder="请扫描(或输入)条码"
                    <input type="text" :focus="HBarCodeFocus" v-model="hform.HBarCode"
                        :placeholder="$t('MouldUpperBill.HBarCode_Placeholder') == 'MouldUpperBill.HBarCode_Placeholder' ? '请扫描(或输入)条码' : $t('MouldUpperBill.HBarCode_Placeholder')"
                        @confirm="getHBarCodeData(hform.HBarCode)" />
                </view>
                <uni-icons type="scan"
@@ -12,78 +13,80 @@
                    size="20" @click="toScanCode"></uni-icons>
            </view>
            <view class="tabs">
                <view :class="tabs == 0 ? 'on':''" @tap="() => { tabs = 0; reFocusBarCode(); }">单据信息</view>
                <view :class="tabs == 1 ? 'on':''" @tap="() => { tabs = 1; reFocusBarCode(); }">模具信息</view>
                <view :class="tabs == 2 ? 'on':''" @tap="() => { tabs = 2; reFocusBarCode(); }">制单信息</view>
                <view :class="tabs == 0 ? 'on':''" @tap="() => { tabs = 0; reFocusBarCode(); }">
                    {{ $t("MouldUpperBill.tabBillInfo") == "MouldUpperBill.tabBillInfo" ? "单据信息" : $t("MouldUpperBill.tabBillInfo") }}
                </view>
                <view :class="tabs == 1 ? 'on':''" @tap="() => { tabs = 1; reFocusBarCode(); }">
                    {{ $t("MouldUpperBill.tabMouldInfo") == "MouldUpperBill.tabMouldInfo" ? "模具信息" : $t("MouldUpperBill.tabMouldInfo") }}
                </view>
                <view :class="tabs == 2 ? 'on':''" @tap="() => { tabs = 2; reFocusBarCode(); }">
                    {{ $t("MouldUpperBill.tabMakerInfo") == "MouldUpperBill.tabMakerInfo" ? "制单信息" : $t("MouldUpperBill.tabMakerInfo") }}
                </view>
            </view>
            <!-- 单据信息 -->
            <view v-if="tabs == 0">
                <view class="form-item">
                    <view class="title">单据号:</view>
                    <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "单据号:" : $t("Gy.HBillNo") }}</view>
                    <view class="righton">
                        <input name="HBillNo" disabled v-model="hform.HBillNo" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据日期:</view>
                    <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "单据日期:" : $t("Gy.HDate") }}</view>
                    <view class="right">
                        <picker mode="date" v-model="hform.HDate" @change="HDateChange">
                            <input disabled v-model="hform.HDate" placeholder="请选择日期" />
                            <input disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '请选择日期' : $t('Gy.HDate_Placeholder')" />
                        </picker>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title"><text>*</text>使用部门:</view>
                    <view class="title"><text>*</text>{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "使用部门:" : $t("Gy.HDeptName") }}</view>
                    <view class="right">
                        <uni-combox :candidates="arrayHDeptName" placeholder="请选择部门" v-model="hform.HDeptName"
                            @input="HDeptNameChange"></uni-combox>
                        <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '请选择部门' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title"><text>*</text>操作员:</view>
                    <view class="title"><text>*</text>{{ $t("MouldUpperBill.HEmpName") == "MouldUpperBill.HEmpName" ? "操作员:" : $t("MouldUpperBill.HEmpName") }}</view>
                    <view class="right">
                        <uni-combox :candidates="arrayHEmpName" placeholder="请选择操作员" v-model="hform.HEmpName"
                            @input="HEmpNameChange"></uni-combox>
                        <uni-combox :candidates="arrayHEmpName" :placeholder="$t('MouldUpperBill.HEmpName_Placeholder') == 'MouldUpperBill.HEmpName_Placeholder' ? '请选择操作员' : $t('MouldUpperBill.HEmpName_Placeholder')" v-model="hform.HEmpName" @input="HEmpNameChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title"><text>*</text>负责人:</view>
                    <view class="title"><text>*</text>{{ $t("MouldUpperBill.HManagerName") == "MouldUpperBill.HManagerName" ? "负责人:" : $t("MouldUpperBill.HManagerName") }}</view>
                    <view class="right">
                        <uni-combox :candidates="arrayHEmpName" placeholder="请选择负责人" v-model="hform.HMangerName"
                            @input="HManagerNameChange"></uni-combox>
                        <uni-combox :candidates="arrayHEmpName" :placeholder="$t('MouldUpperBill.HManagerName_Placeholder') == 'MouldUpperBill.HManagerName_Placeholder' ? '请选择负责人' : $t('MouldUpperBill.HManagerName_Placeholder')" v-model="hform.HMangerName" @input="HManagerNameChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title"><text>*</text>生产资源:</view>
                    <view class="title"><text>*</text>{{ $t("MouldUpperBill.HSourceName") == "MouldUpperBill.HSourceName" ? "生产资源:" : $t("MouldUpperBill.HSourceName") }}</view>
                    <view class="right">
                        <uni-combox :candidates="arrayHSourceName" placeholder="请选择生产资源" v-model="hform.HSourceName"
                            @input="HSourceNameChange"></uni-combox>
                        <uni-combox :candidates="arrayHSourceName" :placeholder="$t('MouldUpperBill.HSourceName_Placeholder') == 'MouldUpperBill.HSourceName_Placeholder' ? '请选择生产资源' : $t('MouldUpperBill.HSourceName_Placeholder')" v-model="hform.HSourceName" @input="HSourceNameChange"></uni-combox>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">上模时间:</view>
                    <view class="title">{{ $t("MouldUpperBill.HScanDate") == "MouldUpperBill.HScanDate" ? "上模时间:" : $t("MouldUpperBill.HScanDate") }}</view>
                    <view class="righton">
                        <input name="HScanDate" disabled v-model="hform.HScanDate" placeholder="请选择" />
                        <input name="HScanDate" disabled v-model="hform.HScanDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '请选择' : $t('Gy.HDate_Placeholder')" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">生产订单:</view>
                    <view class="title">{{ $t("MouldUpperBill.HICMOBillNo") == "MouldUpperBill.HICMOBillNo" ? "生产订单:" : $t("MouldUpperBill.HICMOBillNo") }}</view>
                    <view class="righton">
                        <input name="HICMOBillNo" disabled v-model="hform.HICMOBillNo" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">流转卡:</view>
                    <view class="title">{{ $t("MouldUpperBill.HProcExchBillNo") == "MouldUpperBill.HProcExchBillNo" ? "流转卡:" : $t("MouldUpperBill.HProcExchBillNo") }}</view>
                    <view class="righton">
                        <input disabled v-model="hform.HProcExchBillNo" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">备注:</view>
                    <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "备注:" : $t("Gy.HRemark") }}</view>
                    <view class="right">
                        <textarea name="HRemark" v-model="hform.HRemark" auto-height placeholder="请输入备注"></textarea>
                        <textarea name="HRemark" v-model="hform.HRemark" auto-height :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '请输入备注' : $t('Gy.HRemark_Placeholder')"></textarea>
                    </view>
                </view>
@@ -96,72 +99,72 @@
                        <uni-card style="margin: 10rpx 0;">
                            <view class="card-content">
                                <view class="card-row">
                                    <text class="label">序号:</text>
                                    <text class="label">{{ $t("MouldUpperBill.table_SerialNo") == "MouldUpperBill.table_SerialNo" ? "序号:" : $t("MouldUpperBill.table_SerialNo") }}</text>
                                    <text class="value">{{ index + 1 }}</text>
                                </view>
                                <view class="card-row">
                                    <text class="label">器具编码:</text>
                                    <text class="label">{{ $t("MouldUpperBill.table_MouldCode") == "MouldUpperBill.table_MouldCode" ? "器具编码:" : $t("MouldUpperBill.table_MouldCode") }}</text>
                                    <text class="value">{{ item.器具编码 }}</text>
                                </view>
                                <view class="card-row">
                                    <text class="label">器具名称:</text>
                                    <text class="label">{{ $t("MouldUpperBill.table_MouldName") == "MouldUpperBill.table_MouldName" ? "器具名称:" : $t("MouldUpperBill.table_MouldName") }}</text>
                                    <text class="value">{{ item.器具名称 }}</text>
                                </view>
                                <view class="card-row">
                                    <text class="label">器具型号:</text>
                                    <text class="label">{{ $t("MouldUpperBill.table_MouldModel") == "MouldUpperBill.table_MouldModel" ? "器具型号:" : $t("MouldUpperBill.table_MouldModel") }}</text>
                                    <text class="value">{{ item.器具型号 }}</text>
                                </view>
                                <view class="card-row">
                                    <text class="label">器具条码:</text>
                                    <text class="label">{{ $t("Gy.HBarCode") == "Gy.HBarCode" ? "器具条码:" : $t("Gy.HBarCode") }}</text>
                                    <text class="value">{{ item.器具条码 }}</text>
                                </view>
                                <view class="card-row">
                                    <text class="label">器具数量:</text>
                                    <text class="label">{{ $t("Gy.HQty") == "Gy.HQty" ? "器具数量:" : $t("Gy.HQty") }}</text>
                                    <text class="value">{{ item.器具数量 }}</text>
                                </view>
                            </view>
                        </uni-card>
                    </view>
                    <view class="over" v-if="listData.length == 0">暂无模具数据</view>
                    <view class="over" v-if="listData.length == 0">{{ $t("MouldUpperBill.noMouldData") == "MouldUpperBill.noMouldData" ? "暂无模具数据" : $t("MouldUpperBill.noMouldData") }}</view>
                </view>
            </view>
            <view v-if="tabs == 2">
                <view class="form-item">
                    <view class="title">制单人:</view>
                    <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}</view>
                    <view class="righton">
                        <input v-model="hform.HMaker" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">制单日期:</view>
                    <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "制单日期:" : $t("Gy.HMakeDate") }}</view>
                    <view class="righton">
                        <input v-if="hform.HMakeDate" v-model="hform.HMakeDate.substr(0,10)" disabled />
                        <input v-else v-model="hform.HMakeDate" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改人:</view>
                    <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "修改人:" : $t("Gy.HUpDater") }}</view>
                    <view class="righton">
                        <input v-model="hform.HUpDater" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改日期:</view>
                    <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "修改日期:" : $t("Gy.HUpDateDate") }}</view>
                    <view class="righton">
                        <input v-if="hform.HUpDateDate" v-model="hform.HUpDateDate.substr(0,10)" disabled />
                        <input v-else v-model="hform.HUpDateDate" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核人:</view>
                    <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "审核人:" : $t("Gy.HChecker") }}</view>
                    <view class="righton">
                        <input v-model="hform.HChecker" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核日期:</view>
                    <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "审核日期:" : $t("Gy.HCheckDate") }}</view>
                    <view class="righton">
                        <input v-if="hform.HCheckDate" v-model="hform.HCheckDate.substr(0,10)" disabled />
                        <input v-else v-model="hform.HCheckDate" disabled />
@@ -171,10 +174,10 @@
            </view>
            <view class="bottom-btn">
                <button v-if="btnType == 1 && !isEdit" class="btn-a" size="mini" @tap="submit">提交</button>
                <button v-if="btnType != 1 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">修改</button>
                <button v-if="btnType != 1 && isEdit" class="btn-a" size="mini" @tap="submit">提交</button>
                <button class="btn-c" size="mini" @tap="goBack">退出</button>
                <button v-if="btnType == 1 && !isEdit" class="btn-a" size="mini" @tap="submit">{{ $t("MouldUpperBill.submit") == "MouldUpperBill.submit" ? "提交" : $t("MouldUpperBill.submit") }}</button>
                <button v-if="btnType != 1 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">{{ $t("MouldUpperBill.modify") == "MouldUpperBill.modify" ? "修改" : $t("MouldUpperBill.modify") }}</button>
                <button v-if="btnType != 1 && isEdit" class="btn-a" size="mini" @tap="submit">{{ $t("MouldUpperBill.submit") == "MouldUpperBill.submit" ? "提交" : $t("MouldUpperBill.submit") }}</button>
                <button class="btn-c" size="mini" @tap="goBack">{{ $t("MouldUpperBill.goBack") == "MouldUpperBill.goBack" ? "退出" : $t("MouldUpperBill.goBack") }}</button>
            </view>
        </view>
@@ -256,6 +259,10 @@
            }
        },
        onLoad(e) {
uni.setNavigationBarTitle({
                title: this.$t("MouldUpperBill.title") == 'MouldUpperBill.title' ? '上模单' : this.$t("MouldUpperBill.title")
            })
            this.HBarCodeFocus = true
            this.getHDeptList()
            this.getHEmpList()
@@ -289,7 +296,7 @@
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval': '10', //超时时间
                    'timeoutText': '未识别到二维码' //超时提醒
                    'timeoutText': this.$t('MouldUpperBill.scanTimeoutText') == 'MouldUpperBill.scanTimeoutText' ? '未识别到二维码' : this.$t('MouldUpperBill.scanTimeoutText') //超时提醒
                }, (ret) => {
                    console.log(ret.resp_result)
                    this.hform.HBarCode = ret.resp_result
@@ -320,7 +327,7 @@
                if (uni.getStorageSync('Organization') == "杭州斯莫尔磁性材料有限公司") {
                    if (!this.hform.HSourceName) {
                        uni.showToast({
                            title: '请先选择或扫描生产资源',
                            title: this.$t('MouldUpperBill.selectSourceFirst') == 'MouldUpperBill.selectSourceFirst' ? '请先选择或扫描生产资源' : this.$t('MouldUpperBill.selectSourceFirst'),
                            icon: 'none'
                        });
                        return;
@@ -388,7 +395,7 @@
                                case 3:
                                    if (!this.hform.HICMOBillNo && !this.hform.HProcExchBillNo) {
                                        uni.showToast({
                                            title: '请先扫描生产工单',
                                            title: this.$t('MouldUpperBill.scanWorkOrderFirst') == 'MouldUpperBill.scanWorkOrderFirst' ? '请先扫描生产工单' : this.$t('MouldUpperBill.scanWorkOrderFirst'),
                                            icon: 'none'
                                        });
                                        return;
@@ -435,7 +442,7 @@
                                    break;
                                default:
                                    uni.showToast({
                                        title: '未知的返回类型',
                                        title: this.$t('MouldUpperBill.unknownType') == 'MouldUpperBill.unknownType' ? '未知的返回类型' : this.$t('MouldUpperBill.unknownType'),
                                        icon: 'none',
                                    });
                                    break;
@@ -451,7 +458,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '接口请求失败' : this.$t('MouldUpperBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -472,7 +479,7 @@
                    if (existingIndex === -1) {
                        // 如果不存在,说明不在当前物料的检具清单中
                        uni.showToast({
                            title: '当前检具不在当前物料的检具清单中',
                            title: this.$t('MouldUpperBill.mouldNotInList') == 'MouldUpperBill.mouldNotInList' ? '当前检具不在当前物料的检具清单中' : this.$t('MouldUpperBill.mouldNotInList'),
                            icon: 'none',
                            duration: 1500
                        });
@@ -484,7 +491,7 @@
                            this.listData[existingIndex].器具条码 = this.hform.HBarCode;
                            this.listData[existingIndex].器具数量 = 1;
                            uni.showToast({
                                title: '扫描成功',
                                title: this.$t('MouldUpperBill.scanSuccess') == 'MouldUpperBill.scanSuccess' ? '扫描成功' : this.$t('MouldUpperBill.scanSuccess'),
                                icon: 'success',
                                duration: 1500
                            });
@@ -492,7 +499,7 @@
                        } else {
                            // 器具数量已为1,提示不允许重复扫描
                            uni.showToast({
                                title: '该模具已扫描,不允许重复扫描',
                                title: this.$t('MouldUpperBill.mouldAlreadyScanned') == 'MouldUpperBill.mouldAlreadyScanned' ? '该模具已扫描,不允许重复扫描' : this.$t('MouldUpperBill.mouldAlreadyScanned'),
                                icon: 'none',
                                duration: 1500
                            });
@@ -515,7 +522,7 @@
                        };
                        this.listData.push(newRow);
                        uni.showToast({
                            title: '扫描成功',
                            title: this.$t('MouldUpperBill.scanSuccess') == 'MouldUpperBill.scanSuccess' ? '扫描成功' : this.$t('MouldUpperBill.scanSuccess'),
                            icon: 'success',
                            duration: 1500
                        });
@@ -523,7 +530,7 @@
                    } else {
                        // 如果已存在,提示用户
                        uni.showToast({
                            title: '该模具已扫描',
                            title: this.$t('MouldUpperBill.mouldAlreadyScanned') == 'MouldUpperBill.mouldAlreadyScanned' ? '该模具已扫描' : this.$t('MouldUpperBill.mouldAlreadyScanned'),
                            icon: 'none',
                            duration: 1500
                        });
@@ -556,7 +563,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '接口请求失败' : this.$t('MouldUpperBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -596,7 +603,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '接口请求失败' : this.$t('MouldUpperBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -642,7 +649,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '接口请求失败' : this.$t('MouldUpperBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -718,7 +725,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '接口请求失败' : this.$t('MouldUpperBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -811,7 +818,7 @@
                            } else {
                                // 校验不通过,显示错误信息
                                uni.showToast({
                                    title: res.data.Message || '模具档案校验失败',
                                    title: res.data.Message || this.$t('MouldUpperBill.mouldCheckFailed') == 'MouldUpperBill.mouldCheckFailed' ? '模具档案校验失败' : this.$t('MouldUpperBill.mouldCheckFailed'),
                                    icon: 'none'
                                });
                                resolve(false);
@@ -820,7 +827,7 @@
                        fail: (res) => {
                            console.log('获取模具条码失败:', res);
                            uni.showToast({
                                title: '校验失败,请检查网络',
                                title: this.$t('MouldUpperBill.checkNetworkFailed') == 'MouldUpperBill.checkNetworkFailed' ? '校验失败,请检查网络' : this.$t('MouldUpperBill.checkNetworkFailed'),
                                icon: 'none'
                            });
                            resolve(false);
@@ -852,7 +859,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '接口请求失败' : this.$t('MouldUpperBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -862,7 +869,7 @@
                if (uni.getStorageSync('Organization') == "杭州斯莫尔磁性材料有限公司") {
                    if (!this.hform.HSourceName) {
                        uni.showToast({
                            title: '请先选择生产资源',
                            title: this.$t('MouldUpperBill.selectSourceFirst') == 'MouldUpperBill.selectSourceFirst' ? '请先选择生产资源' : this.$t('MouldUpperBill.selectSourceFirst'),
                            icon: 'none'
                        });
                        return;
@@ -870,7 +877,7 @@
                }
                if (this.listData.length === 0) {
                    uni.showToast({
                        title: '请至少添加一个模具',
                        title: this.$t('MouldUpperBill.addAtLeastOneMould') == 'MouldUpperBill.addAtLeastOneMould' ? '请至少添加一个模具' : this.$t('MouldUpperBill.addAtLeastOneMould'),
                        icon: 'none'
                    })
                }
@@ -885,9 +892,9 @@
                    if (zeroQtyItem) {
                        // 找到第一个数量异常项的位置(索引+1)
                        const index = this.listData.indexOf(zeroQtyItem) + 1;
                        const code = zeroQtyItem.器具编码 || '未知编码';
                        const code = zeroQtyItem.器具编码 || this.$t('MouldUpperBill.unknownCode') == 'MouldUpperBill.unknownCode' ? '未知编码' : this.$t('MouldUpperBill.unknownCode');
                        uni.showToast({
                            title: `第${index}行【${code}】器具数量为0,请检查`,
                            title: this.$t('MouldUpperBill.qtyZeroError') == 'MouldUpperBill.qtyZeroError' ? '第{index}行【{code}】器具数量为0,请检查' : this.$t('MouldUpperBill.qtyZeroError').replace('{index}', index).replace('{code}', code),
                            icon: 'none',
                            duration: 3000
                        });
@@ -896,22 +903,22 @@
                }
                if (!this.hform.HEmpName) {
                    uni.showToast({
                        title: '请选择操作员',
                        title: this.$t('MouldUpperBill.selectOperator') == 'MouldUpperBill.selectOperator' ? '请选择操作员' : this.$t('MouldUpperBill.selectOperator'),
                        icon: 'none'
                    })
                } else if (!this.hform.HMangerName) {
                    uni.showToast({
                        title: '请选择负责人',
                        title: this.$t('MouldUpperBill.selectManager') == 'MouldUpperBill.selectManager' ? '请选择负责人' : this.$t('MouldUpperBill.selectManager'),
                        icon: 'none'
                    })
                } else if (!this.hform.HDeptName) {
                    uni.showToast({
                        title: '请选择部门',
                        title: this.$t('MouldUpperBill.selectDept') == 'MouldUpperBill.selectDept' ? '请选择部门' : this.$t('MouldUpperBill.selectDept'),
                        icon: 'none'
                    })
                } else {
                    uni.showLoading({
                        title: '请稍候'
                        title: this.$t('MouldUpperBill.pleaseWait') == 'MouldUpperBill.pleaseWait' ? '请稍候' : this.$t('MouldUpperBill.pleaseWait')
                    })
                    // ========== 第一步:构建主表数据 ==========
                    const mainData = {
@@ -987,8 +994,8 @@
                                let prePage = pages[pages.length - 2];
                                uni.showModal({
                                    title: "提示",
                                    content: res.data.Message + "。是否继续新增?",
                                    title: this.$t('MouldUpperBill.confirmTitle') == 'MouldUpperBill.confirmTitle' ? '提示' : this.$t('MouldUpperBill.confirmTitle'),
                                    content: res.data.Message + (this.$t('MouldUpperBill.continueAdd') == 'MouldUpperBill.continueAdd' ? '。是否继续新增?' : this.$t('MouldUpperBill.continueAdd')),
                                    success: (res) => {
                                        if (res.confirm) {
                                            console.log("用户点击确定");
@@ -1012,7 +1019,7 @@
                        fail: (res) => {
                            console.log(res);
                            uni.showToast({
                                title: '接口请求失败',
                                title: this.$t('MouldUpperBill.requestFailed') == 'MouldUpperBill.requestFailed' ? '接口请求失败' : this.$t('MouldUpperBill.requestFailed'),
                                icon: 'none'
                            })
                        },
@@ -1021,8 +1028,8 @@
            },
            goBack() {
                uni.showModal({
                    title: '提示',
                    content: '确认要退出当前页面吗?',
                    title: this.$t('MouldUpperBill.confirmTitle') == 'MouldUpperBill.confirmTitle' ? '提示' : this.$t('MouldUpperBill.confirmTitle'),
                    content: this.$t('MouldUpperBill.exitConfirm') == 'MouldUpperBill.exitConfirm' ? '确认要退出当前页面吗?' : this.$t('MouldUpperBill.exitConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -1038,6 +1045,7 @@
</script>
<style lang="scss" scoped>
    /* 样式保持不变 */
    .form {
        width: 668rpx;
        margin: 20rpx auto;
@@ -1160,5 +1168,4 @@
            border-bottom: 3px solid #3a78ff;
        }
    }
</style>
pages/MJGL/xiamodan/MouldLowerBill.vue
@@ -2,104 +2,100 @@
    <view>
        <view class="form">
            <view class="form-item">
                <view class="title"><text>*</text>条形码:</view>
                <view class="title"><text>*</text>{{ $t("MouldLowerBill.HBarCode") == "MouldLowerBill.HBarCode" ? "条形码:" : $t("MouldLowerBill.HBarCode") }}</view>
                <view class="right" style="width: 380rpx;">
                    <input v-model="hform.HBarCode" placeholder="请扫描条码" @blur="getHBarCodeData(hform.HBarCode)" />
                    <input v-model="hform.HBarCode" :placeholder="$t('MouldLowerBill.HBarCode_Placeholder') == 'MouldLowerBill.HBarCode_Placeholder' ? '请扫描条码' : $t('MouldLowerBill.HBarCode_Placeholder')" @blur="getHBarCodeData(hform.HBarCode)" />
                </view>
                <uni-icons type="scan"
                    style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
                    size="20" @click="toScanCode"></uni-icons>
            </view>
            <view class="form-item">
                <view class="title">单据号:</view>
                <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "单据号:" : $t("Gy.HBillNo") }}</view>
                <view class="righton">
                    <input name="HBillNo" disabled v-model="hform.HBillNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">单据日期:</view>
                <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "单据日期:" : $t("Gy.HDate") }}</view>
                <view class="right">
                    <picker mode="date" v-model="hform.HDate" @change="HDateChange">
                        <input disabled v-model="hform.HDate" placeholder="请选择日期" />
                        <input disabled v-model="hform.HDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '请选择日期' : $t('Gy.HDate_Placeholder')" />
                    </picker>
                </view>
            </view>
            <view class="form-item">
                <view class="title"><text>*</text>部门:</view>
                <view class="title"><text>*</text>{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "部门:" : $t("Gy.HDeptName") }}</view>
                <view class="right">
                    <uni-combox :candidates="arrayHDeptName" placeholder="请选择部门" v-model="hform.HDeptName"
                        @input="HDeptNameChange"></uni-combox>
                    <uni-combox :candidates="arrayHDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '请选择部门' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title"><text>*</text>操作员:</view>
                <view class="title"><text>*</text>{{ $t("MouldLowerBill.HEmpName") == "MouldLowerBill.HEmpName" ? "操作员:" : $t("MouldLowerBill.HEmpName") }}</view>
                <view class="right">
                    <uni-combox :candidates="arrayHEmpName" placeholder="请选择操作员" v-model="hform.HEmpName"
                        @input="HEmpNameChange"></uni-combox>
                    <uni-combox :candidates="arrayHEmpName" :placeholder="$t('MouldLowerBill.HEmpName_Placeholder') == 'MouldLowerBill.HEmpName_Placeholder' ? '请选择操作员' : $t('MouldLowerBill.HEmpName_Placeholder')" v-model="hform.HEmpName" @input="HEmpNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title"><text>*</text>负责人:</view>
                <view class="title"><text>*</text>{{ $t("MouldLowerBill.HManagerName") == "MouldLowerBill.HManagerName" ? "负责人:" : $t("MouldLowerBill.HManagerName") }}</view>
                <view class="right">
                    <uni-combox :candidates="arrayHEmpName" placeholder="请选择负责人" v-model="hform.HMangerName"
                        @input="HManagerNameChange"></uni-combox>
                    <uni-combox :candidates="arrayHEmpName" :placeholder="$t('MouldLowerBill.HManagerName_Placeholder') == 'MouldLowerBill.HManagerName_Placeholder' ? '请选择负责人' : $t('MouldLowerBill.HManagerName_Placeholder')" v-model="hform.HMangerName" @input="HManagerNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">生产资源:</view>
                <view class="title">{{ $t("MouldLowerBill.HSourceName") == "MouldLowerBill.HSourceName" ? "生产资源:" : $t("MouldLowerBill.HSourceName") }}</view>
                <view class="right">
                    <uni-combox :candidates="arrayHSourceName" placeholder="请选择生产资源" v-model="hform.HSourceName"
                        @input="HSourceNameChange"></uni-combox>
                    <uni-combox :candidates="arrayHSourceName" :placeholder="$t('MouldLowerBill.HSourceName_Placeholder') == 'MouldLowerBill.HSourceName_Placeholder' ? '请选择生产资源' : $t('MouldLowerBill.HSourceName_Placeholder')" v-model="hform.HSourceName" @input="HSourceNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">模具编码:</view>
                <view class="title">{{ $t("MouldLowerBill.HMouldNumber") == "MouldLowerBill.HMouldNumber" ? "模具编码:" : $t("MouldLowerBill.HMouldNumber") }}</view>
                <view class="righton">
                    <input name="HMouldNumber" v-model="hform.HMouldNumber" disabled placeholder="请输入器具编码" />
                    <input name="HMouldNumber" v-model="hform.HMouldNumber" disabled :placeholder="$t('MouldLowerBill.HMouldNumber_Placeholder') == 'MouldLowerBill.HMouldNumber_Placeholder' ? '请输入器具编码' : $t('MouldLowerBill.HMouldNumber_Placeholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">模具名称:</view>
                <view class="title">{{ $t("MouldLowerBill.HMouldName") == "MouldLowerBill.HMouldName" ? "模具名称:" : $t("MouldLowerBill.HMouldName") }}</view>
                <view class="righton">
                    <input name="HMouldName" v-model="hform.HMouldName" disabled placeholder="请输入器具名称" />
                    <input name="HMouldName" v-model="hform.HMouldName" disabled :placeholder="$t('MouldLowerBill.HMouldName_Placeholder') == 'MouldLowerBill.HMouldName_Placeholder' ? '请输入器具名称' : $t('MouldLowerBill.HMouldName_Placeholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">模具型号:</view>
                <view class="title">{{ $t("MouldLowerBill.HMouldModel") == "MouldLowerBill.HMouldModel" ? "模具型号:" : $t("MouldLowerBill.HMouldModel") }}</view>
                <view class="righton">
                    <input name="HMouldModel" v-model="hform.HMouldModel" disabled placeholder="请输入器具型号" />
                    <input name="HMouldModel" v-model="hform.HMouldModel" disabled :placeholder="$t('MouldLowerBill.HMouldModel_Placeholder') == 'MouldLowerBill.HMouldModel_Placeholder' ? '请输入器具型号' : $t('MouldLowerBill.HMouldModel_Placeholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">数量:</view>
                <view class="title">{{ $t("Gy.HQty") == "Gy.HQty" ? "数量:" : $t("Gy.HQty") }}</view>
                <view class="righton">
                    <input name="HQty" v-model="hform.HQty" disabled placeholder="请输入数量" />
                    <input name="HQty" v-model="hform.HQty" disabled :placeholder="$t('Gy.HQty_Placeholder') == 'Gy.HQty_Placeholder' ? '请输入数量' : $t('Gy.HQty_Placeholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">下模时间:</view>
                <view class="title">{{ $t("MouldLowerBill.HScanDate") == "MouldLowerBill.HScanDate" ? "下模时间:" : $t("MouldLowerBill.HScanDate") }}</view>
                <view class="righton">
                    <input name="HScanDate" disabled v-model="hform.HScanDate" placeholder="请选择" />
                    <input name="HScanDate" disabled v-model="hform.HScanDate" :placeholder="$t('Gy.HDate_Placeholder') == 'Gy.HDate_Placeholder' ? '请选择' : $t('Gy.HDate_Placeholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">生产订单:</view>
                <view class="title">{{ $t("MouldLowerBill.HICMOBillNo") == "MouldLowerBill.HICMOBillNo" ? "生产订单:" : $t("MouldLowerBill.HICMOBillNo") }}</view>
                <view class="righton">
                    <input name="HICMOBillNo" disabled v-model="hform.HICMOBillNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">流转卡:</view>
                <view class="title">{{ $t("MouldLowerBill.HProcExchBillNo") == "MouldLowerBill.HProcExchBillNo" ? "流转卡:" : $t("MouldLowerBill.HProcExchBillNo") }}</view>
                <view class="righton">
                    <input disabled v-model="hform.HProcExchBillNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">备注:</view>
                <view class="title">{{ $t("Gy.HRemark") == "Gy.HRemark" ? "备注:" : $t("Gy.HRemark") }}</view>
                <view class="right">
                    <textarea name="HRemark" v-model="hform.HRemark" auto-height placeholder="请输入备注"></textarea>
                    <textarea name="HRemark" v-model="hform.HRemark" auto-height :placeholder="$t('Gy.HRemark_Placeholder') == 'Gy.HRemark_Placeholder' ? '请输入备注' : $t('Gy.HRemark_Placeholder')"></textarea>
                </view>
            </view>
@@ -107,39 +103,39 @@
            <view v-if="showmore">
                <view class="form-item">
                    <view class="title">制单人:</view>
                    <view class="title">{{ $t("Gy.HMaker") == "Gy.HMaker" ? "制单人:" : $t("Gy.HMaker") }}</view>
                    <view class="righton">
                        <input v-model="hform.HMaker" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">制单日期:</view>
                    <view class="title">{{ $t("Gy.HMakeDate") == "Gy.HMakeDate" ? "制单日期:" : $t("Gy.HMakeDate") }}</view>
                    <view class="righton">
                        <input v-if="hform.HMakeDate" v-model="hform.HMakeDate.substr(0,10)" disabled />
                        <input v-else v-model="hform.HMakeDate" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改人:</view>
                    <view class="title">{{ $t("Gy.HUpDater") == "Gy.HUpDater" ? "修改人:" : $t("Gy.HUpDater") }}</view>
                    <view class="righton">
                        <input v-model="hform.HUpDater" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改日期:</view>
                    <view class="title">{{ $t("Gy.HUpDateDate") == "Gy.HUpDateDate" ? "修改日期:" : $t("Gy.HUpDateDate") }}</view>
                    <view class="righton">
                        <input v-if="hform.HUpDateDate" v-model="hform.HUpDateDate.substr(0,10)" disabled />
                        <input v-else v-model="hform.HUpDateDate" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核人:</view>
                    <view class="title">{{ $t("Gy.HChecker") == "Gy.HChecker" ? "审核人:" : $t("Gy.HChecker") }}</view>
                    <view class="righton">
                        <input v-model="hform.HChecker" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核日期:</view>
                    <view class="title">{{ $t("Gy.HCheckDate") == "Gy.HCheckDate" ? "审核日期:" : $t("Gy.HCheckDate") }}</view>
                    <view class="righton">
                        <input v-if="hform.HCheckDate" v-model="hform.HCheckDate.substr(0,10)" disabled />
                        <input v-else v-model="hform.HCheckDate" disabled />
@@ -149,20 +145,20 @@
            </view>
            <view class="other">
                <view v-if="!showmore" @tap="showmore = true">
                    展开其他信息<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
                    {{ $t("MouldLowerBill.expandInfo") == "MouldLowerBill.expandInfo" ? "展开其他信息" : $t("MouldLowerBill.expandInfo") }}<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
                </view>
                <view v-if="showmore" @tap="showmore = false">
                    折叠其他信息<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
                    {{ $t("MouldLowerBill.collapseInfo") == "MouldLowerBill.collapseInfo" ? "折叠其他信息" : $t("MouldLowerBill.collapseInfo") }}<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
                </view>
            </view>
            <view class="tab_area"></view>
            <view class="bottom-btn">
                <button v-if="btnType == 1 && !isEdit" class="btn-a" size="mini" @tap="submit">提交</button>
                <button v-if="btnType != 1 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">修改</button>
                <button v-if="btnType != 1 && isEdit" class="btn-a" size="mini" @tap="submit">提交</button>
                <button class="btn-c" size="mini" @tap="goBack">退出</button>
                <button v-if="btnType == 1 && !isEdit" class="btn-a" size="mini" @tap="submit">{{ $t("MouldLowerBill.submit") == "MouldLowerBill.submit" ? "提交" : $t("MouldLowerBill.submit") }}</button>
                <button v-if="btnType != 1 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">{{ $t("MouldLowerBill.modify") == "MouldLowerBill.modify" ? "修改" : $t("MouldLowerBill.modify") }}</button>
                <button v-if="btnType != 1 && isEdit" class="btn-a" size="mini" @tap="submit">{{ $t("MouldLowerBill.submit") == "MouldLowerBill.submit" ? "提交" : $t("MouldLowerBill.submit") }}</button>
                <button class="btn-c" size="mini" @tap="goBack">{{ $t("MouldLowerBill.goBack") == "MouldLowerBill.goBack" ? "退出" : $t("MouldLowerBill.goBack") }}</button>
            </view>
        </view>
@@ -238,6 +234,9 @@
        },
        onLoad(e) {
uni.setNavigationBarTitle({
                title: this.$t("MouldLowerBill.title") == 'MouldLowerBill.title' ? '下模单' : this.$t("MouldLowerBill.title")
            })
            this.hform.HMaker = uni.getStorageSync('HUserName')
            console.log(e, this.userInfo)
            if (e.linterid) {
@@ -260,7 +259,7 @@
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval': '10', //超时时间
                    'timeoutText': '未识别到二维码' //超时提醒
                    'timeoutText': this.$t('MouldLowerBill.scanTimeoutText') == 'MouldLowerBill.scanTimeoutText' ? '未识别到二维码' : this.$t('MouldLowerBill.scanTimeoutText') //超时提醒
                }, (ret) => {
                    console.log(ret.resp_result)
                    this.hform.HBarCode = ret.resp_result
@@ -314,7 +313,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '接口请求失败' : this.$t('MouldLowerBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -345,7 +344,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '接口请求失败' : this.$t('MouldLowerBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -385,7 +384,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '接口请求失败' : this.$t('MouldLowerBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -432,7 +431,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '接口请求失败' : this.$t('MouldLowerBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -511,7 +510,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '接口请求失败' : this.$t('MouldLowerBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -541,7 +540,7 @@
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '接口请求失败' : this.$t('MouldLowerBill.requestFailed'),
                            icon: 'none'
                        })
                    },
@@ -550,32 +549,32 @@
            submit() {
                if (!this.hform.HBarCode) {
                    uni.showToast({
                        title: '请扫描模具条形码',
                        title: this.$t('MouldLowerBill.scanMouldBarCode') == 'MouldLowerBill.scanMouldBarCode' ? '请扫描模具条形码' : this.$t('MouldLowerBill.scanMouldBarCode'),
                        icon: 'none'
                    })
                } else if (!this.hform.HSourceName) {
                    uni.showToast({
                        title: '请选择生产资源',
                        title: this.$t('MouldLowerBill.selectSource') == 'MouldLowerBill.selectSource' ? '请选择生产资源' : this.$t('MouldLowerBill.selectSource'),
                        icon: 'none'
                    })
                } else if (!this.hform.HMouldName) {
                    uni.showToast({
                        title: '模具不能为空',
                        title: this.$t('MouldLowerBill.mouldRequired') == 'MouldLowerBill.mouldRequired' ? '模具不能为空' : this.$t('MouldLowerBill.mouldRequired'),
                        icon: 'none'
                    })
                } else if (!this.hform.HEmpName) {
                    uni.showToast({
                        title: '请选择操作员',
                        title: this.$t('MouldLowerBill.selectOperator') == 'MouldLowerBill.selectOperator' ? '请选择操作员' : this.$t('MouldLowerBill.selectOperator'),
                        icon: 'none'
                    })
                } else if (!this.hform.HMangerName) {
                    uni.showToast({
                        title: '请选择负责人',
                        title: this.$t('MouldLowerBill.selectManager') == 'MouldLowerBill.selectManager' ? '请选择负责人' : this.$t('MouldLowerBill.selectManager'),
                        icon: 'none'
                    })
                } else {
                    uni.showLoading({
                        title: '请稍候'
                        title: this.$t('MouldLowerBill.pleaseWait') == 'MouldLowerBill.pleaseWait' ? '请稍候' : this.$t('MouldLowerBill.pleaseWait')
                    })
                    var sMainStr = JSON.stringify(this.hform);
                    var sMainSub = sMainStr + ";" + uni.getStorageSync('HUserName') + ";" + this.btnType;
@@ -593,8 +592,8 @@
                            if (res.data.count == 1) {
                            
                                uni.showModal({
                                    title: "提示",
                                    content: res.data.Message + "。是否继续新增?",
                                    title: this.$t('MouldLowerBill.confirmTitle') == 'MouldLowerBill.confirmTitle' ? '提示' : this.$t('MouldLowerBill.confirmTitle'),
                                    content: res.data.Message + (this.$t('MouldLowerBill.continueAdd') == 'MouldLowerBill.continueAdd' ? '。是否继续新增?' : this.$t('MouldLowerBill.continueAdd')),
                                    success: (res) => {
                                        if (res.confirm) {
                                            console.log("用户点击确定");
@@ -620,7 +619,7 @@
                        fail: (res) => {
                            console.log(res);
                            uni.showToast({
                                title: '接口请求失败',
                                title: this.$t('MouldLowerBill.requestFailed') == 'MouldLowerBill.requestFailed' ? '接口请求失败' : this.$t('MouldLowerBill.requestFailed'),
                                icon: 'none'
                            })
                        },
@@ -629,8 +628,8 @@
            },
            goBack() {
                uni.showModal({
                    title: '提示',
                    content: '确认要退出当前页面吗?',
                    title: this.$t('MouldLowerBill.confirmTitle') == 'MouldLowerBill.confirmTitle' ? '提示' : this.$t('MouldLowerBill.confirmTitle'),
                    content: this.$t('MouldLowerBill.exitConfirm') == 'MouldLowerBill.exitConfirm' ? '确认要退出当前页面吗?' : this.$t('MouldLowerBill.exitConfirm'),
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
@@ -646,6 +645,7 @@
</script>
<style lang="scss" scoped>
    /* 样式保持不变 */
    .form {
        width: 668rpx;
        margin: 20rpx auto;
pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
@@ -2,150 +2,145 @@
    <view>
        <scroll-view scroll-y id="scroll-content" class="scroll-content" :style="{height: scrollContentHeight + 'px'}">
            <view class="form-item">
                <view class="title">条形码:</view>
                <view class="title">{{ $t("QC_TakeSampleCheckBill.HBarCode") == "QC_TakeSampleCheckBill.HBarCode" ? "条形码:" : $t("QC_TakeSampleCheckBill.HBarCode") }}</view>
                <view class="right">
                    <input type="text" name="HBarCode" id="HBarCode" v-model="HBarCode" @confirm="getCode(HBarCode)" />
                    <input type="text" name="HBarCode" id="HBarCode" v-model="HBarCode" @confirm="getCode(HBarCode)" :placeholder="$t('QC_TakeSampleCheckBill.HBarCode_Placeholder') == 'QC_TakeSampleCheckBill.HBarCode_Placeholder' ? '请扫描条码' : $t('QC_TakeSampleCheckBill.HBarCode_Placeholder')" />
                </view>
                <view class="right-icon" @click="toScanCode">
                    <uni-icons color="#fff" type="scan" size="24"></uni-icons>
                </view>
            </view>
            <view class="form-item">
                <view class="title required">工序:</view>
                <view class="title required">{{ $t("QC_TakeSampleCheckBill.HProcName") == "QC_TakeSampleCheckBill.HProcName" ? "工序:" : $t("QC_TakeSampleCheckBill.HProcName") }}</view>
                <view class="right">
                    <uni-combox :candidates="HProcNameArray" name="HProcName" id="HProcName" placeholder="请选择工序号"
                        v-model="hform.HProcName" @input="onHProcNameChangeHandler"></uni-combox>
                    <uni-combox :candidates="HProcNameArray" name="HProcName" id="HProcName" :placeholder="$t('QC_TakeSampleCheckBill.HProcName_Placeholder') == 'QC_TakeSampleCheckBill.HProcName_Placeholder' ? '请选择工序号' : $t('QC_TakeSampleCheckBill.HProcName_Placeholder')" v-model="hform.HProcName" @input="onHProcNameChangeHandler"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title required">取样数量:</view>
                <view class="title required">{{ $t("Gy.HQty") == "Gy.HQty" ? "取样数量:" : $t("Gy.HQty") }}</view>
                <view class="right">
                    <input type="number" name="HQty" id="HQty" v-model="hform.HQty" />
                    <input type="number" name="HQty" id="HQty" v-model="hform.HQty" :placeholder="$t('Gy.HQty_Placeholder') == 'Gy.HQty_Placeholder' ? '请输入数量' : $t('Gy.HQty_Placeholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">破坏性实验数量:</view>
                <view class="title">{{ $t("QC_TakeSampleCheckBill.HSampleDamageQty") == "QC_TakeSampleCheckBill.HSampleDamageQty" ? "破坏性实验数量:" : $t("QC_TakeSampleCheckBill.HSampleDamageQty") }}</view>
                <view class="right">
                    <input type="number" name="HSampleDamageQty" id="HSampleDamageQty"
                        v-model="hform.HSampleDamageQty" />
                        v-model="hform.HSampleDamageQty" :placeholder="$t('QC_TakeSampleCheckBill.HSampleDamageQty_Placeholder') == 'QC_TakeSampleCheckBill.HSampleDamageQty_Placeholder' ? '请输入数量' : $t('QC_TakeSampleCheckBill.HSampleDamageQty_Placeholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title required">送测类型:</view>
                <view class="title required">{{ $t("QC_TakeSampleCheckBill.TestType") == "QC_TakeSampleCheckBill.TestType" ? "送测类型:" : $t("QC_TakeSampleCheckBill.TestType") }}</view>
                <view class="right">
                    <uni-combox :candidates="TestTypeArray" v-model="hform.TestType"
                        @input="TestTypeChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">送测内容:</view>
                <view class="title">{{ $t("QC_TakeSampleCheckBill.HBadNote") == "QC_TakeSampleCheckBill.HBadNote" ? "送测内容:" : $t("QC_TakeSampleCheckBill.HBadNote") }}</view>
                <view class="right">
                    <input type="text" name="HBadNote" id="HBadNote" v-model="hform.HBadNote" />
                    <input type="text" name="HBadNote" id="HBadNote" v-model="hform.HBadNote" :placeholder="$t('QC_TakeSampleCheckBill.HBadNote_Placeholder') == 'QC_TakeSampleCheckBill.HBadNote_Placeholder' ? '请输入送测内容' : $t('QC_TakeSampleCheckBill.HBadNote_Placeholder')" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">部门:</view>
                <view class="title">{{ $t("Gy.HDeptName") == "Gy.HDeptName" ? "部门:" : $t("Gy.HDeptName") }}</view>
                <view class="right">
                    <uni-combox :candidates="HDeptNameArray" name="HDeptName" id="HDeptName" placeholder="请选择部门"
                        v-model="hform.HDeptName" @input="HDeptNameChangeHandler"></uni-combox>
                    <uni-combox :candidates="HDeptNameArray" name="HDeptName" id="HDeptName" :placeholder="$t('Gy.HDeptName_Placeholder') == 'Gy.HDeptName_Placeholder' ? '请选择部门' : $t('Gy.HDeptName_Placeholder')" v-model="hform.HDeptName" @input="HDeptNameChangeHandler"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title required">生产班次:</view>
                <view class="title required">{{ $t("QC_TakeSampleCheckBill.HShiftsName") == "QC_TakeSampleCheckBill.HShiftsName" ? "生产班次:" : $t("QC_TakeSampleCheckBill.HShiftsName") }}</view>
                <view class="right">
                    <uni-combox :candidates="HShiftsNameArray" name="HShiftsName" id="HShiftsName" placeholder="请选择生产班次"
                        v-model="hform.HShiftsName" @input="HShiftsNameChangeHandler"></uni-combox>
                    <uni-combox :candidates="HShiftsNameArray" name="HShiftsName" id="HShiftsName" :placeholder="$t('QC_TakeSampleCheckBill.HShiftsName_Placeholder') == 'QC_TakeSampleCheckBill.HShiftsName_Placeholder' ? '请选择生产班次' : $t('QC_TakeSampleCheckBill.HShiftsName_Placeholder')" v-model="hform.HShiftsName" @input="HShiftsNameChangeHandler"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title required">生产班组:</view>
                <view class="title required">{{ $t("QC_TakeSampleCheckBill.HGroupName") == "QC_TakeSampleCheckBill.HGroupName" ? "生产班组:" : $t("QC_TakeSampleCheckBill.HGroupName") }}</view>
                <view class="right">
                    <uni-combox :candidates="HGroupNameArray" name="HGroupName" id="HGroupName" placeholder="请选择生产班组"
                        v-model="hform.HGroupName" @input="HGroupNameChangeHandler"></uni-combox>
                    <uni-combox :candidates="HGroupNameArray" name="HGroupName" id="HGroupName" :placeholder="$t('QC_TakeSampleCheckBill.HGroupName_Placeholder') == 'QC_TakeSampleCheckBill.HGroupName_Placeholder' ? '请选择生产班组' : $t('QC_TakeSampleCheckBill.HGroupName_Placeholder')" v-model="hform.HGroupName" @input="HGroupNameChangeHandler"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">取样员:</view>
                <view class="title">{{ $t("QC_TakeSampleCheckBill.HCheckEmpName") == "QC_TakeSampleCheckBill.HCheckEmpName" ? "取样员:" : $t("QC_TakeSampleCheckBill.HCheckEmpName") }}</view>
                <view class="right">
                    <uni-combox :candidates="HCheckEmpNameArray" name="HCheckEmpName" id="HCheckEmpName"
                        placeholder="请选择取样员" v-model="hform.HCheckEmpName"
                        :placeholder="$t('QC_TakeSampleCheckBill.HCheckEmpName_Placeholder') == 'QC_TakeSampleCheckBill.HCheckEmpName_Placeholder' ? '请选择取样员' : $t('QC_TakeSampleCheckBill.HCheckEmpName_Placeholder')" v-model="hform.HCheckEmpName"
                        @input="HCheckEmpNameChangeHandler"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">生产资源:</view>
                <view class="title">{{ $t("QC_TakeSampleCheckBill.HSourceName") == "QC_TakeSampleCheckBill.HSourceName" ? "生产资源:" : $t("QC_TakeSampleCheckBill.HSourceName") }}</view>
                <view class="right">
                    <uni-combox :candidates="HSourceNameArray" name="HSourceName" id="HSourceName" placeholder="请选择生产资料"
                        v-model="hform.HSourceName" @input="HSourceNameChangeHandler"></uni-combox>
                    <uni-combox :candidates="HSourceNameArray" name="HSourceName" id="HSourceName" :placeholder="$t('QC_TakeSampleCheckBill.HSourceName_Placeholder') == 'QC_TakeSampleCheckBill.HSourceName_Placeholder' ? '请选择生产资料' : $t('QC_TakeSampleCheckBill.HSourceName_Placeholder')" v-model="hform.HSourceName" @input="HSourceNameChangeHandler"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">单据日期:</view>
                <view class="title">{{ $t("Gy.HDate") == "Gy.HDate" ? "单据日期:" : $t("Gy.HDate") }}</view>
                <view class="right disabled">
                    <input disabled type="text" name="HDate" id="HDate" v-model="hform.HDate" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">单据号:</view>
                <view class="title">{{ $t("Gy.HBillNo") == "Gy.HBillNo" ? "单据号:" : $t("Gy.HBillNo") }}</view>
                <view class="right disabled">
                    <input disabled type="text" name="HBillNo" id="HBillNo" v-model="hform.HBillNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">生产订单:</view>
                <view class="title">{{ $t("QC_TakeSampleCheckBill.HICMOBillNo") == "QC_TakeSampleCheckBill.HICMOBillNo" ? "生产订单:" : $t("QC_TakeSampleCheckBill.HICMOBillNo") }}</view>
                <view class="right disabled">
                    <input disabled type="text" v-model="hform.HICMOBillNo" name="HICMOBillNo" id="HICMOBillNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">流转卡:</view>
                <view class="title">{{ $t("QC_TakeSampleCheckBill.HProcExchBillNo") == "QC_TakeSampleCheckBill.HProcExchBillNo" ? "流转卡:" : $t("QC_TakeSampleCheckBill.HProcExchBillNo") }}</view>
                <view class="right disabled">
                    <input disabled type="text" v-model="hform.HProcExchBillNo" name="HProcExchBillNo"
                        id="HProcExchBillNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">物料代码:</view>
                <view class="title">{{ $t("Gy.HMaterCode") == "Gy.HMaterCode" ? "物料代码:" : $t("Gy.HMaterCode") }}</view>
                <view class="right disabled">
                    <input disabled type="text" v-model="hform.HMaterCode" name="HMaterCode" id="HMaterCode" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">物料名称:</view>
                <view class="title">{{ $t("Gy.HMaterName") == "Gy.HMaterName" ? "物料名称:" : $t("Gy.HMaterName") }}</view>
                <view class="right disabled">
                    <input disabled type="text" v-model="hform.HMaterName" name="HMaterName" id="HMaterName" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">规格型号:</view>
                <view class="title">{{ $t("Gy.HMaterSpec") == "Gy.HMaterSpec" ? "规格型号:" : $t("Gy.HMaterSpec") }}</view>
                <view class="right disabled">
                    <input disabled type="text" v-model="hform.HMaterSpec" name="HMaterSpec" id="HMaterSpec" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">计量单位:</view>
                <view class="title">{{ $t("Gy.HUnitName") == "Gy.HUnitName" ? "计量单位:" : $t("Gy.HUnitName") }}</view>
                <view class="right disabled">
                    <input disabled type="text" v-model="hform.HUnitName" name="HUnitName" id="HUnitName" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">流转卡批号:</view>
                <view class="title">{{ $t("QC_TakeSampleCheckBill.HBatchNo") == "QC_TakeSampleCheckBill.HBatchNo" ? "流转卡批号:" : $t("QC_TakeSampleCheckBill.HBatchNo") }}</view>
                <view class="right disabled">
                    <input disabled type="text" v-model="hform.HBatchNo" name="HBatchNo" id="HBatchNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">流转卡数量:</view>
                <view class="title">{{ $t("QC_TakeSampleCheckBill.HProcExchQty") == "QC_TakeSampleCheckBill.HProcExchQty" ? "流转卡数量:" : $t("QC_TakeSampleCheckBill.HProcExchQty") }}</view>
                <view class="right disabled">
                    <input disabled type="text" v-model="hform.HProcExchQty" name="HProcExchQty" id="HProcExchQty" />
                </view>
            </view>
        </scroll-view>
        <view class="bottom-btn" id="bottom-btn">
            <view><button class="btn-a" size="mini" @tap="submit">提交</button></view>
            <view><button class="btn-b" size="mini" @tap="onAddNewHandler">新增</button></view>
            <view><button class="btn-a" size="mini" @tap="submit">{{ $t("QC_TakeSampleCheckBill.submit") == "QC_TakeSampleCheckBill.submit" ? "提交" : $t("QC_TakeSampleCheckBill.submit") }}</button></view>
            <view><button class="btn-b" size="mini" @tap="onAddNewHandler">{{ $t("QC_TakeSampleCheckBill.addNew") == "QC_TakeSampleCheckBill.addNew" ? "新增" : $t("QC_TakeSampleCheckBill.addNew") }}</button></view>
            <view class="placeholder__view"></view>
            <view><button class="btn-c" size="mini" @tap="goBack">退出</button></view>
            <view><button class="btn-c" size="mini" @tap="goBack">{{ $t("QC_TakeSampleCheckBill.goBack") == "QC_TakeSampleCheckBill.goBack" ? "退出" : $t("QC_TakeSampleCheckBill.goBack") }}</button></view>
        </view>
    </view>
</template>
@@ -169,7 +164,6 @@
                },
                refSav: 'Add',
                showMask: true,
                TestTypeArray: ["首检", "巡检", "未检", "实验"],
                HBillType: '7521',
                HProcNameArray: [],
@@ -197,7 +191,7 @@
                    HProcID: 0,
                    HQty: '',
                    HSampleDamageQty: 0,
                    TestType: '首检',
                    TestType: 'first',
                    HBadNote: '',
                    HDeptName: getUserInfo().HDeptName,
                    HDeptID: getUserInfo().HDeptID,
@@ -247,6 +241,14 @@
                get() {
                    return this.pageMeta.bottomBtnTop - this.pageMeta.scrollContentTop
                }
            },
            TestTypeArray() {
                return [
                    this.$t('QC_TakeSampleCheckBill.testTypeFirst') == 'QC_TakeSampleCheckBill.testTypeFirst' ? '首检' : this.$t('QC_TakeSampleCheckBill.testTypeFirst'),
                    this.$t('QC_TakeSampleCheckBill.testTypeInspection') == 'QC_TakeSampleCheckBill.testTypeInspection' ? '巡检' : this.$t('QC_TakeSampleCheckBill.testTypeInspection'),
                    this.$t('QC_TakeSampleCheckBill.testTypeNot') == 'QC_TakeSampleCheckBill.testTypeNot' ? '未检' : this.$t('QC_TakeSampleCheckBill.testTypeNot'),
                    this.$t('QC_TakeSampleCheckBill.testTypeExperiment') == 'QC_TakeSampleCheckBill.testTypeExperiment' ? '实验' : this.$t('QC_TakeSampleCheckBill.testTypeExperiment')
                ];
            }
        },
        onReady() {
@@ -265,6 +267,9 @@
        },
        async onLoad(e) {
            uni.setNavigationBarTitle({
                title: this.$t("QC_TakeSampleCheckBill.title") == 'QC_TakeSampleCheckBill.title' ? '取样单' : this.$t("QC_TakeSampleCheckBill.title")
            })
            let {
                operationType
            } = e
@@ -284,7 +289,7 @@
            this.get_HWorkShift()
        },
        methods: {
            HDeptNameChangeHandler() {
            HDeptNameChangeHandler(e) {
                let index = this.HDeptNameArray.findIndex(item => item == e)
                if (index != -1) {
@@ -348,7 +353,7 @@
                        } else {
                            uni.showToast({
                                icon: 'none',
                                title: Message
                                title: msg
                            })
                        }
                    }
@@ -575,7 +580,7 @@
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval': '10', //超时时间
                    'timeoutText': '未识别到二维码' //超时提醒
                    'timeoutText': this.$t('QC_TakeSampleCheckBill.scanTimeoutText') == 'QC_TakeSampleCheckBill.scanTimeoutText' ? '未识别到二维码' : this.$t('QC_TakeSampleCheckBill.scanTimeoutText') //超时提醒
                }, (ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
@@ -592,7 +597,7 @@
                if (!HBarCode) {
                    return uni.showToast({
                        icon: 'none',
                        title: '条形码不能为空'
                        title: this.$t('QC_TakeSampleCheckBill.barCodeEmpty') == 'QC_TakeSampleCheckBill.barCodeEmpty' ? '条形码不能为空' : this.$t('QC_TakeSampleCheckBill.barCodeEmpty')
                    })
                }
                CommonUtils.doRequest2({
@@ -662,55 +667,55 @@
                if (this.hform.HProcID == 0) {
                    return uni.showToast({
                        icon: 'none',
                        title: '工序没有选择'
                        title: this.$t('QC_TakeSampleCheckBill.noProcess') == 'QC_TakeSampleCheckBill.noProcess' ? '工序没有选择' : this.$t('QC_TakeSampleCheckBill.noProcess')
                    })
                }
                if (this.hform.HQty == '') {
                    return uni.showToast({
                        icon: 'none',
                        title: '取样数量不能为空'
                        title: this.$t('QC_TakeSampleCheckBill.sampleQtyEmpty') == 'QC_TakeSampleCheckBill.sampleQtyEmpty' ? '取样数量不能为空' : this.$t('QC_TakeSampleCheckBill.sampleQtyEmpty')
                    })
                }
                if (this.hform.HSampleDamageQty == '') {
                    return uni.showToast({
                        icon: 'none',
                        title: '破坏性实验数量不能为空'
                        title: this.$t('QC_TakeSampleCheckBill.damageQtyEmpty') == 'QC_TakeSampleCheckBill.damageQtyEmpty' ? '破坏性实验数量不能为空' : this.$t('QC_TakeSampleCheckBill.damageQtyEmpty')
                    })
                }
                if (this.hform.HProcID == 0) {
                    return uni.showToast({
                        icon: 'none',
                        title: '工序没有选择'
                        title: this.$t('QC_TakeSampleCheckBill.noProcess') == 'QC_TakeSampleCheckBill.noProcess' ? '工序没有选择' : this.$t('QC_TakeSampleCheckBill.noProcess')
                    })
                }
                if (this.hform.HDeptID == 0) {
                    return uni.showToast({
                        icon: 'none',
                        title: '部门没有选择'
                        title: this.$t('QC_TakeSampleCheckBill.noDept') == 'QC_TakeSampleCheckBill.noDept' ? '部门没有选择' : this.$t('QC_TakeSampleCheckBill.noDept')
                    })
                }
                if (this.hform.HShiftsID == 0) {
                    return uni.showToast({
                        icon: 'none',
                        title: '班次未选择'
                        title: this.$t('QC_TakeSampleCheckBill.noShift') == 'QC_TakeSampleCheckBill.noShift' ? '班次未选择' : this.$t('QC_TakeSampleCheckBill.noShift')
                    })
                }
                if (this.hform.HGroupID == 0) {
                    return uni.showToast({
                        icon: 'none',
                        title: '生产班组未选择'
                        title: this.$t('QC_TakeSampleCheckBill.noGroup') == 'QC_TakeSampleCheckBill.noGroup' ? '生产班组未选择' : this.$t('QC_TakeSampleCheckBill.noGroup')
                    })
                }
                if (this.hform.HCheckEmp == 0) {
                    return uni.showToast({
                        icon: 'none',
                        title: '取样员未选择'
                        title: this.$t('QC_TakeSampleCheckBill.noChecker') == 'QC_TakeSampleCheckBill.noChecker' ? '取样员未选择' : this.$t('QC_TakeSampleCheckBill.noChecker')
                    })
                }
                if (this.hform.HSourceID == 0) {
                    return uni.showToast({
                        icon: 'none',
                        title: '生产资源未选择'
                        title: this.$t('QC_TakeSampleCheckBill.noSource') == 'QC_TakeSampleCheckBill.noSource' ? '生产资源未选择' : this.$t('QC_TakeSampleCheckBill.noSource')
                    })
                }
@@ -731,8 +736,8 @@
                        } = res.data
                        if (count == 1) {
                            uni.showModal({
                                title: '提示',
                                content: res.data.Message + '。是否继续新增?',
                                title: this.$t('QC_TakeSampleCheckBill.confirmTitle') == 'QC_TakeSampleCheckBill.confirmTitle' ? '提示' : this.$t('QC_TakeSampleCheckBill.confirmTitle'),
                                content: res.data.Message + (this.$t('QC_TakeSampleCheckBill.continueAdd') == 'QC_TakeSampleCheckBill.continueAdd' ? '。是否继续新增?' : this.$t('QC_TakeSampleCheckBill.continueAdd')),
                                success: (res) => {
                                    if (res.confirm) {
                                        console.log('用户点击确定');
@@ -769,6 +774,7 @@
</script>
<style lang="scss" scoped>
    /* 样式保持不变 */
    .scroll-content {
        box-sizing: border-box;
        padding: 20rpx;