Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
| | |
| | | data |
| | | } = res.data; |
| | | if (count == 1) { |
| | | // 判断是否自动审核 |
| | | |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: res.data.Message + "。是否继续新增?", |
| | |
| | | HRedBlueFlag: false, |
| | | |
| | | HBarCode: '', |
| | | HQty: '', |
| | | HQty: '', // 数量 |
| | | HWHName: getUserInfo().HWHName, |
| | | HWHID: getUserInfo().HWhID, |
| | | HStockPlaceName: getUserInfo().HSPName, |
| | |
| | | } |
| | | } |
| | | }, |
| | | onLoad(e) { |
| | | async onLoad(e) { |
| | | console.log(e, this.userInfo) |
| | | this.OperationType = e.OperationType |
| | | await this.GetSourceBillType() |
| | | |
| | | if (e.HInterID) { |
| | | this.HInterID_Temp = e.HInterID |
| | | // this.btnType = 1 |
| | |
| | | this.getHEmpList() |
| | | this.getHDeptList() |
| | | |
| | | this.GetSourceBillType() |
| | | this.getRelationStore() |
| | | |
| | | uni.$on('BillSelectComplete', (e) => { |
| | |
| | | }, |
| | | // 通过单据类型获取源单类型 |
| | | async GetSourceBillType() { |
| | | CommonUtils.doRequest2({ |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: '/Web/GetHSourceBillTypeByBillType', |
| | | data: { |
| | | HBillType: this.hform.HBillType, |
| | | Num: 2 |
| | | }, |
| | | resFunction: (res) => { |
| | | } |
| | | }) |
| | | |
| | | let { |
| | | data, |
| | | count, |
| | |
| | | this.HMainSourceBillType = this.arrayHMainSourceBillType[0] |
| | | this.hform.HMainSourceBillType = this.arrayHMainSourceBillValue[0] |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: Message |
| | | CommonUtils.showTips({ |
| | | title: "温馨提示", |
| | | message: Message |
| | | }) |
| | | } |
| | | } |
| | | |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: "温馨提示", |
| | | message: err |
| | | }) |
| | | } |
| | | }, |
| | | //源单资料 |
| | | getHYDList() { |
| | |
| | | }, |
| | | //修改回填数据 |
| | | RoadBillMain(HInterID) { |
| | | console.log('HInterID: ', HInterID); |
| | | uni.request({ |
| | | url: this.serverUrl + '/WEBSController/GetSourceBill_Temp_Json', |
| | | data: { |
| | |
| | | console.log(33, res.data.data[0]); |
| | | if (res.data.count == 1) { |
| | | var data = res.data.data[0] |
| | | console.log('data: ', data); |
| | | this.hform.HInterID = data.HInterID |
| | | this.hform.HBillNo = data.HBillNo |
| | | this.hform.HMainSourceBillType = data.HSourceBillType |