Commit b5c8b867 by zhangquan

bug修复

1 parent 0396304a
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<div class="ctnr"> <div class="ctnr">
<div class="stutas-wrap"> <div class="stutas-wrap">
<span>订单状态:</span> <span>订单状态:</span>
<span class="stutas-circle" :style="{backgroundColor: transfStatus(orderInfo.payStatus,orderInfo.orderStatus).color}"></span> <span v-if="!isLoading" class="stutas-circle" :style="{backgroundColor: transfStatus(orderInfo.payStatus,orderInfo.orderStatus).color}"></span>
<span>{{transfStatus(orderInfo.payStatus, orderInfo.orderStatus).name}}</span> <span v-if="!isLoading">{{transfStatus(orderInfo.payStatus, orderInfo.orderStatus).name}}</span>
</div> </div>
<div class="info-wrap order-info"> <div class="info-wrap order-info">
<div class="title">订单信息</div> <div class="title">订单信息</div>
...@@ -51,6 +51,7 @@ export default { ...@@ -51,6 +51,7 @@ export default {
editForm: { editForm: {
name: 123 name: 123
}, },
isLoading: false,
orderInfo:{}, orderInfo:{},
shipmentsParams: { shipmentsParams: {
listName: 'shipments', listName: 'shipments',
...@@ -193,8 +194,10 @@ export default { ...@@ -193,8 +194,10 @@ export default {
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)' background: 'rgba(0, 0, 0, 0.3)'
}) })
this.isLoading = true
this.$apis.platformGoods.getOrderDetail({subOrderCode:id}).then(res =>{ this.$apis.platformGoods.getOrderDetail({subOrderCode:id}).then(res =>{
loading.close() loading.close()
this.isLoading = false
if(res?.id){ if(res?.id){
const {receiveName, receiveMobile, provinceName, cityName, townName, address}= res?.receiveAddress || {} const {receiveName, receiveMobile, provinceName, cityName, townName, address}= res?.receiveAddress || {}
res.addInfo = `${receiveName} ${receiveMobile} ${provinceName}${cityName}${townName}${address}` res.addInfo = `${receiveName} ${receiveMobile} ${provinceName}${cityName}${townName}${address}`
...@@ -205,6 +208,7 @@ export default { ...@@ -205,6 +208,7 @@ export default {
this.orderInfo = res this.orderInfo = res
} }
}).catch(err=>{ }).catch(err=>{
this.isLoading = false
loading.close() loading.close()
console.log(err) console.log(err)
}) })
......
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
transfStatus: util.transfStatus, transfStatus: util.transfStatus,
changeTable(id){ changeTable(id){
this.orderFormObj.requestType = id this.orderFormObj.requestType = id
this.handleReset() this.handleSearch()
}, },
handleReset(){ handleReset(){
this.orderFormObj = { this.orderFormObj = {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<categoryCascader :categoryCode.sync="goodsFormObj"></categoryCascader> <categoryCascader :categoryCode.sync="goodsFormObj"></categoryCascader>
</div> </div>
<div slot="supplyPriceSlot"> <div slot="supplyPriceSlot">
<inputNumRange :formData="goodsFormObj" :keyObj="{from: 'startPrice', to:'endPrice'}"></inputNumRange> <inputNumRange :formData="goodsFormObj" :keyObj="{from: 'startSellPrice', to:'endSellPrice'}"></inputNumRange>
</div> </div>
<div slot="spreadPriceSlot"> <div slot="spreadPriceSlot">
<inputNumRange :formData="goodsFormObj" :keyObj="{from: 'startDiffPrice', to:'endDiffPrice'}"></inputNumRange> <inputNumRange :formData="goodsFormObj" :keyObj="{from: 'startDiffPrice', to:'endDiffPrice'}"></inputNumRange>
......
...@@ -72,7 +72,6 @@ export default { ...@@ -72,7 +72,6 @@ export default {
{ {
label: '商品信息', label: '商品信息',
name: 'goodsSkuName', name: 'goodsSkuName',
placeholder: '商品名称/spu/sku/品牌名称',
type: 'input', type: 'input',
maxlength: 50, maxlength: 50,
isClear: true isClear: true
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<div class="ctnr"> <div class="ctnr">
<div class="stutas-wrap"> <div class="stutas-wrap">
<span>售后状态:</span> <span>售后状态:</span>
<span class="stutas-circle" :style="{backgroundColor: (orderInfo.returnOrderStatus == 1003 || orderInfo.returnOrderStatus == 1006) ? '#2CCA74': '#5850FF'}"></span> <span v-if="!isLoading" class="stutas-circle" :style="{backgroundColor: (orderInfo.returnOrderStatus == 1003 || orderInfo.returnOrderStatus == 1006) ? '#2CCA74': '#5850FF'}"></span>
<span>{{ (orderInfo.returnOrderStatus == 1003 || orderInfo.returnOrderStatus == 1006) ? '售后完成': '售后中'}}</span> <span v-if="!isLoading">{{ (orderInfo.returnOrderStatus == 1003 || orderInfo.returnOrderStatus == 1006) ? '售后完成': '售后中'}}</span>
</div> </div>
<div class="info-wrap order-info"> <div class="info-wrap order-info">
<div class="title">售后信息</div> <div class="title">售后信息</div>
...@@ -54,6 +54,7 @@ export default { ...@@ -54,6 +54,7 @@ export default {
editForm: { editForm: {
name: 123 name: 123
}, },
isLoading: false,
showEmailInfo: false, showEmailInfo: false,
orderInfo: {}, orderInfo: {},
shipmentsParams: { shipmentsParams: {
...@@ -168,23 +169,26 @@ export default { ...@@ -168,23 +169,26 @@ export default {
text: 'Loading', text: 'Loading',
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)' background: 'rgba(0, 0, 0, 0.3)'
}) })
this.isLoading = true
this.$apis.platformGoods.getSaleOrderDetail({afterSalesOrderCode:id}).then(res =>{ this.$apis.platformGoods.getSaleOrderDetail({afterSalesOrderCode:id}).then(res =>{
loading.close() loading.close()
if(res?.id){ this.isLoading = false
let {applyQty, refundPrice, outRefundType, refundStatus, tparReturnOrderCode, returnType, returnReasonType, refundedDate} = res || {} if(res?.id){
const {brandName, goodsSkuName, goodsImageUrl} = res.orderGoods || {} let {applyQty, refundPrice, outRefundType, refundStatus, tparReturnOrderCode, returnType, returnReasonType, refundedDate} = res || {}
this.showEmailInfo = returnType == 1001 const {brandName, goodsSkuName, goodsImageUrl} = res.orderGoods || {}
res.returnType = {1001: '退货退款', 1002: '仅退款', 1003:'退货换货'}[returnType] || '--' this.showEmailInfo = returnType == 1001
res.returnReasonType = reasonObj[returnReasonType] res.returnType = {1001: '退货退款', 1002: '仅退款', 1003:'退货换货'}[returnType] || '--'
refundStatus = refundStatus!=1003 ? refundStatusObj[refundStatus] : outRefundTypeObj[outRefundType] res.returnReasonType = reasonObj[returnReasonType]
res.goodsInfoTableDate = [{brandName, goodsSkuName, goodsImageUrl, applyQty, refundPrice, refundStatus, tparReturnOrderCode}] refundStatus = refundStatus!=1003 ? refundStatusObj[refundStatus] : outRefundTypeObj[outRefundType]
res.createdDate = res.createdDate ? util.dateFormat(res.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--' res.goodsInfoTableDate = [{brandName, goodsSkuName, goodsImageUrl, applyQty, refundPrice, refundStatus, tparReturnOrderCode}]
res.refundedDate = refundedDate ? util.dateFormat(refundedDate, 'YYYY-MM-DD HH:mm:ss') : '--' res.createdDate = res.createdDate ? util.dateFormat(res.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
res.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, refundedDate: res.refundedDate}] res.refundedDate = refundedDate ? util.dateFormat(refundedDate, 'YYYY-MM-DD HH:mm:ss') : '--'
this.orderInfo = res res.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, refundedDate: res.refundedDate}]
} this.orderInfo = res
}
}).catch(err=>{ }).catch(err=>{
this.isLoading = false
loading.close() loading.close()
console.log(err) console.log(err)
}) })
......
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
methods: { methods: {
changeTable(id){ changeTable(id){
this.orderFormObj.requestType = id this.orderFormObj.requestType = id
this.handleReset() this.handleSearch()
}, },
handleReset(){ handleReset(){
this.orderFormObj = { this.orderFormObj = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!