| | |
| | | data: JSON.stringify(payload), |
| | | headers: { 'Content-Type': 'application/json' } |
| | | }); |
| | | if (res.status === 0) { |
| | | if (res.data && res.data.outMsg) { |
| | | this.$showMessage(res.data.outMsg); |
| | | } else if (res.status === 0) { |
| | | this.$showMessage('上刀提交成功'); |
| | | await this.fetchFormData(); |
| | | } else { |
| | | this.$showMessage(res.message || '上刀提交失败'); |
| | | } |
| | | if (res.status === 0) { |
| | | await this.fetchFormData(); |
| | | } |
| | | } catch (err) { |
| | | console.error(err); |
| | |
| | | data: JSON.stringify(payload), |
| | | headers: { 'Content-Type': 'application/json' } |
| | | }); |
| | | if (res.status === 0) { |
| | | if (res.data && res.data.outMsg) { |
| | | this.$showMessage(res.data.outMsg); |
| | | } else if (res.status === 0) { |
| | | this.$showMessage('下刀提交成功'); |
| | | await this.fetchFormData(); |
| | | } else { |
| | | this.$showMessage(res.message || '下刀提交失败'); |
| | | } |
| | | if (res.status === 0) { |
| | | await this.fetchFormData(); |
| | | } |
| | | } catch (err) { |
| | | console.error(err); |
| | | this.$showMessage('下刀提交失败,请检查网络'); |