| | |
| | | } |
| | | // this.getHBaseList() |
| | | this.getHSupList() |
| | | uni.$on('refreshList', () => { |
| | | console.log('收到刷新指令!') |
| | | this.DisBillEntryList() // 你的刷新方法 |
| | | }) |
| | | this.getHEmpList() |
| | | this.getHDeptList() |
| | | await this.getRelationStore() |
| | |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | uni.$off('refreshList') |
| | | }, |
| | | methods: { |
| | | toScanBillCode() { |
| | |
| | | }, |
| | | //删除物料码 |
| | | delMater(item) { |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.request({ |
| | | url: this.serverUrl + |
| | | '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | data: { |
| | | HInterID: this.hform.HInterID, |
| | | HMaterID: item.HMaterID, |
| | | HAuxPropID: item.HAuxPropID, |
| | | HMTONo: item.HMTONo, |
| | | HSourceInterID: item.HSourceInterID, |
| | | HSourceEntryID: item.HSourceEntryID, |
| | | HBillType: this.hform.HBillType |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | this.DisBillEntryList() |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | uni.navigateTo({ |
| | | url:'../tiaomamingxi/tiaomamingxi?HInterID=' + this.hform.HInterID + '&HMaterID=' + item.HMaterID + '&HBillType=' + this.hform.HBillType |
| | | }) |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '确认要删除 " ' + item.物料名称 + ' " 所有扫码记录?删除后将不可恢复!', |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.request({ |
| | | // url: this.serverUrl + |
| | | // '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json', |
| | | // data: { |
| | | // HInterID: this.hform.HInterID, |
| | | // HMaterID: item.HMaterID, |
| | | // HAuxPropID: item.HAuxPropID, |
| | | // HMTONo: item.HMTONo, |
| | | // HSourceInterID: item.HSourceInterID, |
| | | // HSourceEntryID: item.HSourceEntryID, |
| | | // HBillType: this.hform.HBillType |
| | | // }, |
| | | // success: (res) => { |
| | | // if (res.data.count == 1) { |
| | | // this.DisBillEntryList() |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: res.data.Message, |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | // }, |
| | | // fail: (res) => { |
| | | // console.log(res); |
| | | // uni.showToast({ |
| | | // title: '接口请求失败', |
| | | // icon: 'none' |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | //新增 |
| | | getNewData() { |