清单检查要有电子围栏禁止排查

pull/1/head
dearlin 2024-01-25 17:35:13 +08:00
parent f7859bdb34
commit 659469ec58
3 changed files with 26 additions and 4 deletions

View File

@ -135,7 +135,6 @@
排班表
</el-button>
<el-button
v-if="buttonJurisdiction.edit"
type="primary"
text
link

View File

@ -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;
},

View File

@ -199,6 +199,7 @@ const fnRegName = debounce(
1000,
async () => {
data.drawer = true;
await fnResetPagination();
},
{ atBegin: true }
);