|
|
|
|
@ -75,6 +75,7 @@
|
|
|
|
|
> |
|
|
|
|
<el-option value="0" label="未办结"/> |
|
|
|
|
<el-option value="1" label="已办结"/> |
|
|
|
|
<el-option value="2" label="强制终结"/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
@ -331,8 +332,7 @@
|
|
|
|
|
<el-button type="primary" v-if="row.status === '0'" link @click="handleAction(row)">办理</el-button> |
|
|
|
|
<el-button type="primary" v-if="row.status === '0'" link @click="handleUpdate(row)">修改</el-button> |
|
|
|
|
<el-button type="danger" v-if="row.status === '0'" link @click="handleDel(row)">删除</el-button> |
|
|
|
|
<el-button type="primary" v-if="row.status === '1'" link @click="handleWatchDetail(row)">查看详情 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="primary" v-if="row.status === '1' || row.status === '2'" link @click="handleWatchDetail(row)">查看详情</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
@ -388,9 +388,8 @@
|
|
|
|
|
<el-button @click="negativeVerifySfssDailog = false">取消</el-button> |
|
|
|
|
<el-button type="primary" @click="handleSubmit" :loading="submitLoading" :disabled="submitLoading">办结 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="primary" @click="handleSaveInvolve" :loading="saveLoading"> |
|
|
|
|
临时保存 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="primary" @click="handleSaveInvolve" :loading="saveLoading">临时保存</el-button> |
|
|
|
|
<el-button type="danger" @click="forceTerminationFun" :loading="forceTerminationLoading">强制终结</el-button> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
@ -412,7 +411,7 @@ import feedback from "@/utils/feedback";
|
|
|
|
|
import useCatchStore from "@/stores/modules/catch"; |
|
|
|
|
import { |
|
|
|
|
addComplaintCollection, addComplaintCollectionBlame, |
|
|
|
|
delComplaintCollection, exportData, |
|
|
|
|
delComplaintCollection, exportData, forceTermination, |
|
|
|
|
getComplaintCollectionPage, handlerData, saveInvolveJson, |
|
|
|
|
updateComplaintCollection |
|
|
|
|
} from "@/api/data/complaintCollection.ts"; |
|
|
|
|
@ -955,7 +954,32 @@ watch(negativeVerifySfssDailog, (open) => {
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
// endregion |
|
|
|
|
// region 强制终结 |
|
|
|
|
const forceTerminationLoading = ref(false); |
|
|
|
|
const forceTerminationFun = async () => { |
|
|
|
|
if (forceTerminationLoading.value) return |
|
|
|
|
forceTerminationLoading.value = true |
|
|
|
|
try { |
|
|
|
|
await nextTick() |
|
|
|
|
// ✅ 再取一次最新数据 |
|
|
|
|
const formData = negativeVerifySfssRef.value.getData() |
|
|
|
|
// ✅ 关键:深拷贝 + 去代理,避免 Proxy/引用带来的“看起来旧值” |
|
|
|
|
const plain = JSON.parse(JSON.stringify(toRaw(formData))) |
|
|
|
|
await forceTermination({ |
|
|
|
|
complaintId: plain.complaintId, |
|
|
|
|
}) |
|
|
|
|
feedback.msgSuccess("操作成功") |
|
|
|
|
negativeVerifySfssDailog.value = false |
|
|
|
|
getList() |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error(e) |
|
|
|
|
feedback.notifyError("操作失败") |
|
|
|
|
} finally { |
|
|
|
|
forceTerminationLoading.value = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// endregion |
|
|
|
|
|
|
|
|
|
// region 查看详情相关 |
|
|
|
|
const detailShow = ref(false) |
|
|
|
|
|