|
|
@ -71,7 +71,7 @@ |
|
|
|
min-width="120" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
label="附件" |
|
|
|
label="整改相关附件" |
|
|
|
align="center" |
|
|
|
prop="attachment" |
|
|
|
min-width="120" |
|
|
@ -235,7 +235,7 @@ import { getFileStream } from "@/api/system/upload"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "Zrdw", |
|
|
|
props: ["inspectionId", "proNo", "proCode", "isAdd"], |
|
|
|
props: ["inspectionId", "rectificationId", "proNo", "proCode", "isAdd"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
// 遮罩层 |
|
|
@ -265,6 +265,7 @@ export default { |
|
|
|
ids: null, |
|
|
|
data: { |
|
|
|
inspectionId: null, |
|
|
|
rectificationId: null, |
|
|
|
unitId: null, |
|
|
|
rectificationSituation: null, |
|
|
|
attachment: null, |
|
|
@ -328,6 +329,8 @@ export default { |
|
|
|
/** 查询责任单位列表 */ |
|
|
|
getList() { |
|
|
|
this.loading = true; |
|
|
|
this.queryParams.data.inspectionId = this.inspectionId; |
|
|
|
this.queryParams.data.rectificationId = this.rectificationId; |
|
|
|
listZrdw(this.queryParams).then((response) => { |
|
|
|
this.zrdwList = response.records; |
|
|
|
this.total = response.total; |
|
|
@ -355,6 +358,7 @@ export default { |
|
|
|
this.form = { |
|
|
|
id: null, |
|
|
|
inspectionId: null, |
|
|
|
rectificationId: null, |
|
|
|
unitId: null, |
|
|
|
rectificationSituation: null, |
|
|
|
attachment: null, |
|
|
@ -375,6 +379,7 @@ export default { |
|
|
|
data: { |
|
|
|
id: null, |
|
|
|
inspectionId: null, |
|
|
|
rectificationId: null, |
|
|
|
unitId: null, |
|
|
|
rectificationSituation: null, |
|
|
|
attachment: null, |
|
|
@ -445,6 +450,7 @@ export default { |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.form.inspectionId = this.inspectionId; |
|
|
|
this.form.rectificationId = this.rectificationId; |
|
|
|
addZrdw(this.form).then((response) => { |
|
|
|
if (response.code === 200) { |
|
|
|
this.msgSuccess("新增成功"); |
|
|
|