QcSsgqzysytdqkList_gly.vue 19 KB

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