| | |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import EmergencySupplies from '/@/components/emergencySupplies/index.vue'; |
| | | import UserSelections from '/@/components/userSelections/index.vue'; |
| | | import { emergencyMaterialsInspectionApi } from '/@/api/emergencyMaterialsInspection'; |
| | | import { maintenanceEmergencyMaterialsApi } from '/@/api/maintenanceEmergencyMaterials'; |
| | | import { emergencyMaterialsInspectionApi } from '/@/api/contingencyManagement/emergencyMaterialsInspection'; |
| | | import { maintenanceEmergencyMaterialsApi } from '/@/api/contingencyManagement/maintenanceEmergencyMaterials'; |
| | | |
| | | export default defineComponent({ |
| | | name: 'openAdd', |
| | |
| | | await formEl.validate((valid, fields) => { |
| | | if (valid) { |
| | | isShowDialog.value = false; |
| | | delete ruleForm.value.suppliesName |
| | | delete ruleForm.value.userName |
| | | emergencyMaterialsInspectionApi() |
| | | .addEmergencyMaterialsInspection(ruleForm.value) |
| | | .then((res) => { |
| | |
| | | await formEl.validate((valid, fields) => { |
| | | if (valid) { |
| | | isShowDialog.value = false; |
| | | delete ruleForm.value.suppliesName |
| | | delete ruleForm.value.userName |
| | | emergencyMaterialsInspectionApi() |
| | | .editEmergencyMaterialsInspection(ruleForm.value) |
| | | .then((res) => { |