|
@@ -1,260 +1,115 @@
|
|
-<!-- <template>
|
|
|
|
|
|
+<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
|
|
+ <div style="text-align: right; margin-bottom: 10px">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="dateRange"
|
|
|
|
+ type="datetimerange"
|
|
|
|
+ range-separator="-"
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ @change="tjdatePicker"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </div>
|
|
<div class="header" style="width: 100%">
|
|
<div class="header" style="width: 100%">
|
|
<el-row class="row" :gutter="12">
|
|
<el-row class="row" :gutter="12">
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
<div class="item">
|
|
<div class="item">
|
|
- <div class="title">
|
|
|
|
- <span>今日新增订单</span>
|
|
|
|
- </div>
|
|
|
|
<div class="count">
|
|
<div class="count">
|
|
- {{ orderStatistics ? orderStatistics.AllOrder : 0 }} 个
|
|
|
|
|
|
+ {{ orderStatistics ? orderStatistics.amount : 0 }} 个
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="3">
|
|
|
|
- <div class="item">
|
|
|
|
<div class="title">
|
|
<div class="title">
|
|
- <span>待接单</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="count">
|
|
|
|
- {{ orderStatistics ? orderStatistics.waitOrderCount : 0 }}个
|
|
|
|
|
|
+ <span>总发放数量</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
<div class="item">
|
|
<div class="item">
|
|
- <div class="title">
|
|
|
|
- <span>账期待审核</span>
|
|
|
|
- </div>
|
|
|
|
<div class="count">
|
|
<div class="count">
|
|
- {{ orderStatistics ? orderStatistics.waitAuditOrderCount : 0 }}个
|
|
|
|
|
|
+ {{ orderStatistics ? orderStatistics.receiveNum : 0 }}
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="3">
|
|
|
|
- <div class="item">
|
|
|
|
<div class="title">
|
|
<div class="title">
|
|
- <span>待发货</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="count">
|
|
|
|
- {{ orderStatistics ? orderStatistics.waitDelivery : 0 }}个
|
|
|
|
|
|
+ <span>总发放金额(元)</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
<div class="item">
|
|
<div class="item">
|
|
- <div class="title">
|
|
|
|
- <span>未发货待退款</span>
|
|
|
|
- </div>
|
|
|
|
<div class="count">
|
|
<div class="count">
|
|
- {{ orderStatistics ? orderStatistics.waitDeliveryRefund : 0 }}个
|
|
|
|
|
|
+ {{ orderStatistics ? orderStatistics.sendAmount : 0 }}个
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="3">
|
|
|
|
- <div class="item">
|
|
|
|
<div class="title">
|
|
<div class="title">
|
|
- <span>待处理售后</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="count">
|
|
|
|
- {{ orderStatistics ? orderStatistics.afterSalesOrder : 0 }}个
|
|
|
|
|
|
+ <span>全部领取人数</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="3">
|
|
<el-col :span="3">
|
|
<div class="item">
|
|
<div class="item">
|
|
- <div class="title">
|
|
|
|
- <span>到账金额</span>
|
|
|
|
- </div>
|
|
|
|
<div class="count">
|
|
<div class="count">
|
|
- {{ orderStatistics ? orderStatistics.divideSuccessPrice : 0 }}个
|
|
|
|
|
|
+ {{ orderStatistics ? orderStatistics.sendNum : 0 }}个
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="3">
|
|
|
|
- <div class="item">
|
|
|
|
<div class="title">
|
|
<div class="title">
|
|
- <span>冻结金额</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="count">
|
|
|
|
- {{ orderStatistics ? orderStatistics.divideWaitPrice : 0 }}元
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="3">
|
|
|
|
- <div class="item">
|
|
|
|
- <div class="title">
|
|
|
|
- <span>账期待付款</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="count">
|
|
|
|
- {{
|
|
|
|
- orderStatistics.divideWaitPayPrice
|
|
|
|
- ? orderStatistics.divideWaitPayPrice
|
|
|
|
- : 0
|
|
|
|
- }}元
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="3">
|
|
|
|
- <div class="item">
|
|
|
|
- <div class="title">
|
|
|
|
- <span>账期逾期金额</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="count">
|
|
|
|
- {{
|
|
|
|
- orderStatistics.divideOverduePrice
|
|
|
|
- ? orderStatistics.divideOverduePrice
|
|
|
|
- : 0
|
|
|
|
- }}元
|
|
|
|
|
|
+ <span>全部领取金额(元)</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
- <div class="radio">
|
|
|
|
- <el-radio-group
|
|
|
|
- v-model="queryParams.queryOrderStatus"
|
|
|
|
- @change="radioChange"
|
|
|
|
- >
|
|
|
|
- <el-radio-button size="medium" label="0" name="0">
|
|
|
|
- 全部
|
|
|
|
- </el-radio-button>
|
|
|
|
- <el-radio-button
|
|
|
|
- size="medium"
|
|
|
|
- :label="item.value"
|
|
|
|
- :name="item.value"
|
|
|
|
- v-for="item in dict.type.sys_order_query_orderStatus"
|
|
|
|
- :key="item.value"
|
|
|
|
- >
|
|
|
|
- {{ item.label }}
|
|
|
|
- </el-radio-button>
|
|
|
|
- </el-radio-group>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
<el-form
|
|
<el-form
|
|
|
|
+ style="margin-top: 20px"
|
|
:model="queryParams"
|
|
:model="queryParams"
|
|
ref="queryForm"
|
|
ref="queryForm"
|
|
size="small"
|
|
size="small"
|
|
:inline="true"
|
|
:inline="true"
|
|
- label-width="100px"
|
|
|
|
|
|
+ label-width="80px"
|
|
>
|
|
>
|
|
- <el-form-item label="关键字" prop="key" label-width="100px">
|
|
|
|
|
|
+ <el-form-item label="" prop="key">
|
|
<el-input
|
|
<el-input
|
|
- v-model="queryParams.spuName"
|
|
|
|
- placeholder="请输入订单编号/商品ID/商品名称/买家手机号/买家ID搜索"
|
|
|
|
|
|
+ v-model="queryParams.key"
|
|
|
|
+ placeholder="请输入代金券ID/代金券名称/用户Id/用户昵称/用户手机号搜索"
|
|
clearable
|
|
clearable
|
|
- style="width: 420px"
|
|
|
|
|
|
+ style="width: 300px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
- <el-form-item label="下单时间" prop="createTime">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="queryParams.createTime"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- format="yyyy-MM-dd"
|
|
|
|
- type="date"
|
|
|
|
- placeholder="请选择下单时间"
|
|
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="配送方式" prop="deliveryType">
|
|
|
|
|
|
+ <el-form-item label="推广方式" prop="showType">
|
|
<el-select
|
|
<el-select
|
|
- v-model="queryParams.deliveryType"
|
|
|
|
- placeholder="请选择配送方式"
|
|
|
|
|
|
+ v-model="queryParams.showType"
|
|
|
|
+ placeholder="请选择推广方式"
|
|
style="width: 180px"
|
|
style="width: 180px"
|
|
>
|
|
>
|
|
<el-option label="全部" value=""> </el-option>
|
|
<el-option label="全部" value=""> </el-option>
|
|
- <el-option
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- v-for="item in dict.type.sys_order_deliveryType"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="订单状态" prop="orderStatusKey">
|
|
|
|
- <el-select
|
|
|
|
- v-model="queryParams.orderStatusKey"
|
|
|
|
- placeholder="请选择订单状态"
|
|
|
|
- style="width: 220px"
|
|
|
|
- >
|
|
|
|
- <el-option label="全部" value=""> </el-option>
|
|
|
|
- <el-option
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- v-for="item in dict.type.sys_order_orderStatusKey"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="支付方式" prop="paymentType" label-width="100px">
|
|
|
|
- <el-select
|
|
|
|
- v-model="queryParams.paymentType"
|
|
|
|
- placeholder="请选择支付方式"
|
|
|
|
- style="width: 22 0px"
|
|
|
|
- >
|
|
|
|
- <el-option label="全部" value=""> </el-option>
|
|
|
|
- <el-option
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- v-for="item in dict.type.sys_order_paymentType"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ <el-option label="全网自动推出" value="0"> </el-option>
|
|
|
|
+ <el-option label="定向渠道推广" value="1"> </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item
|
|
|
|
- label="先用后付支付状态"
|
|
|
|
- prop="paymentType"
|
|
|
|
- label-width="140px"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-form-item label="类型" prop="type">
|
|
<el-select
|
|
<el-select
|
|
- v-model="queryParams.paymentStatus"
|
|
|
|
- placeholder="请选择支付状态"
|
|
|
|
|
|
+ v-model="queryParams.type"
|
|
|
|
+ placeholder="请选择券类型"
|
|
style="width: 180px"
|
|
style="width: 180px"
|
|
>
|
|
>
|
|
<el-option label="全部" value=""> </el-option>
|
|
<el-option label="全部" value=""> </el-option>
|
|
- <el-option
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- v-for="item in dict.type.sys_order_payStatus"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ <el-option label="独立券" value="1"> </el-option>
|
|
|
|
+ <el-option label="连锁券" value="2"> </el-option>
|
|
|
|
+ <el-option label="联合券" value="3"> </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="售后状态" prop="afterSaleStatus">
|
|
|
|
- <el-select
|
|
|
|
- v-model="queryParams.afterSaleStatus"
|
|
|
|
- placeholder="请选择售后状态"
|
|
|
|
- style="width: 180px"
|
|
|
|
|
|
+ <el-form-item label="领取时间" prop="dateRange">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="queryParams.dateRange"
|
|
|
|
+ type="datetimerange"
|
|
|
|
+ range-separator="-"
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ @change="datePicker"
|
|
>
|
|
>
|
|
- <el-option label="全部" value=""> </el-option>
|
|
|
|
- <el-option
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- v-for="item in dict.type.sys_order_aftersalestatus"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ </el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="先用后付审核" prop="paymentType" label-width="140px">
|
|
|
|
- <el-select
|
|
|
|
- v-model="queryParams.paymentType"
|
|
|
|
- placeholder="请选择支付方式"
|
|
|
|
- style="width: 180px"
|
|
|
|
- >
|
|
|
|
- <el-option label="全部" value=""> </el-option>
|
|
|
|
- <el-option
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- v-for="item in dict.type.sys_order_audit"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -268,212 +123,55 @@
|
|
>
|
|
>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
-
|
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
|
- <el-col :span="1.5">
|
|
|
|
- <el-button
|
|
|
|
- plain
|
|
|
|
- size="mini"
|
|
|
|
- @click="printOrderBtn"
|
|
|
|
- :disabled="!selectList.length > 0"
|
|
|
|
- >批量接单</el-button
|
|
|
|
- >
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="1.5">
|
|
|
|
- <el-button
|
|
|
|
- plain
|
|
|
|
- size="mini"
|
|
|
|
- @click="printOrderBtn"
|
|
|
|
- :disabled="!selectList.length > 0"
|
|
|
|
- >批量发货</el-button
|
|
|
|
- >
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="1.5">
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- plain
|
|
|
|
- size="mini"
|
|
|
|
- @click="printOrderBtn"
|
|
|
|
- :disabled="!selectList.length > 0"
|
|
|
|
- >订单打印</el-button
|
|
|
|
- >
|
|
|
|
- </el-col>
|
|
|
|
-
|
|
|
|
- <el-col :span="1.5">
|
|
|
|
- <el-dropdown :hide-on-click="false" trigger="click">
|
|
|
|
- <el-button type="primary" plain size="mini">
|
|
|
|
- 更多批量操作<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
- </el-button>
|
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
|
- <el-dropdown-item @click.native=""
|
|
|
|
- >批量先用后付审核</el-dropdown-item
|
|
|
|
- >
|
|
|
|
- <el-dropdown-item @click.native=""
|
|
|
|
- >批量确认是否线下支付</el-dropdown-item
|
|
|
|
- >
|
|
|
|
- <el-dropdown-item @click.native="handleExport"
|
|
|
|
- >批量导出</el-dropdown-item
|
|
|
|
- >
|
|
|
|
- </el-dropdown-menu>
|
|
|
|
- </el-dropdown>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
<el-table
|
|
<el-table
|
|
ref="multipleTable"
|
|
ref="multipleTable"
|
|
v-loading="loading"
|
|
v-loading="loading"
|
|
- :span-method="objectSpanMethod"
|
|
|
|
:data="spuList"
|
|
:data="spuList"
|
|
:border="true"
|
|
:border="true"
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
row-key="id"
|
|
row-key="id"
|
|
>
|
|
>
|
|
<el-table-column type="selection" align="center" />
|
|
<el-table-column type="selection" align="center" />
|
|
- <el-table-column
|
|
|
|
- label="订单编号"
|
|
|
|
- align="center"
|
|
|
|
- prop="carPayNo"
|
|
|
|
- width="230"
|
|
|
|
- />
|
|
|
|
|
|
+ <el-table-column label="领取人ID" align="center" prop="userId" />
|
|
|
|
+ <el-table-column label="领取人昵称" align="center" prop="nick" />
|
|
|
|
+ <el-table-column label="领取人手机号" align="center" prop="phone" />
|
|
|
|
+ <el-table-column label="代金券ID" align="center" prop="voucherId" />
|
|
|
|
+ <el-table-column label="代金券名称" align="center" prop="voucherName" />
|
|
|
|
|
|
- <el-table-column
|
|
|
|
- label="商品名称"
|
|
|
|
- align="center"
|
|
|
|
- prop="skuName"
|
|
|
|
- width="200"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-table-column label="类型" align="center" width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{
|
|
{{
|
|
- scope.row.goodsInfo
|
|
|
|
- ? JSON.parse(scope.row.goodsInfo)[0].skuName
|
|
|
|
|
|
+ scope.row.type == 0
|
|
|
|
+ ? "通用券"
|
|
|
|
+ : scope.row.type == 1
|
|
|
|
+ ? "独立券"
|
|
|
|
+ : scope.row.type == 2
|
|
|
|
+ ? "连锁券"
|
|
|
|
+ : scope.row.type == 3
|
|
|
|
+ ? "联合券"
|
|
: ""
|
|
: ""
|
|
}}
|
|
}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="单价" align="center" prop="price">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span>
|
|
|
|
- {{
|
|
|
|
- scope.row.goodsInfo
|
|
|
|
- ? JSON.parse(scope.row.goodsInfo)[0].price + "元"
|
|
|
|
- : ""
|
|
|
|
- }}
|
|
|
|
- </span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
-
|
|
|
|
- <el-table-column label="数量" align="center" prop="price">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span>
|
|
|
|
- {{
|
|
|
|
- scope.row.goodsInfo
|
|
|
|
- ? JSON.parse(scope.row.goodsInfo)[0].quantity
|
|
|
|
- : ""
|
|
|
|
- }}{{
|
|
|
|
- scope.row.goodsInfo ? JSON.parse(scope.row.goodsInfo)[0].unit : ""
|
|
|
|
- }}</span
|
|
|
|
- >
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
-
|
|
|
|
- <el-table-column
|
|
|
|
- label="交易金额(元)"
|
|
|
|
- align="center"
|
|
|
|
- prop="paymentAmount"
|
|
|
|
- width="100"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- {{ scope.row.goodsAmount.toFixed(2) }}元
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column label="订单状态" align="center" width="120">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <dict-tag
|
|
|
|
- :options="dict.type.sys_order_orderStatus_table"
|
|
|
|
- :value="scope.row.orderStatus"
|
|
|
|
- />
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
-
|
|
|
|
- <el-table-column label="售后状态" align="center">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <dict-tag
|
|
|
|
- :options="dict.type.sys_order_aftersalestatus"
|
|
|
|
- :value="scope.row.afterSaleStatus"
|
|
|
|
- />
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- label="下单人ID"
|
|
|
|
- align="center"
|
|
|
|
- prop="userId"
|
|
|
|
- width="100"
|
|
|
|
- />
|
|
|
|
- <el-table-column
|
|
|
|
- label="下单时间"
|
|
|
|
- align="center"
|
|
|
|
- prop="createTime"
|
|
|
|
- width="160"
|
|
|
|
- />
|
|
|
|
- <el-table-column label="支付方式" align="center">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <dict-tag
|
|
|
|
- :options="dict.type.sys_order_paymentType"
|
|
|
|
- :value="scope.row.paymentType"
|
|
|
|
- />
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="支付状态" align="center" prop="paymentStatus">
|
|
|
|
|
|
+ <el-table-column label="推广方式" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <dict-tag
|
|
|
|
- :options="dict.type.sys_order_payStatus"
|
|
|
|
- :value="scope.row.paymentStatus"
|
|
|
|
- />
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- label="配送方式"
|
|
|
|
- align="center"
|
|
|
|
- prop="paymentType"
|
|
|
|
- width="120"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <dict-tag
|
|
|
|
- :options="dict.type.sys_order_deliveryType"
|
|
|
|
- :value="scope.row.deliveryType"
|
|
|
|
- />
|
|
|
|
|
|
+ {{
|
|
|
|
+ scope.row.showType == 0
|
|
|
|
+ ? "全网自动推出"
|
|
|
|
+ : scope.row.showType == 1
|
|
|
|
+ ? "定向渠道推广"
|
|
|
|
+ : ""
|
|
|
|
+ }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
- <el-table-column label="操作" align="center" width="150" fixed="right">
|
|
|
|
|
|
+ <el-table-column label="面额(元)" align="center" prop="sendAmount" />
|
|
|
|
+ <el-table-column label="领取时间" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- @click="handlePrior(scope.row)"
|
|
|
|
- v-if="
|
|
|
|
- scope.row.paymentType == 'firstuse' &&
|
|
|
|
- scope.row.auditFirstUse != 0
|
|
|
|
- "
|
|
|
|
- >先用后付审核</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- @click="handleOffline(scope.row)"
|
|
|
|
- v-if="
|
|
|
|
- scope.row.paymentStatus == '2' &&
|
|
|
|
- scope.row.confirmOfflinePayment != 0
|
|
|
|
- "
|
|
|
|
- >确认是否已线下支付</el-button
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- @click="handleDetail(scope.row)"
|
|
|
|
- v-hasPermi="['manage:order:detail']"
|
|
|
|
- >订单详情</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ {{
|
|
|
|
+ scope.row.reviewTime
|
|
|
|
+ ? $moment(scope.row.reviewTime).format("YYYY-MM-DD HH:mm:ss")
|
|
|
|
+ : ""
|
|
|
|
+ }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -489,20 +187,9 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { statisticsOrderNum, queryUserOrderByShopId } from "@/api/manage/order";
|
|
|
|
-import Utils from "@/utils/derive";
|
|
|
|
|
|
+import moment from "moment";
|
|
|
|
+import { voucherStatistics, recordPage } from "@/api/marketing/voucher";
|
|
export default {
|
|
export default {
|
|
- name: "wholesale",
|
|
|
|
- dicts: [
|
|
|
|
- "sys_order_deliveryType",
|
|
|
|
- "sys_order_orderStatusKey",
|
|
|
|
- "sys_order_paymentType",
|
|
|
|
- "sys_order_aftersalestatus",
|
|
|
|
- "sys_order_payStatus",
|
|
|
|
- "sys_order_orderStatus_table",
|
|
|
|
- "sys_order_query_orderStatus",
|
|
|
|
- "sys_order_audit",
|
|
|
|
- ],
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// 遮罩层
|
|
// 遮罩层
|
|
@@ -512,51 +199,24 @@ export default {
|
|
// 参数表格数据
|
|
// 参数表格数据
|
|
spuList: [],
|
|
spuList: [],
|
|
// 弹出层标题
|
|
// 弹出层标题
|
|
- title: "订单详情",
|
|
|
|
|
|
+ title: "",
|
|
// 查询参数
|
|
// 查询参数
|
|
|
|
+ dateRange: [],
|
|
queryParams: {
|
|
queryParams: {
|
|
- queryOrderStatus: "0",
|
|
|
|
- spuType: 0,
|
|
|
|
- userId: "",
|
|
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
- spuName: "",
|
|
|
|
- userOrderSn: "",
|
|
|
|
- userPhone: "",
|
|
|
|
- createTime: "",
|
|
|
|
- orderStatusKey: "",
|
|
|
|
- afterSaleStatus: "",
|
|
|
|
- paymentType: "",
|
|
|
|
- deliveryType: "",
|
|
|
|
- },
|
|
|
|
- printForm: {
|
|
|
|
- sn: "",
|
|
|
|
|
|
+ key: "",
|
|
|
|
+ showType: "",
|
|
|
|
+ startTime: "",
|
|
|
|
+ endTime: "",
|
|
|
|
+ type: "",
|
|
|
|
+ dateRange: [],
|
|
},
|
|
},
|
|
- column: [
|
|
|
|
- { header: "订单编号", key: "userOrderSn", width: 20 },
|
|
|
|
- { header: "买家姓名", key: "userNick", width: 20 },
|
|
|
|
- { header: "买家手机号", key: "userPhone", width: 20 },
|
|
|
|
- { header: "商品名称", key: "skuName", width: 20 },
|
|
|
|
- { header: "商品类型", key: "categoryName", width: 20 },
|
|
|
|
- { header: "商品价格", key: "price", width: 20 },
|
|
|
|
- { header: "包装方式", key: "packageType", width: 20 },
|
|
|
|
- { header: "规格名称", key: "specsName", width: 20 },
|
|
|
|
- { header: "规格值", key: "specsValue", width: 20 },
|
|
|
|
- { header: "实付金额(元)", key: "goodsAmount", width: 20 },
|
|
|
|
- { header: "商品数量", key: "goodsDetails", width: 20 },
|
|
|
|
- { header: "运费", key: "freightFee", width: 20 },
|
|
|
|
- { header: "订单状态", key: "orderStatus", width: 20 },
|
|
|
|
- { header: "售后状态", key: "afterSaleStatus", width: 20 },
|
|
|
|
- { header: "下单时间", key: "createTime", width: 20 },
|
|
|
|
- { header: "付款时间 ", key: "paymentTime", width: 20 },
|
|
|
|
- ],
|
|
|
|
- // 表单参数
|
|
|
|
- form: {},
|
|
|
|
- // 表单校验
|
|
|
|
orderStatistics: {},
|
|
orderStatistics: {},
|
|
- selectList: [],
|
|
|
|
- selectListDC: [],
|
|
|
|
- queryOrderStatus: 0,
|
|
|
|
|
|
+ queryStatistics: {
|
|
|
|
+ startTime: "",
|
|
|
|
+ endTime: "",
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -564,51 +224,23 @@ export default {
|
|
this.getstatisticsOrder();
|
|
this.getstatisticsOrder();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- radioChange() {
|
|
|
|
- this.getList();
|
|
|
|
- },
|
|
|
|
- orderReturn(type) {
|
|
|
|
- switch (type) {
|
|
|
|
- case "print":
|
|
|
|
- this.$refs.multipleTable.clearSelection();
|
|
|
|
- this.getList();
|
|
|
|
- case "prior":
|
|
|
|
- this.getList();
|
|
|
|
- case "offline":
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ tjdatePicker(val) {
|
|
|
|
+ if (val) {
|
|
|
|
+ this.queryStatistics.startTime = moment(val[0]).valueOf();
|
|
|
|
+ this.queryStatistics.endTime = moment(val[1]).valueOf();
|
|
|
|
+ } else {
|
|
|
|
+ this.queryStatistics.startTime = "";
|
|
|
|
+ this.queryStatistics.endTime = "";
|
|
}
|
|
}
|
|
- },
|
|
|
|
- handleOffline(record) {
|
|
|
|
- this.$refs.orderDialogRef.openDialog("offline", record);
|
|
|
|
- },
|
|
|
|
- handlePrior(record) {
|
|
|
|
- this.$refs.orderDialogRef.openDialog("prior", record);
|
|
|
|
- },
|
|
|
|
- printOrderBtn() {
|
|
|
|
- this.$refs.orderDialogRef.openDialog("print", this.selectList);
|
|
|
|
|
|
+ this.getstatisticsOrder();
|
|
},
|
|
},
|
|
|
|
|
|
- objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
|
|
- if (columnIndex === 0 || columnIndex === 1) {
|
|
|
|
- if (
|
|
|
|
- rowIndex === 0 ||
|
|
|
|
- row.carPayNo != this.spuList[rowIndex - 1].carPayNo
|
|
|
|
- ) {
|
|
|
|
- let rowspan = 0;
|
|
|
|
- this.spuList.forEach((element) => {
|
|
|
|
- if (element.carPayNo === row.carPayNo) {
|
|
|
|
- rowspan++;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- return [rowspan, 1];
|
|
|
|
- } else {
|
|
|
|
- return [0, 0];
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ datePicker(val) {
|
|
|
|
+ this.queryParams.startTime = moment(val[0]).valueOf();
|
|
|
|
+ this.queryParams.endTime = moment(val[1]).valueOf();
|
|
},
|
|
},
|
|
-
|
|
|
|
getstatisticsOrder() {
|
|
getstatisticsOrder() {
|
|
- statisticsOrderNum({ spuType: 0 }).then((res) => {
|
|
|
|
|
|
+ voucherStatistics(this.queryStatistics).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.orderStatistics = res.data;
|
|
this.orderStatistics = res.data;
|
|
} else {
|
|
} else {
|
|
@@ -619,71 +251,21 @@ export default {
|
|
|
|
|
|
/** 查询参数列表 */
|
|
/** 查询参数列表 */
|
|
getList() {
|
|
getList() {
|
|
- this.selectList = [];
|
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- queryUserOrderByShopId(this.queryParams).then((response) => {
|
|
|
|
|
|
+ recordPage(this.queryParams).then((response) => {
|
|
if (response.code == 200) {
|
|
if (response.code == 200) {
|
|
- let list = response.data.records;
|
|
|
|
- let infoList = [];
|
|
|
|
- for (let index = 0; index < list.length; index++) {
|
|
|
|
- let e = list[index];
|
|
|
|
- if (e.dxUserOrderVOList) {
|
|
|
|
- for (let i = 0; i < e.dxUserOrderVOList.length; i++) {
|
|
|
|
- let a = e.dxUserOrderVOList[i];
|
|
|
|
- let c = { ...e, ...a };
|
|
|
|
- infoList.push(c);
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- infoList.push(e);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- let totalList = [];
|
|
|
|
- for (let index = 0; index < infoList.length; index++) {
|
|
|
|
- let e = infoList[index];
|
|
|
|
- if (e.goodsInfo) {
|
|
|
|
- try {
|
|
|
|
- var goods = JSON.parse(e.goodsInfo);
|
|
|
|
- e = { ...e, ...goods[0] };
|
|
|
|
- } catch (error) {
|
|
|
|
- console.error("解析 JSON 时出错:", error);
|
|
|
|
- // 跳出当前循环,继续处理下一个元素
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (e.specsValue) {
|
|
|
|
- for (let i = 0; i < e.specsValue.length; i++) {
|
|
|
|
- let a = e.specsValue[i];
|
|
|
|
- e = { ...e, ...a };
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- totalList.push(e);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- totalList.forEach((e) => {
|
|
|
|
- try {
|
|
|
|
- let goos = JSON.parse(e.goodsInfo);
|
|
|
|
- let detail = "";
|
|
|
|
- if (goos && goos.length > 0) {
|
|
|
|
- // 检查 goos 是否为空
|
|
|
|
- goos.forEach((a) => {
|
|
|
|
- detail += `${a.skuName}(${a.specsValue[0]?.specsName})-数量:${a.quantity}${a.unit};`;
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- e.goodsDetails = detail;
|
|
|
|
- } catch (error) {
|
|
|
|
- console.error("解析 goodsInfo 时出错:", error);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- this.spuList = totalList;
|
|
|
|
|
|
+ this.spuList = response.data.records;
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+
|
|
/** 重置按钮操作 */
|
|
/** 重置按钮操作 */
|
|
resetQuery() {
|
|
resetQuery() {
|
|
|
|
+ this.dateRange = [];
|
|
|
|
+ this.queryParams.endTime = "";
|
|
|
|
+ this.queryParams.startTime = "";
|
|
this.resetForm("queryForm");
|
|
this.resetForm("queryForm");
|
|
this.queryParams.pageNo = 1;
|
|
this.queryParams.pageNo = 1;
|
|
this.getList();
|
|
this.getList();
|
|
@@ -693,24 +275,6 @@ export default {
|
|
this.queryParams.pageNo = 1;
|
|
this.queryParams.pageNo = 1;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
- // 多选框选中数据
|
|
|
|
- handleSelectionChange(selection) {
|
|
|
|
- this.selectList = selection.map((item) => item.carPayNo);
|
|
|
|
- this.selectListDC = selection.map((item) => item);
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- /** 导出按钮操作 */
|
|
|
|
- handleExport() {
|
|
|
|
- let lists = [];
|
|
|
|
- for (let index = 0; index < this.spuList.length; index++) {
|
|
|
|
- for (let a = 0; a < this.selectListDC.length; a++) {
|
|
|
|
- if (this.spuList[index].id == this.selectListDC[a].id) {
|
|
|
|
- lists.push(this.spuList[index]);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- Utils.exportExcel(this.column, lists, "订单列表"); //导出方法
|
|
|
|
- },
|
|
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -755,4 +319,4 @@ export default {
|
|
.el-radio-button__inner {
|
|
.el-radio-button__inner {
|
|
width: 150px;
|
|
width: 150px;
|
|
}
|
|
}
|
|
-</style> -->
|
|
|
|
|
|
+</style>
|