ymz 4 mesiacov pred
rodič
commit
993621ddc3

BIN
dist.zip


+ 9 - 0
src/api/assignPoints/currency/index.js

@@ -347,3 +347,12 @@ export function pkgOwnerReplaceApi(data) {
     data
   });
 }
+
+// 提交移交对象
+export function pkgStopApi(data) {
+  return request({
+    url: `/admin/pkg/stop`,
+    method: 'post',
+    data
+  });
+}

+ 74 - 4
src/views/admin/assignPoints/quota/taskCenter.vue

@@ -74,14 +74,16 @@
               @click="editBtn(scope.row, scope.index)"
               >编辑
             </el-button>
-            <el-button
+            <el-button type="text" size="small" icon="el-icon-folder-delete" @click="suspendFn(scope.row)">终止 </el-button>
+            <!-- 250220终止逻辑修改 -->
+            <!-- <el-button
               type="text"
               size="small"
               icon="el-icon-folder-delete"
               @click="suspendBtn(scope.row, scope.index)"
               v-show="scope.row.scorePackageStatus !== '4' && scope.row.scorePackageStatus !== '5' && scope.row.scorePackageStatus !== '6' && scope.row.scorePackageStatus != '9'"
               >终止
-            </el-button>
+            </el-button> -->
             <!-- <el-button
               type="text"
               size="small"
@@ -553,6 +555,24 @@
         <el-button type="primary" @click="handoverSubmit">确 定</el-button>
       </span>
     </el-dialog>
+
+    <el-dialog title="终止" :visible.sync="suspendDialog" width="45%" center :before-close="suspendClose">
+      <div class="suspend-dialog">
+        <div class="message">
+          请注意:终止操作将按照“归档”方式进行处理,整个业务处理过程,涉及:服务执行包、服务执行包兑付通知、服务执行包承接、服务执行包分配数量、服务记录、服务内容、服务审批节点记录、服务监督、服务监督意见等数据。
+          <span>且一旦终止数据无法恢复。请认真核实,慎重操作!</span>
+        </div>
+        <el-form :model="suspendForm" :rules="suspendFormRules" ref="suspendFormRef" label-width="100px" class="demo-ruleForm">
+          <el-form-item label="终止原因" prop="archiveReason">
+            <el-input type="textarea" v-model="suspendForm.archiveReason"></el-input>
+          </el-form-item>
+        </el-form>
+      </div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="suspendClose">取 消</el-button>
+        <el-button type="primary" @click="suspendDialogSubmit">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -590,7 +610,8 @@ import {
   getListAncestorApi,
   getPkgTaskDetailsApi,
   getUserV2ListApi,
-  pkgOwnerReplaceApi
+  pkgOwnerReplaceApi,
+  pkgStopApi
 } from '@/api/assignPoints/currency/index';
 
 import { fetchList } from '@/api/wmdeptbudget/plan.js';
@@ -790,6 +811,13 @@ export default {
       userV2List: [],
       handoverFormRules: {
         ownerId: [{ required: true, message: '请选择移交对象', trigger: 'change' }]
+      },
+      suspendDialog: false,
+      suspendForm: {
+        archiveReason: ''
+      },
+      suspendFormRules: {
+        archiveReason: [{ required: true, message: '请输入终止原因', trigger: 'blur' }]
       }
     };
   },
@@ -2492,7 +2520,31 @@ export default {
           if (res.data.code === 0) {
             this.$message.success('操作成功');
             this.getList(this.page);
-            this.handoverDialog = false;
+            this.handoverClose();
+          }
+        }
+      });
+    },
+    suspendFn(row) {
+      this.currentInfo = row;
+      this.suspendDialog = true;
+    },
+    suspendClose() {
+      this.suspendForm.archiveReason = '';
+      this.suspendDialog = false;
+    },
+    suspendDialogSubmit() {
+      this.$refs.suspendFormRef.validate(async (valid) => {
+        if (valid) {
+          const obj = {
+            pkgId: this.currentInfo?.id,
+            archiveReason: this.suspendForm.archiveReason
+          };
+          const res = await pkgStopApi(obj);
+          if (res.data.code === 0) {
+            this.$message.success('操作成功');
+            this.getList(this.page);
+            this.suspendClose();
           }
         }
       });
@@ -2645,4 +2697,22 @@ export default {
   font-weight: 600;
   margin-bottom: 20px;
 }
+
+.suspend-dialog {
+  .message {
+    margin-bottom: 20px;
+    border-radius: 10px;
+    border: 1px solid #ccc;
+    line-height: 35px;
+    margin-left: 20px;
+    padding: 10px 20px;
+    color: #f56c6c;
+    font-size: 16px;
+    font-weight: 600;
+    span {
+      font-style: italic;
+      font-weight: 800;
+    }
+  }
+}
 </style>

+ 8 - 8
src/views/admin/taskManagement/taskCenter.vue

@@ -92,9 +92,9 @@
         </template>
         <span slot="footer" class="dialog-footer">
           注意: 1.报告将于24小时之内生成完毕,请注意下载。<br />
-          <i style="margin-left:62px"></i>2.报告汇总为封面+任务数据汇总+任务列表明细。
+          <i style="margin-left: 62px"></i>2.报告汇总为封面+任务数据汇总+任务列表明细。
           <br />
-          <i style="margin-left:10px"></i>3.报告详情为每条任务的任务详情+图片。
+          <i style="margin-left: 10px"></i>3.报告详情为每条任务的任务详情+图片。
         </span>
       </el-dialog>
     </div>
@@ -102,8 +102,8 @@
 </template>
 
 <script>
-import {teskReportapprovaldata} from '@/const/crud/teskReportapproval';
-import {reportPage, approvalReport, updateReportStatus, backStatus, exportNbReport, exportExcelNbReport} from '@/api/taskManagement/teskReportapproval';
+import { teskReportapprovaldata } from '@/const/crud/teskReportapproval';
+import { reportPage, approvalReport, updateReportStatus, backStatus, exportNbReport, exportExcelNbReport } from '@/api/taskManagement/teskReportapproval';
 
 export default {
   name: 'points',
@@ -148,7 +148,7 @@ export default {
           this.searchForm
         )
       )
-        .then(response => {
+        .then((response) => {
           this.tableData = response.data.data.records;
           this.page.total = response.data.data.total;
           this.tableLoading = false;
@@ -191,7 +191,7 @@ export default {
               this.$notify.error('结单失败');
             });
         })
-        .catch(function() {});
+        .catch(function () {});
     },
     // 退回按钮
     backBtn(row) {
@@ -214,7 +214,7 @@ export default {
               this.$notify.error('退回失败');
             });
         })
-        .catch(function() {});
+        .catch(function () {});
     },
     // 查看按钮
     lookBtn(row) {
@@ -275,7 +275,7 @@ export default {
         scoreId: row.scoreId
       };
       exportNbReport(obj)
-        .then(response => {
+        .then((response) => {
           if (undefined == response.data || undefined == response.data.data) {
             this.$message.error('导出失败');
             return false;