| | |
| | | }); |
| | | if (res.data && res.data.outMsg) { |
| | | if (res.data.outMsg.includes('重复上下刀')) { |
| | | this.$showMessage(res.data.outMsg, { type: 'error' }); |
| | | uni.showToast({ |
| | | title: res.data.outMsg, |
| | | icon: 'error' |
| | | }); |
| | | } else { |
| | | this.$showMessage(res.data.outMsg); |
| | | uni.showToast({ |
| | | title: res.data.outMsg, |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | } else if (res.status === 0) { |
| | | this.$showMessage('上刀提交成功'); |
| | | uni.showToast({ |
| | | title: '上刀提交成功', |
| | | icon: 'success' |
| | | }); |
| | | } else { |
| | | this.$showMessage(res.message || '上刀提交失败'); |
| | | uni.showToast({ |
| | | title: res.message || '上刀提交失败', |
| | | icon: 'error' |
| | | }); |
| | | } |
| | | if (res.status === 0) { |
| | | await this.fetchFormData(); |
| | |
| | | }); |
| | | if (res.data && res.data.outMsg) { |
| | | if (res.data.outMsg.includes('重复上下刀')) { |
| | | this.$showMessage(res.data.outMsg, { type: 'error' }); |
| | | uni.showToast({ |
| | | title: res.data.outMsg, |
| | | icon: 'error' |
| | | }); |
| | | } else { |
| | | this.$showMessage(res.data.outMsg); |
| | | uni.showToast({ |
| | | title: res.data.outMsg, |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | } else if (res.status === 0) { |
| | | this.$showMessage('下刀提交成功'); |
| | | uni.showToast({ |
| | | title: '上刀提交成功', |
| | | icon: 'success' |
| | | }); |
| | | } else { |
| | | this.$showMessage(res.message || '下刀提交失败'); |
| | | uni.showToast({ |
| | | title: res.message || '上刀提交失败', |
| | | icon: 'error' |
| | | }); |
| | | } |
| | | if (res.status === 0) { |
| | | await this.fetchFormData(); |