| | |
| | | HWHName: getUserInfo().HWHName, |
| | | HWHID: getUserInfo().HWhID, |
| | | |
| | | HStockStyle: '', |
| | | HStockStyle: '组织内调拨', |
| | | HOutStockPlaceName: getUserInfo().HSPName, |
| | | HOutStockPlaceID: getUserInfo().HSPID, |
| | | HStockPlaceName: getUserInfo().HSPName, |
| | |
| | | console.log('仓位码: ', e); |
| | | let index = this.HStockPlaceNameList.findIndex(elem => elem['条码编号'] == e) |
| | | console.log('index: ', index); |
| | | // 不先置空的话,数据再次扫描相同的仓位码 不会触发组件内的刷新 |
| | | this.hform.HStockPlaceID = 0 |
| | | this.hform.HStockPlaceName = '' |
| | | await this.$nextTick() |
| | | if (index == -1) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | |
| | | console.log('仓位码: ', e); |
| | | let index = this.HStockPlaceInNameList.findIndex(elem => elem['条码编号'] == e) |
| | | console.log('index: ', index); |
| | | // 不先置空的话,数据再次扫描相同的仓位码 不会触发组件内的刷新 |
| | | this.hform.HStockPlaceID = 0 |
| | | this.hform.HStockPlaceName = '' |
| | | await this.$nextTick() |
| | | if (index == -1) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | |
| | | onHSourceBillNoConfirmHandler() { |
| | | if (this.hform.HMainSourceBillType == -1) { |
| | | // 手工录入不进行提交 |
| | | this.playSound(1) |
| | | CommonUtils.playSound(1) |
| | | return |
| | | } |
| | | |
| | |
| | | url: this.serverUrl + '/Web/GetEmployeeList_Json', |
| | | data: { |
| | | Employee: '', |
| | | HGroupID: 0 |
| | | HGroupID: 0, |
| | | HDeptID: uni.getStorageSync("HDeptID") |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | |
| | | this.tabs = 2 |
| | | this.showHSupName = false |
| | | this.barCodeFocus = true |
| | | this.playSound(1) |
| | | CommonUtils.playSound(1) |
| | | this.DisBillEntryList() |
| | | } else { |
| | | this.playSound(0) |
| | | CommonUtils.playSound(0) |
| | | console.log('res: ', res); |
| | | |
| | | uni.showToast({ |
| | |
| | | }, |
| | | fail: (err) => { |
| | | console.log('err: ', err); |
| | | this.playSound(0) |
| | | CommonUtils.playSound(0) |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | |
| | | console.log(this.hform.HSourceBillNo, HSourceFlag) |
| | | if (HDeleteFlag == "*") { |
| | | if (sBarCode == "") { |
| | | this.playSound(0) |
| | | CommonUtils.playSound(0) |
| | | uni.showToast({ |
| | | title: '请扫描要删除的条码', |
| | | icon: 'none' |
| | |
| | | console.log('删除条码', res.data); |
| | | this.hform.HBarCode = '' |
| | | if (res.data.count == 1) { |
| | | this.playSound(1) |
| | | CommonUtils.playSound(1) |
| | | this.hform.HQty = '' |
| | | this.DisBillEntryList() |
| | | } else { |
| | | this.playSound(0) |
| | | CommonUtils.playSound(0) |
| | | this.refreshBarCodeState() |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | |
| | | } |
| | | } catch (err) { |
| | | this.refreshBarCodeState() |
| | | this.playSound(0) |
| | | CommonUtils.playSound(0) |
| | | uni.showToast({ |
| | | title: '接口请求失败: ' + err, |
| | | icon: 'none' |
| | |
| | | // console.log('删除条码', res.data); |
| | | // this.hform.HBarCode = '' |
| | | // if (res.data.count == 1) { |
| | | // this.playSound(1) |
| | | // CommonUtils.playSound(1) |
| | | // this.hform.HQty = '' |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // this.playSound(0) |
| | | // CommonUtils.playSound(0) |
| | | // |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // this.playSound(0) |
| | | // CommonUtils.playSound(0) |
| | | // this.barCodeFocus = true |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | |
| | | console.log('扫码返回', res.data); |
| | | this.hform.HBarCode = '' |
| | | if (res.data.count == 1) { |
| | | this.playSound(1) |
| | | CommonUtils.playSound(1) |
| | | var data = res.data.data |
| | | if (data.hBarTypeField == '仓库条码') { |
| | | this.hform.HWHName = data.hWhNameField |
| | |
| | | this.hform.HBarCode = "" |
| | | }) |
| | | } else { |
| | | this.playSound(0) |
| | | CommonUtils.playSound(0) |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | |
| | | } |
| | | |
| | | } catch (err) { |
| | | this.playSound(0) |
| | | CommonUtils.playSound(0) |
| | | this.barCodeFocus = true |
| | | console.log(err); |
| | | uni.showToast({ |
| | |
| | | // console.log('扫码返回', res.data); |
| | | // this.hform.HBarCode = '' |
| | | // if (res.data.count == 1) { |
| | | // this.playSound(1) |
| | | // CommonUtils.playSound(1) |
| | | // var data = res.data.data |
| | | // if (data.hBarTypeField == '仓库条码') { |
| | | // this.hform.HWHName = data.hWhNameField |
| | |
| | | // this.hform.HBarCode = "" |
| | | // }) |
| | | // } else { |
| | | // this.playSound(0) |
| | | // CommonUtils.playSound(0) |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // this.playSound(0) |
| | | // CommonUtils.playSound(0) |
| | | // this.barCodeFocus = true |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | |
| | | |
| | | try { |
| | | let res = await CommonUtils.doRequest2Sync({ |
| | | url: '/WEBSController/set_SaveMoveStockBill_Json', |
| | | url: '/WEBSController/set_SaveMoveStockStepInBill_Json', |
| | | method: 'POST', |
| | | data: { |
| | | oMain: sMainStr |