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