Procházet zdrojové kódy

1.资产取预评号时新增确认框

GouGengquan před 1 měsícem
rodič
revize
fbb8ef8eed
1 změnil soubory, kde provedl 18 přidání a 12 odebrání
  1. 18 12
      src/views/assets/orderDetail.vue

+ 18 - 12
src/views/assets/orderDetail.vue

@@ -2717,17 +2717,23 @@ export default {
       // this.takeAssetsProductionNoDTO.printCount = this.assetsProductionForm.printCount;
 
       if (!this.takeAssetsProductionNoDTO.targetIdList.length == 0) {
-        this.$api.assets.takeAssetsStatementProductionNo(this.takeAssetsProductionNoDTO).then((res) => {
-          if (res.code === 200 && res.data) {
-            this.$notify({
-              title: '成功',
-              message: '产品取号成功!',
-              type: 'success',
-              duration: 2000,
-            });
-            // this.pageParams.row.productionNo = res.data;
-            this.getAETargetListByAssetsId();
-          }
+        this.$confirm('将对已选择的' + this.takeAssetsProductionNoDTO.targetIdList.length + '个评估对象取意见书号(请仔细确认要取号的评估对象与取号规则), 操作不可逆, 是否继续?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning',
+        }).then(() => {
+          this.$api.assets.takeAssetsStatementProductionNo(this.takeAssetsProductionNoDTO).then((res) => {
+            if (res.code === 200 && res.data) {
+              this.$notify({
+                title: '成功',
+                message: '产品取号成功!',
+                type: 'success',
+                duration: 2000,
+              });
+              // this.pageParams.row.productionNo = res.data;
+              this.getAETargetListByAssetsId();
+            }
+          });
         });
       } else {
         this.$notify({
@@ -2752,7 +2758,7 @@ export default {
       this.taskRecordDTO.taskData = this.takeAssetsProductionNoDTO;
 
       if (!this.takeAssetsProductionNoDTO.targetIdList.length == 0) {
-        this.$confirm('将对已选择的' + this.takeAssetsProductionNoDTO.targetIdList.length + '个评估对象取号(请仔细确认要取号的评估对象, 操作不可逆, 是否继续?', '提示', {
+        this.$confirm('将对已选择的' + this.takeAssetsProductionNoDTO.targetIdList.length + '个评估对象取报告号(请仔细确认要取号的评估对象与取号规则), 操作不可逆, 是否继续?', '提示', {
           confirmButtonText: '确定',
           cancelButtonText: '取消',
           type: 'warning',