Commit 0396304a by zhangquan

第二轮bug修复

1 parent 265b4d90
......@@ -187,16 +187,26 @@ export default {
transfStatus: util.transfStatus,
getDetailById(){
const { id } = this.$route.params
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.platformGoods.getOrderDetail({subOrderCode:id}).then(res =>{
console.log(res)
loading.close()
if(res?.id){
const {receiveName, receiveMobile, provinceName, cityName, townName, address}= res?.receiveAddress || {}
res.addInfo = `${receiveName} ${receiveMobile} ${provinceName}${cityName}${townName}${address}`
res.addInfo = res.addInfo.replaceAll('null','')
res.payPrice = res.payPrice ? res.payPrice + '元' : '--'
res.subOrderGoodsList = res?.subOrderGoodsList?.length ? res?.subOrderGoodsList : []
// res.logisticsStatus = undefined
this.orderInfo = res
}
}).catch(err=>{
loading.close()
console.log(err)
})
},
}
......
......@@ -134,11 +134,21 @@ export default {
},
getDetailById(){
const { id } = this.$route.params
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.platformGoods.goodsDetailApi({id}).then(res =>{
loading.close()
if(res?.id){
this.goodsInfo = res
this.salePrice = res.salePrice
}
}).catch(err=>{
loading.close()
console.log(err)
})
},
setPriceFn(e){
......
......@@ -73,7 +73,6 @@ export default {
{
label: '商品信息',
name: 'goodsSkuName',
placeholder: '商品名称/spu/sku/品牌名称',
type: 'input',
maxlength: 50,
isClear: true
......
......@@ -30,7 +30,7 @@
</GLTable>
</div>
</div>
<div class="info-wrap">
<div v-if="showEmailInfo" class="info-wrap">
<div class="title">商品寄回</div>
<div class="detail">
<GLTable :hasPage="false" ref="shipmentsRef" :tableParams="shipmentsParams" :tableData="orderInfo.expressInfo">
......@@ -54,6 +54,7 @@ export default {
editForm: {
name: 123
},
showEmailInfo: false,
orderInfo: {},
shipmentsParams: {
listName: 'shipments',
......@@ -162,11 +163,18 @@ export default {
methods: {
getDetailById(){
const { id } = this.$route.params
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.platformGoods.getSaleOrderDetail({afterSalesOrderCode:id}).then(res =>{
console.log(res)
loading.close()
if(res?.id){
let {applyQty, refundPrice, outRefundType, refundStatus, tparReturnOrderCode, returnType, returnReasonType, refundedDate} = res || {}
const {brandName, goodsSkuName, goodsImageUrl} = res.orderGoods || {}
this.showEmailInfo = returnType == 1001
res.returnType = {1001: '退货退款', 1002: '仅退款', 1003:'退货换货'}[returnType] || '--'
res.returnReasonType = reasonObj[returnReasonType]
refundStatus = refundStatus!=1003 ? refundStatusObj[refundStatus] : outRefundTypeObj[outRefundType]
......@@ -176,6 +184,9 @@ export default {
res.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, refundedDate: res.refundedDate}]
this.orderInfo = res
}
}).catch(err=>{
loading.close()
console.log(err)
})
},
}
......
......@@ -8,7 +8,7 @@
<span v-for="item in titleList" :key="item.id" :class="['title', {'curTitleCla': orderFormObj.requestType==item.id}]" @click="changeTable(item.id)">{{item.name}}</span>
</div>
<div class="table-wrap">
<GLTable ref="tableRef" :pageConf="pageConf" :searchForm="orderFormObj" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<GLTable ref="tableRef" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImageUrl" alt="">
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
......@@ -59,6 +59,7 @@ export default {
return {
size: 'small',
titleList,
searchForm: {},
buttonList: [
{
type: 'el-button',
......@@ -77,7 +78,7 @@ export default {
customerInfo: '',
goodsInfo: '',
searchOrderCode: '',
afterSalesType: '',
returnType: '',
time: ''
},
orderFormData: [
......@@ -102,7 +103,7 @@ export default {
},
{
label: '售后类型',
name: 'afterSalesType',
name: 'returnType',
type: 'select',
optionList: [
{
......@@ -207,7 +208,7 @@ export default {
customerInfo: '',
goodsInfo: '',
searchOrderCode: '',
afterSalesType: '',
returnType: '',
time: ''
}
this.handleSearch()
......
......@@ -106,7 +106,6 @@ export default {
{
label: '商品信息',
name: 'goodsSkuName',
placeholder: '商品名称/spu/sku/品牌名称',
type: 'input',
maxlength: 50,
isClear: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!