|
|
@@ -22,6 +22,7 @@
|
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:refund']" @click="handleRefund" v-show="afterSales.salesStatus==0&&afterSales.status===3">财务审核</el-button>
|
|
|
<el-button size="mini" v-hasPermi="['store:storeAfterSales:cancel']" @click="cancel" v-show="afterSales.salesStatus==0">撤销</el-button>
|
|
|
<el-button size="mini" @click="showOrder">查看订单</el-button>
|
|
|
+ <el-button size="mini" v-if="afterSales.deliverySn != null" @click="showShipBack">查看寄回物流</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="margin: 20px 0px">
|
|
|
@@ -380,11 +381,42 @@
|
|
|
<el-button @click="cancel1">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="用户寄回快递信息" :visible.sync="ship.open" width="720px" append-to-body>
|
|
|
+ <el-descriptions :column="1" border v-if="afterSales!=null">
|
|
|
+ <el-descriptions-item label="物流公司编码">{{ afterSales.shipperCode }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="物流名称">{{ afterSales.deliveryName }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="物流单号">{{ afterSales.deliverySn }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="商家手机号">{{ afterSales.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>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {getStoreAfterSales,cancel,refund,audit1,audit2,updateStoreAfterSales} from "@/api/hisStore/storeAfterSales";
|
|
|
+import {getStoreAfterSales,cancel,refund,audit1,audit2,updateStoreAfterSales,getExpress} from "@/api/hisStore/storeAfterSales";
|
|
|
|
|
|
import productOrder from "./productOrder";
|
|
|
export default {
|
|
|
@@ -404,6 +436,11 @@ export default {
|
|
|
open:false,
|
|
|
title:"添加物流"
|
|
|
},
|
|
|
+ ship:{
|
|
|
+ open:false
|
|
|
+ },
|
|
|
+ traces:[],
|
|
|
+ expressLoading:false,
|
|
|
addForm:{
|
|
|
id:null,
|
|
|
deliveryName:null,
|
|
|
@@ -471,6 +508,22 @@ export default {
|
|
|
this.addForm.deliveryName = this.afterSales.deliveryName;
|
|
|
this.addForm.deliverySn = this.afterSales.deliverySn;
|
|
|
},
|
|
|
+ showShipBack(){
|
|
|
+ this.ship.open = true;
|
|
|
+ this.traces = [];
|
|
|
+ if (this.afterSales && this.afterSales.deliverySn) {
|
|
|
+ this.expressLoading = true;
|
|
|
+ getExpress(this.afterSales.id).then(response => {
|
|
|
+ if (response && response.data && response.data.Traces) {
|
|
|
+ this.traces = response.data.Traces;
|
|
|
+ } else {
|
|
|
+ this.traces = [];
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ this.expressLoading = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
showOrder(){
|
|
|
this.show.open=true;
|
|
|
const orderId = this.order.id ;
|