|
@@ -36,28 +36,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="下单用户" width="340" prop="name">
|
|
|
|
|
- <template #default="scope">
|
|
|
|
|
- <div class="goods-img">
|
|
|
|
|
- <div class="img">
|
|
|
|
|
- <el-image
|
|
|
|
|
- style="width: 54px; height: 54px"
|
|
|
|
|
- :src="scope.row.user.avatar"
|
|
|
|
|
- :zoom-rate="1.2"
|
|
|
|
|
- :max-scale="7"
|
|
|
|
|
- :min-scale="0.2"
|
|
|
|
|
- :preview-src-list="[scope.row.user.avatar]"
|
|
|
|
|
- preview-teleported
|
|
|
|
|
- z-index="999"
|
|
|
|
|
- fit="cover"></el-image>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="name">
|
|
|
|
|
- <span>{{ scope.row.user.nickname }}</span>
|
|
|
|
|
- <span class="dec">{{ scope.row.user.openid }}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
<el-table-column label="商品售价" prop="types" width="120" align="right">
|
|
<el-table-column label="商品售价" prop="types" width="120" align="right">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div class="order-name">
|
|
<div class="order-name">
|
|
@@ -71,11 +49,6 @@
|
|
|
{{ scope.row.pay_money?$TOOL.money(scope.row.pay_money):'-' }}
|
|
{{ scope.row.pay_money?$TOOL.money(scope.row.pay_money):'-' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="留资号码" prop="types" width="120">
|
|
|
|
|
- <template #default="scope">
|
|
|
|
|
- {{ scope.row.mobile?scope.row.mobile:'-' }}
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
<el-table-column label="订单状态" prop="types" width="160" align="left">
|
|
<el-table-column label="订单状态" prop="types" width="160" align="left">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div class="order-name" v-if="scope.row.status == 0">
|
|
<div class="order-name" v-if="scope.row.status == 0">
|
|
@@ -87,7 +60,8 @@
|
|
|
<span>待使用</span>
|
|
<span>待使用</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="order-name" v-if="scope.row.status == 2">
|
|
<div class="order-name" v-if="scope.row.status == 2">
|
|
|
- <span>已完成</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.is_error == 1" style="color: #f00;">异常</span>
|
|
|
|
|
+ <span v-else>已完成</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="order-name" v-if="scope.row.status == 3">
|
|
<div class="order-name" v-if="scope.row.status == 3">
|
|
|
<span>已退款</span>
|
|
<span>已退款</span>
|
|
@@ -101,12 +75,16 @@
|
|
|
<span>已关闭</span>
|
|
<span>已关闭</span>
|
|
|
<span class="dec">用户已取消</span>
|
|
<span class="dec">用户已取消</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="order-name" v-if="scope.row.status == 6">
|
|
|
|
|
+ <span>部分退款</span>
|
|
|
|
|
+ <span class="dec">已退款 <em style="color: #f00;">{{ scope.row.refund_num }}</em> 份</span>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="发货状态" prop="types" width="160" align="left">
|
|
<el-table-column label="发货状态" prop="types" width="160" align="left">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div v-if="scope.row.status == 2">
|
|
<div v-if="scope.row.status == 2">
|
|
|
- <div class="order-name" v-if="scope.row.express_status == 1">
|
|
|
|
|
|
|
+ <div class="order-name" v-if="scope.row.express_status == 1 || scope.row.express_status == 0">
|
|
|
<span>待发货</span>
|
|
<span>待发货</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="order-name" v-if="scope.row.express_status == 2">
|
|
<div class="order-name" v-if="scope.row.express_status == 2">
|
|
@@ -119,6 +97,18 @@
|
|
|
<div v-else>待订单完成</div>
|
|
<div v-else>待订单完成</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="来源达人" prop="scene" width="260">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <div class="goods-img" v-if="scope.row.star">
|
|
|
|
|
+ <div class="name">
|
|
|
|
|
+ <span>{{ scope.row.star?scope.row.star.nick_name:'-' }}</span>
|
|
|
|
|
+ <span class="dec">抖音ID:{{ scope.row.star?scope.row.star.uid:'-' }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div v-else>-</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="来源" prop="scene" width="160"></el-table-column>
|
|
|
<el-table-column label="下单时间" prop="create_at" width="160"></el-table-column>
|
|
<el-table-column label="下单时间" prop="create_at" width="160"></el-table-column>
|
|
|
<el-table-column label="支付时间" prop="pay_at" width="160">
|
|
<el-table-column label="支付时间" prop="pay_at" width="160">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
@@ -128,8 +118,9 @@
|
|
|
<el-table-column label="操作" width="140" align="left" fixed="right">
|
|
<el-table-column label="操作" width="140" align="left" fixed="right">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button-group>
|
|
<el-button-group>
|
|
|
|
|
+ <el-button type="warning" size="small" text @click="table_refund(scope.row)">同意退款</el-button>
|
|
|
|
|
+ <el-button type="danger" size="small" text @click="table_done(scope.row)">核销</el-button>
|
|
|
<el-button size="small" text @click="table_view(scope.row)">详情</el-button>
|
|
<el-button size="small" text @click="table_view(scope.row)">详情</el-button>
|
|
|
- <el-button type="danger" size="small" text @click="table_view(scope.row)" v-if="trade==2">标记异常</el-button>
|
|
|
|
|
</el-button-group>
|
|
</el-button-group>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -166,8 +157,29 @@ export default {
|
|
|
this.$refs.orderDetail.open("edit").setData(data)
|
|
this.$refs.orderDetail.open("edit").setData(data)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- table_del(data){
|
|
|
|
|
-
|
|
|
|
|
|
|
+ table_refund(data){
|
|
|
|
|
+ this.$confirm(`同意退款后,消费者需在小程序中手动确认,也可以重新发起核销`, '提示', {
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(async ()=>{
|
|
|
|
|
+ var resp = await this.$API.merOrder.refund.post({"order":data.order_sn});
|
|
|
|
|
+ if (resp.code == 0) {
|
|
|
|
|
+ return this.$message.error(resp.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$message.success(resp.msg);
|
|
|
|
|
+ this.$refs.table.refresh()
|
|
|
|
|
+ }).catch(()=>{})
|
|
|
|
|
+ },
|
|
|
|
|
+ table_done(data){
|
|
|
|
|
+ this.$confirm(`订单核销后,无法撤销以及退款`, '提示', {
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ }).then(async ()=>{
|
|
|
|
|
+ var resp = await this.$API.merOrder.done.post({"order":data.order_sn});
|
|
|
|
|
+ if (resp.code == 0) {
|
|
|
|
|
+ return this.$message.error(resp.msg);
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$message.success(resp.msg);
|
|
|
|
|
+ this.$refs.table.refresh()
|
|
|
|
|
+ }).catch(()=>{})
|
|
|
},
|
|
},
|
|
|
refresh(){
|
|
refresh(){
|
|
|
this.$refs.table.refresh()
|
|
this.$refs.table.refresh()
|