diff --git a/src/views/hazard_investigation/inventory_management/add_custom.vue b/src/views/hazard_investigation/inventory_management/add_custom.vue index eac302d..f0c2612 100644 --- a/src/views/hazard_investigation/inventory_management/add_custom.vue +++ b/src/views/hazard_investigation/inventory_management/add_custom.vue @@ -168,10 +168,7 @@ > 选择其他检查标准 - + 添加检查标准 @@ -331,7 +328,6 @@ const troubleshootingCycleList = await layoutFnGetTroubleshootingCycle(); const inventoryTypeList = await layoutFnGetInventoryType(); const fnGetData = async () => { - console.log(WHETHER_HAZARDS); if (!ID) return; const resData = await getCheckStandardManagementView({ ID }); data.form = resData.pd; @@ -385,9 +381,13 @@ const fnTableSelection = async () => { tableRef.value.toggleRowSelection(item); }); }; +const addStandard = () => { + data.addOrEditDialog.visible = true; +}; const fnAddStandardSubmit = (item) => { - data.list.push(item); - data.listAll.push(item); + const obj = Object.assign({}, item); + data.list.push(obj); + data.listAll.push(JSON.stringify(obj)); fnTableSelection(); }; const fnSelectStandardSubmit = (listData) => { diff --git a/src/views/hazard_investigation/inventory_management/components/checkstandard_add.vue b/src/views/hazard_investigation/inventory_management/components/checkstandard_add.vue index 1052058..c0005ae 100644 --- a/src/views/hazard_investigation/inventory_management/components/checkstandard_add.vue +++ b/src/views/hazard_investigation/inventory_management/components/checkstandard_add.vue @@ -121,11 +121,6 @@ const props = defineProps({ required: true, default: () => [], }, - listData: { - type: Array, - required: true, - default: () => [], - }, type: { type: String, required: true, @@ -221,7 +216,9 @@ const rules = { ], }; const fnClose = () => { - // form.resetFields(); + formRef.value.resetFields(); + data.CHECK_CATEGORY_NAME = ""; + data.CHECK_ITEM_NAME = ""; visible.value = false; }; const fnSubmit = debounce(