list.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <template>
  2. <a-card size="small" :bordered="false" class="withdrawalManagementList-wrap">
  3. <!-- 搜索条件 -->
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
  6. <a-row :gutter="15">
  7. <a-col :md="6" :sm="24">
  8. <a-form-item label="提现时间">
  9. <a-range-picker v-model="queryParam.creatDate" id="withdrawalManagementList-creatDate"/>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :md="6" :sm="24">
  13. <span class="table-page-search-submitButtons">
  14. <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="withdrawalManagementList-refresh">查询</a-button>
  15. <a-button style="margin-left: 8px" @click="resetSearchForm()" :disabled="disabled" id="withdrawalManagementList-reset">重置</a-button>
  16. </span>
  17. </a-col>
  18. </a-row>
  19. </a-form>
  20. </div>
  21. <!-- alert -->
  22. <a-alert type="info" showIcon style="margin-bottom:15px">
  23. <div slot="message">可提现余额: <strong>¥6</strong> 元</div>
  24. </a-alert>
  25. <!-- 操作按钮 -->
  26. <div class="table-operator">
  27. <a-button id="withdrawalManagementList-tx" type="primary" @click="">申请提现</a-button>
  28. </div>
  29. <!-- 列表 -->
  30. <s-table
  31. class="sTable"
  32. ref="table"
  33. size="default"
  34. :rowKey="(record) => record.id"
  35. :columns="columns"
  36. :data="loadData"
  37. :scroll="{ x: 1100 }"
  38. bordered>
  39. <!-- 结算单号 -->
  40. <template slot="purchaseNo" slot-scope="text, record">
  41. <span style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{ record.purchaseNo }}</span>
  42. </template>
  43. <!-- 结算方式 -->
  44. <template slot="sss" slot-scope="text, record">
  45. <span>{{ record.state == 1 ? '现金' : '微信' }}</span>
  46. </template>
  47. <!-- 操作 -->
  48. <template slot="action" slot-scope="text, record">
  49. <a-button size="small" type="dashed" @click="handleDetail(record)" id="withdrawalManagementList-detail-btn">详情</a-button>
  50. </template>
  51. </s-table>
  52. <!-- 提现说明 -->
  53. <div class="descriptions">
  54. <p class="descriptions-tit">提现说明:</p>
  55. <ul class="descriptions-list">
  56. <li><em>1、</em>提现手续费为元/笔,从可提现余额中扣除。</li>
  57. <li><em>2、</em>提现到账时间正常为T+1工作日(例如当天提现,则第二天到账。如果遇到周末或法定节假日,则依次顺延)。</li>
  58. <li><em>3、</em>页面上的【可提现余额】包含当天收款但支付公司未清算金额,该部分金额只能在第二天清算后才可提现,如果提示【提现失败】和【账户余额不足】,则表明【可提现金额】中会存在该部分金额,遇到这种情况时,请减少当日提现金额或在次日进行提现。</li>
  59. <li><em>4、</em>提现账户为申请开通支付结算账户时所提供的账户信息。</li>
  60. </ul>
  61. </div>
  62. </a-card>
  63. </template>
  64. <script>
  65. import { STable, VSelect } from '@/components'
  66. // import { getRoleList, getServiceList } from '@/api/manage'
  67. export default {
  68. components: { STable, VSelect },
  69. data () {
  70. return {
  71. advanced: false, // 高级搜索 展开/关闭
  72. disabled: false, // 查询、重置按钮是否可操作
  73. // 查询参数
  74. queryParam: {},
  75. // 表头
  76. columns: [
  77. { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
  78. { title: '提现时间', dataIndex: 'name', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
  79. { title: '提现单号', dataIndex: 'paddyType', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
  80. { title: '申请提现金额', dataIndex: 'pssayType', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
  81. { title: '开户名', scopedSlots: { customRender: 'purchaseNo' }, width: 100, align: 'center' },
  82. { title: '银行卡号', dataIndex: 'totalP', align: 'center', customRender: function (text) { return text || '--' } },
  83. { title: '状态', dataIndex: 'paysType', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
  84. { title: '备注', dataIndex: 'remarks', align: 'center', ellipsis: true }
  85. ],
  86. // 加载数据方法 必须为 Promise 对象
  87. loadData: parameter => {
  88. this.disabled = true
  89. // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
  90. // const data = res.data
  91. // const no = (data.pageNo - 1) * data.pageSize
  92. // for (var i = 0; i < data.list.length; i++) {
  93. // data.list[i].no = no + i + 1
  94. // }
  95. // this.disabled = false
  96. // return data
  97. // })
  98. const _this = this
  99. return new Promise(function (resolve, reject) {
  100. const data = {
  101. pageNo: 1,
  102. pageSize: 10,
  103. list: [
  104. { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
  105. ],
  106. count: 10
  107. }
  108. const no = (data.pageNo - 1) * data.pageSize
  109. for (var i = 0; i < data.list.length; i++) {
  110. data.list[i].no = no + i + 1
  111. }
  112. _this.disabled = false
  113. resolve(data)
  114. })
  115. }
  116. }
  117. },
  118. methods: {
  119. // 详情
  120. handleDetail (row) {
  121. this.$router.push({ path: `/financialManagement/withdrawalManagement/detail/${row.id}` })
  122. },
  123. // 审核
  124. handleExamine (row, type) {
  125. const _this = this
  126. this.$confirm({
  127. title: '提示',
  128. content: '操作后不可恢复,确定要进行' + (type == 1 ? ' 通过 ' : ' 不通过 ') + '操作吗?',
  129. okText: '确定',
  130. cancelText: '取消',
  131. centered: true,
  132. onOk () {
  133. // delectRolePower({
  134. // id: row.id
  135. // }).then(res => {
  136. // console.log(res, 'res1111')
  137. // if (res.status == 200) {
  138. // _this.$message.success(res.message)
  139. // _this.$refs.table.refresh()
  140. // }
  141. // })
  142. }
  143. })
  144. },
  145. // 重置
  146. resetSearchForm () {
  147. this.queryParam.orderBundleNo = ''
  148. this.queryParam.orderBundle.custMobile = ''
  149. this.queryParam.bundleName = ''
  150. this.queryParam.itemName = ''
  151. this.oldTime = undefined
  152. this.newTime = undefined
  153. this.$refs.table.refresh(true)
  154. }
  155. }
  156. }
  157. </script>
  158. <style lang="less">
  159. .withdrawalManagementList-wrap{
  160. .sTable{
  161. margin-top: 15px;
  162. }
  163. .descriptions{
  164. margin-top: 45px;
  165. .descriptions-tit{
  166. font-size: 14px;
  167. font-weight: bold;
  168. }
  169. .descriptions-list{
  170. list-style: none;
  171. padding: 0;
  172. margin: 0;
  173. li{
  174. position: relative;
  175. padding: 5px 0 5px 20px;
  176. line-height: 1.5em;
  177. font-size: 13px;
  178. em{
  179. position: absolute;
  180. left: 0;
  181. top: 4px;
  182. font-style: normal;
  183. }
  184. }
  185. }
  186. }
  187. }
  188. </style>