QcQywtfkList_qyzc.vue 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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 v-if="record.wtzt===1 || record.wtzt===2" @click="handleEdit(record)">审核</a-button>
  93. <a-button @click="handleDetail(record)" type='primary'>详情</a-button>
  94. <a-button v-if="record.wtzt===2" @click="handleWCSH(record.id)">完成审核</a-button>
  95. </a-space>
  96. </span>
  97. </a-table>
  98. </div>
  99. <qc-qywtfk-modal ref="modalForm" @ok="modalFormOk"></qc-qywtfk-modal>
  100. </a-card>
  101. </template>
  102. <script>
  103. import '@/assets/less/TableExpand.less'
  104. import { mixinDevice } from '@/utils/mixin'
  105. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  106. import QcQywtfkModal from './modules/QcQywtfkModal_qyzc'
  107. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  108. import { getAction } from '../../../api/manage'
  109. export default {
  110. name: 'QcQywtfkList',
  111. mixins:[JeecgListMixin, mixinDevice],
  112. components: {
  113. QcQywtfkModal
  114. },
  115. data () {
  116. return {
  117. description: '企业注册页面',
  118. // 表头
  119. columns: [
  120. {
  121. title: '#',
  122. dataIndex: '',
  123. key:'rowIndex',
  124. width:60,
  125. align:"center",
  126. customRender:function (t,r,index) {
  127. return parseInt(index)+1;
  128. }
  129. },
  130. {
  131. title:'企业名称',
  132. align:"center",
  133. dataIndex: 'qymc'
  134. },
  135. /* {
  136. title:'联系人',
  137. align:"center",
  138. dataIndex: 'lxr'
  139. },*/
  140. {
  141. title:'联系手机号',
  142. align:"center",
  143. dataIndex: 'sjh'
  144. },
  145. {
  146. title:'事项',
  147. align:"center",
  148. dataIndex: 'wtlx_dictText'
  149. },
  150. {
  151. title:'描述',
  152. align:"center",
  153. dataIndex: 'wtms'
  154. },
  155. {
  156. title:'是否通过审核',
  157. align:"center",
  158. dataIndex: 'sftgsh_dictText'
  159. },
  160. {
  161. title:'审核意见',
  162. align:"center",
  163. dataIndex: 'shyj'
  164. },
  165. {
  166. title:'审核人',
  167. align:"center",
  168. dataIndex: 'shr'
  169. },
  170. {
  171. title:'状态',
  172. align:"center",
  173. dataIndex: 'wtzt_dictText'
  174. },
  175. {
  176. title: '操作',
  177. dataIndex: 'action',
  178. align:"center",
  179. fixed:"right",
  180. width:147,
  181. scopedSlots: { customRender: 'action' }
  182. }
  183. ],
  184. url: {
  185. list: "/qcsb.qywtfk/qcQywtfk/list_qyzc",
  186. delete: "/qcsb.qywtfk/qcQywtfk/delete",
  187. deleteBatch: "/qcsb.qywtfk/qcQywtfk/deleteBatch",
  188. exportXlsUrl: "/qcsb.qywtfk/qcQywtfk/exportXls",
  189. importExcelUrl: "qcsb.qywtfk/qcQywtfk/importExcel",
  190. wcsh:"qcsb.qywtfk/qcQywtfk/wcsh",
  191. },
  192. dictOptions:{},
  193. superFieldList:[],
  194. }
  195. },
  196. created() {
  197. this.getSuperFieldList();
  198. },
  199. computed: {
  200. importExcelUrl: function(){
  201. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  202. },
  203. },
  204. methods: {
  205. handleWCSH(id){
  206. getAction(this.url.wcsh,{id:id}).then(res => {
  207. if (res.success) {
  208. this.$message.success('审核完成');
  209. this.loadData();
  210. }
  211. })
  212. },
  213. initDictConfig(){
  214. },
  215. getSuperFieldList(){
  216. let fieldList=[];
  217. fieldList.push({type:'string',value:'qymc',text:'企业名称',dictCode:''})
  218. fieldList.push({type:'string',value:'lxr',text:'联系人',dictCode:''})
  219. fieldList.push({type:'string',value:'sjh',text:'手机号',dictCode:''})
  220. fieldList.push({type:'string',value:'wtlx',text:'问题类型',dictCode:''})
  221. fieldList.push({type:'string',value:'wtms',text:'问题描述',dictCode:''})
  222. fieldList.push({type:'string',value:'sftgsh',text:'是否通过审核',dictCode:'shzt'})
  223. fieldList.push({type:'string',value:'shyj',text:'审核意见',dictCode:''})
  224. fieldList.push({type:'string',value:'shr',text:'审核人',dictCode:''})
  225. fieldList.push({type:'string',value:'wtzt',text:'问题状态',dictCode:'wtzt'})
  226. this.superFieldList = fieldList
  227. }
  228. }
  229. }
  230. </script>
  231. <style scoped>
  232. @import '~@assets/less/common.less';
  233. </style>