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

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>
<el-button <el-button
v-if="buttonJurisdiction.edit"
type="primary" type="primary"
text text
link link

View File

@ -42,10 +42,19 @@
<el-table-column prop="RISK_DESCR" label="存在风险" /> <el-table-column prop="RISK_DESCR" label="存在风险" />
<el-table-column prop="DNAME5" label="风险分级" /> <el-table-column prop="DNAME5" label="风险分级" />
<el-table-column prop="CHECK_CONTENT" label="检查内容" /> <el-table-column prop="CHECK_CONTENT" label="检查内容" />
<el-table-column prop="ELECTRONIC_FENCE" label="所属电子围栏" />
<el-table-column label="操作" width="280"> <el-table-column label="操作" width="280">
<template v-slot="{ row, $index }"> <template v-slot="{ row, $index }">
<el-radio-group :disabled="row.HASHIDDEN > 0" v-model="row.ISNORMAL"> <el-radio-group
<el-radio :label="0" @click.prevent="fnQualified($index, row)"> 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 <el-tooltip
content="注意:补录时,不允许添加隐患" content="注意:补录时,不允许添加隐患"
@ -70,18 +79,21 @@
不涉及 不涉及
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
<span v-else>pc</span>
</template> </template>
</el-table-column> </el-table-column>
</layout-table> </layout-table>
<el-divider content-position="left">其他隐患</el-divider> <el-divider content-position="left">其他隐患</el-divider>
<div class="tr mb-10"> <div class="tr mb-10">
<el-button <el-button
v-if="data.canDoCheck"
type="primary" type="primary"
@click="fnAddOrEditOtherHidden({}, 'add')" @click="fnAddOrEditOtherHidden({}, 'add')"
:disabled="entrance === 'supplementaryRecording'" :disabled="entrance === 'supplementaryRecording'"
> >
添加 添加
</el-button> </el-button>
<el-button disabled v-else type="primary">添加</el-button>
</div> </div>
<layout-table :data="otherHiddenList" :show-pagination="false"> <layout-table :data="otherHiddenList" :show-pagination="false">
<el-table-column label="序号" width="70" type="index" /> <el-table-column label="序号" width="70" type="index" />
@ -90,6 +102,7 @@
<template v-slot="{ row }"> <template v-slot="{ row }">
<el-button <el-button
type="primary" type="primary"
:disabled="data.canDoCheck"
text text
link link
@click="fnAddOrEditOtherHidden(row, 'edit')" @click="fnAddOrEditOtherHidden(row, 'edit')"
@ -98,6 +111,7 @@
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
:disabled="data.canDoCheck"
text text
link link
@click="fnDeleteOtherHidden(row.HIDDEN_ID)" @click="fnDeleteOtherHidden(row.HIDDEN_ID)"
@ -179,6 +193,7 @@
<el-col :span="2"> <el-col :span="2">
<el-form-item label-width="10px"> <el-form-item label-width="10px">
<el-button <el-button
:disabled="!data.canDoCheck"
type="primary" type="primary"
v-if="index === 0" v-if="index === 0"
@click="fnAddInspectedList" @click="fnAddInspectedList"
@ -186,6 +201,7 @@
添加 添加
</el-button> </el-button>
<el-button <el-button
:disabled="!data.canDoCheck"
type="danger" type="danger"
v-if="index !== 0" v-if="index !== 0"
@click="data.form.inspectedList.splice(index, 1)" @click="data.form.inspectedList.splice(index, 1)"
@ -214,7 +230,7 @@
</el-row> </el-row>
</el-form> </el-form>
<div class="tc mt-10"> <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> </div>
<qualified <qualified
v-model:visible="data.qualifiedDialog.visible" v-model:visible="data.qualifiedDialog.visible"
@ -284,6 +300,8 @@ const info = ref({});
const data = reactive({ const data = reactive({
longitude: 0, longitude: 0,
latitude: 0, latitude: 0,
//
canDoCheck: true,
form: { form: {
CHECK_TIME: "", CHECK_TIME: "",
REASON: "", REASON: "",
@ -323,6 +341,10 @@ const { list: inspectionList } = useListData(getInventoryManagementView, {
callbackFn: (list, resData) => { callbackFn: (list, resData) => {
for (let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
if (list[i].HASHIDDEN <= 0) list[i].ISNORMAL = 0; if (list[i].HASHIDDEN <= 0) list[i].ISNORMAL = 0;
if (list[i].ELECTRONIC_FENCE_ID) {
//
data.canDoCheck = false;
}
} }
info.value = resData.pd; info.value = resData.pd;
}, },

View File

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