|
|
|
|
@ -67,25 +67,15 @@
|
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="办理情况"> |
|
|
|
|
<el-form-item label="状态"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="query.xxx" |
|
|
|
|
:disabled="true" |
|
|
|
|
v-model="query.status" |
|
|
|
|
> |
|
|
|
|
<el-option value="-1" label="全部"/> |
|
|
|
|
<el-option value="0" label="自办"/> |
|
|
|
|
<el-option value="1" label="下发"/> |
|
|
|
|
<el-option value="0" label="未办理"/> |
|
|
|
|
<el-option value="1" label="已办理"/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="办结时间"> |
|
|
|
|
<date-time-range-picker-ext |
|
|
|
|
v-model="query.xxxxTime" |
|
|
|
|
:disabled="true" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
@ -394,6 +384,9 @@
|
|
|
|
|
<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> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
@ -416,7 +409,7 @@ import useCatchStore from "@/stores/modules/catch";
|
|
|
|
|
import { |
|
|
|
|
addComplaintCollection, addComplaintCollectionBlame, |
|
|
|
|
delComplaintCollection, exportData, |
|
|
|
|
getComplaintCollectionPage, handlerData, |
|
|
|
|
getComplaintCollectionPage, handlerData, saveInvolveJson, |
|
|
|
|
updateComplaintCollection |
|
|
|
|
} from "@/api/data/complaintCollection.ts"; |
|
|
|
|
import Complaint_detail from "@/components/data/complaint_detail.vue"; |
|
|
|
|
@ -816,10 +809,29 @@ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
|
|
|
const handleAction = async (row) => { |
|
|
|
|
submitLoading.value = true |
|
|
|
|
try { |
|
|
|
|
// 先设置基础信息 |
|
|
|
|
// 1️⃣ 基础信息 |
|
|
|
|
negativeSfss.value.currentRow = JSON.parse(JSON.stringify(row)) |
|
|
|
|
|
|
|
|
|
// 2️⃣ 后端回显数据 |
|
|
|
|
const res = await handlerData({ id: row.id }) |
|
|
|
|
Object.assign(negativeSfss.value, res?.data ?? res) |
|
|
|
|
const data = res?.data ?? res ?? {} |
|
|
|
|
|
|
|
|
|
// 3️⃣ 解析 involveJson |
|
|
|
|
let involveObj = {} |
|
|
|
|
if (data.involveJson) { |
|
|
|
|
try { |
|
|
|
|
involveObj = JSON.parse(data.involveJson) |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error("involveJson 解析失败", e) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 4️⃣ 合并到 negative(🔥关键) |
|
|
|
|
Object.assign(negativeSfss.value, { |
|
|
|
|
...data, |
|
|
|
|
...involveObj, // ⭐ blames / blameLeaders / handlePolices |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
negativeVerifySfssDailog.value = true |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error("加载办理数据失败", e) |
|
|
|
|
@ -849,6 +861,54 @@ const handleSubmit = async () => {
|
|
|
|
|
submitLoading.value = false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 办理保存 |
|
|
|
|
const saveLoading = ref(false) |
|
|
|
|
const handleSaveInvolve = async () => { |
|
|
|
|
if (saveLoading.value) return |
|
|
|
|
saveLoading.value = true |
|
|
|
|
try { |
|
|
|
|
// ✅ 关键:让 el-input / el-select / 自定义组件把最后一次变更刷进 model |
|
|
|
|
await nextTick() |
|
|
|
|
|
|
|
|
|
// ✅ 再取一次最新数据 |
|
|
|
|
const formData = negativeVerifySfssRef.value.getData() |
|
|
|
|
|
|
|
|
|
// ✅ 关键:深拷贝 + 去代理,避免 Proxy/引用带来的“看起来旧值” |
|
|
|
|
const plain = JSON.parse(JSON.stringify(toRaw(formData))) |
|
|
|
|
|
|
|
|
|
const payload = { |
|
|
|
|
blames: plain.blames || [], |
|
|
|
|
blameLeaders: plain.blameLeaders || [], |
|
|
|
|
files: plain.files || [], |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
await saveInvolveJson({ |
|
|
|
|
complaintId: plain.complaintId, |
|
|
|
|
|
|
|
|
|
// 表字段 |
|
|
|
|
checkStatusCode: plain.checkStatusCode, |
|
|
|
|
checkStatusName: plain.checkStatusName, |
|
|
|
|
checkStatusDesc: plain.checkStatusDesc, |
|
|
|
|
accountabilityTarget: plain.accountabilityTarget, |
|
|
|
|
involveDepartId: plain.involveDepartId, |
|
|
|
|
involveDepartName: plain.involveDepartName, |
|
|
|
|
completionStatus: plain.completionStatus, |
|
|
|
|
publicRecognition: plain.publicRecognition, |
|
|
|
|
caseNumber: plain.caseNumber, |
|
|
|
|
|
|
|
|
|
// JSON |
|
|
|
|
involveJson: JSON.stringify(payload), |
|
|
|
|
}) |
|
|
|
|
feedback.msgSuccess("操作成功") |
|
|
|
|
negativeVerifySfssDailog.value = false |
|
|
|
|
getList() |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error(e) |
|
|
|
|
feedback.notifyError("操作失败") |
|
|
|
|
} finally { |
|
|
|
|
saveLoading.value = false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const negativeSfss = ref({ |
|
|
|
|
@ -862,6 +922,18 @@ const negativeSfss = ref({
|
|
|
|
|
handlePolices: [{}], |
|
|
|
|
}); |
|
|
|
|
provide('negative', negativeSfss) |
|
|
|
|
watch(negativeVerifySfssDailog, (open) => { |
|
|
|
|
if (!open) { |
|
|
|
|
negativeSfss.value = { |
|
|
|
|
currentRow: {}, |
|
|
|
|
blames: [], |
|
|
|
|
blameLeaders: [], |
|
|
|
|
handlePolices: [{}], |
|
|
|
|
files: [], |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
// endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|