| | |
| | | <template> |
| | | <div> |
| | | <basic-container> |
| | | <avue-crud |
| | | :option="tableOption" |
| | | :table-loading="loading" |
| | | :data="tableData" |
| | | :page.sync="page" |
| | | :permission="permissionList" |
| | | ref="crud" |
| | | :search.sync="search" |
| | | @row-update="rowUpdates" |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | @cell-click="handleRowClick" |
| | | class="businessStatisticsStyle" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | @click="handleExportBusinessStatis" |
| | | >导出 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | <basic-container |
| | | :class="[ |
| | | 'witerFontColorInput', |
| | | $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize', |
| | | $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '' |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | class="tablesss businessStatisticsStyle" |
| | | :option="tableOption" |
| | | :table-loading="loading" |
| | | :data="tableData" |
| | | :page.sync="page" |
| | | :permission="permissionList" |
| | | ref="crud" |
| | | :search.sync="search" |
| | | @row-update="rowUpdates" |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | @cell-click="handleRowClick" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | @click="handleExportBusinessStatis" |
| | | >导出 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog |
| | | class="tongji-class" |
| | | :title="dialogTitle" |
| | |
| | | :paramCz="paramCz" |
| | | ></securityGuardDetail> |
| | | </el-dialog> |
| | | </div> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import { |
| | | selectYw, |
| | | dictionaryList, |
| | | dictionaryList |
| | | } from "@/api/statisticalQueryManagement/statisticalQueryManagement"; |
| | | // import { lazyTrees } from "@/api/index/index"; |
| | | import businessStatisticsDetail from "./businessStatisticsDetail"; |
| | |
| | | businessStatisticsDetail, |
| | | businessStatisticsPq, |
| | | businessStatisticsFwdq, |
| | | securityGuardDetail, |
| | | securityGuardDetail |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize, |
| | | ...this.$store.state.control.changePageSize |
| | | }, |
| | | search: {}, |
| | | query: {}, |
| | |
| | | indexLabel: "序号", |
| | | viewBtn: true, |
| | | dialogClickModal: false, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | column: [ |
| | | { |
| | | label: "公司名称", |
| | |
| | | search: true, |
| | | searchSpan: 4, |
| | | width: 300, |
| | | display: false, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "单位类型", |
| | |
| | | type: "select", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey", |
| | | value: "dictKey" |
| | | }, |
| | | dicData: [], |
| | | dicData: [] |
| | | }, |
| | | { |
| | | label: "所属辖区", |
| | |
| | | type: "tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | value: "id" |
| | | }, |
| | | dicData: [], |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择所属辖区", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "所属辖区", |
| | |
| | | dicUrl: "/api/jurisdiction/lazy-tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | value: "id" |
| | | }, |
| | | hide: true, |
| | | checkStrictly: true, |
| | |
| | | { |
| | | required: false, |
| | | message: "请选择所属辖区", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "保安员人数", |
| | | prop: "znum", |
| | | display: false, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "持证人数", |
| | | prop: "cznum", |
| | | display: false, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "派遣人数", |
| | | prop: "pqnum", |
| | | display: false, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "服务对象数量", |
| | | prop: "fwnum", |
| | | display: false, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "服务到期数量", |
| | | prop: "dqnum", |
| | | display: false, |
| | | display: false |
| | | }, |
| | | { |
| | | label: "单位注册时间", |
| | |
| | | { |
| | | required: true, |
| | | message: "请选择单位注册时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | loading: true, |
| | | dialogTitle: "", |
| | |
| | | pqdialogShow: false, |
| | | fwdeptId: "", |
| | | searchitem: "", |
| | | paramCz: false, |
| | | paramCz: false |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | addBtn: this.vaildData(this.permission.post_add, false), |
| | | viewBtn: this.vaildData(this.permission.post_view, false), |
| | | delBtn: this.vaildData(this.permission.post_delete, false), |
| | | editBtn: this.vaildData(this.permission.post_edit, false), |
| | | editBtn: this.vaildData(this.permission.post_edit, false) |
| | | }; |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | //业务情况统计信息导出 |
| | |
| | | this.$confirm("是否导出业务情况统计信息数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | type: "warning" |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | const { releaseTimeRange } = this.search; |
| | |
| | | stats: this.search.stats, |
| | | deptid: this.search.enterpriseName, |
| | | startTime: this.search.startTime, |
| | | endTime: this.search.endTime, |
| | | endTime: this.search.endTime |
| | | }; |
| | | // console.log(data,123); |
| | | //序列号url形式,用&拼接 |
| | |
| | | // }); |
| | | }, |
| | | getDictionaryList() { |
| | | dictionaryList().then((res) => { |
| | | dictionaryList().then(res => { |
| | | if (res.data.code === 200) { |
| | | this.tableOption.column.forEach((item) => { |
| | | this.tableOption.column.forEach(item => { |
| | | if (item.label == "单位类型") { |
| | | item.dicData = res.data.data; |
| | | } |
| | |
| | | param["size"] = page.pageSize; |
| | | const { releaseTimeRange } = this.query; |
| | | let values = { |
| | | ...param, |
| | | ...param |
| | | }; |
| | | if (releaseTimeRange) { |
| | | values = { |
| | | ...param, |
| | | startTime: releaseTimeRange[0], |
| | | endTime: releaseTimeRange[1], |
| | | ...this.query, |
| | | ...this.query |
| | | }; |
| | | values.releaseTimeRange = null; |
| | | } |
| | | selectYw(values).then((res) => { |
| | | selectYw(values).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.tableData = data.records; |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | |
| | | } else { |
| | | this.dialogShow = false; |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | mounted() { |
| | | // this.getSubOfficeData(); |
| | | this.getDictionaryList(); |
| | | }, |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |