1
wangyi
2026-03-12 f5bcbefaf9bbaa1d4d2ff3b8805d751c1ed3939a
pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBill.vue
@@ -36,7 +36,7 @@
                <view class="form-item">
                    <view class="title">维修内容:</view>
                    <view class="right">
                        <textarea v-model="hform.HRepairContent" placeholder="请输入验证内容" />
                        <textarea v-model="hform.HRepairContent" placeholder="请输入维修内容" />
                    </view>
                </view>
            <!-- 源单类型 -->
@@ -57,7 +57,7 @@
            
            <!-- 源单单号 -->
            <view class="form-item">
                <view class="title required">源单单号:</view>
                <view class="title">源单单号:</view>
                <view :class="enableSourceBillEdit?'right':'righton'">
                    <input v-model="hform.HMainSourceBillNo" :disabled="!enableSourceBillEdit"
                           @confirm="GetMessageByHMainSourceBillNo(hform.HMainSourceBillNo)" 
@@ -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>
@@ -306,7 +306,7 @@
                    HDeleteMan: '',
                    HDeleteDate: '',
                    // 新增的源单相关字段
                    HMainSourceBillType: '设备维修登记单', // 默认为设备维修登记单
                    HMainSourceBillType: '-1', // 默认为设备维修登记单
                    HMainSourceBillNo: '',
                    HMainSourceInterID: 0,
                    HMainSourceEntryID: 0,
@@ -545,12 +545,6 @@
                        state: false
                    }
                }
                if (this.hform.HRepairID == 0) {
                    return {
                        Message: "维修项目不得为空!",
                        state: false
                    }
                }
                if (this.hform.HManagerID == 0) {
                    return {
                        Message: "负责人不得为空!",
@@ -706,10 +700,14 @@
            // 获取职员数据
            async getEmpList() {
                try {
                    let sWhere=  " where 1=1 "
                    if(this.hform.HDeptName && uni.getStorageSync("Organization") == '宁波市华舟包装有限公司'){
                        sWhere += ` and HDeptName = '${this.hform.HDeptName}'`
                    }
                    let res = await CommonUtils.doRequest2Async({
                        url: '/PublicPageMethod/UserList',
                        data: {
                            sWhere: " where 1=1",
                            sWhere: sWhere,
                        }
                    })
@@ -857,8 +855,12 @@
                    let oMain = JSON.stringify(this.hform);
                    this.HDetailList[0].HManagerID = this.hform.HManagerID
                    this.HDetailList[0].HRepairID = this.hform.HRepairID
                    let oprType = this.operationType
                    if(oprType == 4){
                        oprType = 1
                    }
                    let sSubStr = JSON.stringify(this.HDetailList);
                    let sMainSub = oMain + ';' + sSubStr + `;-1;${this.operationType}` + ';' + getUserInfo()[
                    let sMainSub = oMain + ';' + sSubStr + `;-1;${oprType}` + ';' + getUserInfo()[
                    'Czymc'];
                    let res = await CommonUtils.doRequest2Sync({
                        url: "/Sb_EquipRepairSendWorkBill/AddEquipRepairSendWorkBill",
@@ -934,6 +936,8 @@
                        this.hform.HBarName = data1.设备名称
                        this.hform.HBarModel = data1.设备型号
                        this.hform.HBarSpec = data1.设备规格
                        this.hform.HRepairContent = data1.故障描述
                    }
                    else {
                        CommonUtils.showTips({