|
@@ -8,9 +8,9 @@
|
|
|
|
|
|
<el-card v-if="order" class="box-card">
|
|
<el-card v-if="order" class="box-card">
|
|
<el-row :gutter="24" class="box-row">
|
|
<el-row :gutter="24" class="box-row">
|
|
- <el-col :span="6">订单编号: {{ order.orderID }}</el-col>
|
|
|
|
- <el-col :span="6">下单时间: {{ order.orderTime }}</el-col>
|
|
|
|
- <el-col :span="6">订单状态:
|
|
|
|
|
|
+ <el-col :span="6"><b>订单编号:</b> {{ order.orderID }}</el-col>
|
|
|
|
+ <el-col :span="6"><b>下单时间:</b> {{ order.orderTime | parseTime('{y}-{m}-{d} {h}:{i}') }}</el-col>
|
|
|
|
+ <el-col :span="6"><b>订单状态:</b>
|
|
<template v-if="['11','12','13','21','22','23','31','32','33'].indexOf(order.status)>=0">
|
|
<template v-if="['11','12','13','21','22','23','31','32','33'].indexOf(order.status)>=0">
|
|
<el-tag type="success" size="small">{{ '交易中('+statusObj[order.status]+')' }}</el-tag>
|
|
<el-tag type="success" size="small">{{ '交易中('+statusObj[order.status]+')' }}</el-tag>
|
|
</template>
|
|
</template>
|
|
@@ -18,101 +18,120 @@
|
|
<el-tag :type="row.status*1===6?'info':''" size="small">{{ statusObj[order.status] }}</el-tag>
|
|
<el-tag :type="row.status*1===6?'info':''" size="small">{{ statusObj[order.status] }}</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="6">收款状态:
|
|
|
|
|
|
+ <el-col v-if="order.bpOrderUserinfo" :span="6"><b>买家:</b> {{ order.bpOrderUserinfo.name }}</el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row :gutter="24" class="box-row">
|
|
|
|
+ <el-col :span="6"><b>收款状态:</b>
|
|
<el-tag v-if="order.receiptStatus*1===1" type="danger" size="small">待收款</el-tag>
|
|
<el-tag v-if="order.receiptStatus*1===1" type="danger" size="small">待收款</el-tag>
|
|
<el-tag v-if="order.receiptStatus*1===2" type="warning" size="small">部分收款</el-tag>
|
|
<el-tag v-if="order.receiptStatus*1===2" type="warning" size="small">部分收款</el-tag>
|
|
<el-tag v-if="order.receiptStatus*1===3" type="success" size="small">已收款</el-tag>
|
|
<el-tag v-if="order.receiptStatus*1===3" type="success" size="small">已收款</el-tag>
|
|
</el-col>
|
|
</el-col>
|
|
- </el-row>
|
|
|
|
- <el-row :gutter="24" class="box-row">
|
|
|
|
- <el-col :span="6">付款状态:
|
|
|
|
- <el-tag v-if="order.payStatus*1===1" type="danger" size="small">待付款</el-tag>
|
|
|
|
- <el-tag v-if="order.payStatus*1===2" type="warning" size="small">部分付款</el-tag>
|
|
|
|
- <el-tag v-if="order.payStatus*1===3" type="success" size="small">已付款</el-tag>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="6">退款状态:
|
|
|
|
|
|
+ <el-col :span="6"><b>退款状态:</b>
|
|
<el-tag v-if="order.refundType*1===1" type="warning" size="small">部分退</el-tag>
|
|
<el-tag v-if="order.refundType*1===1" type="warning" size="small">部分退</el-tag>
|
|
- <el-tag v-if="order.refundType*1===2" type="danger" size="small">全部退</el-tag>
|
|
|
|
|
|
+ <el-tag v-else-if="order.refundType*1===2" type="danger" size="small">全部退</el-tag>
|
|
<el-tag v-else type="info" size="small">无退款</el-tag>
|
|
<el-tag v-else type="info" size="small">无退款</el-tag>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="6">发货状态:
|
|
|
|
|
|
+ <el-col :span="6"><b>发货状态:</b>
|
|
<el-tag v-if="order.sendOutStatus*1===1" type="danger" size="small">待发货</el-tag>
|
|
<el-tag v-if="order.sendOutStatus*1===1" type="danger" size="small">待发货</el-tag>
|
|
<el-tag v-if="order.sendOutStatus*1===2" type="warning" size="small">部分发货</el-tag>
|
|
<el-tag v-if="order.sendOutStatus*1===2" type="warning" size="small">部分发货</el-tag>
|
|
<el-tag v-if="order.sendOutStatus*1===3" type="success" size="small">已发货</el-tag>
|
|
<el-tag v-if="order.sendOutStatus*1===3" type="success" size="small">已发货</el-tag>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="6">买家: {{ order.bpOrderUserinfo.name }}</el-col>
|
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
+ <el-dropdown class="dropdown">
|
|
|
|
+ <el-button type="primary" round>
|
|
|
|
+ 功能<i class="el-icon-arrow-down el-icon--right" />
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item><div @click="RemarksOrder(order.orderID)">备注</div></el-dropdown-item>
|
|
|
|
+ <el-dropdown-item>发货记录</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item>收退款记录</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item>退款(退货)记录</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
- <el-card class="box-card">
|
|
|
|
- <el-row :gutter="24" class="box-row">
|
|
|
|
- <el-col :span="6">收货人: {{ order.bpOrderUserinfo.shouHuoRen }}</el-col>
|
|
|
|
- <el-col :span="6">手机: {{ order.bpOrderUserinfo.mobile }}</el-col>
|
|
|
|
- <el-col :span="12">地址: {{ order.bpOrderUserinfo.province +' '+ order.bpOrderUserinfo.city +' '+ order.bpOrderUserinfo.town +' '+ order.bpOrderUserinfo.address }}</el-col>
|
|
|
|
|
|
+ <el-card v-if="order" class="box-card">
|
|
|
|
+ <el-row v-if="order.bpOrderUserinfo" :gutter="24" class="box-row">
|
|
|
|
+ <el-col :span="6"><b>收货人:</b> {{ order.bpOrderUserinfo.shouHuoRen }}</el-col>
|
|
|
|
+ <el-col :span="6"><b>手机:</b> {{ order.bpOrderUserinfo.mobile }}</el-col>
|
|
|
|
+ <el-col :span="12"><b>地址:</b> {{ order.bpOrderUserinfo.province +' '+ order.bpOrderUserinfo.city +' '+ order.bpOrderUserinfo.town +' '+ order.bpOrderUserinfo.address }}</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="24" class="box-row">
|
|
<el-row :gutter="24" class="box-row">
|
|
- <el-col :span="6">订单金额: ¥{{ order.payTotalFee | toThousandFilter }}</el-col>
|
|
|
|
- <el-col :span="6">应收金额: ¥{{ order.payableAmount | toThousandFilter }}<span style="color:red;"> (账户余额抵扣:¥{{ order.balancePayFee | toThousandFilter }})</span></el-col>
|
|
|
|
- <el-col :span="6">已收金额:
|
|
|
|
|
|
+ <el-col :span="6"><b>订单金额:</b> ¥{{ order.payTotalFee | toThousandFilter }}</el-col>
|
|
|
|
+ <el-col :span="6"><b>应收金额:</b> ¥{{ order.payableAmount | toThousandFilter }}<span style="color:red;"> (账户余额抵扣:¥{{ order.balancePayFee | toThousandFilter }})</span></el-col>
|
|
|
|
+ <el-col :span="6"><b>已收金额:</b>
|
|
<template v-if="order.receiptStatus*1===1">¥0</template>
|
|
<template v-if="order.receiptStatus*1===1">¥0</template>
|
|
<template v-else>¥{{ receiptAmount | toThousandFilter }}</template>
|
|
<template v-else>¥{{ receiptAmount | toThousandFilter }}</template>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="6">退款金额(已完成): ¥{{ returnValue | toThousandFilter }}
|
|
|
|
|
|
+ <el-col :span="6"><b>退款金额(已完成):</b> ¥{{ returnValue | toThousandFilter }}
|
|
<span style="color:red;">({{ '原:¥' + returnedPurchaseFee + ',折扣取消:¥' + (order.discountFee>returnedPurchaseFee ? returnedPurchaseFee : order.discountFee) }})</span>
|
|
<span style="color:red;">({{ '原:¥' + returnedPurchaseFee + ',折扣取消:¥' + (order.discountFee>returnedPurchaseFee ? returnedPurchaseFee : order.discountFee) }})</span>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="24" class="box-row">
|
|
<el-row :gutter="24" class="box-row">
|
|
- <el-col :span="6">经理折扣:
|
|
|
|
|
|
+ <el-col :span="6"><b>经理折扣:</b>
|
|
<template v-if="order.discountFee<0">¥0</template>
|
|
<template v-if="order.discountFee<0">¥0</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
¥{{ order.discountFee>returnedPurchaseFee ? (order.discountFee - returnedPurchaseFee) : '0' }}
|
|
¥{{ order.discountFee>returnedPurchaseFee ? (order.discountFee - returnedPurchaseFee) : '0' }}
|
|
<span style="color:red;">({{ '原:¥' + order.discountFee + ',折扣取消:¥' + (order.discountFee>returnedPurchaseFee ? returnedPurchaseFee : order.discountFee) }})</span>
|
|
<span style="color:red;">({{ '原:¥' + order.discountFee + ',折扣取消:¥' + (order.discountFee>returnedPurchaseFee ? returnedPurchaseFee : order.discountFee) }})</span>
|
|
</template>
|
|
</template>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="6">运费:
|
|
|
|
|
|
+ <el-col :span="6"><b>运费:</b>
|
|
<template v-if="order.freight*1===0">包邮</template>
|
|
<template v-if="order.freight*1===0">包邮</template>
|
|
<template v-else-if="order.freight*1===-1">到付</template>
|
|
<template v-else-if="order.freight*1===-1">到付</template>
|
|
<template v-else-if="order.freight*1===-2">仪器到付-产品包邮</template>
|
|
<template v-else-if="order.freight*1===-2">仪器到付-产品包邮</template>
|
|
<template v-else>¥{{ order.freight }}</template>
|
|
<template v-else>¥{{ order.freight }}</template>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- </el-card>
|
|
|
|
|
|
|
|
- <el-card class="box-card grey">
|
|
|
|
<div v-for="shopOrder in order.newShopOrders" :key="shopOrder.shopOrderID" class="order-item">
|
|
<div v-for="shopOrder in order.newShopOrders" :key="shopOrder.shopOrderID" class="order-item">
|
|
- <el-row :gutter="24" class="box-row">
|
|
|
|
- <el-col :span="6">子订单号(ID): {{ shopOrder.shopOrderNo + '(' + shopOrder.shopOrderID + ')' }}</el-col>
|
|
|
|
- <el-col :span="6">下单时间: {{ shopOrder.orderTime }}</el-col>
|
|
|
|
- <el-col :span="6">子订单金额: {{ shopOrder.needPayAmount }}</el-col>
|
|
|
|
- <el-col :span="6">发货状态:
|
|
|
|
|
|
+ <el-row :gutter="22" class="box-row">
|
|
|
|
+ <el-col :span="9"><b>子订单号(ID):</b> {{ shopOrder.shopOrderNo + '(' + shopOrder.shopOrderID + ')' }}</el-col>
|
|
|
|
+ <el-col :span="5"><b>下单时间:</b> {{ shopOrder.orderTime }}</el-col>
|
|
|
|
+ <el-col :span="5"><b>子订单金额:</b> ¥{{ shopOrder.needPayAmount | toThousandFilter }}</el-col>
|
|
|
|
+ <el-col :span="5"><b>发货状态:</b>
|
|
<el-tag v-if="shopOrder.sendOutStatus*1===1" type="danger" size="small">待发货</el-tag>
|
|
<el-tag v-if="shopOrder.sendOutStatus*1===1" type="danger" size="small">待发货</el-tag>
|
|
<el-tag v-if="shopOrder.sendOutStatus*1===2" type="warning" size="small">部分发货</el-tag>
|
|
<el-tag v-if="shopOrder.sendOutStatus*1===2" type="warning" size="small">部分发货</el-tag>
|
|
<el-tag v-if="shopOrder.sendOutStatus*1===3" type="success" size="small">已发货</el-tag>
|
|
<el-tag v-if="shopOrder.sendOutStatus*1===3" type="success" size="small">已发货</el-tag>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-row :gutter="24" class="box-row">
|
|
|
|
- <el-col :span="24">留言: {{ shopOrder.note }}</el-col>
|
|
|
|
|
|
+ <el-row :gutter="22" class="box-row">
|
|
|
|
+ <el-col :span="22"><b>留言:</b> {{ shopOrder.note ? shopOrder.note : '无' }}</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-row :gutter="24" class="box-row">
|
|
|
|
- <el-col :span="24">供应商: {{ shopOrder.shopName }}</el-col>
|
|
|
|
|
|
+ <el-row :gutter="22" class="box-row">
|
|
|
|
+ <el-col :span="22"><b>供应商:</b> {{ shopOrder.shopName }}</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-row v-for="op in shopOrder.newOrderProducts" :key="op.orderProductID" :gutter="24" class="box-row">
|
|
|
|
|
|
+ <el-row v-for="op in shopOrder.newOrderProducts" :key="op.orderProductID" :gutter="22" class="product-row">
|
|
<el-col :span="2">
|
|
<el-col :span="2">
|
|
<img :src="op.productImage" width="60" alt="">
|
|
<img :src="op.productImage" width="60" alt="">
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="7">{{ op.name }}</el-col>
|
|
<el-col :span="7">{{ op.name }}</el-col>
|
|
- <el-col :span="5" />
|
|
|
|
- <el-col :span="5" />
|
|
|
|
- <el-col :span="5" />
|
|
|
|
|
|
+ <el-col :span="5">
|
|
|
|
+ <div class="op-item"><b>数量</b>{{ op.productID*1!==999 ? ('(赠品数): x'+op.num+'('+op.presentNum+')') : (': x'+op.num) }}</div>
|
|
|
|
+ <div v-if="op.productID*1!==999" class="op-item">规格: {{ op.unit }}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col v-if="op.productID*1!==999" :span="5">
|
|
|
|
+ <div class="op-item"><b>单价:</b> ¥{{ op.price | toThousandFilter }}</div>
|
|
|
|
+ <div class="op-item"><b>总额:</b> ¥{{ op.totalFee | toThousandFilter }}</div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col v-if="op.productID*1!==999" :span="5">
|
|
|
|
+ <div v-if="order.sendOutStatus*1 === 2 || order.sendOutStatus*1 === 3" class="op-item"><b>已发/已收:</b> {{ ((op.num ? op.num : 0) - (op.notOutStore ? op.notOutStore : 0)) + '/' + op.receivedNum }}</div>
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
|
|
+
|
|
|
|
+ <Remarks dialog-title="订单备注信息" :is-visible.sync="dialogRemarksVisible" :order-id="dialogRemarksOrderId" :remark-list="dialogRemarkList" />
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getDetail } from '@/api/order'
|
|
|
|
|
|
+import { getDetail, getRemarks } from '@/api/order'
|
|
|
|
+import Remarks from './components/remarks'
|
|
export default {
|
|
export default {
|
|
|
|
+ components: { Remarks },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
activeIndex: '2',
|
|
activeIndex: '2',
|
|
@@ -120,6 +139,10 @@ export default {
|
|
receiptAmount: 0,
|
|
receiptAmount: 0,
|
|
returnValue: 0,
|
|
returnValue: 0,
|
|
returnedPurchaseFee: 0,
|
|
returnedPurchaseFee: 0,
|
|
|
|
+ bpClauses: null,
|
|
|
|
+ dialogRemarkList: [],
|
|
|
|
+ dialogRemarksVisible: false,
|
|
|
|
+ dialogRemarksOrderId: 0,
|
|
statusObj: {
|
|
statusObj: {
|
|
'0': '待确认',
|
|
'0': '待确认',
|
|
'4': '交易完成',
|
|
'4': '交易完成',
|
|
@@ -151,6 +174,7 @@ export default {
|
|
this.listLoading = true
|
|
this.listLoading = true
|
|
getDetail({ id: this.orderID }).then(response => {
|
|
getDetail({ id: this.orderID }).then(response => {
|
|
this.order = response.data.order
|
|
this.order = response.data.order
|
|
|
|
+ this.bpClauses = response.data.bpClauses
|
|
this.receiptAmount = response.data.receiptAmount
|
|
this.receiptAmount = response.data.receiptAmount
|
|
this.returnValue = response.data.returnValue
|
|
this.returnValue = response.data.returnValue
|
|
this.returnedPurchaseFee = response.data.returnedPurchaseFee
|
|
this.returnedPurchaseFee = response.data.returnedPurchaseFee
|
|
@@ -158,6 +182,13 @@ export default {
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ RemarksOrder: function(id) {
|
|
|
|
+ getRemarks({ orderID: id }).then(response => {
|
|
|
|
+ this.dialogRemarkList = response.data
|
|
|
|
+ })
|
|
|
|
+ this.dialogRemarksOrderId = id
|
|
|
|
+ this.dialogRemarksVisible = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -171,11 +202,23 @@ export default {
|
|
.box-row{
|
|
.box-row{
|
|
padding: 10px 0;
|
|
padding: 10px 0;
|
|
}
|
|
}
|
|
- .box-card.grey{
|
|
|
|
- background:#F2F6FC;
|
|
|
|
|
|
+ .box-row .dropdown{
|
|
|
|
+ margin-top: -10px;
|
|
}
|
|
}
|
|
.order-item{
|
|
.order-item{
|
|
border-bottom: 1px solid #DCDFE6;
|
|
border-bottom: 1px solid #DCDFE6;
|
|
|
|
+ background:#F2F6FC;
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ padding: 5px 15px 0;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ }
|
|
|
|
+ .product-row{
|
|
|
|
+ padding: 10px 0;
|
|
|
|
+ background: #EBEEF5;
|
|
|
|
+ border-top: 1px dashed #DCDFE6;
|
|
|
|
+ }
|
|
|
|
+ .op-item{
|
|
|
|
+ padding: 5px 0;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
|