大宝管理后台代码
xxx
dcc
2024-05-07 abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7
src/views/capital/rechargelist.vue
@@ -65,10 +65,18 @@
                      @click=";(queryParam.pageNum = 1), getlist()"
                      >查询
                    </a-button>
                    <a-button type="primary" icon="plus" style="margin-left: 8px" @click="addOrderdialog = true"
                    <a-button
                      type="primary"
                      icon="plus"
                      style="margin-left: 8px"
                      @click="addOrderdialog = true"
                      >创建充值订单
                    </a-button>
                    <a-button type="primary" icon="vertical-align-bottom" style="margin-left: 8px" @click="getexport"
                    <a-button
                      type="primary"
                      icon="vertical-align-bottom"
                      style="margin-left: 8px"
                      @click="getexport"
                      >导出搜索数据
                    </a-button>
                  </span>
@@ -128,7 +136,11 @@
          <el-image style="width: 140px; height: 70px" :src="record.img" :preview-src-list="[record.img]"> </el-image>
        </template>
        <template slot="action" slot-scope="text, record">
          <a slot="action" href="javascript:;" @click="getEditorder(record.id)" v-if="record.orderStatus == 0"
          <a
            slot="action"
            href="javascript:;"
            @click="getEditorder(record.id)"
            v-if="record.orderStatus == 0"
            >修改状态</a
          >
          <a-divider type="vertical" v-if="record.orderStatus == 0" />
@@ -226,22 +238,22 @@
          width: 180,
          customRender: (text, row, index) => {
            return `${row.nickName}(${row.userId})`
          },
          }
        },
        {
          title: '订单ID',
          dataIndex: 'id',
          align: 'center',
          align: 'center'
        },
        {
          title: '代理id',
          dataIndex: 'agentId',
          align: 'center',
          align: 'center'
        },
        {
          title: '订单号',
          dataIndex: 'orderSn',
          align: 'center',
          align: 'center'
        },
        {
          title: '账户类型',
@@ -256,19 +268,19 @@
              default:
                return '未知账户'
            }
          },
          }
        },
        {
          title: '上传凭证',
          dataIndex: 'img',
          align: 'center',
          width: 180,
          scopedSlots: { customRender: 'img' },
          scopedSlots: { customRender: 'img' }
        },
        {
          title: '客户电话',
          dataIndex: 'userPhone',
          align: 'center',
          align: 'center'
        },
        // {
        //   title: '充值渠道',
@@ -279,7 +291,7 @@
        {
          title: '充值金额',
          dataIndex: 'payAmt',
          align: 'center',
          align: 'center'
        },
        {
          title: '申请时间',
@@ -288,7 +300,7 @@
          width: 180,
          customRender: (text, row, index) => {
            return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
          },
          }
        },
        {
          title: '支付时间',
@@ -297,13 +309,13 @@
          width: 180,
          customRender: (text, row, index) => {
            return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
          },
          }
        },
        {
          title: '状态',
          dataIndex: 'orderStatus',
          align: 'center',
          scopedSlots: { customRender: 'orderStatus' },
          scopedSlots: { customRender: 'orderStatus' }
        },
        {
          title: '操作',
@@ -311,8 +323,8 @@
          align: 'center',
          fixed: 'right',
          width: 180,
          scopedSlots: { customRender: 'action' },
        },
          scopedSlots: { customRender: 'action' }
        }
      ],
      // 表头
      pagination: {
@@ -322,7 +334,7 @@
        pageSizeOptions: ['10', '20', '50', '100'], // 每页中显示的数据
        onShowSizeChange: (current, pageSize) => this.onSizeChange(current, pageSize), // 改变每页数量时更新显示
        onChange: (page, pageSize) => this.onPageChange(page, pageSize), // 点击页码事件
        showTotal: (total) => `共有 ${total} 条数据`, // 分页中显示总的数据
        showTotal: (total) => `共有 ${total} 条数据` // 分页中显示总的数据
      },
      loading: false,
      queryParam: {
@@ -333,7 +345,7 @@
        userId: '',
        realName: '',
        beginTime: '',
        endTime: '',
        endTime: ''
      },
      datalist: [],
      agentlist: [],
@@ -349,8 +361,8 @@
      addOrderDialogloading: false,
      agentqueryParam: {
        pageNum: 1,
        pageSize: 100,
      },
        pageSize: 100
      }
    }
  },
  created() {
@@ -436,7 +448,7 @@
        content: '确认删除充值订单吗?此操作不可恢复',
        onOk() {
          var data = {
            cId: val,
            cId: val
          }
          rechargedel(data).then((res) => {
            if (res.status == 0) {
@@ -449,7 +461,7 @@
        },
        onCancel() {
          console.log('Cancel')
        },
        }
      })
    },
    onChangeRangeDate(value, dateString) {
@@ -465,7 +477,7 @@
        userId: '',
        realName: '',
        beginTime: '',
        endTime: '',
        endTime: ''
      }
      this.times = []
    },
@@ -498,8 +510,8 @@
      this.queryParam.pageNum = current
      this.queryParam.pageSize = pageSize
      this.getlist()
    },
  },
    }
  }
}
</script>
<style scoped>