发货
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<ul class="list">
|
||||
<div v-if="orderDetails.userInfo">
|
||||
<div class="liName">用户信息</div>
|
||||
<li><span class="infoTitle">用户名:</span><span>{{orderDetails.userInfo.userName !== null ? orderDetails.userInfo.userName : '暂无'}}</span></li>
|
||||
<!-- <li><span class="infoTitle">用户ID:</span><span>{{orderDetails.userId}}</span></li> -->
|
||||
@@ -17,6 +18,7 @@
|
||||
<!-- <li><span class="infoTitle">电 话:</span><span>187898544875</span></li> -->
|
||||
<!-- <li><span class="infoTitle">地 址:</span><span>天津市天津市天津市天津市天津市天津市</span></li> -->
|
||||
<li class="line"></li>
|
||||
</div>
|
||||
<div class="liName">订单信息</div>
|
||||
<li><span class="infoTitle">订单ID:</span><span>{{orderDetails.orderSn}}</span></li>
|
||||
<li><span class="infoTitle">订单状态:</span>
|
||||
@@ -58,12 +60,12 @@
|
||||
|
||||
<!-- <el-alert title="`该订单下共有 2 条物流信息`" type="info">
|
||||
</el-alert> -->
|
||||
<!-- <li class="flexbox deliverBox" style="width: 100%;" v-if="sheetList.length > 0">
|
||||
<li class="flexbox deliverBox" style="width: 100%;" v-if="sheetList.length > 0">
|
||||
<el-row :gutter="20" style="100%">
|
||||
|
||||
<el-col :md="12" :lg="8" class="item" v-for="(item, index) in sheetList" :key="index">
|
||||
<div class="deliver_heade">
|
||||
<div><span class="infoTitle">物流公司:</span><span>{{item.expressCompanyName}}</span></div>
|
||||
<!-- <div><span class="infoTitle">物流公司:</span><span>{{item.expressCompanyName}}</span></div> -->
|
||||
<div><span class="infoTitle">运单号:</span><span style="margin-right:10px">{{item.expressOrderSn}}</span>
|
||||
<el-button type="primary" size="mini" plain @click="seeSheetDetails(item)">查看物流进度</el-button>
|
||||
</div>
|
||||
@@ -72,7 +74,7 @@
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
</li> -->
|
||||
</li>
|
||||
|
||||
<li class="line" style="margin:10px 0;"></li>
|
||||
<!-- 订单商品 -->
|
||||
@@ -269,19 +271,19 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
var mobileLeng = this.orderDetails.consignee.consigneeMobile.length
|
||||
// var mobileLeng = this.orderDetails.consignee.consigneeMobile.length
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('/book/buyOrder/queryExpress'),
|
||||
url: this.$http.adornUrl('/book/buyOrder/searchExpress'),
|
||||
method: 'get',
|
||||
params: this.$http.adornParams({
|
||||
'expressOrderSn': item.expressOrderSn,
|
||||
'expressCompanyCode': item.expressCompanyCode,
|
||||
'customerName': this.orderDetails.consignee.consigneeMobile.substring(mobileLeng-4, mobileLeng)
|
||||
// 'expressCompanyCode': item.expressCompanyCode,
|
||||
// 'customerName': this.orderDetails.consignee.consigneeMobile.substring(mobileLeng-4, mobileLeng)
|
||||
})
|
||||
}).then(({ data }) => {
|
||||
if(data.code == 0){
|
||||
if(data.result.traces.length > 0){
|
||||
this.traces = data.result.traces
|
||||
if(data.express.traces.length > 0){
|
||||
this.traces = data.express.traces
|
||||
this.tracesShow = true
|
||||
console.log(data,'data')
|
||||
loading.close()
|
||||
@@ -413,28 +415,8 @@ export default {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 获取订单下的快递单
|
||||
// getOrderSheetList(){
|
||||
// this.$http({
|
||||
// url: this.$http.adornUrl('/express/getPrintTemplateList'),
|
||||
// method: 'get',
|
||||
// params: this.$http.adornParams({
|
||||
// 'expressOrderSn': this.query.orderSn,
|
||||
// })
|
||||
// /// data: {}
|
||||
// }).then(({ data }) => {
|
||||
// console.log(data.result,'面单列表')
|
||||
// if (data && data.code === 0) {
|
||||
// this.sheetList = data.result.data
|
||||
// // this.MDtotalPage = data.result.totalDataSize
|
||||
// } else {
|
||||
// // this.PrintSheetList = []
|
||||
// // this.totalPage = 0
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
},
|
||||
|
||||
// 获取数据列表
|
||||
getData() {
|
||||
this.dataListLoading = true
|
||||
@@ -447,24 +429,9 @@ export default {
|
||||
})
|
||||
}).then(({ data }) => {
|
||||
if (data && data.code === 0) {
|
||||
console.log(data.result,'data.result')
|
||||
this.orderDetails = data.result
|
||||
if(this.orderDetails.goodsList.length > 0){
|
||||
console.log('存在商品数据', this.orderDetails.goodsList.length)
|
||||
var ids = []
|
||||
ids.push(this.orderDetails.goodsList[0].expressInfo.expressOrderSn)
|
||||
this.sheetList.push(this.orderDetails.goodsList[0].expressInfo)
|
||||
for (let index = 0; index < this.orderDetails.goodsList.length; index++) {
|
||||
if (!ids.includes(this.orderDetails.goodsList[index].expressInfo.expressOrderSn)) {
|
||||
ids.push(this.orderDetails.goodsList[index].expressInfo.expressOrderSn)
|
||||
this.sheetList.push(this.orderDetails.goodsList[index].expressInfo)}
|
||||
console.log(this.orderDetails.goodsList[index].expressInfo.expressOrderSn,'expressOrderSn')
|
||||
}
|
||||
console.log(ids,this.sheetList,'this.sheetList')
|
||||
}
|
||||
// if(this.query.ordertype != 0){ // 不是待付款订单时
|
||||
// this.getdeliverDetails()
|
||||
// }
|
||||
// console.log(data.result,'data.result')
|
||||
this.orderDetails = data.result
|
||||
this.sheetList = data.result.expressOrders
|
||||
} else {
|
||||
this.orderDetails = {}
|
||||
return this.$message.error('商品详情获取失败,请重试')
|
||||
|
||||
Reference in New Issue
Block a user