|
@@ -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>
|