匠艺良材后台api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

246 lines
8.6 KiB

  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. <j-search-select-tag placeholder="请选择用户表标识" v-model="queryParam.userId" dict="han_hai_member,nick_name,id"/>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  13. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  14. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  15. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  16. <!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
  17. <!-- {{ toggleSearchStatus ? '收起' : '展开' }}-->
  18. <!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
  19. <!-- </a>-->
  20. </span>
  21. </a-col>
  22. </a-row>
  23. </a-form>
  24. </div>
  25. <!-- 查询区域-END -->
  26. <!-- 操作按钮区域 -->
  27. <div class="table-operator">
  28. <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
  29. <!-- <a-button type="primary" icon="download" @click="handleExportXls('提现流水')">导出</a-button>-->
  30. <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
  31. <!-- <a-button type="primary" icon="import">导入</a-button>-->
  32. <!-- </a-upload>-->
  33. <!-- &lt;!&ndash; 高级查询区域 &ndash;&gt;-->
  34. <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
  35. <!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
  36. <!-- <a-menu slot="overlay">-->
  37. <!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
  38. <!-- </a-menu>-->
  39. <!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
  40. <!-- </a-dropdown>-->
  41. </div>
  42. <!-- table区域-begin -->
  43. <div>
  44. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  45. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>
  46. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  47. </div>
  48. <a-table
  49. ref="table"
  50. size="middle"
  51. :scroll="{x:true}"
  52. bordered
  53. rowKey="id"
  54. :columns="columns"
  55. :dataSource="dataSource"
  56. :pagination="ipagination"
  57. :loading="loading"
  58. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  59. class="j-table-force-nowrap"
  60. @change="handleTableChange">
  61. <template slot="htmlSlot" slot-scope="text">
  62. <div v-html="text"></div>
  63. </template>
  64. <template slot="imgSlot" slot-scope="text,record">
  65. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  66. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  67. </template>
  68. <template slot="fileSlot" slot-scope="text">
  69. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  70. <a-button
  71. v-else
  72. :ghost="true"
  73. type="primary"
  74. icon="download"
  75. size="small"
  76. @click="downloadFile(text)">
  77. 下载
  78. </a-button>
  79. </template>
  80. <span slot="action" slot-scope="text, record">
  81. <a @click="handleEdit(record)" v-if="record.type == 2 && record.state == '0'">提现审核</a>
  82. <!-- <a-divider type="vertical" />-->
  83. <!-- <a-dropdown>-->
  84. <!-- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>-->
  85. <!-- <a-menu slot="overlay">-->
  86. <!-- <a-menu-item>-->
  87. <!-- <a @click="handleDetail(record)">详情</a>-->
  88. <!-- </a-menu-item>-->
  89. <!-- <a-menu-item>-->
  90. <!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">-->
  91. <!-- <a>删除</a>-->
  92. <!-- </a-popconfirm>-->
  93. <!-- </a-menu-item>-->
  94. <!-- </a-menu>-->
  95. <!-- </a-dropdown>-->
  96. </span>
  97. </a-table>
  98. </div>
  99. <common-money-modal ref="modalForm" @ok="modalFormOk"></common-money-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 CommonMoneyModal from './modules/CommonMoneyModal'
  107. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  108. export default {
  109. name: 'CommonMoneyList',
  110. mixins:[JeecgListMixin, mixinDevice],
  111. components: {
  112. CommonMoneyModal
  113. },
  114. data () {
  115. return {
  116. description: '提现审核',
  117. // 表头
  118. columns: [
  119. {
  120. title: '#',
  121. dataIndex: '',
  122. key:'rowIndex',
  123. width:60,
  124. align:"center",
  125. customRender:function (t,r,index) {
  126. return parseInt(index)+1;
  127. }
  128. },
  129. {
  130. title:'创建日期',
  131. align:"center",
  132. sorter: true,
  133. dataIndex: 'createTime'
  134. },
  135. {
  136. title:'标题',
  137. align:"center",
  138. dataIndex: 'title'
  139. },
  140. {
  141. title:'用户表标识',
  142. align:"center",
  143. dataIndex: 'userId_dictText'
  144. },
  145. {
  146. title:'审核状态',
  147. align:"center",
  148. dataIndex: 'status_dictText'
  149. },
  150. // {
  151. // title:'领取状态',
  152. // align:"center",
  153. // dataIndex: 'state_dictText'
  154. // },
  155. {
  156. title:'提现金额',
  157. align:"center",
  158. dataIndex: 'money'
  159. },
  160. {
  161. title:'原钱包金额',
  162. align:"center",
  163. dataIndex: 'oldMoney'
  164. },
  165. {
  166. title:'姓名',
  167. align:"center",
  168. dataIndex: 'name'
  169. },
  170. {
  171. title:'银行卡号',
  172. align:"center",
  173. dataIndex: 'cardNumber'
  174. },
  175. {
  176. title:'开户行',
  177. align:"center",
  178. dataIndex: 'openingBank'
  179. },
  180. {
  181. title: '操作',
  182. dataIndex: 'action',
  183. align:"center",
  184. fixed:"right",
  185. width:147,
  186. scopedSlots: { customRender: 'action' }
  187. }
  188. ],
  189. url: {
  190. list: "/commonMoneyLog/commonMoneyLog/list",
  191. delete: "/commonMoneyLog/commonMoneyLog/delete",
  192. deleteBatch: "/commonMoneyLog/commonMoneyLog/deleteBatch",
  193. exportXlsUrl: "/commonMoneyLog/commonMoneyLog/exportXls",
  194. importExcelUrl: "commonMoneyLog/commonMoneyLog/importExcel",
  195. },
  196. dictOptions:{},
  197. superFieldList:[],
  198. queryParam: {
  199. type : '2'
  200. },
  201. }
  202. },
  203. created() {
  204. this.getSuperFieldList();
  205. },
  206. computed: {
  207. importExcelUrl: function(){
  208. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  209. },
  210. },
  211. methods: {
  212. searchReset() {
  213. this.queryParam = {
  214. type : '2'
  215. }
  216. this.loadData(1);
  217. },
  218. initDictConfig(){
  219. },
  220. getSuperFieldList(){
  221. let fieldList=[];
  222. fieldList.push({type:'datetime',value:'createTime',text:'创建日期'})
  223. fieldList.push({type:'sel_search',value:'userId',text:'用户表标识',dictTable:"han_hai_member", dictText:'nick_name', dictCode:'id'})
  224. fieldList.push({type:'string',value:'status',text:'提现状态',dictCode:'money_status'})
  225. fieldList.push({type:'BigDecimal',value:'price',text:'提现金额',dictCode:''})
  226. fieldList.push({type:'BigDecimal',value:'money',text:'当前余额',dictCode:''})
  227. fieldList.push({type:'string',value:'title',text:'标题',dictCode:''})
  228. fieldList.push({type:'Text',value:'image',text:'截图',dictCode:''})
  229. this.superFieldList = fieldList
  230. }
  231. }
  232. }
  233. </script>
  234. <style scoped>
  235. @import '~@assets/less/common.less';
  236. </style>