|
@@ -6,7 +6,7 @@
|
|
|
<div class="content" v-if="item!=null" style="padding-bottom: 20px;">
|
|
<div class="content" v-if="item!=null" style="padding-bottom: 20px;">
|
|
|
<div class="desct"></div>
|
|
<div class="desct"></div>
|
|
|
<div class="order-status" v-if="item!=null" >
|
|
<div class="order-status" v-if="item!=null" >
|
|
|
- <el-steps :active="item.status+1" align-center finish-status="success">
|
|
|
|
|
|
|
+ <el-steps :active="item.status==4?item.status+1:item.status" align-center>
|
|
|
<el-step title="待审核"></el-step>
|
|
<el-step title="待审核"></el-step>
|
|
|
<el-step title="平台已审核等待用户发货"></el-step>
|
|
<el-step title="平台已审核等待用户发货"></el-step>
|
|
|
<el-step title="用户已发货待仓库审核"></el-step>
|
|
<el-step title="用户已发货待仓库审核"></el-step>
|
|
@@ -25,8 +25,11 @@
|
|
|
<div class="operate-button-container" >
|
|
<div class="operate-button-container" >
|
|
|
<el-button size="mini" @click="editDelivery()" >编辑物流</el-button>
|
|
<el-button size="mini" @click="editDelivery()" >编辑物流</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="operate-button-container" v-if="item && item.deliverySn">
|
|
|
|
|
+ <el-button size="mini" @click="showShipBack()">查看寄回物流</el-button>
|
|
|
|
|
+ </div>
|
|
|
<div class="operate-button-container" v-if="item.status==0 && item.salesStatus==0">
|
|
<div class="operate-button-container" v-if="item.status==0 && item.salesStatus==0">
|
|
|
- <el-button size="mini" @click="goAuditing(1)" v-hasPermi="['his:storeAfterSales:audit']">退款审核</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" @click="handleAudit1()" >平台审核</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="operate-button-container" v-if="item.status==2 && item.salesStatus==0">
|
|
<div class="operate-button-container" v-if="item.status==2 && item.salesStatus==0">
|
|
|
<el-button size="mini" @click="depotAuditing(3)" >仓库审核</el-button>
|
|
<el-button size="mini" @click="depotAuditing(3)" >仓库审核</el-button>
|
|
@@ -210,12 +213,44 @@
|
|
|
<storeOrderDetails ref="Details" />
|
|
<storeOrderDetails ref="Details" />
|
|
|
</el-drawer>
|
|
</el-drawer>
|
|
|
|
|
|
|
|
|
|
+ <el-dialog title="用户寄回快递信息" :visible.sync="ship.open" width="720px" append-to-body>
|
|
|
|
|
+ <el-descriptions :column="1" border v-if="item!=null">
|
|
|
|
|
+ <el-descriptions-item label="物流公司编码">{{ item.shipperCode }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="物流名称">{{ item.deliveryName }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="物流单号">{{ item.deliverySn }}</el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item label="商家手机号">{{ item.phoneNumber }}</el-descriptions-item>
|
|
|
|
|
+ </el-descriptions>
|
|
|
|
|
+ <div style="margin-top: 20px; font-weight: bold;">物流流转信息</div>
|
|
|
|
|
+ <div v-loading="expressLoading">
|
|
|
|
|
+ <el-table v-if="traces && traces.length > 0"
|
|
|
|
|
+ style="margin-top: 10px;width: 100%"
|
|
|
|
|
+ :data="traces" border size="small">
|
|
|
|
|
+ <el-table-column label="时间" width="170" align="center">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.AcceptTime }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="位置" align="center">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.Location }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="描述" align="center">
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.AcceptStation }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ <div v-else-if="!expressLoading"
|
|
|
|
|
+ style="margin-top: 10px; padding: 24px 0; text-align: center; color: #909399;">
|
|
|
|
|
+ 暂无信息
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button @click="ship.open = false">关 闭</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import {tuiMoney,noAuditing,depotAuditing, auditing, codeId, logList,getRelatedProducts, itemList,listSales, getSales, delSales, addSales, updateSales, exportSales } from "@/api/store/storeAfterSales";
|
|
|
|
|
|
|
+import {tuiMoney,noAuditing,depotAuditing, auditing, codeId, logList,getRelatedProducts, itemList,listSales, getSales, delSales, addSales, updateSales, exportSales, getExpress, cancelSales, audit1 } from "@/api/store/storeAfterSales";
|
|
|
import storeOrderDetails from '../store/storeOrderDetails.vue';
|
|
import storeOrderDetails from '../store/storeOrderDetails.vue';
|
|
|
export default {
|
|
export default {
|
|
|
name: "orderDet",
|
|
name: "orderDet",
|
|
@@ -244,6 +279,11 @@ import storeOrderDetails from '../store/storeOrderDetails.vue';
|
|
|
open:false,
|
|
open:false,
|
|
|
title:"订单详情"
|
|
title:"订单详情"
|
|
|
},
|
|
},
|
|
|
|
|
+ ship:{
|
|
|
|
|
+ open:false
|
|
|
|
|
+ },
|
|
|
|
|
+ traces:[],
|
|
|
|
|
+ expressLoading:false,
|
|
|
logs:[],
|
|
logs:[],
|
|
|
nickName:null,
|
|
nickName:null,
|
|
|
storeName:null,
|
|
storeName:null,
|
|
@@ -314,21 +354,18 @@ import storeOrderDetails from '../store/storeOrderDetails.vue';
|
|
|
}).catch(function() {});
|
|
}).catch(function() {});
|
|
|
},
|
|
},
|
|
|
NoAuditing(row){
|
|
NoAuditing(row){
|
|
|
- var that=this;
|
|
|
|
|
- this.$confirm('是否撤销退款?', "撤销退款", {
|
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
|
- type: "warning"
|
|
|
|
|
- }).then(function() {
|
|
|
|
|
- var data={
|
|
|
|
|
- id:that.item.id,
|
|
|
|
|
- status:row,
|
|
|
|
|
- }
|
|
|
|
|
- return noAuditing(data);
|
|
|
|
|
- }).then(() => {
|
|
|
|
|
- this.msgSuccess("操作成功");
|
|
|
|
|
- this.getlist();
|
|
|
|
|
- }).catch(function() {});
|
|
|
|
|
|
|
+ var that=this;
|
|
|
|
|
+ var id = this.item.id;
|
|
|
|
|
+ this.$prompt('是否确定取消订单?', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ }).then(({ value }) => {
|
|
|
|
|
+ var data = { salesId: id, remark: value };
|
|
|
|
|
+ return cancelSales(data);
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.msgSuccess("操作成功");
|
|
|
|
|
+ this.getlist();
|
|
|
|
|
+ }).catch(function() {});
|
|
|
},
|
|
},
|
|
|
goAuditing(row){
|
|
goAuditing(row){
|
|
|
var that=this;
|
|
var that=this;
|
|
@@ -348,6 +385,22 @@ import storeOrderDetails from '../store/storeOrderDetails.vue';
|
|
|
}).catch(function() {});
|
|
}).catch(function() {});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ /** 平台审核,与 admin 总后台一致 */
|
|
|
|
|
+ handleAudit1(){
|
|
|
|
|
+ var id = this.item.id;
|
|
|
|
|
+ this.$confirm('确定审请通过?', "警告", {
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
|
+ type: "warning"
|
|
|
|
|
+ }).then(function() {
|
|
|
|
|
+ var data = { salesId: id };
|
|
|
|
|
+ return audit1(data);
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.msgSuccess("操作成功");
|
|
|
|
|
+ this.getlist();
|
|
|
|
|
+ }).catch(function() {});
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
depotAuditing(row){
|
|
depotAuditing(row){
|
|
|
var that=this;
|
|
var that=this;
|
|
|
this.$confirm('是否确认审核通过?', "审核", {
|
|
this.$confirm('是否确认审核通过?', "审核", {
|
|
@@ -391,6 +444,23 @@ import storeOrderDetails from '../store/storeOrderDetails.vue';
|
|
|
this.editForm.deliverySn = this.item.deliverySn;
|
|
this.editForm.deliverySn = this.item.deliverySn;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ showShipBack(){
|
|
|
|
|
+ this.ship.open = true;
|
|
|
|
|
+ this.traces = [];
|
|
|
|
|
+ if (this.item && this.item.deliverySn) {
|
|
|
|
|
+ this.expressLoading = true;
|
|
|
|
|
+ getExpress(this.item.id).then(response => {
|
|
|
|
|
+ if (response && response.data && response.data.Traces) {
|
|
|
|
|
+ this.traces = response.data.Traces;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.traces = [];
|
|
|
|
|
+ }
|
|
|
|
|
+ }).finally(() => {
|
|
|
|
|
+ this.expressLoading = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
cancel1(){
|
|
cancel1(){
|
|
|
this.edit.open = false;
|
|
this.edit.open = false;
|
|
|
this.editForm.deliveryName = null;
|
|
this.editForm.deliveryName = null;
|