chenrui 4 gadi atpakaļ
vecāks
revīzija
62aed07b95

+ 50 - 0
src/config/router.config.js

@@ -1463,6 +1463,56 @@ export const asyncRouterMap = [
                 }
               }
             ]
+          },
+          {
+            path: '/financialManagement/withdrawalManagement',
+            redirect: '/financialManagement/withdrawalManagement/list',
+            name: 'withdrawalManagement',
+            component: RouteView,
+            meta: {
+              title: '提现管理',
+              icon: 'gold'
+              // permission: 'M_goodsManage_list'
+            },
+            hideChildrenInMenu: true,
+            children: [
+              {
+                path: 'list',
+                name: 'withdrawalManagementList',
+                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/withdrawalManagement/list.vue'),
+                meta: {
+                  title: '提现管理列表',
+                  icon: 'gold',
+                  hidden: true
+                  // permission: 'M_goodsManage_list'
+                }
+              }
+            ]
+          },
+          {
+            path: '/financialManagement/ledgerRecord',
+            redirect: '/financialManagement/ledgerRecord/list',
+            name: 'ledgerRecord',
+            component: RouteView,
+            meta: {
+              title: '分账记录',
+              icon: 'gold'
+              // permission: 'M_goodsManage_list'
+            },
+            hideChildrenInMenu: true,
+            children: [
+              {
+                path: 'list',
+                name: 'ledgerRecordList',
+                component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/ledgerRecord/list.vue'),
+                meta: {
+                  title: '分账记录列表',
+                  icon: 'gold',
+                  hidden: true
+                  // permission: 'M_goodsManage_list'
+                }
+              }
+            ]
           }
         ]
       },

+ 174 - 0
src/views/financialManagement/ledgerRecord/list.vue

@@ -0,0 +1,174 @@
+<template>
+  <a-card :bordered="false" class="ledgerRecordList-wrap">
+    <!-- 搜索条件 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+        <a-row :gutter="15">
+          <a-col :md="6" :sm="24">
+            <a-form-item label="分账时间">
+              <a-range-picker v-model="queryParam.creatDate" id="ledgerRecordList-creatDate"/>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="客户名称">
+              <a-input id="ledgerRecordList-purchaseNo" v-model.trim="queryParam.purchaseNo" allowClear placeholder="请输入客户名称"/>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="配件名称">
+              <a-input id="ledgerRecordList-purchaseNo" v-model.trim="queryParam.purchaseNo" allowClear placeholder="请输入配件名称"/>
+            </a-form-item>
+          </a-col>
+          <template v-if="advanced">
+            <a-col :md="6" :sm="24">
+              <a-form-item label="配件编码">
+                <a-input id="ledgerRecordList-purchaseNo" v-model.trim="queryParam.purchaseNo" allowClear placeholder="请输入配件编码"/>
+              </a-form-item>
+            </a-col>
+          </template>
+          <a-col :md="6" :sm="24">
+            <span class="table-page-search-submitButtons">
+              <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="ledgerRecordList-refresh">查询</a-button>
+              <a-button style="margin-left: 8px" @click="resetSearchForm()" :disabled="disabled" id="ledgerRecordList-reset">重置</a-button>
+              <a @click="advanced=!advanced" style="margin-left: 8px">
+                {{ advanced ? '收起' : '展开' }}
+                <a-icon :type="advanced ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- alert -->
+    <a-alert type="info" showIcon style="margin-bottom:15px">
+      <div slot="message">分账金额: <strong>¥6</strong> 元</div>
+    </a-alert>
+    <!-- 列表 -->
+    <s-table
+      class="sTable"
+      ref="table"
+      size="default"
+      :rowKey="(record) => record.id"
+      :columns="columns"
+      :data="loadData"
+      bordered>
+      <!-- 结算单号 -->
+      <template slot="purchaseNo" slot-scope="text, record">
+        <span style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{record.purchaseNo}}</span>
+      </template>
+      <!-- 结算方式 -->
+      <template slot="sss" slot-scope="text, record">
+        <span>{{record.state == 1 ? '现金' : '微信'}}</span>
+      </template>
+      <!-- 操作 -->
+      <template slot="action" slot-scope="text, record">
+        <a-button size="small" type="dashed" @click="handleDetail(record)" id="ledgerRecordList-detail-btn">详情</a-button>
+      </template>
+    </s-table>
+  </a-card>
+</template>
+
+<script>
+import { STable, VSelect } from '@/components'
+// import { getRoleList, getServiceList } from '@/api/manage'
+export default {
+  components: { STable, VSelect },
+  data () {
+    return {
+      advanced: false,  //  高级搜索 展开/关闭
+      disabled: false, //  查询、重置按钮是否可操作
+      // 查询参数
+      queryParam: {},
+      // 表头
+      columns: [
+        { title: '序号', dataIndex: 'no', align: 'center' },
+        { title: '分账时间', dataIndex: 'name', align: 'center' },
+        { title: '客户名称', dataIndex: 'pssayType', align: 'center' },
+        { title: '关联工单', dataIndex: 'paddyType', align: 'center' },
+        { title: '配件名称', scopedSlots: { customRender: 'purchaseNo' }, align: 'center' },
+        { title: '配件编码', dataIndex: 'totalP', align: 'center' },
+        { title: '数量', dataIndex: 'creatDate', align: 'center' },
+        { title: '分账类型', dataIndex: 'payType', align: 'center' },
+        { title: '分账金额(¥)', scopedSlots: { customRender: 'sss' }, width: 270, align: 'center' },
+        { title: '分账状态', dataIndex: 'paysType', align: 'center' },
+        { title: '备注', dataIndex: 'payTypde', align: 'center' },
+      ],
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        this.disabled = true
+        // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
+        //   const data = res.data
+        //   const no = (data.pageNo - 1) * data.pageSize
+        //   for (var i = 0; i < data.list.length; i++) {
+        //     data.list[i].no = no + i + 1
+        //   }
+        //   this.disabled = false
+        //   return data
+        // })
+        const _this = this
+        return new Promise(function(resolve, reject){
+          const data = {
+            pageNo: 1,
+            pageSize: 10,
+            list: [
+              { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
+            ],
+            count: 10
+          }
+          const no = (data.pageNo - 1) * data.pageSize
+          for (var i = 0; i < data.list.length; i++) {
+            data.list[i].no = no + i + 1
+          }
+          _this.disabled = false
+          resolve(data)
+        })
+      },
+    }
+  },
+  methods: {
+    //  详情
+    handleDetail(row){
+      this.$router.push({ path: `/financialManagement/ledgerRecord/detail/${row.id}`})
+    },
+    //  审核
+    handleExamine(row, type){
+      const _this = this
+      this.$confirm({
+        title: '提示',
+        content: '操作后不可恢复,确定要进行'+ (type==1 ? ' 通过 ' : ' 不通过 ') +'操作吗?',
+        okText: '确定',
+        cancelText: '取消',
+        centered: true,
+        onOk () {
+          // delectRolePower({
+          //   id: row.id
+          // }).then(res => {
+          //   console.log(res, 'res1111')
+          //   if (res.status == 200) {
+          //     _this.$message.success(res.message)
+          //     _this.$refs.table.refresh()
+          //   }
+          // })
+        }
+      })
+    },
+    //  重置
+    resetSearchForm () {
+      this.queryParam.orderBundleNo = ''
+      this.queryParam.orderBundle.custMobile = ''
+      this.queryParam.bundleName = ''
+      this.queryParam.itemName = ''
+      this.oldTime = undefined
+      this.newTime = undefined
+      this.$refs.table.refresh(true)
+    },
+  }
+}
+</script>
+<style lang="less">
+  .ledgerRecordList-wrap{
+    .sTable{
+      margin-top: 15px;
+    }
+  }
+</style>

+ 188 - 0
src/views/financialManagement/withdrawalManagement/list.vue

@@ -0,0 +1,188 @@
+<template>
+  <a-card :bordered="false" class="withdrawalManagementList-wrap">
+    <!-- 搜索条件 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+        <a-row :gutter="15">
+          <a-col :md="6" :sm="24">
+            <a-form-item label="提现时间">
+              <a-range-picker v-model="queryParam.creatDate" id="withdrawalManagementList-creatDate"/>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <span class="table-page-search-submitButtons">
+              <a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="withdrawalManagementList-refresh">查询</a-button>
+              <a-button style="margin-left: 8px" @click="resetSearchForm()" :disabled="disabled" id="withdrawalManagementList-reset">重置</a-button>
+            </span>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- alert -->
+    <a-alert type="info" showIcon style="margin-bottom:15px">
+      <div slot="message">可提现余额: <strong>¥6</strong> 元</div>
+    </a-alert>
+    <!-- 操作按钮 -->
+    <div class="table-operator">
+      <a-button id="withdrawalManagementList-tx" type="primary" @click="">申请提现</a-button>
+    </div>
+    <!-- 列表 -->
+    <s-table
+      class="sTable"
+      ref="table"
+      size="default"
+      :rowKey="(record) => record.id"
+      :columns="columns"
+      :data="loadData"
+      bordered>
+      <!-- 结算单号 -->
+      <template slot="purchaseNo" slot-scope="text, record">
+        <span style="color: #ed1c24;cursor: pointer;" @click="handleDetail(record)">{{record.purchaseNo}}</span>
+      </template>
+      <!-- 结算方式 -->
+      <template slot="sss" slot-scope="text, record">
+        <span>{{record.state == 1 ? '现金' : '微信'}}</span>
+      </template>
+      <!-- 操作 -->
+      <template slot="action" slot-scope="text, record">
+        <a-button size="small" type="dashed" @click="handleDetail(record)" id="withdrawalManagementList-detail-btn">详情</a-button>
+      </template>
+    </s-table>
+    <!-- 提现说明 -->
+    <div class="descriptions">
+      <p class="descriptions-tit">提现说明:</p>
+      <ul class="descriptions-list">
+        <li><em>1、</em>提现手续费为元/笔,从可提现余额中扣除。</li>
+        <li><em>2、</em>提现到账时间正常为T+1工作日(例如当天提现,则第二天到账。如果遇到周末或法定节假日,则依次顺延)。</li>
+        <li><em>3、</em>页面上的【可提现余额】包含当天收款但支付公司未清算金额,该部分金额只能在第二天清算后才可提现,如果提示【提现失败】和【账户余额不足】,则表明【可提现金额】中会存在该部分金额,遇到这种情况时,请减少当日提现金额或在次日进行提现。</li>
+        <li><em>4、</em>提现账户为申请开通支付结算账户时所提供的账户信息。</li>
+      </ul>
+    </div>
+  </a-card>
+</template>
+
+<script>
+import { STable, VSelect } from '@/components'
+// import { getRoleList, getServiceList } from '@/api/manage'
+export default {
+  components: { STable, VSelect },
+  data () {
+    return {
+      advanced: false,  //  高级搜索 展开/关闭
+      disabled: false, //  查询、重置按钮是否可操作
+      // 查询参数
+      queryParam: {},
+      // 表头
+      columns: [
+        { title: '序号', dataIndex: 'no', align: 'center' },
+        { title: '提现时间', dataIndex: 'name', align: 'center' },
+        { title: '提现单号', dataIndex: 'paddyType', align: 'center' },
+        { title: '申请提现金额', dataIndex: 'pssayType', align: 'center' },
+        { title: '开户名', scopedSlots: { customRender: 'purchaseNo' }, align: 'center' },
+        { title: '银行卡号', dataIndex: 'totalP', align: 'center' },
+        { title: '状态', dataIndex: 'paysType', align: 'center' },
+        { title: '备注', dataIndex: 'payTypde', align: 'center' },
+      ],
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        this.disabled = true
+        // return customerBundleDelayList( Object.assign(parameter, this.queryParam) ).then(res => {
+        //   const data = res.data
+        //   const no = (data.pageNo - 1) * data.pageSize
+        //   for (var i = 0; i < data.list.length; i++) {
+        //     data.list[i].no = no + i + 1
+        //   }
+        //   this.disabled = false
+        //   return data
+        // })
+        const _this = this
+        return new Promise(function(resolve, reject){
+          const data = {
+            pageNo: 1,
+            pageSize: 10,
+            list: [
+              { id: '1', purchaseNo: 'jgqp11111111111', creatDate: '产品1', custName: 'jgqp111123545', totalP: '箭冠品牌', totalNums: '产品分类1', totalPrice: '5', payType: '122' }
+            ],
+            count: 10
+          }
+          const no = (data.pageNo - 1) * data.pageSize
+          for (var i = 0; i < data.list.length; i++) {
+            data.list[i].no = no + i + 1
+          }
+          _this.disabled = false
+          resolve(data)
+        })
+      },
+    }
+  },
+  methods: {
+    //  详情
+    handleDetail(row){
+      this.$router.push({ path: `/financialManagement/withdrawalManagement/detail/${row.id}`})
+    },
+    //  审核
+    handleExamine(row, type){
+      const _this = this
+      this.$confirm({
+        title: '提示',
+        content: '操作后不可恢复,确定要进行'+ (type==1 ? ' 通过 ' : ' 不通过 ') +'操作吗?',
+        okText: '确定',
+        cancelText: '取消',
+        centered: true,
+        onOk () {
+          // delectRolePower({
+          //   id: row.id
+          // }).then(res => {
+          //   console.log(res, 'res1111')
+          //   if (res.status == 200) {
+          //     _this.$message.success(res.message)
+          //     _this.$refs.table.refresh()
+          //   }
+          // })
+        }
+      })
+    },
+    //  重置
+    resetSearchForm () {
+      this.queryParam.orderBundleNo = ''
+      this.queryParam.orderBundle.custMobile = ''
+      this.queryParam.bundleName = ''
+      this.queryParam.itemName = ''
+      this.oldTime = undefined
+      this.newTime = undefined
+      this.$refs.table.refresh(true)
+    },
+  }
+}
+</script>
+<style lang="less">
+  .withdrawalManagementList-wrap{
+    .sTable{
+      margin-top: 15px;
+    }
+    .descriptions{
+      margin-top: 45px;
+      .descriptions-tit{
+        font-size: 14px;
+        font-weight: bold;
+      }
+      .descriptions-list{
+        list-style: none;
+        padding: 0;
+        margin: 0;
+        li{
+          position: relative;
+          padding: 5px 0 5px 20px;
+          line-height: 1.5em;
+          font-size: 13px;
+          em{
+            position: absolute;
+            left: 0;
+            top: 4px;
+            font-style: normal;
+          }
+        }
+      }
+    }
+  }
+</style>