| | |
| | | }) |
| | | .then((res) => { |
| | | if (res.code === 200) { |
| | | if (!res.data || res.data.errorMsg.length == 0) { |
| | | if (!res.data || res.data.errorMsg.length === 0) { |
| | | this.submitLoading = true; |
| | | this.confirmSubmit(true); |
| | | //去除拆分订单是否登记检验结果确认,默认是 |
| | | //检验类型为原材料 |
| | | if ( |
| | | this.typeSource == 1 && |
| | | res.data.unInsOrderCount == 0 && |
| | | this.isSplit == 1 |
| | | ) { |
| | | const htmlStr = |
| | | "是否登记IFS采购检验结果并移库?该操作会登记<span style='color:#ff4949'>同一零件同一订单的所有拆分批次</span>,请谨慎选择。"; |
| | | this.$confirm(htmlStr, "提示", { |
| | | confirmButtonText: "是", |
| | | cancelButtonText: "否", |
| | | type: "warning", |
| | | dangerouslyUseHTMLString: true, |
| | | }) |
| | | .then(() => { |
| | | this.confirmSubmit(true); |
| | | }) |
| | | .catch(() => { |
| | | this.confirmSubmit(false); |
| | | }); |
| | | } else { |
| | | this.confirmSubmit(true); |
| | | } |
| | | // if ( |
| | | // this.typeSource == 1 && |
| | | // res.data.unInsOrderCount == 0 && |
| | | // this.isSplit == 1 |
| | | // ) { |
| | | // const htmlStr = |
| | | // "是否登记IFS采购检验结果并移库?该操作会登记<span style='color:#ff4949'>同一零件同一订单的所有拆分批次</span>,请谨慎选择。"; |
| | | // this.$confirm(htmlStr, "提示", { |
| | | // confirmButtonText: "是", |
| | | // cancelButtonText: "否", |
| | | // type: "warning", |
| | | // dangerouslyUseHTMLString: true, |
| | | // }) |
| | | // .then(() => { |
| | | // this.confirmSubmit(true); |
| | | // }) |
| | | // .catch(() => { |
| | | // this.confirmSubmit(false); |
| | | // }); |
| | | // } else { |
| | | // this.confirmSubmit(true); |
| | | // } |
| | | } else { |
| | | let newData = []; |
| | | const h = this.$createElement; |