chenhaozhe
2026-02-06 83e56c7bdc80df9e01e5d485b6c9052c18764bbd
解决 err 未定义问题
11个文件已修改
128 ■■■■ 已修改文件
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 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/Sc_MouldRepairWorkBill/Sc_MouldRepairWorkBill.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | 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
@@ -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>
@@ -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">
@@ -502,12 +502,12 @@
                        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: "主管不得为空!",
@@ -862,7 +862,12 @@
                        }
                    })
                    
                    let {data,code, count, Message} = res.data
                    let {
                        data,
                        code,
                        count,
                        Message
                    } = res.data
                    console.log('data: ',data);
                    if(code == 1) {
                        console.log('data: ',data.h_v_Sc_MouldConkBookBillList_Edit);
@@ -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;
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(() => {