chenhaozhe
2026-02-06 83e56c7bdc80df9e01e5d485b6c9052c18764bbd
解决 err 未定义问题
11个文件已修改
490 ■■■■ 已修改文件
manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/Kf_MoveStockBill_CusBar/Kf_MoveStockBill_CusBar_APP.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/Kf_MoveStockStepOutBill_CusBar/Kf_MoveStockStepOutBill_CusBar_APP.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/Kf_SellOutBill_CusBar/Kf_SellOutBill_CusBar_APP.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/SC_MouldRepairCheck/Sc_MouldRepairCheckBill.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/Sb_EqpMaintenance/Sb_EqpMaintenanceBill.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBill.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill.vue 407 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/Sc_MouldRepairWorkBill/Sc_MouldRepairWorkBill.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/i18n.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json
@@ -2,8 +2,8 @@
    "name" : "智云LMES",
    "appid" : "__UNI__B002F49",
    "description" : "",
    "versionName" : "2.0.77",
    "versionCode" : 277,
    "versionName" : "2.078",
    "versionCode" : 278,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
pages/Kf_MoveStockBill_CusBar/Kf_MoveStockBill_CusBar_APP.vue
@@ -1716,7 +1716,7 @@
                        this.getBarCodeJson(sBarCode, sBarCodePrefix)
                    } else {
                        CommonUtils.playSound(0)
                        console.log(err);
                        CommonUtils.showTips({
                            title: "温馨提示",
                            message: '接口请求失败: ' + Message
pages/Kf_MoveStockStepOutBill_CusBar/Kf_MoveStockStepOutBill_CusBar_APP.vue
@@ -1524,7 +1524,6 @@
                } catch (err) {
                    CommonUtils.playSound(0)
                    // this.refreshBarCodeState()
                    console.log(err);
                    uni.showToast({
                        title: '接口请求失败: ' + err,
                        icon: 'none'
@@ -1716,7 +1715,6 @@
                        this.getBarCodeJson(sBarCode, sBarCodePrefix)
                    } else {
                        CommonUtils.playSound(0)
                        console.log(err);
                        CommonUtils.showTips({
                            title: "温馨提示",
                            message: '接口请求失败: ' + Message
pages/Kf_SellOutBill_CusBar/Kf_SellOutBill_CusBar_APP.vue
@@ -1376,7 +1376,6 @@
                        this.getBarCodeJson(sBarCode, sBarCodePrefix)
                    } else {
                        CommonUtils.playSound(0)
                        console.log(err);
                        CommonUtils.showTips({
                            title: "温馨提示",
                            message: '接口请求失败: ' + Message
pages/MJGL/SC_MouldRepairCheck/Sc_MouldRepairCheckBill.vue
@@ -99,8 +99,8 @@
                    </zxz-uni-data-select>
                </view>
                <view class="form-item">
                    <view class="title required">验收项目:</view>
                    <zxz-uni-data-select required class="right" :localdata="HRepairCheckList" dataKey="维修验收项目"
                    <view class="title">验收项目:</view>
                    <zxz-uni-data-select class="right" :localdata="HRepairCheckList" dataKey="维修验收项目"
                        dataValue="hitemid" v-model="hform.HRepairCheckMainID">
                    </zxz-uni-data-select>
                </view>
@@ -342,12 +342,12 @@
                        state: false
                    }
                }
                if (this.hform.HRepairCheckMainID == 0) {
                    return {
                        Message: "验证项目不得为空!",
                        state: false
                    }
                }
                // if (this.hform.HRepairCheckMainID == 0) {
                //     return {
                //         Message: "验证项目不得为空!",
                //         state: false
                //     }
                // }
                if (this.hform.HManagerID == 0) {
                    return {
                        Message: "负责人不得为空!",
pages/MJGL/Sb_EqpMaintenance/Sb_EqpMaintenanceBill.vue
@@ -86,12 +86,6 @@
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">维修要求:</view>
                    <view class="right">
                        <textarea v-model="hform.HExplanation" placeholder="请输入维修要求" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">时间单位:</view>
                    <zxz-uni-data-select class="right" :localdata="[
                        {key: '小时', value: '小时'},
@@ -119,7 +113,7 @@
                    </zxz-uni-data-select>
                </view>
                <view class="form-item">
                    <view class="title required">维修项目:</view>
                    <view class="title">维修项目:</view>
                    <zxz-uni-data-select required class="right" :localdata="HRepairList" dataKey="维修项目"
                        dataValue="hitemid" v-model="hform.HRepairID" filterable>
                    </zxz-uni-data-select>
@@ -146,6 +140,12 @@
                    <view class="title">设备型号:</view>
                    <view class="righton">
                        <input v-model="hform.HBarModel" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">维修要求:</view>
                    <view class="right">
                        <textarea v-model="hform.HExplanation" placeholder="请输入维修要求" />
                    </view>
                </view>
            </view>
@@ -431,12 +431,12 @@
                        state: false
                    }
                }
                if (this.hform.HRepairCheckMainID == 0) {
                    return {
                        Message: "维修项目不得为空!",
                        state: false
                    }
                }
                // if (this.hform.HRepairCheckMainID == 0) {
                //     return {
                //         Message: "维修项目不得为空!",
                //         state: false
                //     }
                // }
                if (this.hform.HManagerID == 0) {
                    return {
                        Message: "负责人不得为空!",
@@ -990,7 +990,7 @@
                        this.hform.HBarModel = data1.设备型号
                        this.hform.HBarSpec = data1.设备规格
                        this.hform.HExplanation = data1.故障原因描述
                        this.hform.HRepairContent = data1.故障原因描述
                        // this.hform.HRepairContent = data1.故障原因描述
                    
                        this.getSendWorkBill(HSendWorkID)
                    } else {
pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill.vue
@@ -89,7 +89,7 @@
                    </zxz-uni-data-select>
                </view>
                <view class="form-item">
                    <view class="title required">验收项目:</view>
                    <view class="title">验收项目:</view>
                    <zxz-uni-data-select required class="right" :localdata="HRepairCheckList" dataKey="维修验收项目"
                        dataValue="hitemid" v-model="hform.HRepairCheckID">
                    </zxz-uni-data-select>
@@ -569,7 +569,7 @@
                try {
                    let sWhere=  " where 1=1 "
                    if(this.hform.HDeptName && uni.getStorageSync("Organization") == '宁波市华舟包装有限公司'){
                        sWhere += ` and HDeptName = '${this.hform.HDeptName}'`
                        // sWhere += ` and HDeptName = '${this.hform.HDeptName}'`
                    }
                    let res = await CommonUtils.doRequest2Async({
                        url: '/PublicPageMethod/UserList',
@@ -722,6 +722,7 @@
                    let {data, count, Message} = res.data
                    if(count == 1) {
                        this.hform.HRepairCheckID = this.HRepairCheckList.find(item => data[0]["表体维修项目"] == item["维修验收项目"])?.hitemid
                        this.HDetailList[0].HRepairCheckContent = data[0].维修内容
                    }else {
                       CommonUtils.showTips({
                           title: "温馨提示",
@@ -760,7 +761,7 @@
                        this.hform.HBarName = data[0].设备名称
                        this.hform.HBarModel = data[0].设备规格
                        this.hform.HBarSpec = data[0].设备规格
                        this.HDetailList[0].HRepairCheckContent = data[0].故障描述
                        this.hform.HMainSourceBillNo = data[0]["设备维修记录单"];
                        this.hform.HMainSourceInterID = data[0]["HEquipRepairCheckBillInterID"];
                        this.hform.HMainSourceEntryID = data[0]["HEquipRepairCheckBillEntryID"];
pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBill.vue
@@ -113,8 +113,8 @@
                    </zxz-uni-data-select>
                </view>
                <view class="form-item">
                    <view class="title required">维修项目:</view>
                    <zxz-uni-data-select required class="right" :localdata="HRepairList" dataKey="维修项目"
                    <view class="title">维修项目:</view>
                    <zxz-uni-data-select class="right" :localdata="HRepairList" dataKey="维修项目"
                        dataValue="hitemid" v-model="hform.HRepairID">
                    </zxz-uni-data-select>
                </view>
@@ -542,12 +542,6 @@
                if (this.hform.HEmpID == 0) {
                    return {
                        Message: "维修人不得为空!",
                        state: false
                    }
                }
                if (this.hform.HRepairID == 0) {
                    return {
                        Message: "维修项目不得为空!",
                        state: false
                    }
                }
pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill.vue
@@ -13,7 +13,7 @@
                overflow: 'auto'
            }">
                <!-- 原内容保持不变 -->
                <!-- 原内容保持不变 -->
                <view class="form-item">
                    <view class="title">器具条码:</view>
                    <view :class="enableEdit?'right':'righton'">
@@ -40,45 +40,45 @@
                        </uni-datetime-picker>
                    </view>
                </view>
                <!-- 新增源单类型和故障登记单选择 -->
                <!-- 新增源单类型和故障登记单选择 -->
                <view class="form-item">
                    <view class="title">源单类型</view>
                    <view class="right" v-show="showHMainSourceBillType">
                        <picker :range="arrayHMainSourceBillType" @change="HMainSourceBillTypeChange">
                    <view class="title">源单类型</view>
                    <view class="right" v-show="showHMainSourceBillType">
                        <picker :range="arrayHMainSourceBillType" @change="HMainSourceBillTypeChange">
                            <input disabled name="HMainSourceBillType" v-model="HMainSourceBillType"
                                placeholder="请选择源单类型" />
                            <view class="picker-overlay"></view>
                        </picker>
                            <input disabled name="HMainSourceBillType" v-model="HMainSourceBillType"
                                placeholder="请选择源单类型" />
                            <view class="picker-overlay"></view>
                        </picker>
                    </view>
                    <view class="righton" v-show="!showHMainSourceBillType">
                        <input name="HMainSourceBillType" disabled v-model="HMainSourceBillType"
                            placeholder="请选择源单类型" />
                </view>
                </view>
                <view class="form-item">
                    <view class="title required">故障登记单</view>
                    <view class="right" v-show="hform.HMainSourceBillType != 1">
                        <input type="text" name="HBarCode" v-model="hform.HMainSourceBillNo" />
                    </view>
                    <view class="icon-wrapper" v-show="hform.HMainSourceBillType != 1"
                        :disabled="hform.HMainSourceBillType == -1">
                        <uni-icons type="search" size="20" @click="showBillList"></uni-icons>
                </view>
                    <view class="righton" v-show="hform.HMainSourceBillType == 1">
                        <input type="text" disabled name="HBarCode" v-model="hform.HMainSourceBillNo" />
                </view>
                </view>
                <view class="form-item">
                    <view class="title">单据号:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HBillNo" />
                    <view class="righton" v-show="!showHMainSourceBillType">
                        <input name="HMainSourceBillType" disabled v-model="HMainSourceBillType"
                            placeholder="请选择源单类型" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据日期:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HDate" />
                    <view class="title required">故障登记单</view>
                    <view class="right" v-show="hform.HMainSourceBillType != 1">
                        <input type="text" name="HBarCode" v-model="hform.HMainSourceBillNo" />
                    </view>
                    <view class="icon-wrapper" v-show="hform.HMainSourceBillType != 1"
                        :disabled="hform.HMainSourceBillType == -1">
                        <uni-icons type="search" size="20" @click="showBillList"></uni-icons>
                    </view>
                    <view class="righton" v-show="hform.HMainSourceBillType == 1">
                        <input type="text" disabled name="HBarCode" v-model="hform.HMainSourceBillNo" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据号:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HBillNo" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">单据日期:</view>
                    <view class="righton">
                        <input disabled v-model="hform.HDate" />
                    </view>
                </view>
@@ -97,11 +97,17 @@
                    </zxz-uni-data-select>
                </view>
                <view class="form-item">
                    <view class="title required">维修项目:</view>
                    <zxz-uni-data-select required class="right" :localdata="HRepairList" dataKey="维修项目"
                        dataValue="hitemid" v-model="hform.HRepairID">
                    <view class="title">维修项目:</view>
                    <zxz-uni-data-select class="right" :localdata="HRepairList" dataKey="维修项目" dataValue="hitemid"
                        v-model="hform.HRepairID">
                    </zxz-uni-data-select>
                </view>
                <view class="form-item">
                    <view class="title">维修内容:</view>
                    <view class="right">
                        <textarea v-model="hform.HRepairContent" placeholder="请输入维修内容" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title required">主管:</view>
@@ -137,27 +143,27 @@
                overflow: 'auto'
            }">
                <view class="form-item">
                    <view class="title">时间单位:</view>
                    <zxz-uni-data-select class="right" :localdata="[
                    <view class="title">时间单位:</view>
                    <zxz-uni-data-select class="right" :localdata="[
                                   {key: '小时', value: '小时'},
                                   {key: '天', value: '天'},
                                   {key: '月', value: '月'},
                               ]" dataKey="key" dataValue="value" v-model="hform.HCycleUnit">
                    </zxz-uni-data-select>
                </view>
                <view class="form-item">
                    <view class="title">计划维修工时:</view>
                    <view class="right">
                        <input type="number" v-model="hform.HPlanTimes" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">实际维修工时:</view>
                    <view class="right">
                        <input type="number" v-model="hform.HTimes" />
                    </view>
                </view>
                <view class="form-item">
                    </zxz-uni-data-select>
                </view>
                <view class="form-item">
                    <view class="title">计划维修工时:</view>
                    <view class="right">
                        <input type="number" v-model="hform.HPlanTimes" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">实际维修工时:</view>
                    <view class="right">
                        <input type="number" v-model="hform.HTimes" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">供应商:</view>
                    <view class="right">
                        <input v-model="hform.HSupIDName" placeholder="" />
@@ -193,12 +199,6 @@
                    <view class="title">维修费用:</view>
                    <view class="right">
                        <input type="number" v-model="HDetailList[0].HMoney" placeholder="" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">维修内容:</view>
                    <view class="right">
                        <textarea v-model="hform.HRepairContent" placeholder="请输入维修内容" />
                    </view>
                </view>
                <view class="form-item">
@@ -270,7 +270,7 @@
                    </view>
                </view>
            </view>
        </template>
        </template>
        <!-- 操作按钮 -->
        <view class="buttons" id="buttons">
@@ -280,10 +280,10 @@
            <button class="btn-c" size="mini" @tap="goBack">退出</button>
        </view>
        <!-- 新增弹窗组件 -->
        <BillListPopupMouldConkBookBillVue ref="billList" :HBillType="hform.HBillType"
            :HSourceBillType="hform.HMainSourceBillType" :HStockOrgID="hform.HStockOrgID">
        </BillListPopupMouldConkBookBillVue>
        <!-- 新增弹窗组件 -->
        <BillListPopupMouldConkBookBillVue ref="billList" :HBillType="hform.HBillType"
            :HSourceBillType="hform.HMainSourceBillType" :HStockOrgID="hform.HStockOrgID">
        </BillListPopupMouldConkBookBillVue>
    </view>
</template>
@@ -298,22 +298,22 @@
    import {
        getUserInfo
    } from "../../../utils/auth";
    // 新增引入组件
    import BillListPopupMouldConkBookBillVue from '../../../components/BillListPopup/BillListPopupMouldConkBookBill.vue';
    // 新增引入组件
    import BillListPopupMouldConkBookBillVue from '../../../components/BillListPopup/BillListPopupMouldConkBookBill.vue';
    export default {
        // 器具维修派工单
        name: 'Sc_MouldRepairSendWorkBill',
        components: {
            BillListPopupMouldConkBookBillVue,
        },
        components: {
            BillListPopupMouldConkBookBillVue,
        },
        data() {
            return {
                tabs: 0,
                HMainSourceBillType: '模具故障登记单', // 新增
                showHMainSourceBillType: true, // 新增
                arrayHMainSourceBillType: ['模具故障登记单'], // 新增
                arrayHMainSourceBillTypeID: ['3815'], // 新增
                HMainSourceBillType: '模具故障登记单', // 新增
                showHMainSourceBillType: true, // 新增
                arrayHMainSourceBillType: ['模具故障登记单'], // 新增
                arrayHMainSourceBillTypeID: ['3815'], // 新增
                btnTop: 0,
                tabsBottom: 0,
                HModName: "Sc_MouldRepairSendWorkBill",
@@ -328,7 +328,7 @@
                HRepairList: [],
                hform: {
                    "HBillType":"3843",
                    "HBillType": "3843",
                    "HBarCode": "",
                    "HBillNo": "",
                    "HInterID": "0",
@@ -348,13 +348,13 @@
                    "HManagerName": getUserInfo().HSecManager,
                    "HManagerID": getUserInfo().HSecManagerID,
                    "HRepairBeginDate": dayjs(new Date()).format('YYYY-MM-DD'),
                    "HMainSourceBillType": 3815, // 新增:默认模具故障登记单
                    "HMainSourceInterID": "0", // 新增
                    "HMainSourceEntryID": "0", // 新增
                    "HMainSourceBillType": 3815, // 新增:默认模具故障登记单
                    "HMainSourceInterID": "0", // 新增
                    "HMainSourceEntryID": "0", // 新增
                    "HPlanTimes": "0",
                    "HTimes": "0",
                    "HRepairEndDate": dayjs(new Date()).format('YYYY-MM-DD'),
                    "HMainSourceBillNo": "", // 新增
                    "HMainSourceBillNo": "", // 新增
                    "HSupIDName": "",
                    "HSupID": "0",
                    "HRepairType": "内部维修",
@@ -379,7 +379,7 @@
                    "HMouldName": "",
                    "HMouldSpec": "",
                    "HMouldModel": "",
                    "HStockOrgID": uni.getStorageSync("OrganizationID") || "0" // 新增
                    "HStockOrgID": uni.getStorageSync("OrganizationID") || "0" // 新增
                },
                HDetailList: [{ // 后端接口提交需要 明细信息
                    "子维修项目": "",
@@ -402,42 +402,42 @@
            },
        },
        methods: {
            // 新增:选择源单类型
            HMainSourceBillTypeChange(e) {
                if (e.detail.value == -1 || e.detail.value == NaN) {
                    this.HMainSourceBillType = '手工录入'
                    this.hform.HMainSourceBillType = -1
                    return
                }
                console.log(e.detail.value)
                console.log(e)
                this.HMainSourceBillType = this.arrayHMainSourceBillType[e.detail.value]
                this.hform.HMainSourceBillType = this.arrayHMainSourceBillTypeID[e.detail.value]
            // 新增:选择源单类型
            HMainSourceBillTypeChange(e) {
                if (e.detail.value == -1 || e.detail.value == NaN) {
                    this.HMainSourceBillType = '手工录入'
                    this.hform.HMainSourceBillType = -1
                    return
                }
                console.log(e.detail.value)
                console.log(e)
                this.HMainSourceBillType = this.arrayHMainSourceBillType[e.detail.value]
                this.hform.HMainSourceBillType = this.arrayHMainSourceBillTypeID[e.detail.value]
                // 缓存当前页面选择
                const pages = getCurrentPages()
                const currentPage = pages[pages.length - 1]
                uni.setStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`, {
                    HSourceBillTypeName: this.HMainSourceBillType,
                    HSourceBillType: this.hform.HMainSourceBillType
                })
            },
                // 缓存当前页面选择
                const pages = getCurrentPages()
                const currentPage = pages[pages.length - 1]
                uni.setStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`, {
                    HSourceBillTypeName: this.HMainSourceBillType,
                    HSourceBillType: this.hform.HMainSourceBillType
                })
            },
            // 新增:显示单据列表弹窗
            showBillList() {
                this.$refs.billList.showPopup()
            },
            // 新增:显示单据列表弹窗
            showBillList() {
                this.$refs.billList.showPopup()
            },
            // 新增:读取缓存
            loadCache() {
                const pages = getCurrentPages()
                const currentPage = pages[pages.length - 1]
                let HBillTypeCache = uni.getStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`)
                if (HBillTypeCache) {
                    this.HMainSourceBillType = HBillTypeCache.HSourceBillTypeName
                    this.hform.HMainSourceBillType = HBillTypeCache.HSourceBillType
                }
            },
            // 新增:读取缓存
            loadCache() {
                const pages = getCurrentPages()
                const currentPage = pages[pages.length - 1]
                let HBillTypeCache = uni.getStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`)
                if (HBillTypeCache) {
                    this.HMainSourceBillType = HBillTypeCache.HSourceBillTypeName
                    this.hform.HMainSourceBillType = HBillTypeCache.HSourceBillType
                }
            },
            // 维修项目
            async getRepairList() {
@@ -476,13 +476,13 @@
            },
            // 提交数据有效性校验
            ValidCheck() {
                // 新增:检查故障登记单
                if (this.hform.HMainSourceBillType != 1 && !this.hform.HMainSourceBillNo) {
                    return {
                        Message: "故障登记单不得为空!",
                        state: false
                    }
                }
                // 新增:检查故障登记单
                if (this.hform.HMainSourceBillType != 1 && !this.hform.HMainSourceBillNo) {
                    return {
                        Message: "故障登记单不得为空!",
                        state: false
                    }
                }
                if (this.hform.HMouldID == 0) {
                    return {
@@ -498,19 +498,19 @@
                }
                if (this.hform.HEmpID == 0) {
                    return {
                        Message: "维修人不得为空!",
                        Message: "维修人不得为空!",
                        state: false
                    }
                }
                if (this.hform.HRepairID == 0) {
                    return {
                        Message: "维修项目不得为空!",
                        state: false
                    }
                }
                // if (this.hform.HRepairID == 0) {
                //                 return {
                //         Message: "维修项目不得为空!",
                //                     state: false
                //                 }
                //             }
                if (this.hform.HManagerID == 0) {
                    return {
                        Message: "主管不得为空!",
                        Message: "主管不得为空!",
                        state: false
                    }
                }
@@ -583,8 +583,8 @@
            // 获取职员数据
            async getEmpList() {
                try {
                    let sWhere=  " where 1=1 "
                    if(this.hform.HDeptName && uni.getStorageSync("Organization") == '宁波市华舟包装有限公司'){
                    let sWhere = " where 1=1 "
                    if (this.hform.HDeptName && uni.getStorageSync("Organization") == '宁波市华舟包装有限公司') {
                        sWhere += ` and HDeptName = '${this.hform.HDeptName}'`
                    }
                    let res = await CommonUtils.doRequest2Async({
@@ -798,7 +798,7 @@
                    this.HDetailList[0].HRepairID = this.hform.HRepairID
                    let sSubStr = JSON.stringify(this.HDetailList);
                    let oprType = this.operationType
                    if(oprType == 4) {
                    if (oprType == 4) {
                        // 下推的操作类型也视为新增
                        oprType = 1
                    }
@@ -828,7 +828,7 @@
                                if (res.confirm) {
                                    console.log('用户点击确定');
                                    uni.redirectTo({
                                        // url: './Sc_MouldRepairSendWorkBill?operationType=1'
                                        // url: './Sc_MouldRepairSendWorkBill?operationType=1'
                                    })
                                } else if (res.cancel) {
                                    console.log('用户点击取消');
@@ -854,18 +854,23 @@
            },
            async getSourceBillInfo(HSourceBillType, HInterID, HBillNo) {
                // 下推单据类型为设备故障登记单
                if(HSourceBillType == 3815) {
                if (HSourceBillType == 3815) {
                    let res = await CommonUtils.doRequest2Async({
                        url: "/Sc_MouldConkBookBill/Sb_MouldConkBookBillListCheckDetai",
                        data: {
                            HID: HInterID
                        }
                    })
                    let {data,code, count, Message} = res.data
                    console.log('data: ',data);
                    if(code == 1) {
                        console.log('data: ',data.h_v_Sc_MouldConkBookBillList_Edit);
                    let {
                        data,
                        code,
                        count,
                        Message
                    } = res.data
                    console.log('data: ', data);
                    if (code == 1) {
                        console.log('data: ', data.h_v_Sc_MouldConkBookBillList_Edit);
                        let data1 = data.h_v_Sc_MouldConkBookBillList_Edit[0]
                        this.hform.HMainSourceBillType = HSourceBillType
                        this.HMainSourceBillType = '器具故障登记单'
@@ -878,12 +883,10 @@
                        this.hform.HMouldName = data1.产品模具
                        this.hform.HMouldModel = data1.产品模具型号
                        this.hform.HMouldSpec = data1.产品模具规格
                        this.hform.HRepairContent = data1.故障原因
                        this.enableEdit = false
                        this.showHMainSourceBillType = false
                    }
                    else {
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
                            message: `获取源单失败: ${Message}`
@@ -910,7 +913,11 @@
            } else if (this.operationType == 4) {
                // 下推
                let {HSourceBillType, HInterID, HBillNo} = e
                let {
                    HSourceBillType,
                    HInterID,
                    HBillNo
                } = e
                // 下推
                // this.enableEdit = false;
                // this.enableSourceBillEdit = false;
@@ -924,28 +931,28 @@
            this.getEmpList()
            this.getCheckProjList()
            this.getRepairList()
            this.loadCache() // 新增:加载缓存
            this.loadCache() // 新增:加载缓存
            // 新增:监听单据选择完成事件
            uni.$on('BillSelectComplete', (e) => {
                console.log("接收到的消息: ", e)
                this.hform.HMainSourceInterID = e.HInterID
                this.hform.HMainSourceBillNo = e.HBillNo
                this.hform.HMainSourceEntryID = e.HEntryID
                this.hform.HMouldID = e.HMouldID
                this.hform.HMouldName = e.HMouldName
                this.hform.HMouldSpec = e.HMouldSpec
                this.hform.HMouldModel = e.HMouldModel
                // 如果选择单据时带了条码,也设置条码
                if (e.HBarCode) {
                    this.hform.HBarCode = e.HBarCode
                }
                this.$refs.billList.exit()
            })
            // 新增:监听单据选择完成事件
            uni.$on('BillSelectComplete', (e) => {
                console.log("接收到的消息: ", e)
                this.hform.HMainSourceInterID = e.HInterID
                this.hform.HMainSourceBillNo = e.HBillNo
                this.hform.HMainSourceEntryID = e.HEntryID
                this.hform.HMouldID = e.HMouldID
                this.hform.HMouldName = e.HMouldName
                this.hform.HMouldSpec = e.HMouldSpec
                this.hform.HMouldModel = e.HMouldModel
                // 如果选择单据时带了条码,也设置条码
                if (e.HBarCode) {
                    this.hform.HBarCode = e.HBarCode
                }
                this.$refs.billList.exit()
            })
        },
        onUnload() {
            uni.$off('BillSelectComplete') // 新增:移除事件监听
        },
        onUnload() {
            uni.$off('BillSelectComplete') // 新增:移除事件监听
        },
        onReady() {
            const query = uni.createSelectorQuery().in(this)
            query.select("#buttons")
@@ -961,47 +968,47 @@
</script>
<style lang="scss" scoped>
    @import "@/pages/MJGL/style/MJBillStyle.scss";
    @import "@/pages/MJGL/style/MJBillStyle.scss";
    .picker-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    .picker-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    .icon-wrapper {
        background-color: #3A78FF;
        width: 52rpx;
        height: 52rpx;
        border-radius: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    .icon-wrapper {
        background-color: #3A78FF;
        width: 52rpx;
        height: 52rpx;
        border-radius: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        .uni-icons {
            color: #fff !important;
        }
    }
        .uni-icons {
            color: #fff !important;
        }
    }
    .icon-wrapper[disabled] {
        background-color: rgba(228, 228, 228, 1);
        pointer-events: none;
        touch-action: none;
    }
    .icon-wrapper[disabled] {
        background-color: rgba(228, 228, 228, 1);
        pointer-events: none;
        touch-action: none;
    }
    .required {
        position: relative;
    }
    .required {
        position: relative;
    }
    .required::after {
        content: "*";
        position: relative;
        color: red;
        left: 0;
        top: 0;
        font-size: inherit;
    }
    .required::after {
        content: "*";
        position: relative;
        color: red;
        left: 0;
        top: 0;
        font-size: inherit;
    }
</style>
pages/MJGL/Sc_MouldRepairWorkBill/Sc_MouldRepairWorkBill.vue
@@ -134,7 +134,7 @@
                    </view>
                </view>
                <view class="form-item">
                    <view class="title required">维修项目</view>
                    <view class="title">维修项目</view>
                    <view class="right">
                        <uni-combox :candidates="RepairNameNameList" placeholder="请选择维修项目" v-model="hform.HRepairName"
                            @input="RepairNameChange"></uni-combox>
@@ -1089,12 +1089,13 @@
                } else if (!this.hform.HDeptName) {
                    message = '未填写部门'
                } else if (!this.hform.HEmpName) {
                    message = '未填写维修人人'
                    message = '未填写维修人'
                } else if (!this.hform.HManagerName) {
                    message = '未填写负责人'
                } else if (!this.hform.HRepairName) {
                    message = '未填写维修项目'
                }
                }
                // else if (!this.hform.HRepairName) {
                //     message = '未填写维修项目'
                // }
                if (!message) {
                    return true
utils/i18n.js
@@ -46,11 +46,11 @@
}
export function addMissingKeyToMap(key, HFieldCode) {
    // 防止页面初次加载时,使用本地翻译模块导致的 假缺失现象
    if (enableCollectMissingKey) {
        if (!MissingKeysMap[key]) {
            MissingKeysMap[key] = new Set()
        }
        // 防止页面初次加载时,使用本地翻译模块导致的 假缺失现象
        MissingKeysMap[key].add(HFieldCode)
        if (!clockID) {
            clockID = setTimeout(() => {