QcQyxxList_glyy.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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.qymc"></a-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  13. <a-form-item label="企业类型">
  14. <j-dict-select-tag placeholder="请输入企业类型" dict-code="qylx" v-model="queryParam.qylx"></j-dict-select-tag>
  15. <!--<a-input placeholder="请输入企业类型" v-model="queryParam.qymc"></a-input>-->
  16. </a-form-item>
  17. </a-col>
  18. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  19. <a-form-item label="是否涉及省内土地资产">
  20. <j-dict-select-tag placeholder="请选择是否涉及省内土地资产" v-model="queryParam.sfsjtdzc" dictCode="sfsjtdzc" />
  21. </a-form-item>
  22. </a-col>
  23. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  24. <a-form-item label="是否上报">
  25. <j-dict-select-tag placeholder="请选择是否上报" v-model="queryParam.sfsb" dictCode="xxsbzt" />
  26. </a-form-item>
  27. </a-col>
  28. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  29. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  30. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  31. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  32. <a @click="handleToggleSearch" style="margin-left: 8px">
  33. {{ toggleSearchStatus ? '收起' : '展开' }}
  34. <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
  35. </a>
  36. </span>
  37. </a-col>
  38. </a-row>
  39. </a-form>
  40. </div>
  41. <!-- 查询区域-END -->
  42. <!-- 操作按钮区域 -->
  43. <div class="table-operator">
  44. <!--<a-button v-has="'cont:add'" v-if='!this.dataSource.length>0' @click="handleAdd" type="primary" icon="plus">补充用地单位信息</a-button>-->
  45. <a-button type="primary" icon="download" @click="handleExportXls('用地单位信息')">导出</a-button>
  46. <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  47. <a-button type="primary" icon="import">导入</a-button>
  48. </a-upload>
  49. &lt;!&ndash; 高级查询区域 &ndash;&gt;
  50. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  51. <a-dropdown v-if="selectedRowKeys.length > 0">
  52. <a-menu slot="overlay">
  53. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  54. </a-menu>
  55. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  56. </a-dropdown>-->
  57. </div>
  58. <!-- table区域-begin -->
  59. <div>
  60. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  61. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a
  62. style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  63. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  64. </div>
  65. <a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
  66. :dataSource="dataSource" :pagination="ipagination" :loading="loading"
  67. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" class="j-table-force-nowrap"
  68. @change="handleTableChange">
  69. <template slot="htmlSlot" slot-scope="text">
  70. <div v-html="text"></div>
  71. </template>
  72. <template slot="imgSlot" slot-scope="text,record">
  73. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  74. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt=""
  75. style="max-width:80px;font-size: 12px;font-style: italic;" />
  76. </template>
  77. <template slot="fileSlot" slot-scope="text">
  78. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  79. <a-button v-else :ghost="true" type="primary" icon="download" size="small" @click="downloadFile(text)">
  80. 下载
  81. </a-button>
  82. </template>
  83. <span slot="action" slot-scope="text, record">
  84. <a-space>
  85. <a-button @click="handleEdit(record)">编辑</a-button>
  86. <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
  87. <a-button v-if="record.sfsb===3" @click="handleWCSH(record.id)">重新审核</a-button>
  88. <a-popconfirm title="确定恢复么吗?" @confirm="() => handleHFYSH(record.id)">
  89. <a-button v-if="record.sfsb===4">恢复为已审核</a-button>
  90. </a-popconfirm>
  91. </a-space>
  92. </span>
  93. <!-- <span slot="action" slot-scope="text, record">
  94. <a-space>
  95. <a-button @click="handleEdit(record)">编辑</a-button>
  96. <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
  97. </a-space>-->
  98. <!-- <a @click="handleEdit(record)">编辑</a>
  99. <a-divider type="vertical" />
  100. <a-dropdown>
  101. <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  102. <a-menu slot="overlay">
  103. <a-menu-item>
  104. <a @click="handleDetail(record)">详情</a>
  105. </a-menu-item>
  106. <a-menu-item>
  107. &lt;!&ndash; <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  108. <a>删除</a>
  109. </a-popconfirm>&ndash;&gt;
  110. </a-menu-item>
  111. </a-menu>
  112. </a-dropdown>-->
  113. <!-- </span>-->
  114. </a-table>
  115. </div>
  116. <qc-qyxx-modal ref="modalForm" @ok="modalFormOk"></qc-qyxx-modal>
  117. </a-card>
  118. </template>
  119. <script>
  120. import '@/assets/less/TableExpand.less'
  121. import {
  122. mixinDevice
  123. } from '@/utils/mixin'
  124. import {
  125. JeecgListMixin
  126. } from '@/mixins/JeecgListMixin'
  127. import QcQyxxModal from './modules/QcQyxxModal2'
  128. import {
  129. filterMultiDictText
  130. } from '@/components/dict/JDictSelectUtil'
  131. import {
  132. getAction
  133. } from "../../../api/manage";
  134. export default {
  135. name: 'QcQyxxList',
  136. mixins: [JeecgListMixin, mixinDevice],
  137. components: {
  138. QcQyxxModal
  139. },
  140. data() {
  141. return {
  142. description: '用地单位信息管理页面',
  143. // 表头
  144. dl: false,
  145. columns: [{
  146. title: '#',
  147. dataIndex: '',
  148. key: 'rowIndex',
  149. width: 60,
  150. align: "center",
  151. customRender: function(t, r, index) {
  152. return parseInt(index) + 1;
  153. }
  154. },
  155. {
  156. title: '企业编码',
  157. align: "center",
  158. dataIndex: 'qybm'
  159. },
  160. {
  161. title: '用地单位名称',
  162. align: "center",
  163. dataIndex: 'sysOrgCode_dictText'
  164. },
  165. {
  166. title: '统一社会信用编码',
  167. align: "center",
  168. dataIndex: 'tyshxybm'
  169. },
  170. {
  171. title: '企业类型',
  172. align: "center",
  173. dataIndex: 'qylx_dictText'
  174. },
  175. {
  176. title: '国有资产持股比例',
  177. align: "center",
  178. dataIndex: 'gyzccgbl'
  179. },
  180. {
  181. title: '是否涉及省内土地资产',
  182. align: "center",
  183. dataIndex: 'sfsjtdzc'
  184. },
  185. {
  186. title: '联系人',
  187. align: "center",
  188. dataIndex: 'tbr'
  189. },
  190. {
  191. title: '联系人手机号',
  192. align: "center",
  193. dataIndex: 'sjh'
  194. },
  195. {
  196. title: '是否上报',
  197. align: "center",
  198. dataIndex: 'sfsb_dictText'
  199. },
  200. {
  201. title: '操作',
  202. dataIndex: 'action',
  203. align: "center",
  204. fixed: "right",
  205. width: 147,
  206. scopedSlots: {
  207. customRender: 'action'
  208. }
  209. }
  210. ],
  211. url: {
  212. list: "/qcsb.qyxx/qcQyxx/listByglyy",
  213. delete: "/qcsb.qyxx/qcQyxx/delete",
  214. deleteBatch: "/qcsb.qyxx/qcQyxx/deleteBatch",
  215. exportXlsUrl: "/qcsb.qyxx/qcQyxx/exportXls",
  216. importExcelUrl: "qcsb.qyxx/qcQyxx/importExcel",
  217. wcsh: "/qcsb.qyxx/qcQyxx/wcsh",
  218. hfysh: "/qcsb.qyxx/qcQyxx/hfysh",
  219. },
  220. dl: '',
  221. dictOptions: {},
  222. superFieldList: [],
  223. }
  224. },
  225. created() {
  226. this.getSuperFieldList();
  227. },
  228. computed: {
  229. importExcelUrl: function() {
  230. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  231. },
  232. },
  233. mounted() {
  234. },
  235. methods: {
  236. handleWCSH(id) {
  237. getAction(this.url.wcsh, {
  238. id: id
  239. }).then(res => {
  240. if (res.success) {
  241. this.$message.success('审核完成');
  242. this.loadData();
  243. }
  244. })
  245. },
  246. handleHFYSH(id) {
  247. getAction(this.url.hfysh, {
  248. id: id
  249. }).then(res => {
  250. if (res.success) {
  251. this.$message.success('恢复为已审核');
  252. this.loadData();
  253. }
  254. })
  255. },
  256. initDictConfig() {},
  257. getSuperFieldList() {
  258. let fieldList = [];
  259. fieldList.push({
  260. type: 'string',
  261. value: 'qybm',
  262. text: '企业编码'
  263. })
  264. fieldList.push({
  265. type: 'sel_depart',
  266. value: 'qymc',
  267. text: '用地单位名称'
  268. })
  269. fieldList.push({
  270. type: 'string',
  271. value: 'tyshxybm',
  272. text: '统一社会信用编码',
  273. dictCode: ''
  274. })
  275. fieldList.push({
  276. type: 'string',
  277. value: 'qylx',
  278. text: '企业类型',
  279. dictCode: 'qylx'
  280. })
  281. fieldList.push({
  282. type: 'double',
  283. value: 'gyzccgbl',
  284. text: '国有资产持股比例',
  285. dictCode: ''
  286. })
  287. fieldList.push({
  288. type: 'string',
  289. value: 'sfsjtdzc',
  290. text: '是否涉及省内土地资产',
  291. dictCode: 'sfsjtdzc'
  292. })
  293. fieldList.push({
  294. type: 'string',
  295. value: 'tbr',
  296. text: '填报人'
  297. })
  298. fieldList.push({
  299. type: 'string',
  300. value: 'lxdh',
  301. text: '联系电话'
  302. })
  303. this.superFieldList = fieldList
  304. }
  305. }
  306. }
  307. </script>
  308. <style scoped>
  309. @import '~@assets/less/common.less';
  310. </style>