zouyu
2 天以前 30a69ff085522db588c7781018f04c64a138a0f9
去除拆分订单是否登记检验结果确认,默认是
已修改1个文件
48 ■■■■ 文件已修改
src/views/business/inspectionTask/inspection.vue 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/inspectionTask/inspection.vue
@@ -3561,31 +3561,33 @@
      })
        .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;