forked from integrated_whb/integrated_whb_vue
清单检查要有电子围栏禁止排查
parent
f7859bdb34
commit
659469ec58
|
@ -135,7 +135,6 @@
|
|||
排班表
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="buttonJurisdiction.edit"
|
||||
type="primary"
|
||||
text
|
||||
link
|
||||
|
|
|
@ -42,10 +42,19 @@
|
|||
<el-table-column prop="RISK_DESCR" label="存在风险" />
|
||||
<el-table-column prop="DNAME5" label="风险分级" />
|
||||
<el-table-column prop="CHECK_CONTENT" label="检查内容" />
|
||||
<el-table-column prop="ELECTRONIC_FENCE" label="所属电子围栏" />
|
||||
<el-table-column label="操作" width="280">
|
||||
<template v-slot="{ row, $index }">
|
||||
<el-radio-group :disabled="row.HASHIDDEN > 0" v-model="row.ISNORMAL">
|
||||
<el-radio :label="0" @click.prevent="fnQualified($index, row)">
|
||||
<el-radio-group
|
||||
v-if="data.canDoCheck"
|
||||
:disabled="row.HASHIDDEN > 0"
|
||||
v-model="row.ISNORMAL"
|
||||
>
|
||||
<el-radio
|
||||
:label="0"
|
||||
:disabled="!data.canDoCheck"
|
||||
@click.prevent="fnQualified($index, row)"
|
||||
>
|
||||
合格
|
||||
<el-tooltip
|
||||
content="注意:补录时,不允许添加隐患"
|
||||
|
@ -70,18 +79,21 @@
|
|||
不涉及
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
<span v-else>有电子围栏禁止pc端排查清单</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</layout-table>
|
||||
<el-divider content-position="left">其他隐患</el-divider>
|
||||
<div class="tr mb-10">
|
||||
<el-button
|
||||
v-if="data.canDoCheck"
|
||||
type="primary"
|
||||
@click="fnAddOrEditOtherHidden({}, 'add')"
|
||||
:disabled="entrance === 'supplementaryRecording'"
|
||||
>
|
||||
添加
|
||||
</el-button>
|
||||
<el-button disabled v-else type="primary">添加</el-button>
|
||||
</div>
|
||||
<layout-table :data="otherHiddenList" :show-pagination="false">
|
||||
<el-table-column label="序号" width="70" type="index" />
|
||||
|
@ -90,6 +102,7 @@
|
|||
<template v-slot="{ row }">
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="data.canDoCheck"
|
||||
text
|
||||
link
|
||||
@click="fnAddOrEditOtherHidden(row, 'edit')"
|
||||
|
@ -98,6 +111,7 @@
|
|||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="data.canDoCheck"
|
||||
text
|
||||
link
|
||||
@click="fnDeleteOtherHidden(row.HIDDEN_ID)"
|
||||
|
@ -179,6 +193,7 @@
|
|||
<el-col :span="2">
|
||||
<el-form-item label-width="10px">
|
||||
<el-button
|
||||
:disabled="!data.canDoCheck"
|
||||
type="primary"
|
||||
v-if="index === 0"
|
||||
@click="fnAddInspectedList"
|
||||
|
@ -186,6 +201,7 @@
|
|||
添加
|
||||
</el-button>
|
||||
<el-button
|
||||
:disabled="!data.canDoCheck"
|
||||
type="danger"
|
||||
v-if="index !== 0"
|
||||
@click="data.form.inspectedList.splice(index, 1)"
|
||||
|
@ -214,7 +230,7 @@
|
|||
</el-row>
|
||||
</el-form>
|
||||
<div class="tc mt-10">
|
||||
<el-button type="primary" @click="fnSubmit">保存</el-button>
|
||||
<el-button :disabled="!data.canDoCheck" type="primary" @click="fnSubmit">保存</el-button>
|
||||
</div>
|
||||
<qualified
|
||||
v-model:visible="data.qualifiedDialog.visible"
|
||||
|
@ -284,6 +300,8 @@ const info = ref({});
|
|||
const data = reactive({
|
||||
longitude: 0,
|
||||
latitude: 0,
|
||||
// 是否可以清单排查
|
||||
canDoCheck: true,
|
||||
form: {
|
||||
CHECK_TIME: "",
|
||||
REASON: "",
|
||||
|
@ -323,6 +341,10 @@ const { list: inspectionList } = useListData(getInventoryManagementView, {
|
|||
callbackFn: (list, resData) => {
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
if (list[i].HASHIDDEN <= 0) list[i].ISNORMAL = 0;
|
||||
if (list[i].ELECTRONIC_FENCE_ID) {
|
||||
// 存在电子围栏禁止清单排查
|
||||
data.canDoCheck = false;
|
||||
}
|
||||
}
|
||||
info.value = resData.pd;
|
||||
},
|
||||
|
|
|
@ -199,6 +199,7 @@ const fnRegName = debounce(
|
|||
1000,
|
||||
async () => {
|
||||
data.drawer = true;
|
||||
await fnResetPagination();
|
||||
},
|
||||
{ atBegin: true }
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue