forked from integrated_whb/integrated_whb_vue
清单排查
parent
2dfe2e9ee7
commit
1b06549a31
|
@ -262,7 +262,6 @@ import {
|
||||||
setHiddenDangerDelete,
|
setHiddenDangerDelete,
|
||||||
setInventoryTroubleshootingSubmit,
|
setInventoryTroubleshootingSubmit,
|
||||||
setChecklistInspectionStatusRecordSupplementaryRecordingSubmit,
|
setChecklistInspectionStatusRecordSupplementaryRecordingSubmit,
|
||||||
getCheckStandardManagementView,
|
|
||||||
} from "@/request/hazard_investigation.js";
|
} from "@/request/hazard_investigation.js";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import useListData from "@/assets/js/useListData.js";
|
import useListData from "@/assets/js/useListData.js";
|
||||||
|
@ -284,7 +283,7 @@ import { WarningFilled } from "@element-plus/icons-vue";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { LIST_ID, CHECKRECORD_ID, DATEEND, DATESTART, LIST_TYPE } = route.query;
|
const { ID, CHECKRECORD_ID, DATEEND, DATESTART } = route.query;
|
||||||
// entrance: supplementaryRecording是补录,空值是正常录入
|
// entrance: supplementaryRecording是补录,空值是正常录入
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
entrance: {
|
entrance: {
|
||||||
|
@ -338,32 +337,24 @@ const data = reactive({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const { list: inspectionList } = useListData(
|
const { list: inspectionList } = useListData(getInventoryManagementView, {
|
||||||
LIST_TYPE === "1"
|
otherParams: { LISTMANAGER_ID: ID },
|
||||||
? getInventoryManagementView
|
usePagination: false,
|
||||||
: getCheckStandardManagementView,
|
callbackFn: (list, resData) => {
|
||||||
{
|
for (let i = 0; i < list.length; i++) {
|
||||||
otherParams:
|
if (list[i].HASHIDDEN <= 0) list[i].ISNORMAL = 0;
|
||||||
LIST_TYPE === "1" ? { LISTMANAGER_ID: LIST_ID } : { ID: LIST_ID },
|
if (list[i].ELECTRONIC_FENCE_ID) {
|
||||||
usePagination: false,
|
// 存在电子围栏禁止清单排查
|
||||||
callbackFn: (list, resData) => {
|
data.canDoCheck = false;
|
||||||
if (LIST_TYPE === "1") {
|
|
||||||
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;
|
}
|
||||||
},
|
info.value = resData.pd;
|
||||||
}
|
},
|
||||||
);
|
});
|
||||||
const { list: otherHiddenList, fnGetData: fnGetOtherHidden } = useListData(
|
const { list: otherHiddenList, fnGetData: fnGetOtherHidden } = useListData(
|
||||||
getInventoryTroubleshootingOtherHiddenList,
|
getInventoryTroubleshootingOtherHiddenList,
|
||||||
{
|
{
|
||||||
otherParams: { LIST_ID },
|
otherParams: { LISTMANAGER_ID: ID },
|
||||||
usePagination: false,
|
usePagination: false,
|
||||||
key: "hiddenList",
|
key: "hiddenList",
|
||||||
}
|
}
|
||||||
|
@ -510,7 +501,7 @@ const fnSubmit = debounce(
|
||||||
const inspectedList = cloneDeep(data.form.inspectedList);
|
const inspectedList = cloneDeep(data.form.inspectedList);
|
||||||
if (inspectedList.length > 0) inspectedList.splice(0, 1);
|
if (inspectedList.length > 0) inspectedList.splice(0, 1);
|
||||||
const params = {
|
const params = {
|
||||||
LIST_ID,
|
LISTMANAGER_ID: ID,
|
||||||
LIST_NAME: info.value.NAME,
|
LIST_NAME: info.value.NAME,
|
||||||
CHECK_TIME: data.form.CHECK_TIME,
|
CHECK_TIME: data.form.CHECK_TIME,
|
||||||
DESCR: data.form.DESCR,
|
DESCR: data.form.DESCR,
|
||||||
|
|
|
@ -124,7 +124,7 @@ const fnClose = () => {
|
||||||
const fnRemoveRegName = debounce(
|
const fnRemoveRegName = debounce(
|
||||||
1000,
|
1000,
|
||||||
async () => {
|
async () => {
|
||||||
form.value.ELECTRONIC_FENCE = "";
|
form.value.ELECTRONIC_FENCE_NAME = "";
|
||||||
form.value.ELECTRONIC_FENCE_ID = "";
|
form.value.ELECTRONIC_FENCE_ID = "";
|
||||||
},
|
},
|
||||||
{ atBegin: true }
|
{ atBegin: true }
|
||||||
|
|
Loading…
Reference in New Issue