wtt
2025-12-31 96973dca40a1815e9727160e6b2e6dee839b9f8d
pages/ZLGL/shoujianjianyan/firstCheckBill.vue
@@ -705,7 +705,7 @@
            toScanCode() {
                MpaasScan.scanCode((res) => {
                    if (res) {
                        this.getSourceBillInfo(HBarCode);
                        this.getSourceBillInfo(res);
                    }
                });
            },
@@ -719,7 +719,8 @@
                        HBarCode: HBarCode,
                        HInterID: 0,
                        HEntryID: 0,
                        Mode: 1 //扫码模式
                        Mode: 1, //扫码模式
                  user:getUserInfo()["Czymc"]
                    }
                })
            
@@ -732,7 +733,7 @@
                if (count == 1) {
                    this.hform.HMaterID = data[0]['HMaterID']
                    this.hform.HMaterName = data[0]['产品名称']
                    this.hform.HMaterNumber = data[0]['HMaterNumber']
                    this.hform.HMaterNumber = data[0]['产品代码']
                    this.hform.HMainSourceBillNo = data[0]['HBillNo']
                    this.hform.HSourceBillNo = data[0]['HBillNo']
                    this.hform.HMainSourceInterID = data[0].HInterID
@@ -772,6 +773,69 @@
                // }
                
            },
         async HandleBillSelectComplete(e) {
             try {
                 let res = await CommonUtils.doRequest2Async({
                     url: "/WEBSController/get_CheckBillBarCode_Json_CheckItem",
                     data: {
                         HBillType: this.hform.HBillType,
                         HSourceBillType: this.hform.HSourceBillType,
                         HBarCode: "",
                         HInterID: e?.HInterID,
                         HEntryID: e?.HEntryID,
                         Mode: 2 ,//选单模式
                     user:getUserInfo()["Czymc"]
                     }
                 })
                 let {
                     data,
                     Message,
                     count
                 } = res.data
                 if (count == 1) {
                     console.log('获取源单:', data)
                     this.hform.HMaterID = data[0]['HMaterID']
                     this.hform.HMaterName = data[0]['产品名称']
                     this.hform.HMaterNumber = data[0]['产品代码']
                     this.hform.HMainSourceBillNo = data[0]['HBillNo']
                     this.hform.HSourceBillNo = data[0]['HBillNo']
                     this.hform.HMainSourceInterID = data[0].HInterID
                     this.hform.HMainSourceEntryID = data[0].HEntryID
                     this.hform.HQCSchemeName = data[0].检验方案名称
                     this.hform.HQCSchemeID = data[0].检验方案ID
                     this.hform.HSourceBillQty = data[0].HSourceBillQty
                     this.hform.HICMOBillNo= data[0].任务单号
                     this.hform.HICMOInterID= data[0].HICMOInterID
                     this.hform.HICMOEntryID= data[0].HICMOEntryID
                     this.hform.HICMOQty= data[0].生产数量
                     this.hform.HProcExchBillNo= data[0].单据号
                     this.hform.HProcExchInterID= data[0].HInterID
                     this.hform.HProcExchEntryID= data[0].HEntryID
                     this.hform.HProcExchQty= data[0].流转卡数量
                     this.hform.HSourceName= data[0].生产资源
                     this.hform.HSourceID= data[0].HSourceID
                     this.hform.HProcID= data[0].HProcID
                     this.hform.HProcName= data[0].当前工序
                     this.get_CheckItem();
                     this.hasSourceBill = true
                     this.$refs['billList'].exit()
                 } else {
                     CommonUtils.showTips({
                         title: '温馨提示',
                         message: Message
                     })
                 }
             } catch (err) {
                 CommonUtils.showTips({
                     title: '温馨提示',
                     message: "源单下推错误: " + err
                 })
             }
         },
            async GetCheckItemID() {
                if (!this.hform.HMaterName && !this.hform.HProcName) {
                    try {