| | |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | this.isLoading = false; |
| | | console.error("获取异常结果失败:", error); |
| | | this.$message.error("获取异常结果失败"); |
| | | }) |
| | | .finally(() => { |
| | | this.isLoading = false; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | |
| | | this.isLoading = true; |
| | | this.drawer = true; |
| | | getupdateCheckType(this.tjNumber).then((response) => { |
| | | this.isLoading = false; |
| | | // this.isLoading = false; |
| | | this.changedate = response.data; |
| | | if (this.changedate) { |
| | | this.changedate.forEach((item) => { |
| | |
| | | this.isLoading = true; |
| | | this.drawer = true; |
| | | getupdateCheckType(this.tjNumber).then((response) => { |
| | | this.isLoading = false; |
| | | // this.isLoading = false; |
| | | this.changedate = response.data; |
| | | if (this.changedate) { |
| | | for (let i = 0; i < this.changedate.length; i++) { |
| | |
| | | id: this.MsgId, |
| | | }; |
| | | |
| | | addOrder(dataList) |
| | | gettoPdf(tjNumber) |
| | | .then((res) => { |
| | | this.$modal.msgSuccess("已生成报告!请前往报告核收页面确认!"); |
| | | }) |
| | | .catch(() => { |
| | | this.$modal.msgError( |
| | | "打印报告失败,请前往报告打印页面补打报告!" |
| | | ); |
| | | }); |
| | | const statePromise = getfiedState(reportData).then(() => { |
| | | this.drawer = false; |
| | | }); |
| | | const updatePromises = this.changedate.map((item) => { |
| | | this.proIds = item.parentId; |
| | | let remarks = item.remark; |
| | | let updateOrderRemarkVos = [ |
| | | { |
| | | tjNumber, |
| | | proId: this.proIds.toString(), |
| | | remarks, |
| | | }, |
| | | ]; |
| | | return getModified(updateOrderRemarkVos); |
| | | }); |
| | | |
| | | Promise.all([statePromise, ...updatePromises]) |
| | | .then(() => { |
| | | this.loading = false; |
| | | this.queryParams.page = 1; |
| | | this.queryParams.pageSize = 10; |
| | | this.submitForm(); |
| | | this.$forceUpdate(); |
| | | }) |
| | | .catch((error) => { |
| | | this.loading = false; |
| | | console.error("发生错误:", error); |
| | | }); |
| | | |
| | | /* addOrder(dataList) |
| | | .then((res) => { |
| | | if (res.code == 200) { |
| | | // gettoPdf(tjNumber) |
| | |
| | | .catch((error) => { |
| | | this.loading = false; |
| | | console.error("addOrderPromise 失败:", error); |
| | | }); |
| | | }); */ |
| | | } else { |
| | | this.loading = false; |
| | | this.$modal.msgError("提交失败"); |