QcSsgqzysytdqkList_tj.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <template>
  2. <a-card :bordered="false">
  3. <!-- 查询区域 -->
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline" @keyup.enter.native="searchQuery">
  6. <a-row :gutter="24">
  7. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  8. <a-form-item label="单位名称">
  9. <a-input placeholder="请输入单位名称" v-model="queryParam.createBy"/>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  13. <a-form-item label="地块名称">
  14. <a-input placeholder="请输入地块名称" v-model="queryParam.dk"></a-input>
  15. </a-form-item>
  16. </a-col>
  17. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  18. <a-form-item label="地块编号">
  19. <a-input placeholder="请输入地块编号" v-model="queryParam.dkbh"></a-input>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :xl="toggleSearchStatus ? 4 : 5" :lg="7" :md="8" :sm="24">
  23. <a-form-item label="文件类型">
  24. <j-multi-select-tag placeholder="请选择文件类型" v-model="queryParam.wjlx" dictCode="wjlx"/>
  25. </a-form-item>
  26. </a-col>
  27. <template v-if="toggleSearchStatus">
  28. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  29. <a-form-item label="土地使用现状">
  30. <j-dict-select-tag type='list' v-model='queryParam.tdsyxz' dictCode='tdsyxz' placeholder='请选择土地使用现状'/>
  31. </a-form-item>
  32. </a-col>
  33. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  34. <a-form-item label="文件编号">
  35. <a-input placeholder="请输入证书/合同/文件编号" v-model="queryParam.wjbh"></a-input>
  36. </a-form-item>
  37. </a-col>
  38. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  39. <a-form-item label="行政区划">
  40. <JAreaSelect ref="JArea" @Area="SelectArea"></JAreaSelect>
  41. </a-form-item>
  42. </a-col>
  43. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  44. <a-form-item label="实际用途">
  45. <j-category-select v-model="queryParam.sjyt" pcode="A04" placeholder="请选择实际用途"/>
  46. </a-form-item>
  47. </a-col>
  48. <a-col :xl="4" :lg="7" :md="8" :sm="24">
  49. <a-form-item label="是否上报">
  50. <j-dict-select-tag placeholder="请选择是否上报" v-model="queryParam.sfsb" dictCode="xxsbzt"/>
  51. </a-form-item>
  52. </a-col>
  53. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  54. <a-form-item label="使用权使用方式">
  55. <j-multi-select-tag v-model='queryParam.syqsyfs' dictCode='syqsyfs' placeholder='请选择使用权使用方式'/>
  56. </a-form-item>
  57. </a-col>
  58. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  59. <a-form-item label="一级单位">
  60. <j-dict-select-tag placeholder="请选择一级单位" v-model="queryParam.sysOrgCode" dictCode="yjdw"/>
  61. </a-form-item>
  62. </a-col>
  63. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  64. <a-form-item label="审核结果">
  65. <j-dict-select-tag placeholder="请选择是否通过审核" v-model="queryParam.shzt" dictCode="shzt"/>
  66. </a-form-item>
  67. </a-col>
  68. </template>
  69. <a-col :xl="4" :lg="7" :md="8" :sm="24">
  70. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  71. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  72. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  73. <a @click="handleToggleSearch" style="margin-left: 8px">
  74. {{ toggleSearchStatus ? '收起' : '展开' }}
  75. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  76. </a>
  77. </span>
  78. </a-col>
  79. </a-row>
  80. </a-form>
  81. </div>
  82. <!-- 查询区域-END -->
  83. <!-- 操作按钮区域 -->
  84. <div class="table-operator">
  85. <!-- <a-button v-has="'conts:add'" @click="handleAdd2" type="primary" icon="plus">填报信息</a-button>-->
  86. <a-button type="primary" icon="download" @click="handleExportXls('省属国企占有使用土地情况调查')">导出</a-button>
  87. <a-button type="primary" icon="download" @click="handleExportXls('省属国企占有使用土地情况调查')">全部导出</a-button>
  88. <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  89. <a-button type="primary" icon="import">导入</a-button>
  90. </a-upload>
  91. &lt;!&ndash; 高级查询区域 &ndash;&gt;
  92. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  93. <a-dropdown v-if="selectedRowKeys.length > 0">
  94. <a-menu slot="overlay">
  95. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  96. </a-menu>
  97. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  98. </a-dropdown>-->
  99. </div>
  100. <!-- table区域-begin -->
  101. <!-- <div>-->
  102. <!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">-->
  103. <!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a-->
  104. <!-- style="font-weight: 600">{{ selectedRowKeys.length }}</a>项-->
  105. <!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>-->
  106. <!-- </div>-->
  107. <a-tabs :active-key="this.changes" @change="callback" >
  108. <a-tab-pane key="1" tab="列表信息">
  109. <a-table
  110. ref="table"
  111. size="middle"
  112. :scroll="{x:true}"
  113. bordered
  114. rowKey="id"
  115. :columns="columns"
  116. :dataSource="dataSource"
  117. :pagination="ipagination"
  118. :loading="loading"
  119. class="j-table-force-nowrap"
  120. @change="handleTableChange">
  121. <template slot="htmlSlot" slot-scope="text">
  122. <div v-html="text"></div>
  123. </template>
  124. <template slot="imgSlot" slot-scope="text,record">
  125. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  126. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt=""
  127. style="max-width:80px;font-size: 12px;font-style: italic;"/>
  128. </template>
  129. <template slot="fileSlot" slot-scope="text">
  130. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  131. <a-button
  132. v-else
  133. :ghost="true"
  134. type="primary"
  135. icon="download"
  136. size="small"
  137. @click="downloadFile(text)">
  138. 下载
  139. </a-button>
  140. </template>
  141. <span slot="action" slot-scope="text, record">
  142. <a-space>
  143. <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
  144. </a-space>
  145. </span>
  146. </a-table>
  147. </a-tab-pane>
  148. <a-tab-pane key="2" tab="统计图表" force-render>
  149. <listTable ref="table" :loading="this.load" :result-data="this.resultData" :title="title"></listTable>
  150. </a-tab-pane>
  151. </a-tabs>
  152. <qc-ssgqzysytdqk-modal ref="modalForm" @ok="modalFormOk"></qc-ssgqzysytdqk-modal>
  153. </a-card>
  154. </template>
  155. <script>
  156. import '@/assets/less/TableExpand.less'
  157. import {mixinDevice} from '@/utils/mixin'
  158. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  159. import QcSsgqzysytdqkModal from './modules/QcSsgqzysytdqkModal_tj'
  160. import {filterMultiDictText,getDictItems} from '@/components/dict/JDictSelectUtil'
  161. import {getAction} from '../../api/manage'
  162. import {loadCategoryData} from '@/api/api'
  163. import listTable from '@/views/listStatistics/listTab'
  164. import store from '@/store'
  165. import JAreaSelect from "@comp/jeecg/JAreaSelect";
  166. import { filterObj } from '@/utils/util';
  167. import { ssColunms, getDictOption, getViewType } from '@/utils/columns'
  168. export default {
  169. name: 'QcSsgqzysytdqkList',
  170. props: {
  171. param: {
  172. default: ""
  173. }
  174. },
  175. mixins: [JeecgListMixin, mixinDevice],
  176. components: {
  177. QcSsgqzysytdqkModal,
  178. listTable,
  179. JAreaSelect,
  180. },
  181. data() {
  182. return {
  183. dlr: false,
  184. title:'',
  185. description: '省属国企占有使用土地情况调查管理页面',
  186. resultData: [],
  187. load: true,
  188. changes:'1',
  189. // 表头
  190. columns: ssColunms,
  191. url: {
  192. list: "/qcsb/qcSsgqzysytdqk/listBygly",
  193. delete: "/qcsb/qcSsgqzysytdqk/delete",
  194. deleteBatch: "/qcsb/qcSsgqzysytdqk/deleteBatch",
  195. exportXlsUrl: "/qcsb/qcSsgqzysytdqk/exportXls",
  196. importExcelUrl: "qcsb/qcSsgqzysytdqk/importExcel",
  197. wcsh: "/qcsb/qcSsgqzysytdqk/wcsh",
  198. hfysh: "/qcsb/qcSsgqzysytdqk/hfysh",
  199. listTable: "/qcsb/qcSsgqzysytdqk/sumList"
  200. },
  201. dictOptions: {},
  202. superFieldList: [],
  203. // 查询条件
  204. queryParam: {},
  205. }
  206. },
  207. created() {
  208. this.getSuperFieldList();
  209. },
  210. mounted() {
  211. this.show()
  212. this.searchQuery()
  213. getViewType("ss")
  214. },
  215. watch: {
  216. 'queryParam.sysOrgCode': {
  217. handler(newVal) {
  218. if (newVal != ''){
  219. getDictItems('yjdw', newVal).then(res => {
  220. for (const re of res) {
  221. if (re.value == newVal) {
  222. this.title = re.text
  223. }
  224. }
  225. })
  226. }else{
  227. this.title = ''
  228. }
  229. }
  230. }
  231. },
  232. computed: {
  233. importExcelUrl: function () {
  234. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  235. },
  236. },
  237. methods: {
  238. searchQuery() {
  239. this.changes='1'
  240. this.loadData(1);
  241. // 点击查询清空列表选中行
  242. // https://gitee.com/jeecg/jeecg-boot/issues/I4KTU1
  243. this.selectedRowKeys = []
  244. this.selectionRows = []
  245. },
  246. loadData(arg) {
  247. if (!this.url.list) {
  248. this.$message.error("请设置url.list属性!")
  249. return
  250. }
  251. this.queryParam = Object.assign(this.queryParam, this.param);
  252. //加载数据 若传入参数1则加载第一页的内容
  253. if (arg === 1) {
  254. this.ipagination.current = 1;
  255. }
  256. this.loading = true;
  257. console.log(777777777777777777,this.getQueryParams())
  258. getAction(this.url.list, this.getQueryParams()).then((res) => {
  259. if (res.success) {
  260. //update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
  261. this.dataSource = res.result.records || res.result;
  262. this.dataSource.forEach((item) => {
  263. if (item.gyzccgbl) {
  264. item.gyzccgbl = Number(item.gyzccgbl).toFixed(2)
  265. }
  266. })
  267. if (res.result.total) {
  268. this.ipagination.total = res.result.total;
  269. } else {
  270. this.ipagination.total = 0;
  271. }
  272. //update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
  273. } else {
  274. this.$message.warning(res.message)
  275. }
  276. }).finally(() => {
  277. this.loading = false
  278. })
  279. },
  280. callback(key) {
  281. if (key == 1) {
  282. this.emptyData()
  283. this.changes='1'
  284. }
  285. if (key == 2) {
  286. this.changes='2'
  287. this.emptyData()
  288. this.updataData()
  289. }
  290. },
  291. emptyData(){
  292. this.load = true
  293. this.$refs.table.data=[]
  294. this.$refs.table.areaData=[]
  295. this.$refs.table.pieResultData=[]
  296. this.$refs.table.pieAreaResultData=[]
  297. this.$refs.table.DoughnutResultData=[]
  298. this.$refs.table.doughnutByXzResultData=[]
  299. this.$refs.table.xzData=[]
  300. this.$refs.table.registerData=[]
  301. this.$refs.table.barResultData=[]
  302. this.$refs.table.nan=[]
  303. this.$refs.table.va=[]
  304. this.$refs.table.xqData=[]
  305. this.$refs.table.sjytData=[]
  306. this.$refs.table.sjytValue=[]
  307. this.$refs.table.sjytName=[]
  308. this.$refs.table.barBysjytResultData=[]
  309. this.$refs.table.number=0
  310. },
  311. updataData(){
  312. let _this = this;
  313. new Promise(function (resolve, reject) {
  314. getAction(_this.url.listTable, _this.queryParam).then(res => {
  315. if (res.success) {
  316. _this.load = false
  317. _this.resultData = res.result
  318. resolve();
  319. }
  320. })
  321. })
  322. },
  323. SelectArea(val) {
  324. if (val.length > 4) {
  325. this.queryParam.xzqh = val + '*'
  326. } else {
  327. this.queryParam.xzqh = val.slice(0, 4) + '*'
  328. }
  329. },
  330. searchReset() {
  331. this.$refs.JArea.allClear(),
  332. // this.param={}
  333. this.queryParam = {}
  334. this.loadData(1);
  335. },
  336. show() {
  337. getAction("/qcsb.qyxx/qcQyxx/dlr").then(res => {
  338. if (res.success) {
  339. if (res.result == 'gzw') {
  340. this.dl = true
  341. }
  342. }
  343. })
  344. }
  345. ,
  346. handleWCSH(id) {
  347. getAction(this.url.wcsh, {id: id}).then(res => {
  348. if (res.success) {
  349. this.$message.success('审核完成');
  350. this.loadData();
  351. }
  352. })
  353. },
  354. handleHFYSH(id) {
  355. getAction(this.url.hfysh, {id: id}).then(res => {
  356. if (res.success) {
  357. this.$message.success('已经恢复');
  358. this.loadData();
  359. }
  360. })
  361. },
  362. initDictConfig() {
  363. loadCategoryData({code: 'A04'}).then((res) => {
  364. if (res.success) {
  365. console.log(res.result)
  366. this.$set(this.dictOptions, 'sjyt', res.result)
  367. getDictOption(this.dictOptions);
  368. }
  369. })
  370. },
  371. getSuperFieldList() {
  372. let fieldList = [];
  373. fieldList.push({type: 'string', value: 'dk', text: '地块', dictCode: ''})
  374. fieldList.push({type: 'string', value: 'wjlx', text: '文件类型', dictCode: 'wjlx'})
  375. fieldList.push({type: 'string', value: 'wjbh', text: '证书/合同/文件编号', dictCode: ''})
  376. fieldList.push({type: 'string', value: 'tdsyqr', text: '土地使用权人', dictCode: ''})
  377. fieldList.push({type: 'double', value: 'sjzytdmj', text: '实际占用土地面积', dictCode: ''})
  378. fieldList.push({type: 'double', value: 'qzpzsymj', text: '其中批准使用面积', dictCode: ''})
  379. fieldList.push({type: 'double', value: 'sjsyjzmj', text: '实际使用建筑面积', dictCode: ''})
  380. fieldList.push({type: 'double', value: 'qzpzsymj2', text: '其中批准使用面积', dictCode: ''})
  381. fieldList.push({type: 'double', value: 'sjrjl', text: '容积率', dictCode: ''})
  382. fieldList.push({type: 'string', value: 'syqsyfs', text: '使用权使用方式', dictCode: 'syqsyfs'})
  383. fieldList.push({type: 'string', value: 'zlwz', text: '坐落位置', dictCode: ''})
  384. fieldList.push({type: 'string', value: 'sjyt', text: '实际用途', dictCode: 'tdyt'})
  385. fieldList.push({type: 'date', value: 'qsqssj', text: '权属起始时间'})
  386. fieldList.push({type: 'date', value: 'qsdqsj', text: '权属到期时间'})
  387. fieldList.push({type: 'string', value: 'tdsyxz', text: '土地使用现状', dictCode: 'tdsyxz'})
  388. fieldList.push({
  389. type: 'list_multi',
  390. value: 'dbdycfqk',
  391. text: '担保、抵押、查封情况',
  392. dictTable: "",
  393. dictText: '',
  394. dictCode: 'dbdycfqk'
  395. })
  396. fieldList.push({type: 'string', value: 'bz', text: '备注', dictCode: ''})
  397. fieldList.push({type: 'string', value: 'xgwj', text: '附件材料', dictCode: ''})
  398. fieldList.push({type: 'int', value: 'sfsb', text: '是否上报', dictCode: 'xxsbzt'})
  399. this.superFieldList = fieldList
  400. },
  401. }
  402. }
  403. </script>
  404. <style scoped>
  405. @import '~@assets/less/common.less';
  406. </style>