| | |
| | | <div class="sub-title">用户信息表</div> |
| | | <FormCol> |
| | | <!-- <CompUserInfos :form-info="formUserInfos" /> --> |
| | | <CompBaseInfo :form-info="formUserInfos"/> |
| | | <CompBaseInfo :form-info="formUserInfos" /> |
| | | </FormCol> |
| | | <el-divider /> |
| | | <div class="sub-title">企业信息</div> |
| | | <FormCol> |
| | | <!-- <CompPanyInfo :form-info="formVehicleBaseInfo" /> --> |
| | | <CompPanyInfo :form-info="formPanyInfo" /> |
| | | </FormCol> |
| | | <!-- <template v-if="formAnyInfo.typeid == 1"> |
| | | <div class="sub-title">油烟净化装置</div> |
| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-row justify="end" align="middle" style="height: 80px"> |
| | | <el-button type="success" @click="drawer = true" |
| | | >新增设备</el-button |
| | | > |
| | | <el-button type="success" @click="drawer = true">新增设备</el-button> |
| | | </el-row> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-tab-pane label="行政处罚" name="fourth"> |
| | | <div class="sub-title">行政处罚表</div> |
| | | <FormCol> |
| | | <!-- <CompPunishment :form-info="formProblem" /> --> |
| | | <CompPunishment :table-info="formPunishment" /> |
| | | </FormCol> |
| | | </el-tab-pane> |
| | | |
| | | <el-tab-pane label="信访投诉" name="fifth"> |
| | | <div class="sub-title">信访投诉</div> |
| | | <FormCol> |
| | | <!-- <CompLaint :form-info="formLaint" /> --> |
| | | <CompComplaint :table-info="formComplaint" /> |
| | | </FormCol> |
| | | </el-tab-pane> |
| | | |
| | |
| | | |
| | | <script> |
| | | import userApi from '@/api/fytz/userApi'; |
| | | import punishmentApi from '@/api/fytz/punishmentApi'; |
| | | import lettersAndVisitsApi from '@/api/fytz/lettersAndVisitsApi'; |
| | | |
| | | // import ComBaseInformation from '@/views/baseinfo/fytz/scene/ComBaseInformation.vue'; |
| | | import CompUserInfo from './components/CompUserInfo.vue'; |
| | | import CompBaseInfo from './components/CompBaseInfo.vue'; |
| | | import CompPanyInfo from './components/CompPanyInfo.vue'; |
| | | import CompPunishment from './components/CompPunishment.vue'; |
| | | import CompComplaint from './components/CompComplaint.vue'; |
| | | // import CompLaint from '@/views/baseinfo/fytz/scene/CompLaint.vue'; |
| | | // import CompDeviceInfo from "@/views/baseinfo/fytz/scene/CompDeviceInfo.vue"; |
| | | // import CompPanyInfo from '@/views/baseinfo/fytz/scene/CompPanyInfo.vue'; |
| | |
| | | // CompLaint, |
| | | CompUserInfo, |
| | | CompBaseInfo, |
| | | CompPanyInfo, |
| | | CompPunishment, |
| | | CompComplaint |
| | | // CompDeviceInfo, |
| | | // CompPanyInfo, |
| | | // CompFumePurifyDevice, |
| | |
| | | drawer: false, |
| | | formUser: {}, |
| | | // formSubScene: {}, |
| | | formLaint: {}, |
| | | formComplaint: [], |
| | | // formDevice: {}, |
| | | formPanyInfo: {}, |
| | | formFumePurifyDevice: {}, |
| | | formHazardousWasteFile: {}, |
| | | formHazardousWasteRecord: {}, |
| | | formProblem: {}, |
| | | formPunishment: {}, |
| | | formPunishment: [], |
| | | formRestaurantBaseInfo: {}, |
| | | formVehicleBaseInfo: {}, |
| | | formUserInfos: {}, |
| | | activeName: 'first', |
| | | scroll: '', |
| | | scroll: '' |
| | | }; |
| | | }, |
| | | beforeRouteEnter(to, from, next) { |
| | | userApi.fetchUserBaseInfo(to.params.userId).then((res) => { |
| | | next((vm) => { |
| | | if (res.userInfo) { |
| | | vm.formUser = res.userInfo; |
| | | } else { |
| | | vm.formUser = { |
| | | guid: to.params.userId, |
| | | }; |
| | | } |
| | | if(res.baseInfo){ |
| | | vm.formUserInfos = res.baseInfo |
| | | } |
| | | punishmentApi.fetchPunishment(to.params.userId).then((punish) => { |
| | | lettersAndVisitsApi.fetchLetterAndVisit(to.params.userId).then((letterAndVisit) => { |
| | | next((vm) => { |
| | | if (res.userInfo) { |
| | | vm.formUser = res.userInfo; |
| | | } else { |
| | | vm.formUser = { |
| | | guid: to.params.userId |
| | | }; |
| | | } |
| | | if (res.baseInfo) { |
| | | vm.formUserInfos = res.baseInfo; |
| | | } |
| | | if (res.company) { |
| | | vm.formPanyInfo = res.company; |
| | | } |
| | | |
| | | vm.formPunishment = punish; |
| | | |
| | | vm.formComplaint = letterAndVisit; |
| | | }); |
| | | }); |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | // 回退页面 |
| | | onBack() { |
| | | this.$router.back(); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | <style scoped> |