| | |
| | | workOrderNo: this.workOrderNo, |
| | | machineNo: this.machineNo, |
| | | toolNo: this.selectedToolNo, |
| | | type: '上刀', |
| | | type: '上机', |
| | | useLimit, |
| | | sdjs // 上刀计数(工单当前数采) |
| | | }; |
| | |
| | | data: JSON.stringify(payload), |
| | | headers: { 'Content-Type': 'application/json' } |
| | | }); |
| | | if (res.data && res.data.outMsg) { |
| | | this.$showMessage(res.data.outMsg); |
| | | } else if (res.status === 0) { |
| | | this.$showMessage('上刀提交成功'); |
| | | } else { |
| | | this.$showMessage(res.message || '上刀提交失败'); |
| | | if (res.data && res.data.outSum === "0") { |
| | | uni.showToast({ |
| | | title: res.data.outMsg || '', |
| | | icon: 'error' |
| | | }); |
| | | return; |
| | | } else if (res.data && res.data.outMsg) { |
| | | uni.showToast({ |
| | | title: res.data.outMsg, |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // 后续逻辑继续执行 |
| | | if (res.status === 0) { |
| | | await this.fetchFormData(); |
| | | } |
| | |
| | | workOrderNo: this.workOrderNo, |
| | | machineNo: this.machineNo, |
| | | toolNo: this.selectedToolNo, |
| | | type: '下刀', |
| | | type: '下机', |
| | | useLimit, |
| | | xdjs // 下刀计数 |
| | | }; |
| | |
| | | data: JSON.stringify(payload), |
| | | headers: { 'Content-Type': 'application/json' } |
| | | }); |
| | | if (res.data && res.data.outMsg) { |
| | | this.$showMessage(res.data.outMsg); |
| | | } else if (res.status === 0) { |
| | | this.$showMessage('下刀提交成功'); |
| | | } else { |
| | | this.$showMessage(res.message || '下刀提交失败'); |
| | | if (res.data && res.data.outSum === "0") { |
| | | uni.showToast({ |
| | | title: res.data.outMsg || '', |
| | | icon: 'error' |
| | | }); |
| | | return; |
| | | } else if (res.data && res.data.outMsg) { |
| | | uni.showToast({ |
| | | title: res.data.outMsg, |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // 后续逻辑继续执行 |
| | | if (res.status === 0) { |
| | | await this.fetchFormData(); |
| | | } |