| | |
| | | console.log("完整的提交数据:", this.QcIssueResultDetailes); |
| | | |
| | | const url = this.$store.state.serverInfo.serverAPI+`/QcIssueResult/GetProcessNo`; |
| | | // 发送 POST 请求 |
| | | if (this.PSTYPE === '特采/让步使用') {// 发送 POST 请求 |
| | | uni.request({ |
| | | url: url, // 请求地址 |
| | | method: 'POST', // 请求方法 |
| | |
| | | |
| | | // 如果有页面跳转,需要用定时器延迟 |
| | | setTimeout(() => { |
| | | uni.navigateTo({ |
| | | uni.redirectTo({ |
| | | url: 'List' |
| | | }); |
| | | }, 2000); // 保持与 duration 相同的时长 |
| | |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | uni.showToast({ |
| | | title: res.message.toString(), |
| | | icon: 'success', |
| | |
| | | duration: 2000 |
| | | }) |
| | | // 如果有页面跳转,需要用定时器延迟 |
| | | setTimeout(() => { |
| | | uni.navigateTo({ |
| | | url: 'List' |
| | | }); |
| | | }, 2000); // 保持与 duration 相同的时长 |
| | | |
| | | setTimeout(() => {uni.navigateBack();}, 2000); // 保持与 duration 相同的时长 |
| | | } else { |
| | | uni.showModal({ |
| | | title: "提示", |
| | |
| | | this.destructionPopup = false; |
| | | this.$showMessage("保存成功"); |
| | | setTimeout(() => { |
| | | // 跳转到列表页面 |
| | | uni.navigateTo({ |
| | | url: 'List' |
| | | }); |
| | | this.init(); |
| | | }, 2000); |
| | | } |
| | | }) |
| | |
| | | this.destructionPopup = false; |
| | | this.$showMessage("清除成功"); |
| | | setTimeout(() => { |
| | | // 跳转到列表页面 |
| | | uni.navigateTo({ |
| | | url: 'List' |
| | | }); |
| | | this.init(); |
| | | }, 2000); |
| | | } |
| | | }) |