|
@@ -3,77 +3,63 @@
|
|
<div class="filter-container">
|
|
<div class="filter-container">
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>子订单ID:</span>
|
|
<span>子订单ID:</span>
|
|
- <el-input v-model="listQuery.orderID" style="width:130px;" placeholder="子订单ID" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
|
|
|
|
+ <el-input v-model="listQuery.shopOrderId" style="width:130px;" placeholder="子订单ID" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
</div>
|
|
</div>
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>子订单编号:</span>
|
|
<span>子订单编号:</span>
|
|
- <el-input v-model="listQuery.orderID" style="width:200px;" placeholder="子订单编号" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
|
|
|
|
+ <el-input v-model="listQuery.shopOrderNo" style="width:200px;" placeholder="子订单编号" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
</div>
|
|
</div>
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>订单ID:</span>
|
|
<span>订单ID:</span>
|
|
- <el-input v-model="listQuery.orderID" style="width:130px;" placeholder="订单ID" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
|
|
|
|
+ <el-input v-model="listQuery.orderId" style="width:130px;" placeholder="订单ID" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
</div>
|
|
</div>
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>订单编号:</span>
|
|
<span>订单编号:</span>
|
|
- <el-input v-model="listQuery.orderNumber" style="width:200px;" placeholder="订单编号" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
|
|
|
|
+ <el-input v-model="listQuery.orderNo" style="width:200px;" placeholder="订单编号" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
</div>
|
|
</div>
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>供应商:</span>
|
|
<span>供应商:</span>
|
|
- <el-input v-model="listQuery.customer" style="width:200px;" placeholder="供应商" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
|
|
|
|
+ <el-input v-model="listQuery.shopName" style="width:200px;" placeholder="供应商" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
</div>
|
|
</div>
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>机构名称:</span>
|
|
<span>机构名称:</span>
|
|
- <el-input v-model="listQuery.customer" style="width:200px;" placeholder="机构名称" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
|
|
|
|
+ <el-input v-model="listQuery.clubName" style="width:200px;" placeholder="机构名称" clearable @keyup.enter.native="getList" @clear="getList" />
|
|
</div>
|
|
</div>
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>收款状态:</span>
|
|
<span>收款状态:</span>
|
|
- <el-select v-model="listQuery.sendOutStatus" style="width:120px;" clearable @change="getList">
|
|
|
|
|
|
+ <el-select v-model="listQuery.receiptStatus" style="width:120px;" clearable @change="getList">
|
|
<el-option value="" label="所有" />
|
|
<el-option value="" label="所有" />
|
|
- <el-option label="待审核" value="0" />
|
|
|
|
- <el-option label="审核通过" value="1" />
|
|
|
|
- <el-option label="审核不通过" value="2" />
|
|
|
|
|
|
+ <el-option label="待收款" :value="1" />
|
|
|
|
+ <el-option label="部分收款" :value="2" />
|
|
|
|
+ <el-option label="已收款" :value="3" />
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>付款状态:</span>
|
|
<span>付款状态:</span>
|
|
- <el-select v-model="listQuery.sendOutStatus" style="width:120px;" clearable @change="getList">
|
|
|
|
|
|
+ <el-select v-model="listQuery.payStatus" style="width:120px;" clearable @change="getList">
|
|
<el-option value="" label="所有" />
|
|
<el-option value="" label="所有" />
|
|
- <el-option label="待审核" value="0" />
|
|
|
|
- <el-option label="审核通过" value="1" />
|
|
|
|
- <el-option label="审核不通过" value="2" />
|
|
|
|
|
|
+ <el-option label="待付款" :value="1" />
|
|
|
|
+ <el-option label="部分付款" :value="2" />
|
|
|
|
+ <el-option label="已付款" :value="3" />
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>退款状态:</span>
|
|
<span>退款状态:</span>
|
|
- <el-select v-model="listQuery.sendOutStatus" style="width:120px;" clearable @change="getList">
|
|
|
|
|
|
+ <el-select v-model="listQuery.refundType" style="width:120px;" clearable @change="getList">
|
|
<el-option value="" label="所有" />
|
|
<el-option value="" label="所有" />
|
|
- <el-option label="待审核" value="0" />
|
|
|
|
- <el-option label="审核通过" value="1" />
|
|
|
|
- <el-option label="审核不通过" value="2" />
|
|
|
|
|
|
+ <el-option label="部分退款" :value="1" />
|
|
|
|
+ <el-option label="全部退款" :value="2" />
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<span>结算状态:</span>
|
|
<span>结算状态:</span>
|
|
- <el-select v-model="listQuery.sendOutStatus" style="width:120px;" clearable @change="getList">
|
|
|
|
|
|
+ <el-select v-model="listQuery.settleStatus" style="width:120px;" clearable @change="getList">
|
|
<el-option value="" label="所有" />
|
|
<el-option value="" label="所有" />
|
|
- <el-option label="待审核" value="0" />
|
|
|
|
- <el-option label="审核通过" value="1" />
|
|
|
|
- <el-option label="审核不通过" value="2" />
|
|
|
|
|
|
+ <el-option label="未结算" :value="1" />
|
|
|
|
+ <el-option label="部分结算" :value="2" />
|
|
|
|
+ <el-option label="已结算" :value="3" />
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
- <div class="filter-control">
|
|
|
|
- <span>下单时间:</span>
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="time"
|
|
|
|
- type="daterange"
|
|
|
|
- unlink-panels
|
|
|
|
- range-separator="至"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
- :picker-options="pickerOptions"
|
|
|
|
- @change="getList"
|
|
|
|
- />
|
|
|
|
- </div>
|
|
|
|
<div class="filter-control">
|
|
<div class="filter-control">
|
|
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
|
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -93,30 +79,69 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="子订单信息" type="expand" width="60">
|
|
<el-table-column label="子订单信息" type="expand" width="60">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <el-table :data="row.shopOrderIdList" border fit highlight-current-row default-expand-all :header-cell-style="{background:'#e9f3f7',color:'#606266'}">
|
|
|
|
|
|
+ <el-table :data="row.newShopOrders" border fit highlight-current-row default-expand-all :header-cell-style="{background:'#e9f3f7',color:'#606266'}">
|
|
<el-table-column label="商品信息" type="expand" width="80px">
|
|
<el-table-column label="商品信息" type="expand" width="80px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-table :data="scope.row.products" border fit highlight-current-row :header-cell-style="{background:'#f9f9f9',color:'#606266'}">
|
|
|
|
- <el-table-column label="商品名" align="center" prop="productName" />
|
|
|
|
|
|
+ <el-table :data="scope.row.newOrderProducts" border fit highlight-current-row :header-cell-style="{background:'#f9f9f9',color:'#606266'}">
|
|
|
|
+ <el-table-column label="商品名" align="center" prop="name" />
|
|
<el-table-column label="规格" align="center" prop="unit" />
|
|
<el-table-column label="规格" align="center" prop="unit" />
|
|
<el-table-column label="数量" align="center" prop="num" />
|
|
<el-table-column label="数量" align="center" prop="num" />
|
|
- <el-table-column label="退货" align="center" prop="returnNum" />
|
|
|
|
|
|
+ <el-table-column label="退货" align="center" prop="returnedPurchaseProductNum" />
|
|
<el-table-column label="单价" align="center" prop="price" />
|
|
<el-table-column label="单价" align="center" prop="price" />
|
|
- <el-table-column label="总价" align="center" prop="totalPrice" />
|
|
|
|
|
|
+ <el-table-column label="总价" align="center" prop="totalAmount" />
|
|
</el-table>
|
|
</el-table>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="子订单编号(ID)" align="center" prop="shopOrderNos" width="240">
|
|
<el-table-column label="子订单编号(ID)" align="center" prop="shopOrderNos" width="240">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{ scope.row.shopOrderNos }}({{ scope.row.shopOrderIds }})</span>
|
|
|
|
|
|
+ <span v-for="child in scope.row.shopOrderNos" :key="child">
|
|
|
|
+ {{ child }}
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="结算状态" align="center" prop="settleStatus">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-tag v-if="scope.row.settleStatus===1" type="danger" size="small">未结算</el-tag>
|
|
|
|
+ <el-tag v-if="scope.row.settleStatus===2" type="warning" size="small">部分结算</el-tag>
|
|
|
|
+ <el-tag v-if="scope.row.settleStatus===3" type="success" size="small">已结算</el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="应结金额" align="center" prop="payableAmount">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ scope.row.payableAmount | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="已结金额" align="center" prop="payableAmount">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ scope.row.payableAmount | amountfilters }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="供应商" align="center" prop="shopName" />
|
|
<el-table-column label="供应商" align="center" prop="shopName" />
|
|
- <el-table-column label="商品费" align="center" prop="payShopTotals" />
|
|
|
|
- <el-table-column label="已付供应商/合作方" align="center" prop="payShopTotals" />
|
|
|
|
- <el-table-column label="供应商退款" align="center" prop="payShopTotals" />
|
|
|
|
- <el-table-column label="应付供应商/合作方" align="center" prop="payShopTotals" />
|
|
|
|
- <el-table-column label="供应商运费" align="center" prop="payShopTotals" />
|
|
|
|
|
|
+ <el-table-column label="商品费" align="center" prop="shopProductAmount">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ scope.row.shopProductAmount | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="已付供应商/合作方" align="center" prop="payedShopAmount">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ scope.row.payedShopAmount | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="供应商退款" align="center" prop="refundAmount">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ scope.row.refundAmount | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="应付供应商/合作方" align="center" prop="shouldPayShopAmount">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ scope.row.shouldPayShopAmount | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="供应商运费" align="center" prop="shopPostFee">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ scope.row.shopPostFee | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -125,473 +150,160 @@
|
|
<span>{{ row.orderNo }}({{ row.orderId }})</span>
|
|
<span>{{ row.orderNo }}({{ row.orderId }})</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="下单时间" align="center" prop="verifyTime" />
|
|
|
|
- <el-table-column label="订单金额" align="center" prop="payableAmount" />
|
|
|
|
- <el-table-column label="应收金额" align="center" prop="payableAmount" />
|
|
|
|
- <el-table-column label="已收金额" align="center" prop="payableAmount" />
|
|
|
|
- <el-table-column label="应付金额" align="center" prop="payableAmount" />
|
|
|
|
- <el-table-column label="已付金额" align="center" prop="payableAmount" />
|
|
|
|
- <el-table-column label="应结金额" align="center" prop="payableAmount" />
|
|
|
|
- <el-table-column label="已结金额" align="center" prop="payableAmount" />
|
|
|
|
- <el-table-column label="退款金额" align="center" prop="payableAmount" />
|
|
|
|
|
|
+ <el-table-column label="下单时间" align="center" prop="orderTime" />
|
|
|
|
+ <el-table-column label="订单金额" align="center" prop="payTotalFee" />
|
|
|
|
+ <el-table-column label="应收金额" align="center" prop="shouldPayProduct">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <span>{{ row.shouldPayProduct | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="已收金额" align="center" prop="alreadyReceipt">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <span>{{ row.alreadyReceipt | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="应付金额" align="center" prop="payableAmount">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <span>{{ row.payableAmount | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="已付金额" align="center" prop="paidAmount">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <span>{{ row.paidAmount | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="退款金额" align="center" prop="payableAmount">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <span>{{ row.payableAmount | amountfilters }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="机构" align="center" prop="clubName" />
|
|
<el-table-column label="机构" align="center" prop="clubName" />
|
|
- <el-table-column label="机构运费" align="center" prop="payableAmount" />
|
|
|
|
- <el-table-column label="订单状态" prop="status" align="center">
|
|
|
|
- <template slot-scope="{ row }">
|
|
|
|
- <span
|
|
|
|
- :class="{
|
|
|
|
- 'el-span-warning': row.status == 0,
|
|
|
|
- 'el-span-success': row.status == 1,
|
|
|
|
- 'el-span-danger': row.status == 0
|
|
|
|
- }"
|
|
|
|
- >
|
|
|
|
- 交易中
|
|
|
|
- </span>
|
|
|
|
|
|
+ <el-table-column label="机构运费" align="center" prop="freight">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <span v-if="row.freight*1===0">包邮</span>
|
|
|
|
+ <span v-if="row.freight*1===-1">到付</span>
|
|
|
|
+ <span v-if="row.freight*1===-2">仪器到付-产品包邮</span>
|
|
|
|
+ <span v-else>¥{{ row.freight }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="status" label="收款状态" align="center">
|
|
|
|
- <template slot-scope="{ row }">
|
|
|
|
- <span
|
|
|
|
- :class="{
|
|
|
|
- 'el-span-warning': row.status == 0,
|
|
|
|
- 'el-span-success': row.status == 1,
|
|
|
|
- 'el-span-danger': row.status == 0
|
|
|
|
- }"
|
|
|
|
- >
|
|
|
|
- {{ row.status | statusFilter }}
|
|
|
|
- <span v-if="row.status === 2" class="el-span-danger">原因:{{ row.statusText }}</span>
|
|
|
|
- </span>
|
|
|
|
|
|
+ <el-table-column label="订单状态" prop="status" align="center">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <template v-if="['11','12','13','21','22','23','31','32','33'].indexOf(row.status)>=0">
|
|
|
|
+ <el-tag type="success" size="small">交易中</el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <el-tag :type="row.status*1===6?'info':''" size="small">{{ row.status | statusFilter }}</el-tag>
|
|
|
|
+ </template>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="付款状态" prop="status" align="center">
|
|
|
|
- <template slot-scope="{ row }">
|
|
|
|
- <span
|
|
|
|
- :class="{
|
|
|
|
- 'el-span-warning': row.status == 0,
|
|
|
|
- 'el-span-success': row.status == 1,
|
|
|
|
- 'el-span-danger': row.status == 0
|
|
|
|
- }"
|
|
|
|
- >
|
|
|
|
- 已付款
|
|
|
|
- </span>
|
|
|
|
|
|
+ <el-table-column label="收款状态" align="center" prop="receiptStatus">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <el-tag v-if="row.receiptStatus*1===1" type="danger" size="small">待收款</el-tag>
|
|
|
|
+ <el-tag v-if="row.receiptStatus*1===2" type="warning" size="small">部分收款</el-tag>
|
|
|
|
+ <el-tag v-if="row.receiptStatus*1===3" type="success" size="small">已收款</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="退款状态" prop="status" align="center">
|
|
|
|
- <template slot-scope="{ row }">
|
|
|
|
- <span
|
|
|
|
- :class="{
|
|
|
|
- 'el-span-warning': row.status == 0,
|
|
|
|
- 'el-span-success': row.status == 1,
|
|
|
|
- 'el-span-danger': row.status == 0
|
|
|
|
- }"
|
|
|
|
- >
|
|
|
|
- 无退款
|
|
|
|
- </span>
|
|
|
|
|
|
+ <el-table-column label="付款状态" align="center" prop="receiptStatus">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <el-tag v-if="row.payStatus*1===1" type="danger" size="small">待付款</el-tag>
|
|
|
|
+ <el-tag v-if="row.payStatus*1===2" type="warning" size="small">部分付款</el-tag>
|
|
|
|
+ <el-tag v-if="row.payStatus*1===3" type="success" size="small">已付款</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="结算状态" prop="status" align="center">
|
|
|
|
- <template slot-scope="{ row }">
|
|
|
|
- <span
|
|
|
|
- :class="{
|
|
|
|
- 'el-span-warning': row.status == 0,
|
|
|
|
- 'el-span-success': row.status == 1,
|
|
|
|
- 'el-span-danger': row.status == 0
|
|
|
|
- }"
|
|
|
|
- >
|
|
|
|
- 已结算
|
|
|
|
- </span>
|
|
|
|
|
|
+ <el-table-column label="退款状态" align="center" prop="receiptStatus">
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
+ <el-tag v-if="row.refundType*1===1" type="warning" size="small">部分退款</el-tag>
|
|
|
|
+ <el-tag v-if="row.refundType*1===2" type="success" size="small">全部付款</el-tag>
|
|
|
|
+ <el-tag v-else type="info" size="small">无退款</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" width="160">
|
|
<el-table-column label="操作" align="center" width="160">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <el-button type="text" size="mini" @click="handleToRecord(1,row.id)">收付款记录</el-button>
|
|
|
|
- <el-button type="text" size="mini" @click="handleToRecord(2,row.id)">用户退款/退货记录</el-button>
|
|
|
|
- <el-button type="text" size="mini" @click="handleToRecord(3,row.id)">供应商退/付款记录</el-button>
|
|
|
|
|
|
+ <el-button type="text" size="mini" @click="handleToRecord(1,row.orderId)">收付款记录</el-button>
|
|
|
|
+ <el-button type="text" size="mini" @click="handleToRecord(2,row.orderId)">用户退款/退货记录</el-button>
|
|
|
|
+ <!-- <el-button type="text" size="mini" @click="handleToRecord(3,row.orderId)">供应商退/付款记录</el-button> -->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <pagination v-show="total>20" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
|
|
|
|
|
+ <pagination v-show="total>10" :total="total" :page.sync="listQuery.pageNum" :limit.sync="listQuery.pageSize" @pagination="getList" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getClubList } from '@/api/club'
|
|
|
|
|
|
+import { organizePayInfos } from '@/api/finance'
|
|
import pickerOptions from '@/utils/time-picker.js'
|
|
import pickerOptions from '@/utils/time-picker.js'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
filters: {
|
|
filters: {
|
|
statusFilter(status) {
|
|
statusFilter(status) {
|
|
const map = {
|
|
const map = {
|
|
- 0: '待付款',
|
|
|
|
- 1: '已付款',
|
|
|
|
- 2: '审核不通过'
|
|
|
|
|
|
+ '0': '待确认',
|
|
|
|
+ '4': '交易完成',
|
|
|
|
+ '5': '订单完成',
|
|
|
|
+ '6': '已关闭',
|
|
|
|
+ '7': '交易全退',
|
|
|
|
+ '11': '待收款、待发货',
|
|
|
|
+ '12': '待收款、部分发货',
|
|
|
|
+ '13': '待收款、全部发货',
|
|
|
|
+ '21': '部分收款、待发货',
|
|
|
|
+ '22': '部分收款、部分发货',
|
|
|
|
+ '23': '部分收款、全部发货',
|
|
|
|
+ '31': '全部收款、待发货',
|
|
|
|
+ '32': '全部收款、部分发货',
|
|
|
|
+ '33': '全部收款、全部发货'
|
|
}
|
|
}
|
|
return map[status]
|
|
return map[status]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- list: [
|
|
|
|
- {
|
|
|
|
- id: 7580,
|
|
|
|
- name: '微博',
|
|
|
|
- type: '子订单付款',
|
|
|
|
- shopName: '采美信息技术有限公司',
|
|
|
|
- payableAmount: '2000.00',
|
|
|
|
- shopOrderNo: 'P1682650952091471001',
|
|
|
|
- shopOrderId: '19747',
|
|
|
|
- orderNo: 'P16265095220221471',
|
|
|
|
- orderId: '18179',
|
|
|
|
- clubName: '广州白云区松洲蒂亚美容院',
|
|
|
|
- applyMan: '路海珠',
|
|
|
|
- applyTime: '2020-01-01:20:30:56',
|
|
|
|
- verifyMan: '李昕',
|
|
|
|
- verifyTime: '2020-01-01:20:30:56',
|
|
|
|
- status: 0,
|
|
|
|
- totalProduct: '3000.00',
|
|
|
|
- payShopTotal: '3000.00',
|
|
|
|
- shopOrderIdList: [
|
|
|
|
- {
|
|
|
|
- shopName: '采美信息技术有限公司',
|
|
|
|
- shopOrderNos: 'P1682650952091471001',
|
|
|
|
- shopOrderIds: '19747',
|
|
|
|
- orderNos: 'P16265095220221471',
|
|
|
|
- orderIds: '18179',
|
|
|
|
- clubNames: '广州白云区松洲蒂亚美容院',
|
|
|
|
- applyMans: '路海珠',
|
|
|
|
- applyTimes: '2020-01-01:20:30:56',
|
|
|
|
- verifyMans: '李昕',
|
|
|
|
- verifyTimes: '2020-01-01:20:30:56',
|
|
|
|
- statuss: 0,
|
|
|
|
- totalProducts: '3000.00',
|
|
|
|
- payShopTotals: '3000.00',
|
|
|
|
- products: [
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- shopName: '采美信息技术有限公司',
|
|
|
|
- shopOrderNos: 'P1682650952091471001',
|
|
|
|
- shopOrderIds: '19747',
|
|
|
|
- orderNos: 'P16265095220221471',
|
|
|
|
- orderIds: '18179',
|
|
|
|
- clubNames: '广州白云区松洲蒂亚美容院',
|
|
|
|
- applyMans: '路海珠',
|
|
|
|
- applyTimes: '2020-01-01:20:30:56',
|
|
|
|
- verifyMans: '李昕',
|
|
|
|
- verifyTimes: '2020-01-01:20:30:56',
|
|
|
|
- statuss: 0,
|
|
|
|
- totalProducts: '3000.00',
|
|
|
|
- payShopTotals: '3000.00',
|
|
|
|
- products: [
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: 7580,
|
|
|
|
- name: '微博',
|
|
|
|
- type: '子订单付款',
|
|
|
|
- shopName: '采美信息技术有限公司',
|
|
|
|
- payableAmount: '2000.00',
|
|
|
|
- shopOrderNo: 'P1682650952091471001',
|
|
|
|
- shopOrderId: '19747',
|
|
|
|
- orderNo: 'P16265095220221471',
|
|
|
|
- orderId: '18179',
|
|
|
|
- clubName: '广州白云区松洲蒂亚美容院',
|
|
|
|
- applyMan: '路海珠',
|
|
|
|
- applyTime: '2020-01-01:20:30:56',
|
|
|
|
- verifyMan: '李昕',
|
|
|
|
- verifyTime: '2020-01-01:20:30:56',
|
|
|
|
- status: 0,
|
|
|
|
- totalProduct: '3000.00',
|
|
|
|
- payShopTotal: '3000.00',
|
|
|
|
- shopOrderIdList: [
|
|
|
|
- {
|
|
|
|
- shopName: '采美信息技术有限公司',
|
|
|
|
- shopOrderNos: 'P1682650952091471001',
|
|
|
|
- shopOrderIds: '19747',
|
|
|
|
- orderNos: 'P16265095220221471',
|
|
|
|
- orderIds: '18179',
|
|
|
|
- clubNames: '广州白云区松洲蒂亚美容院',
|
|
|
|
- applyMans: '路海珠',
|
|
|
|
- applyTimes: '2020-01-01:20:30:56',
|
|
|
|
- verifyMans: '李昕',
|
|
|
|
- verifyTimes: '2020-01-01:20:30:56',
|
|
|
|
- statuss: 0,
|
|
|
|
- totalProducts: '3000.00',
|
|
|
|
- payShopTotals: '3000.00',
|
|
|
|
- products: [
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- shopName: '采美信息技术有限公司',
|
|
|
|
- shopOrderNos: 'P1682650952091471001',
|
|
|
|
- shopOrderIds: '19747',
|
|
|
|
- orderNos: 'P16265095220221471',
|
|
|
|
- orderIds: '18179',
|
|
|
|
- clubNames: '广州白云区松洲蒂亚美容院',
|
|
|
|
- applyMans: '路海珠',
|
|
|
|
- applyTimes: '2020-01-01:20:30:56',
|
|
|
|
- verifyMans: '李昕',
|
|
|
|
- verifyTimes: '2020-01-01:20:30:56',
|
|
|
|
- statuss: 0,
|
|
|
|
- totalProducts: '3000.00',
|
|
|
|
- payShopTotals: '3000.00',
|
|
|
|
- products: [
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: 7580,
|
|
|
|
- name: '微博',
|
|
|
|
- type: '子订单付款',
|
|
|
|
- shopName: '采美信息技术有限公司',
|
|
|
|
- payableAmount: '2000.00',
|
|
|
|
- shopOrderNo: 'P1682650952091471001',
|
|
|
|
- shopOrderId: '19747',
|
|
|
|
- orderNo: 'P16265095220221471',
|
|
|
|
- orderId: '18179',
|
|
|
|
- clubName: '广州白云区松洲蒂亚美容院',
|
|
|
|
- applyMan: '路海珠',
|
|
|
|
- applyTime: '2020-01-01:20:30:56',
|
|
|
|
- verifyMan: '李昕',
|
|
|
|
- verifyTime: '2020-01-01:20:30:56',
|
|
|
|
- status: 0,
|
|
|
|
- totalProduct: '3000.00',
|
|
|
|
- payShopTotal: '3000.00',
|
|
|
|
- shopOrderIdList: [
|
|
|
|
- {
|
|
|
|
- shopName: '采美信息技术有限公司',
|
|
|
|
- shopOrderNos: 'P1682650952091471001',
|
|
|
|
- shopOrderIds: '19747',
|
|
|
|
- orderNos: 'P16265095220221471',
|
|
|
|
- orderIds: '18179',
|
|
|
|
- clubNames: '广州白云区松洲蒂亚美容院',
|
|
|
|
- applyMans: '路海珠',
|
|
|
|
- applyTimes: '2020-01-01:20:30:56',
|
|
|
|
- verifyMans: '李昕',
|
|
|
|
- verifyTimes: '2020-01-01:20:30:56',
|
|
|
|
- statuss: 0,
|
|
|
|
- totalProducts: '3000.00',
|
|
|
|
- payShopTotals: '3000.00',
|
|
|
|
- products: [
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- shopName: '采美信息技术有限公司',
|
|
|
|
- shopOrderNos: 'P1682650952091471001',
|
|
|
|
- shopOrderIds: '19747',
|
|
|
|
- orderNos: 'P16265095220221471',
|
|
|
|
- orderIds: '18179',
|
|
|
|
- clubNames: '广州白云区松洲蒂亚美容院',
|
|
|
|
- applyMans: '路海珠',
|
|
|
|
- applyTimes: '2020-01-01:20:30:56',
|
|
|
|
- verifyMans: '李昕',
|
|
|
|
- verifyTimes: '2020-01-01:20:30:56',
|
|
|
|
- statuss: 0,
|
|
|
|
- totalProducts: '3000.00',
|
|
|
|
- payShopTotals: '3000.00',
|
|
|
|
- products: [
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- productName: '阶雪山之恋保滋润面霜吖',
|
|
|
|
- unit: '50ml',
|
|
|
|
- num: 3,
|
|
|
|
- returnNum: 0,
|
|
|
|
- price: '2000.00',
|
|
|
|
- totalPrice: '6000.00',
|
|
|
|
- costPrice: '1000.00',
|
|
|
|
- totalCostPrice: '3000.00'
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ time: '',
|
|
pickerOptions,
|
|
pickerOptions,
|
|
listLoading: false,
|
|
listLoading: false,
|
|
- searchTimeVal: '',
|
|
|
|
|
|
+ list: [],
|
|
total: 0,
|
|
total: 0,
|
|
listQuery: {
|
|
listQuery: {
|
|
- page: 1,
|
|
|
|
- limit: 10,
|
|
|
|
- importance: undefined,
|
|
|
|
- title: undefined,
|
|
|
|
- type: undefined,
|
|
|
|
- sort: '+id'
|
|
|
|
- },
|
|
|
|
- search: {
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- form: {
|
|
|
|
- classifyName: '',
|
|
|
|
- telephone: '',
|
|
|
|
- contacts: '',
|
|
|
|
- businessNum: '',
|
|
|
|
- address: '',
|
|
|
|
- radio: 1,
|
|
|
|
- status: '请选择',
|
|
|
|
- imageUrl: '',
|
|
|
|
- doorwayImageUrl: ''
|
|
|
|
- },
|
|
|
|
- addPeople: {
|
|
|
|
- classifyName: '',
|
|
|
|
- telephone: ''
|
|
|
|
- },
|
|
|
|
- updateTatusId: '',
|
|
|
|
- updateTatusType: '',
|
|
|
|
- dialogVisible: false,
|
|
|
|
- dialogVisibleText: '',
|
|
|
|
- dialogFormVisible: false,
|
|
|
|
- dialogStatus: '',
|
|
|
|
- textMap: {
|
|
|
|
- update: '添加运营人员',
|
|
|
|
- create: 'Create',
|
|
|
|
- titleText: '系统提示'
|
|
|
|
- },
|
|
|
|
- rules: {
|
|
|
|
- classifyName: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
|
|
|
|
- telephone: [{ required: true, message: '手机号码不能为空', trigger: 'blur' }]
|
|
|
|
|
|
+ organizeId: this.$store.getters.organizeId,
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ shopName: '', // 供应商名称
|
|
|
|
+ clubName: '', // 机构名称
|
|
|
|
+ orderNo: '', // 订单编号
|
|
|
|
+ orderId: '', // 订单ID
|
|
|
|
+ shopOrderId: '', // 子订单ID
|
|
|
|
+ shopOrderNo: '', // 子订单编号
|
|
|
|
+ payStatus: '', // 付款状态
|
|
|
|
+ receiptStatus: '', // 收款状态
|
|
|
|
+ refundType: '', // 退款状态
|
|
|
|
+ settleStatus: ''// 结算状态
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- // this.getList()
|
|
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- getList() {
|
|
|
|
|
|
+ async getList() {
|
|
this.listLoading = true
|
|
this.listLoading = true
|
|
- getClubList().then(response => {
|
|
|
|
- this.list = response.data.items
|
|
|
|
|
|
+ try {
|
|
|
|
+ const res = await organizePayInfos(this.listQuery)
|
|
|
|
+ this.list = res.data.list
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
- }).catch(() => {
|
|
|
|
- // 封装静态数据
|
|
|
|
- this.list = [
|
|
|
|
-
|
|
|
|
- ]
|
|
|
|
- })
|
|
|
|
- this.listLoading = false
|
|
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.log('error', error)
|
|
|
|
+ this.listLoading = false
|
|
|
|
+ }
|
|
},
|
|
},
|
|
- handleToRecord(type, id) {
|
|
|
|
|
|
+ handleToRecord(type, orderId) {
|
|
switch (type) {
|
|
switch (type) {
|
|
case 1:
|
|
case 1:
|
|
- this.$router.push({ path: '/finance/paysettle-record', query: { id: id }})
|
|
|
|
|
|
+ this.$router.push({ path: '/finance/remit-record', query: { orderId: orderId }})
|
|
break
|
|
break
|
|
case 2:
|
|
case 2:
|
|
- this.$router.push({ path: '/finance/refund-record', query: { id: id }})
|
|
|
|
|
|
+ this.$router.push({ path: '/finance/refund-record', query: { orderId: orderId }})
|
|
break
|
|
break
|
|
case 3:
|
|
case 3:
|
|
- this.$router.push({ path: '/finance/shop-record', query: { id: id }})
|
|
|
|
|
|
+ this.$router.push({ path: '/finance/shop-record', query: { orderId: orderId }})
|
|
break
|
|
break
|
|
}
|
|
}
|
|
}
|
|
}
|