| | |
| | | OperationType: 1, |
| | | HInterID_Temp: '', |
| | | |
| | | HSourceFlag: false, |
| | | |
| | | showHStockPlaceName: false, |
| | | showHMainSourceBillType: true, |
| | | showHSourceBillNo: true, |
| | |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | var data = res.data.data |
| | | this.HSourceFlag = true |
| | | console.log(2, data); |
| | | this.hform.HSupName = data.hSupNameField |
| | | this.hform.HSupID = data.hSupIDField |
| | |
| | | var sHQty = this.hform.HQty |
| | | var sSourceBillNo = this.hform.HSourceBillNo |
| | | var sSourceBillType = this.hform.HMainSourceBillType |
| | | var HSourceFlag = this.hform.HSourceBillNo == '' ? false : true |
| | | console.log(this.hform.HSourceBillNo, HSourceFlag) |
| | | if (HDeleteFlag == "*") { |
| | | if (sBarCode == "") { |
| | | this.playSound(0) |
| | |
| | | HSPID: sHSPID, |
| | | HQty: sHQty, |
| | | HRedBlueFlag: this.hform.HRedBlueFlag, |
| | | SourceFlag: HSourceFlag, |
| | | SourceFlag: this.HSourceFlag, |
| | | HSourceBillNo: sSourceBillNo, |
| | | HSourceBillType: sSourceBillType, |
| | | HStockOrgID: this.hform.HStockOrgID, |
| | |
| | | this.hform.HDeptID = data.hDeptIDField |
| | | this.tabs = 1 |
| | | } else if (data.hBarTypeField == '源单条码') { |
| | | this.HSourceFlag = true |
| | | this.hform.HSupName = data.hSupNameField |
| | | this.hform.HSupID = data.hSupIDField |
| | | if (data.hDeptIDField != 0) { |
| | |
| | | this.tabs = 2 |
| | | } else { //物料条码 |
| | | this.tabs = 2 |
| | | this.HSourceFlag = true |
| | | if (!this.hform.HSourceBillNo) { |
| | | this.HMainSourceBillType = '手工录入' |
| | | this.hform.HMainSourceBillType = -1 |
| | |
| | | this.DisBillEntryList() |
| | | //清空数量 |
| | | this.hform.HQty = '' |
| | | this.refreshBarCodeState() |
| | | this.refreshBarCodeState() |
| | | } else { |
| | | this.playSound(0) |
| | | this.refreshBarCodeState() |
| | |
| | | }, |
| | | //新增 |
| | | getNewData() { |
| | | this.HSourceFlag = false |
| | | uni.request({ |
| | | url: this.serverUrl + '/WEBSController/GetMaxBillNoAndID_Json', |
| | | data: { |
| | |
| | | }, |
| | | //修改回填数据 |
| | | RoadBillMain(HInterID) { |
| | | this.HSourceFlag = true |
| | | uni.request({ |
| | | url: this.serverUrl + '/WEBSController/GetSourceBill_Temp_Json', |
| | | data: { |