QcQyxxList_glyy.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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 style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  62. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  63. </div>
  64. <a-table
  65. ref="table"
  66. size="middle"
  67. :scroll="{x:true}"
  68. bordered
  69. rowKey="id"
  70. :columns="columns"
  71. :dataSource="dataSource"
  72. :pagination="ipagination"
  73. :loading="loading"
  74. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  75. class="j-table-force-nowrap"
  76. @change="handleTableChange">
  77. <template slot="htmlSlot" slot-scope="text">
  78. <div v-html="text"></div>
  79. </template>
  80. <template slot="imgSlot" slot-scope="text,record">
  81. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  82. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  83. </template>
  84. <template slot="fileSlot" slot-scope="text">
  85. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  86. <a-button
  87. v-else
  88. :ghost="true"
  89. type="primary"
  90. icon="download"
  91. size="small"
  92. @click="downloadFile(text)">
  93. 下载
  94. </a-button>
  95. </template>
  96. <span slot="action" slot-scope="text, record">
  97. <a-space>
  98. <a-button v-if="record.sfsb<3" @click="handleEdit(record)">编辑</a-button>
  99. <a-button v-if="record.sfsb==3" @click="handleEdit(record)">重新审核</a-button>
  100. <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
  101. <!-- <a-button v-if="record.sfsb===3" @click="handleWCSH(record.id)">完成审核</a-button>-->
  102. <a-popconfirm title="确定恢复么吗?" @confirm="() => handleHFYSH(record.id)">
  103. <a-button v-if="record.sfsb===4">恢复为已审核</a-button>
  104. </a-popconfirm>
  105. </a-space>
  106. </span>
  107. <!-- <span slot="action" slot-scope="text, record">
  108. <a-space>
  109. <a-button @click="handleEdit(record)">编辑</a-button>
  110. <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
  111. </a-space>-->
  112. <!-- <a @click="handleEdit(record)">编辑</a>
  113. <a-divider type="vertical" />
  114. <a-dropdown>
  115. <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  116. <a-menu slot="overlay">
  117. <a-menu-item>
  118. <a @click="handleDetail(record)">详情</a>
  119. </a-menu-item>
  120. <a-menu-item>
  121. &lt;!&ndash; <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  122. <a>删除</a>
  123. </a-popconfirm>&ndash;&gt;
  124. </a-menu-item>
  125. </a-menu>
  126. </a-dropdown>-->
  127. <!-- </span>-->
  128. </a-table>
  129. </div>
  130. <qc-qyxx-modal ref="modalForm" @ok="modalFormOk"></qc-qyxx-modal>
  131. </a-card>
  132. </template>
  133. <script>
  134. import '@/assets/less/TableExpand.less'
  135. import { mixinDevice } from '@/utils/mixin'
  136. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  137. import QcQyxxModal from './modules/QcQyxxModal2'
  138. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  139. import {getAction} from "../../../api/manage";
  140. export default {
  141. name: 'QcQyxxList',
  142. mixins:[JeecgListMixin, mixinDevice],
  143. components: {
  144. QcQyxxModal
  145. },
  146. data () {
  147. return {
  148. description: '用地单位信息管理页面',
  149. // 表头
  150. dl:false,
  151. columns: [
  152. {
  153. title: '#',
  154. dataIndex: '',
  155. key:'rowIndex',
  156. width:60,
  157. align:"center",
  158. customRender:function (t,r,index) {
  159. return parseInt(index)+1;
  160. }
  161. },
  162. /* {
  163. title:'企业编码',
  164. align:"center",
  165. dataIndex: 'qybm'
  166. },*/
  167. {
  168. title:'用地单位名称',
  169. align:"center",
  170. dataIndex: 'createBy'
  171. },
  172. /*{
  173. title:'单位级别',
  174. align:"center",
  175. dataIndex: 'orgType_dictText'
  176. },*/
  177. {
  178. title:'统一社会信用编码',
  179. align:"center",
  180. dataIndex: 'tyshxybm'
  181. },
  182. /* {
  183. title:'企业类型',
  184. align:"center",
  185. dataIndex: 'qylx_dictText'
  186. },
  187. {
  188. title:'国有资产持股比例',
  189. align:"center",
  190. dataIndex: 'gyzccgbl'
  191. },*/
  192. {
  193. title:'是否涉及省内土地资产',
  194. align:"center",
  195. dataIndex: 'sfsjtdzc'
  196. },
  197. {
  198. title:'联系人',
  199. align:"center",
  200. dataIndex: 'tbr'
  201. },
  202. {
  203. title:'联系人手机号',
  204. align:"center",
  205. dataIndex: 'sjh'
  206. },
  207. {
  208. title:'是否上报',
  209. align:"center",
  210. dataIndex: 'sfsb_dictText'
  211. },
  212. {
  213. title: '操作',
  214. dataIndex: 'action',
  215. align:"center",
  216. fixed:"right",
  217. width:147,
  218. scopedSlots: { customRender: 'action' }
  219. }
  220. ],
  221. url: {
  222. list: "/qcsb.qyxx/qcQyxx/listByglyy",
  223. delete: "/qcsb.qyxx/qcQyxx/delete",
  224. deleteBatch: "/qcsb.qyxx/qcQyxx/deleteBatch",
  225. exportXlsUrl: "/qcsb.qyxx/qcQyxx/exportXls",
  226. importExcelUrl: "qcsb.qyxx/qcQyxx/importExcel",
  227. wcsh:"/qcsb.qyxx/qcQyxx/wcsh",
  228. hfysh:"/qcsb.qyxx/qcQyxx/hfysh",
  229. },
  230. dl:'',
  231. dictOptions:{},
  232. superFieldList:[],
  233. }
  234. },
  235. created() {
  236. this.getSuperFieldList();
  237. },
  238. computed: {
  239. importExcelUrl: function(){
  240. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  241. },
  242. },
  243. mounted() {
  244. },
  245. methods: {
  246. handleWCSH(id){
  247. getAction(this.url.wcsh,{id:id}).then(res => {
  248. if (res.success) {
  249. this.$message.success('审核完成');
  250. this.loadData();
  251. }
  252. })
  253. },
  254. handleHFYSH(id){
  255. getAction(this.url.hfysh,{id:id}).then(res => {
  256. if (res.success) {
  257. this.$message.success('恢复为已审核');
  258. this.loadData();
  259. }
  260. })
  261. },
  262. initDictConfig(){
  263. },
  264. getSuperFieldList(){
  265. let fieldList=[];
  266. fieldList.push({type:'string',value:'qybm',text:'企业编码'})
  267. fieldList.push({type:'sel_depart',value:'qymc',text:'用地单位名称'})
  268. fieldList.push({type:'string',value:'tyshxybm',text:'统一社会信用编码',dictCode:''})
  269. fieldList.push({type:'string',value:'qylx',text:'企业类型',dictCode:'qylx'})
  270. fieldList.push({type:'double',value:'gyzccgbl',text:'国有资产持股比例',dictCode:''})
  271. fieldList.push({type:'string',value:'sfsjtdzc',text:'是否涉及省内土地资产',dictCode:'sfsjtdzc'})
  272. fieldList.push({type:'string',value:'tbr',text:'填报人'})
  273. fieldList.push({type:'string',value:'lxdh',text:'联系电话'})
  274. this.superFieldList = fieldList
  275. }
  276. }
  277. }
  278. </script>
  279. <style scoped>
  280. @import '~@assets/less/common.less';
  281. </style>