| | |
| | | weigh: this.globalweigh, |
| | | isBackground: 1 |
| | | }; |
| | | uni.showLoading({ |
| | | title: '加载中' |
| | | }) |
| | | let mix = Object.assign(this.weighData, this.getWeightHouseObj); |
| | | this.$reqPost('getOneEvacuation', mix, 'json').then(res => { |
| | | console.log(res, '第一次放空'); |
| | | uni.hideLoading() |
| | | if (res.code == 0) { |
| | | this.$u.toast('操作成功'); |
| | | this.evacuationModalShow = false; |
| | | } else { |
| | | this.$u.toast('操作失败,请稍后重试'); |
| | | this.$u.toast(res.msg ? res.msg : '操作失败,请稍后重试'); |
| | | this.evacuationModalShow = false; |
| | | } |
| | | }); |
| | |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '打印失败') |
| | | } |
| | | }) |
| | | }).catch(e => { |
| | | uni.hideLoading() |
| | | this.outLoading = false |
| | | }) |
| | | }, |
| | | // 打印出门证 |
| | | printExitPermit() { |
| | |
| | | }) |
| | | let form = { |
| | | deptId: this.getWeightHouseObj.deptId, |
| | | filedId: this.getWeightHouseObj.filedId, |
| | | tmId: this.getWeightHouseObj.tmId, |
| | | carNo: uni.getStorageSync('carNo'), |
| | | type: 3, |
| | | weighingNumber: 2 |
| | | } |
| | | let form1 = uni.getStorageSync('WeighHouseForm') ? uni.getStorageSync('WeighHouseForm') : '{}' |
| | | this.outLoading = true |
| | | this.$reqPost('printer', Object.assign(form, JSON.parse(uni.getStorageSync('WeighHouseForm'))), |
| | | 'json').then(res => { |
| | | this.$reqPost('printer', Object.assign(form, JSON.parse(form1)), 'json').then(res => { |
| | | uni.hideLoading() |
| | | this.outLoading = false |
| | | if (res.code === 0) { |
| | |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '打印失败') |
| | | } |
| | | }).catch(e => { |
| | | uni.hideLoading() |
| | | this.outLoading = false |
| | | }) |
| | | }, |
| | | wsgContentConfirm() { |