QcSsgqzysytdqkList_gly.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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="6" :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="6" :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="6" :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="6" :lg="7" :md="8" :sm="24">
  23. <a-form-item label="行政区划">
  24. <JAreaSelect ref="JArea" @Area="SelectArea"></JAreaSelect>
  25. </a-form-item>
  26. </a-col>
  27. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  28. <a-form-item label="证书/合同/文件编号">
  29. <a-input placeholder="请输入证书/合同/文件编号" v-model="queryParam.wjbh"></a-input>
  30. </a-form-item>
  31. </a-col>
  32. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  33. <a-form-item label="文件类型">
  34. <j-dict-select-tag placeholder="请选择文件类型" v-model="queryParam.wjlx" dictCode="wjlx"/>
  35. </a-form-item>
  36. </a-col>
  37. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  38. <a-form-item label="是否上报">
  39. <j-dict-select-tag placeholder="请选择是否上报" v-model="queryParam.sfsb" dictCode="xxsbzt"/>
  40. </a-form-item>
  41. </a-col>
  42. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  43. <a-form-item label="土地使用现状">
  44. <j-dict-select-tag type='list' v-model='queryParam.tdsyxz' dictCode='tdsyxz' placeholder='请选择土地使用现状'/>
  45. </a-form-item>
  46. </a-col>
  47. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  48. <a-form-item label="使用权使用方式">
  49. <j-dict-select-tag type='list' v-model='queryParam.syqsyfs' dictCode='syqsyfs' placeholder='请选择使用权使用方式'/>
  50. </a-form-item>
  51. </a-col>
  52. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  53. <a-form-item label="一级单位">
  54. <j-dict-select-tag placeholder="请选择一级单位" v-model="queryParam.sysOrgCode" dictCode="yjdw"/>
  55. </a-form-item>
  56. </a-col>
  57. <template v-if="toggleSearchStatus">
  58. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  59. <a-form-item label="土地使用权人">
  60. <a-input placeholder="请输入土地使用权人" v-model="queryParam.tdsyqr"></a-input>
  61. </a-form-item>
  62. </a-col>
  63. <a-col :xl="6" :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="6" :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. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  120. class="j-table-force-nowrap"
  121. @change="handleTableChange">
  122. <template slot="htmlSlot" slot-scope="text">
  123. <div v-html="text"></div>
  124. </template>
  125. <template slot="imgSlot" slot-scope="text,record">
  126. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  127. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt=""
  128. style="max-width:80px;font-size: 12px;font-style: italic;"/>
  129. </template>
  130. <template slot="fileSlot" slot-scope="text">
  131. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  132. <a-button
  133. v-else
  134. :ghost="true"
  135. type="primary"
  136. icon="download"
  137. size="small"
  138. @click="downloadFile(text)">
  139. 下载
  140. </a-button>
  141. </template>
  142. <span slot="action" slot-scope="text, record">
  143. <a-space>
  144. <a-button v-if="record.sfsb<3" @click="handleEdit(record)">编辑</a-button>
  145. <a-button v-if="record.sfsb==3" @click="handleEdit(record)">重新审核</a-button>
  146. <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
  147. <a-button v-if="record.sfsb===3" @click="handleWCSH(record.id)">完成审核</a-button>
  148. <a-popconfirm title="确定恢复么吗?" @confirm="() => handleHFYSH(record.id)">
  149. <a-button v-if="record.sfsb===4">恢复为已审核</a-button>
  150. </a-popconfirm>
  151. </a-space>
  152. </span>
  153. </a-table>
  154. </a-tab-pane>
  155. <a-tab-pane key="2" tab="统计图表" force-render>
  156. <listTable ref="table" :loading="this.load" :result-data="this.resultData"></listTable>
  157. </a-tab-pane>
  158. </a-tabs>
  159. </div>
  160. <qc-ssgqzysytdqk-modal ref="modalForm" @ok="modalFormOk"></qc-ssgqzysytdqk-modal>
  161. </a-card>
  162. </template>
  163. <script>
  164. import '@/assets/less/TableExpand.less'
  165. import {mixinDevice} from '@/utils/mixin'
  166. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  167. import QcSsgqzysytdqkModal from './modules/QcSsgqzysytdqkModal2'
  168. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  169. import {getAction} from '../../api/manage'
  170. import {loadCategoryData} from '@/api/api'
  171. import listTable from '@/views/listStatistics/listTab'
  172. import store from '@/store'
  173. import JAreaSelect from "@comp/jeecg/JAreaSelect";
  174. export default {
  175. name: 'QcSsgqzysytdqkList',
  176. mixins: [JeecgListMixin, mixinDevice],
  177. components: {
  178. QcSsgqzysytdqkModal,
  179. listTable,
  180. JAreaSelect,
  181. },
  182. data() {
  183. return {
  184. dlr: false,
  185. description: '省属国企占有使用土地情况调查管理页面',
  186. resultData: [],
  187. load: true,
  188. changes:'1',
  189. // 表头
  190. columns: [
  191. {
  192. title: '#',
  193. dataIndex: '',
  194. key: 'rowIndex',
  195. width: 60,
  196. align: "center",
  197. customRender: function (t, r, index) {
  198. return parseInt(index) + 1;
  199. }
  200. },
  201. {
  202. title: '用地单位名称',
  203. align: "center",
  204. dataIndex: 'sysOrgCode_dictText'
  205. },
  206. {
  207. title: '地块',
  208. align: "center",
  209. dataIndex: 'dk'
  210. },
  211. {
  212. title: '文件类型',
  213. align: "center",
  214. dataIndex: 'wjlx_dictText'
  215. },
  216. {
  217. title: '证书/合同/文件编号',
  218. align: "center",
  219. dataIndex: 'wjbh'
  220. },
  221. {
  222. title: '土地使用权人',
  223. align: "center",
  224. dataIndex: 'tdsyqr'
  225. },
  226. {
  227. title: '使用权使用方式',
  228. align: "center",
  229. dataIndex: 'syqsyfs_dictText'
  230. },
  231. {
  232. title: '实际用途',
  233. align: "center",
  234. dataIndex: 'sjyt',
  235. customRender:
  236. (text) => (text ? filterMultiDictText(this.dictOptions['sjyt'], text) : '')
  237. },
  238. {
  239. title: '是否上报',
  240. align: "center",
  241. dataIndex: 'sfsb_dictText'
  242. },
  243. {
  244. title: '操作',
  245. dataIndex: 'action',
  246. align: "center",
  247. fixed: "right",
  248. width: 147,
  249. scopedSlots: {customRender: 'action'}
  250. }
  251. ],
  252. url: {
  253. list: "/qcsb/qcSsgqzysytdqk/listBygly",
  254. delete: "/qcsb/qcSsgqzysytdqk/delete",
  255. deleteBatch: "/qcsb/qcSsgqzysytdqk/deleteBatch",
  256. exportXlsUrl: "/qcsb/qcSsgqzysytdqk/exportXls",
  257. importExcelUrl: "qcsb/qcSsgqzysytdqk/importExcel",
  258. wcsh: "/qcsb/qcSsgqzysytdqk/wcsh",
  259. hfysh: "/qcsb/qcSsgqzysytdqk/hfysh",
  260. listTable: "/qcsb/qcSsgqzysytdqk/sumList"
  261. },
  262. dictOptions: {},
  263. superFieldList: [],
  264. }
  265. },
  266. created() {
  267. this.getSuperFieldList();
  268. },
  269. mounted() {
  270. this.show()
  271. },
  272. computed: {
  273. importExcelUrl: function () {
  274. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  275. },
  276. },
  277. methods: {
  278. searchQuery() {
  279. this.changes='1'
  280. this.loadData(1);
  281. // 点击查询清空列表选中行
  282. // https://gitee.com/jeecg/jeecg-boot/issues/I4KTU1
  283. this.selectedRowKeys = []
  284. this.selectionRows = []
  285. },
  286. callback(key) {
  287. if (key == 1) {
  288. this.emptyData()
  289. this.changes='1'
  290. }
  291. if (key == 2) {
  292. this.changes='2'
  293. this.emptyData()
  294. this.updataData()
  295. }
  296. },
  297. emptyData(){
  298. this.load = true
  299. this.$refs.table.data=[]
  300. this.$refs.table.areaData=[]
  301. this.$refs.table.pieResultData=[]
  302. this.$refs.table.pieAreaResultData=[]
  303. this.$refs.table.DoughnutResultData=[]
  304. this.$refs.table.doughnutByXzResultData=[]
  305. this.$refs.table.xzData=[]
  306. this.$refs.table.registerData=[]
  307. this.$refs.table.barResultData=[]
  308. this.$refs.table.nan=[]
  309. this.$refs.table.va=[]
  310. this.$refs.table.xqData=[]
  311. this.$refs.table.sjytData=[]
  312. this.$refs.table.sjytValue=[]
  313. this.$refs.table.sjytName=[]
  314. this.$refs.table.barBysjytResultData=[]
  315. this.$refs.table.number=0
  316. },
  317. updataData(){
  318. let _this = this;
  319. new Promise(function (resolve, reject) {
  320. getAction(_this.url.listTable, _this.queryParam).then(res => {
  321. if (res.success) {
  322. _this.load = false
  323. _this.resultData = res.result
  324. resolve();
  325. }
  326. })
  327. })
  328. },
  329. SelectArea(val) {
  330. if (val.length > 4) {
  331. this.queryParam.xzqh = val + '*'
  332. } else {
  333. this.queryParam.xzqh = val.slice(0, 4) + '*'
  334. }
  335. },
  336. searchReset() {
  337. this.$refs.JArea.allClear(),
  338. this.queryParam = {}
  339. this.loadData(1);
  340. },
  341. show() {
  342. getAction("/qcsb.qyxx/qcQyxx/dlr").then(res => {
  343. if (res.success) {
  344. if (res.result == 'gzw') {
  345. this.dl = true
  346. }
  347. }
  348. })
  349. }
  350. ,
  351. handleWCSH(id) {
  352. getAction(this.url.wcsh, {id: id}).then(res => {
  353. if (res.success) {
  354. this.$message.success('审核完成');
  355. this.loadData();
  356. }
  357. })
  358. },
  359. handleHFYSH(id) {
  360. getAction(this.url.hfysh, {id: id}).then(res => {
  361. if (res.success) {
  362. this.$message.success('已经恢复');
  363. this.loadData();
  364. }
  365. })
  366. },
  367. initDictConfig() {
  368. loadCategoryData({code: 'A04'}).then((res) => {
  369. if (res.success) {
  370. console.log(res.result)
  371. this.$set(this.dictOptions, 'sjyt', res.result)
  372. }
  373. })
  374. },
  375. getSuperFieldList() {
  376. let fieldList = [];
  377. fieldList.push({type: 'string', value: 'dk', text: '地块', dictCode: ''})
  378. fieldList.push({type: 'string', value: 'wjlx', text: '文件类型', dictCode: 'wjlx'})
  379. fieldList.push({type: 'string', value: 'wjbh', text: '证书/合同/文件编号', dictCode: ''})
  380. fieldList.push({type: 'string', value: 'tdsyqr', text: '土地使用权人', dictCode: ''})
  381. fieldList.push({type: 'double', value: 'sjzytdmj', text: '实际占用土地面积', dictCode: ''})
  382. fieldList.push({type: 'double', value: 'qzpzsymj', text: '其中批准使用面积', dictCode: ''})
  383. fieldList.push({type: 'double', value: 'sjsyjzmj', text: '实际使用建筑面积', dictCode: ''})
  384. fieldList.push({type: 'double', value: 'qzpzsymj2', text: '其中批准使用面积', dictCode: ''})
  385. fieldList.push({type: 'double', value: 'sjrjl', text: '容积率', dictCode: ''})
  386. fieldList.push({type: 'string', value: 'syqsyfs', text: '使用权使用方式', dictCode: 'syqsyfs'})
  387. fieldList.push({type: 'string', value: 'zlwz', text: '坐落位置', dictCode: ''})
  388. fieldList.push({type: 'string', value: 'sjyt', text: '实际用途', dictCode: 'tdyt'})
  389. fieldList.push({type: 'date', value: 'qsqssj', text: '权属起始时间'})
  390. fieldList.push({type: 'date', value: 'qsdqsj', text: '权属到期时间'})
  391. fieldList.push({type: 'string', value: 'tdsyxz', text: '土地使用现状', dictCode: 'tdsyxz'})
  392. fieldList.push({
  393. type: 'list_multi',
  394. value: 'dbdycfqk',
  395. text: '担保、抵押、查封情况',
  396. dictTable: "",
  397. dictText: '',
  398. dictCode: 'dbdycfqk'
  399. })
  400. fieldList.push({type: 'string', value: 'bz', text: '备注', dictCode: ''})
  401. fieldList.push({type: 'string', value: 'xgwj', text: '附件材料', dictCode: ''})
  402. fieldList.push({type: 'int', value: 'sfsb', text: '是否上报', dictCode: 'xxsbzt'})
  403. this.superFieldList = fieldList
  404. }
  405. }
  406. }
  407. </script>
  408. <style scoped>
  409. @import '~@assets/less/common.less';
  410. </style>