QcSsgqzysytdqkList_gly.vue 18 KB

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