合规性手续增加状态

This commit is contained in:
Teo
2025-09-15 19:42:35 +08:00
parent 8c7d16ee9d
commit 371c599bdf

View File

@ -67,6 +67,17 @@
</el-tooltip> </el-tooltip>
</span> </span>
</el-col> </el-col>
<!-- <el-col :span="1.5">
<el-button
type="danger"
plain
icon="Delete"
:disabled="multiple"
@click="handleDelete()"
v-hasPermi="['formalities:formalitiesAreConsolidated:remove']"
>删除</el-button
>
</el-col> -->
<!-- <el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button <el-button
type="success" type="success"
@ -123,7 +134,7 @@
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" fixed="right"> <el-table-column label="操作" align="center" fixed="right">
<template #default="scope"> <template #default="scope">
<div v-if="scope.row.formalitiesPid"> <div v-if="scope.row.formalitiesPid && scope.row.processingStatus != '不需要办理'">
<el-button <el-button
link link
type="primary" type="primary"
@ -144,6 +155,9 @@
v-hasPermi="['formalities:formalitiesAreConsolidated:edit']" v-hasPermi="['formalities:formalitiesAreConsolidated:edit']"
>修改状态</el-button >修改状态</el-button
> >
<!-- <el-button link type="danger" icon="Delete" v-if="scope.row.processingStatus == '待开始'" @click="handleDelete(scope.row)"
>删除</el-button
> -->
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -235,6 +249,7 @@
<el-option label="待开始" value="待开始" /> <el-option label="待开始" value="待开始" />
<el-option label="处理中" value="处理中" /> <el-option label="处理中" value="处理中" />
<el-option label="已完成" value="已完成" /> <el-option label="已完成" value="已完成" />
<el-option label="不需要办理" value="不需要办理" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -539,6 +554,16 @@ const handleUpdateStatus = async (row?: FormalitiesAreConsolidatedVO) => {
updateStatusVisible.value = true; updateStatusVisible.value = true;
}; };
const handleDelete = async (row?: any) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除数据项?').finally(() => (fileLoading.value = false));
fileLoading.value = true;
await delFormalitiesAreConsolidated(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();
};
const submitStatus = async () => { const submitStatus = async () => {
statusFormRef.value?.validate(async (valid: boolean) => { statusFormRef.value?.validate(async (valid: boolean) => {
if (valid) { if (valid) {