QcQywtfkList_qyzc2.vue 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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="5" :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="5" :lg="7" :md="8" :sm="24">
  13. <a-form-item label="问题类型">
  14. <a-input placeholder="请输入问题类型" v-model="queryParam.wtlx"></a-input>
  15. </a-form-item>
  16. </a-col>
  17. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  18. <a-form-item label="是否通过审核">
  19. <j-dict-select-tag placeholder="请选择是否通过审核" v-model="queryParam.sftgsh" dictCode="shzt"/>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  23. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  24. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  25. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  26. <!-- <a @click="handleToggleSearch" style="margin-left: 8px">
  27. {{ toggleSearchStatus ? '收起' : '展开' }}
  28. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  29. </a>-->
  30. </span>
  31. </a-col>
  32. </a-row>
  33. </a-form>
  34. </div>
  35. <!-- 查询区域-END -->
  36. <!-- 操作按钮区域 -->
  37. <div class="table-operator">
  38. <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
  39. <a-button type="primary" icon="download" @click="handleExportXls('企业问题反馈')">导出</a-button>
  40. <!--<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  41. <a-button type="primary" icon="import">导入</a-button>
  42. </a-upload>
  43. &lt;!&ndash; 高级查询区域 &ndash;&gt;
  44. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  45. <a-dropdown v-if="selectedRowKeys.length > 0">
  46. <a-menu slot="overlay">
  47. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  48. </a-menu>
  49. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  50. </a-dropdown>-->
  51. </div>
  52. <!-- table区域-begin -->
  53. <div>
  54. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  55. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  56. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  57. </div>
  58. <a-table
  59. ref="table"
  60. size="middle"
  61. :scroll="{x:true}"
  62. bordered
  63. rowKey="id"
  64. :columns="columns"
  65. :dataSource="dataSource"
  66. :pagination="ipagination"
  67. :loading="loading"
  68. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  69. class="j-table-force-nowrap"
  70. @change="handleTableChange">
  71. <template slot="htmlSlot" slot-scope="text">
  72. <div v-html="text"></div>
  73. </template>
  74. <template slot="imgSlot" slot-scope="text,record">
  75. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  76. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  77. </template>
  78. <template slot="fileSlot" slot-scope="text">
  79. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  80. <a-button
  81. v-else
  82. :ghost="true"
  83. type="primary"
  84. icon="download"
  85. size="small"
  86. @click="downloadFile(text)">
  87. 下载
  88. </a-button>
  89. </template>
  90. <span slot="action" slot-scope="text, record">
  91. <a-space>
  92. <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
  93. </a-space>
  94. </span>
  95. </a-table>
  96. </div>
  97. <qc-qywtfk-modal ref="modalForm" @ok="modalFormOk"></qc-qywtfk-modal>
  98. </a-card>
  99. </template>
  100. <script>
  101. import '@/assets/less/TableExpand.less'
  102. import { mixinDevice } from '@/utils/mixin'
  103. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  104. import QcQywtfkModal from './modules/QcQywtfkModal_qyzc'
  105. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  106. import { getAction } from '../../../api/manage'
  107. export default {
  108. name: 'QcQywtfkList',
  109. mixins:[JeecgListMixin, mixinDevice],
  110. components: {
  111. QcQywtfkModal
  112. },
  113. data () {
  114. return {
  115. description: '企业注册页面',
  116. // 表头
  117. columns: [
  118. {
  119. title: '#',
  120. dataIndex: '',
  121. key:'rowIndex',
  122. width:60,
  123. align:"center",
  124. customRender:function (t,r,index) {
  125. return parseInt(index)+1;
  126. }
  127. },
  128. {
  129. title:'企业名称',
  130. align:"center",
  131. dataIndex: 'qymc'
  132. },
  133. /* {
  134. title:'联系人',
  135. align:"center",
  136. dataIndex: 'lxr'
  137. },*/
  138. {
  139. title:'联系手机号',
  140. align:"center",
  141. dataIndex: 'sjh'
  142. },
  143. {
  144. title:'事项',
  145. align:"center",
  146. dataIndex: 'wtlx_dictText'
  147. },
  148. {
  149. title:'描述',
  150. align:"center",
  151. dataIndex: 'wtms'
  152. },
  153. {
  154. title:'是否通过审核',
  155. align:"center",
  156. dataIndex: 'sftgsh_dictText'
  157. },
  158. {
  159. title:'审核意见',
  160. align:"center",
  161. dataIndex: 'shyj'
  162. },
  163. {
  164. title:'审核人',
  165. align:"center",
  166. dataIndex: 'shr'
  167. },
  168. {
  169. title:'状态',
  170. align:"center",
  171. dataIndex: 'wtzt_dictText'
  172. },
  173. {
  174. title: '操作',
  175. dataIndex: 'action',
  176. align:"center",
  177. fixed:"right",
  178. width:147,
  179. scopedSlots: { customRender: 'action' }
  180. }
  181. ],
  182. url: {
  183. list: "/qcsb.qywtfk/qcQywtfk/list_qyzc2",
  184. delete: "/qcsb.qywtfk/qcQywtfk/delete",
  185. deleteBatch: "/qcsb.qywtfk/qcQywtfk/deleteBatch",
  186. exportXlsUrl: "/qcsb.qywtfk/qcQywtfk/exportXls",
  187. importExcelUrl: "qcsb.qywtfk/qcQywtfk/importExcel",
  188. wcsh:"qcsb.qywtfk/qcQywtfk/wcsh",
  189. },
  190. dictOptions:{},
  191. superFieldList:[],
  192. }
  193. },
  194. created() {
  195. this.getSuperFieldList();
  196. },
  197. computed: {
  198. importExcelUrl: function(){
  199. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  200. },
  201. },
  202. methods: {
  203. handleWCSH(id){
  204. getAction(this.url.wcsh,{id:id}).then(res => {
  205. if (res.success) {
  206. this.$message.success('审核完成');
  207. this.loadData();
  208. }
  209. })
  210. },
  211. initDictConfig(){
  212. },
  213. getSuperFieldList(){
  214. let fieldList=[];
  215. fieldList.push({type:'string',value:'qymc',text:'企业名称',dictCode:''})
  216. fieldList.push({type:'string',value:'lxr',text:'联系人',dictCode:''})
  217. fieldList.push({type:'string',value:'sjh',text:'手机号',dictCode:''})
  218. fieldList.push({type:'string',value:'wtlx',text:'问题类型',dictCode:''})
  219. fieldList.push({type:'string',value:'wtms',text:'问题描述',dictCode:''})
  220. fieldList.push({type:'string',value:'sftgsh',text:'是否通过审核',dictCode:'shzt'})
  221. fieldList.push({type:'string',value:'shyj',text:'审核意见',dictCode:''})
  222. fieldList.push({type:'string',value:'shr',text:'审核人',dictCode:''})
  223. fieldList.push({type:'string',value:'wtzt',text:'问题状态',dictCode:'wtzt'})
  224. this.superFieldList = fieldList
  225. }
  226. }
  227. }
  228. </script>
  229. <style scoped>
  230. @import '~@assets/less/common.less';
  231. </style>