| | |
| | | |
| | | export function emergencySuppliesInspectApi(){ |
| | | return{ |
| | | // 应急物资检查一览 |
| | | getEmergencySuppliesInspectList: (params: object) => { |
| | | return request({ |
| | | url: '/emergencyTeam/page/list', |
| | |
| | | <el-row> |
| | | <el-form ref="ruleFormRef" :model="ruleForm" :inline="true" status-icon> |
| | | <el-form-item> |
| | | <el-input size="default" v-model="listQuery.searchParams.name" placeholder="物资名称" style="max-width: 215px;"/> |
| | | <el-input size="default" v-model="listQuery.searchParams.name" placeholder="物资名称" style="max-width: 215px;margin-right: 12px;"/> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button size="default" type="primary" @click="onSubmit">查询</el-button> |
| | |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | | <Material ref="showRef"/> |
| | | <EmergencySupplies ref="showRef" @SearchUser="onUser"/> |
| | | <userSelections ref="userRef"/> |
| | | </div> |
| | | </template> |
| | |
| | | Search, |
| | | FullScreen, |
| | | } from '@element-plus/icons-vue' |
| | | import Material from '/@/components/material/index.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"; |
| | |
| | | name: 'openAdd', |
| | | components: { |
| | | UserSelections, |
| | | Material, |
| | | EmergencySupplies, |
| | | }, |
| | | setup(props, { emit }) { |
| | | const isShowDialog = ref(false) |
| | |
| | | await formEl.validate((valid, fields) => { |
| | | if (valid) { |
| | | isShowDialog.value = false; |
| | | maintenanceEmergencyMaterialsApi() |
| | | .addMaintenanceEmergencyMaterials(ruleForm.value) |
| | | emergencyMaterialsInspectionApi() |
| | | .addEmergencyMaterialsInspection(ruleForm.value) |
| | | .then((res) => { |
| | | if (res.data.code == 200) { |
| | | ElMessage({ |
| | |
| | | await formEl.validate((valid, fields) => { |
| | | if (valid) { |
| | | isShowDialog.value = false; |
| | | maintenanceEmergencyMaterialsApi() |
| | | .editMaintenanceEmergencyMaterials(ruleForm.value) |
| | | emergencyMaterialsInspectionApi() |
| | | .editEmergencyMaterialsInspection(ruleForm.value) |
| | | .then((res) => { |
| | | if (res.data.code == 200) { |
| | | ElMessage({ |
| | |
| | | const daiInpt=()=>{ |
| | | showRef.value.openDailog() |
| | | } |
| | | const onUser = (e:any) => { |
| | | ruleForm.value.suppliesId=e.id |
| | | }; |
| | | // 编写人弹窗 |
| | | const userRef = ref(); |
| | | const openUser = () => { |
| | |
| | | titles, |
| | | disabled, |
| | | emit, |
| | | onUser, |
| | | }; |
| | | }, |
| | | }); |
| | |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | | <Material ref="showRef"/> |
| | | <EmergencySupplies ref="showRef" @SearchUser="onUser"/> |
| | | <userSelections ref="userRef"/> |
| | | </div> |
| | | </template> |
| | |
| | | Search, |
| | | FullScreen |
| | | } from '@element-plus/icons-vue' |
| | | import Material from '/@/components/material/index.vue' |
| | | import EmergencySupplies from '/@/components/emergencySupplies/index.vue' |
| | | import UserSelections from "/@/components/userSelections/index.vue" |
| | | import {emergencyMaterialsInspectionApi} from "/@/api/emergencyMaterialsInspection"; |
| | | |
| | |
| | | name: 'inspect', |
| | | components: { |
| | | UserSelections, |
| | | Material, |
| | | EmergencySupplies, |
| | | }, |
| | | setup(props, { emit }) { |
| | | const isShowDialog = ref(false) |
| | |
| | | const daiInpt=()=>{ |
| | | showRef.value.openDailog() |
| | | } |
| | | const onUser = (e:any) => { |
| | | ruleForm.value.suppliesId=e.id |
| | | }; |
| | | // 编写人弹窗 |
| | | const userRef = ref(); |
| | | const openUser = () => { |
| | |
| | | value1, |
| | | daiInpt, |
| | | showRef, |
| | | onUser, |
| | | ruleFormRef, |
| | | submitForm, |
| | | openUser, |
| | |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | | <Material ref="showRef"/> |
| | | <EmergencySupplies ref="showRef" @SearchUser="onUser"/> |
| | | <userSelections ref="userRef"/> |
| | | </div> |
| | | </template> |
| | |
| | | Search, |
| | | FullScreen |
| | | } from '@element-plus/icons-vue' |
| | | import Material from '/@/components/material/index.vue' |
| | | import EmergencySupplies from '/@/components/emergencySupplies/index.vue' |
| | | import UserSelections from "/@/components/userSelections/index.vue" |
| | | import {maintenanceEmergencyMaterialsApi} from "/@/api/maintenanceEmergencyMaterials"; |
| | | |
| | |
| | | name: 'maintain', |
| | | components: { |
| | | UserSelections, |
| | | Material, |
| | | EmergencySupplies, |
| | | }, |
| | | setup(props, { emit }) { |
| | | const isShowDialog = ref(false) |
| | |
| | | const daiInpt=()=>{ |
| | | showRef.value.openDailog() |
| | | } |
| | | const onUser = (e:any) => { |
| | | ruleForm.value.suppliesId=e.id |
| | | }; |
| | | |
| | | // 编写人弹窗 |
| | | const userRef = ref(); |
| | | const openUser = () => { |
| | |
| | | daiInpt, |
| | | showRef, |
| | | ruleFormRef, |
| | | onUser, |
| | | submitForm, |
| | | openUser, |
| | | userRef, |
| | |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | | <Material ref="showRef"/> |
| | | <EmergencySupplies ref="showRef" @SearchUser="onUser"/> |
| | | <userSelections ref="userRef"/> |
| | | </div> |
| | | </template> |
| | |
| | | Search, |
| | | FullScreen |
| | | } from '@element-plus/icons-vue' |
| | | import Material from '/@/components/material/index.vue' |
| | | import EmergencySupplies from '/@/components/emergencySupplies/index.vue' |
| | | import UserSelections from "/@/components/userSelections/index.vue" |
| | | import {maintenanceEmergencyMaterialsApi} from "/@/api/maintenanceEmergencyMaterials"; |
| | | |
| | |
| | | name: 'openAdd', |
| | | components: { |
| | | UserSelections, |
| | | Material, |
| | | EmergencySupplies, |
| | | }, |
| | | setup(props, { emit }) { |
| | | const isShowDialog = ref(false) |
| | |
| | | const daiInpt=()=>{ |
| | | showRef.value.openDailog() |
| | | } |
| | | const onUser = (e:any) => { |
| | | ruleForm.value.suppliesId=e.id |
| | | }; |
| | | // 编写人弹窗 |
| | | const userRef = ref(); |
| | | const openUser = () => { |
| | |
| | | ruleForm, |
| | | maintainTime, |
| | | daiInpt, |
| | | onUser, |
| | | showRef, |
| | | ruleFormRef, |
| | | submitForm, |