wtt
2026-01-05 caa6025663f6651543cecf7142e56d1121ccca60
pages/ZLGL/mojianjianyan/lastPieceCheckBill.vue
@@ -682,7 +682,7 @@
         toScanCode() {
            MpaasScan.scanCode((res) => {
               if (res) {
                  this.getSourceBillInfo(HBarCode);
                  this.getSourceBillInfo(res);
               }
            });
         },
@@ -696,7 +696,8 @@
                  HBarCode: HBarCode,
                  HInterID: 0,
                  HEntryID: 0,
                  Mode: 1 //扫码模式
                  Mode: 1, //扫码模式
                  user:getUserInfo()["Czymc"]
               }
            })
         
@@ -709,7 +710,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
@@ -739,6 +740,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 {