QcSsgqzysytdqkList2.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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. <JAreaSelect ref="JArea" @Area="SelectArea"></JAreaSelect>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  23. <a-form-item label="证书/合同/文件编号">
  24. <a-input placeholder="请输入证书/合同/文件编号" v-model="queryParam.wjbh"></a-input>
  25. </a-form-item>
  26. </a-col>
  27. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  28. <a-form-item label="批准用途">
  29. <j-category-select v-model="queryParam.pzyt" pcode="A04" placeholder="请选择批准用途"/>
  30. </a-form-item>
  31. </a-col>
  32. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  33. <a-form-item label="证书类型">
  34. <j-dict-select-tag placeholder="请选择证书类型" v-model="queryParam.zslx" dictCode="zslx"/>
  35. </a-form-item>
  36. </a-col>
  37. <a-col :xl="7" :lg="7" :md="8" :sm="24">
  38. <a-form-item label="取得方式">
  39. <j-multi-select-tag type='list_multi' v-model='queryParam.syqsyfs' dictCode='qdfs'
  40. placeholder='请选择使用权使用方式'/>
  41. </a-form-item>
  42. </a-col>
  43. <template v-if="toggleSearchStatus">
  44. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  45. <a-form-item label="土地使用权人">
  46. <a-input placeholder="请输入土地使用权人" v-model="queryParam.tdsyqr"></a-input>
  47. </a-form-item>
  48. </a-col>
  49. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  50. <a-form-item label="主管单位">
  51. <j-dict-select-tag placeholder="请选择主管单位" v-model="queryParam.sysOrgCode" dictCode="zgbm"/>
  52. </a-form-item>
  53. </a-col>
  54. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  55. <a-form-item label="是否上报">
  56. <j-dict-select-tag placeholder="请选择是否上报" v-model="queryParam.sfsb" dictCode="xxsbzt"/>
  57. </a-form-item>
  58. </a-col>
  59. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  60. <a-form-item label="是否通过审核">
  61. <j-dict-select-tag placeholder="请选择是否通过审核" v-model="queryParam.shzt" dictCode="shzt"/>
  62. </a-form-item>
  63. </a-col>
  64. </template>
  65. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  66. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  67. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  68. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  69. <a @click="handleToggleSearch" style="margin-left: 8px">
  70. {{ toggleSearchStatus ? '收起' : '展开' }}
  71. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  72. </a>
  73. </span>
  74. </a-col>
  75. </a-row>
  76. </a-form>
  77. </div>
  78. <!-- 查询区域-END -->
  79. <!-- 操作按钮区域 -->
  80. <div class="table-operator">
  81. <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
  82. <a-button type="primary" icon="download" @click="handleExportXls('事业单位占有使用土地情况调查')">导出</a-button>
  83. <a-button type="primary" icon="download" @click="handleExportXls('事业单位占有使用土地情况调查')">全部导出</a-button>
  84. <!--<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  85. <a-button type="primary" icon="import">导入</a-button>
  86. </a-upload>
  87. &lt;!&ndash; 高级查询区域 &ndash;&gt;
  88. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  89. <a-dropdown v-if="selectedRowKeys.length > 0">
  90. <a-menu slot="overlay">
  91. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  92. </a-menu>
  93. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  94. </a-dropdown>-->
  95. </div>
  96. <!-- table区域-begin -->
  97. <div>
  98. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  99. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a
  100. style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  101. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  102. </div>
  103. <a-table
  104. ref="table"
  105. size="middle"
  106. :scroll="{x:true}"
  107. bordered
  108. rowKey="id"
  109. :columns="columns"
  110. :dataSource="dataSource"
  111. :pagination="ipagination"
  112. :loading="loading"
  113. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  114. class="j-table-force-nowrap"
  115. @change="handleTableChange">
  116. <template slot="htmlSlot" slot-scope="text">
  117. <div v-html="text"></div>
  118. </template>
  119. <template slot="imgSlot" slot-scope="text,record">
  120. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  121. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt=""
  122. style="max-width:80px;font-size: 12px;font-style: italic;"/>
  123. </template>
  124. <template slot="fileSlot" slot-scope="text">
  125. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  126. <a-button
  127. v-else
  128. :ghost="true"
  129. type="primary"
  130. icon="download"
  131. size="small"
  132. @click="downloadFile(text)">
  133. 下载
  134. </a-button>
  135. </template>
  136. <span slot="action" slot-scope="text, record">
  137. <a-space>
  138. <a-button v-if="record.sfsb===1 || record.sfsb===2" @click="handleEdit(record)">审核</a-button>
  139. <a-button @click="handleDetail(record)" type='primary'>详情</a-button>
  140. </a-space>
  141. </span>
  142. </a-table>
  143. </div>
  144. <qc-ssgqzysytdqk-modal ref="modalForm" @ok="modalFormOk"></qc-ssgqzysytdqk-modal>
  145. </a-card>
  146. </template>
  147. <script>
  148. import '@/assets/less/TableExpand.less'
  149. import {mixinDevice} from '@/utils/mixin'
  150. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  151. import QcSsgqzysytdqkModal from './modules/QcSsgqzysytdqkModal1'
  152. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  153. import {loadCategoryData} from '@/api/api'
  154. import JAreaSelect from "@comp/jeecg/JAreaSelect";
  155. export default {
  156. name: 'QcSsgqzysytdqkList',
  157. mixins: [JeecgListMixin, mixinDevice],
  158. components: {
  159. QcSsgqzysytdqkModal,
  160. JAreaSelect
  161. },
  162. data() {
  163. return {
  164. isorter: {
  165. column: 'createBy',
  166. order: 'asc'
  167. },
  168. allClear: "",
  169. description: '省属国企占有使用土地情况调查管理页面',
  170. // 表头
  171. columns: [
  172. {
  173. title: '#',
  174. dataIndex: '',
  175. key: 'rowIndex',
  176. width: 60,
  177. align: "center",
  178. customRender: function (t, r, index) {
  179. return parseInt(index) + 1;
  180. }
  181. },
  182. {
  183. title: '用地单位名称',
  184. align: "center",
  185. dataIndex: 'createBy'
  186. },
  187. {
  188. title: '地块',
  189. align: "center",
  190. dataIndex: 'dk'
  191. },
  192. {
  193. title: '证书类型',
  194. align: "center",
  195. dataIndex: 'zslx_dictText'
  196. },
  197. {
  198. title: '证书/合同/文件编号',
  199. align: "center",
  200. dataIndex: 'wjbh'
  201. },
  202. {
  203. title: '土地使用权人',
  204. align: "center",
  205. dataIndex: 'tdsyqr'
  206. },
  207. {
  208. title: '使用权使用方式',
  209. align: "center",
  210. dataIndex: 'syqsyfs'
  211. },
  212. {
  213. title: '实际用途',
  214. align: "center",
  215. dataIndex: 'sjyt',
  216. customRender:
  217. (text) => (text ? filterMultiDictText(this.dictOptions['sjyt'], text) : '')
  218. },
  219. {
  220. title: '是否上报',
  221. align: "center",
  222. dataIndex: 'sfsb_dictText'
  223. },
  224. {
  225. title: '操作',
  226. dataIndex: 'action',
  227. align: "center",
  228. fixed: "right",
  229. width: 147,
  230. scopedSlots: {customRender: 'action'}
  231. }
  232. ],
  233. url: {
  234. list: "/qcsb/qcSsgqzysytdqk/list7",
  235. delete: "/qcsb/qcSsgqzysytdqk/delete",
  236. deleteBatch: "/qcsb/qcSsgqzysytdqk/deleteBatch",
  237. exportXlsUrl: "/qcsb/qcSsgqzysytdqk/exportXls3",
  238. importExcelUrl: "qcsb/qcSsgqzysytdqk/importExcel",
  239. },
  240. dictOptions: {},
  241. superFieldList: [],
  242. }
  243. },
  244. created() {
  245. this.getSuperFieldList();
  246. },
  247. computed: {
  248. importExcelUrl: function () {
  249. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  250. },
  251. },
  252. methods: {
  253. SelectArea(val) {
  254. if (val.length > 4) {
  255. this.queryParam.xzqh = val + '*'
  256. } else {
  257. this.queryParam.xzqh = val.slice(0, 4) + '*'
  258. }
  259. },
  260. searchReset() {
  261. this.$refs.JArea.allClear(),
  262. this.queryParam = {}
  263. this.loadData(1);
  264. },
  265. initDictConfig() {
  266. loadCategoryData({code: 'A04'}).then((res) => {
  267. if (res.success) {
  268. console.log(res.result)
  269. this.$set(this.dictOptions, 'sjyt', res.result)
  270. }
  271. })
  272. },
  273. getSuperFieldList() {
  274. let fieldList = [];
  275. fieldList.push({type: 'sel_depart', value: 'sysOrgCode', text: '所属部门'})
  276. fieldList.push({type: 'string', value: 'dk', text: '地块', dictCode: ''})
  277. fieldList.push({type: 'string', value: 'wjlx', text: '文件类型', dictCode: 'wjlx'})
  278. fieldList.push({type: 'string', value: 'wjbh', text: '证书/合同/文件编号', dictCode: ''})
  279. fieldList.push({type: 'string', value: 'tdsyqr', text: '土地使用权人', dictCode: ''})
  280. fieldList.push({type: 'double', value: 'sjzytdmj', text: '实际占用土地面积', dictCode: ''})
  281. fieldList.push({type: 'double', value: 'qzpzsymj', text: '其中批准使用面积', dictCode: ''})
  282. fieldList.push({type: 'double', value: 'sjsyjzmj', text: '实际使用建筑面积', dictCode: ''})
  283. fieldList.push({type: 'double', value: 'qzpzsymj2', text: '其中批准使用面积', dictCode: ''})
  284. fieldList.push({type: 'double', value: 'sjrjl', text: '容积率', dictCode: ''})
  285. fieldList.push({type: 'string', value: 'syqsyfs', text: '使用权使用方式', dictCode: 'syqsyfs'})
  286. fieldList.push({type: 'string', value: 'zlwz', text: '坐落位置', dictCode: ''})
  287. fieldList.push({type: 'string', value: 'sjyt', text: '实际用途', dictCode: 'tdyt'})
  288. fieldList.push({type: 'date', value: 'qsqssj', text: '权属起始时间'})
  289. fieldList.push({type: 'date', value: 'qsdqsj', text: '权属到期时间'})
  290. fieldList.push({type: 'string', value: 'tdsyxz', text: '土地使用现状', dictCode: 'tdsyxz'})
  291. fieldList.push({
  292. type: 'list_multi',
  293. value: 'dbdycfqk',
  294. text: '担保、抵押、查封情况',
  295. dictTable: "",
  296. dictText: '',
  297. dictCode: 'dbdycfqk'
  298. })
  299. fieldList.push({type: 'string', value: 'bz', text: '备注', dictCode: ''})
  300. fieldList.push({type: 'string', value: 'xgwj', text: '附件材料', dictCode: ''})
  301. fieldList.push({type: 'int', value: 'sfsb', text: '是否上报', dictCode: 'xxsbzt'})
  302. this.superFieldList = fieldList
  303. }
  304. }
  305. }
  306. </script>
  307. <style scoped>
  308. @import '~@assets/less/common.less';
  309. </style>