| | |
| | | //获取源单类型、源单单号 |
| | | 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] |
| | |
| | | } 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 |
| | | } |
| | | } |
| | | //显示表体明细 |
| | |
| | | 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 |