wtt
2025-09-01 a9ad3a659b6bdffee1792ca67347fdb9a1b65c72
pages/zhijiediaobo/form.vue
@@ -1477,7 +1477,7 @@
                           //获取源单类型、源单单号
                           this.hform.HMainSourceBillType = data.hSourceBillTypeField
                           let index = this.arrayHMainSourceBillValue.findIndex(e => e = data
                           let index = this.arrayHMainSourceBillValue.findIndex(e => e == data
                              .hSourceBillTypeField)
                           if (index != -1) {
                              this.HMainSourceBillType = this.arrayHMainSourceBillType[index]
@@ -1530,10 +1530,42 @@
                        } else { //物料条码
                           this.tabs = 2
                           if (!this.hform.HSourceBillNo) {
                              this.HMainSourceBillType = '手工录入'
                              this.hform.HMainSourceBillType = -1
                              this.showHMainSourceBillType = false
                              this.showHSourceBillNo = false
                              this.hform.HSupName = data.hSupNameField
                              this.hform.HSupID = data.hSupIDField
                              this.hform.HSourceBillNo = data.hSourceBillNoField
                              if (data.hDeptIDField != 0) {
                                 this.hform.HDeptID = data.hDeptIDField
                                 this.hform.HDeptName = data.hDeptNameField
                              }
                              console.log(data)
                              //获取源单类型、源单单号
                              this.hform.HMainSourceBillType = data.hSourceBillTypeField
                              let index = this.arrayHMainSourceBillValue.findIndex(e => e == data
                                 .hSourceBillTypeField)
                              if (index != -1) {
                                 this.HMainSourceBillType = this.arrayHMainSourceBillType[index]
                                 this.hform.HMainSourceBillType = data.hSourceBillTypeField
                                 this.showHMainSourceBillType = false
                              }
                              // if (data.hSourceBillTypeField == "1103") {
                              //    this.HMainSourceBillType = '收料通知单'
                              //    this.hform.HMainSourceBillType = 1103
                              //    this.showHMainSourceBillType = false
                              // } else if (data.hSourceBillTypeField == "1102") {
                              //    this.HMainSourceBillType = '采购订单'
                              //    this.hform.HMainSourceBillType = 1102
                              //    this.showHMainSourceBillType = false
                              // } else {
                              //    this.HMainSourceBillType = '手工录入'
                              //    this.hform.HMainSourceBillType = -1
                              //    this.showHMainSourceBillType = false
                              // }
                              if (data.hMulSourceFlagField == 0) {
                                 this.showHSourceBillNo = false
                              }
                              //供应商不可编辑
                              this.showHSupName = false
                           }
                        }
                        //显示表体明细
@@ -1716,7 +1748,7 @@
                     this.hform.HMainSourceBillType = data.HSourceBillType
                     this.hform.HSourceBillNo = data.HSourceBillNo
                     let index = this.arrayHMainSourceBillValue.findIndex(e => e = data.HSourceBillType)
                     let index = this.arrayHMainSourceBillValue.findIndex(e => e == data.HSourceBillType)
                     if (index != -1) {
                        this.HMainSourceBillType = this.arrayHMainSourceBillType[index]
                        this.hform.HMainSourceBillType = data.HSourceBillType