QcQyxxList1.vue 11 KB

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