Commit ef9c51ff by zhangquan

bug修复

1 parent de59c470
......@@ -69,7 +69,8 @@ util.getExplorer = function() {
}
return browserType
}
util.transfStatus = function(key) {
util.transfStatus = function(firstKey, key) {
if(firstKey==1001) return {name: '待支付', color: '#FDB757'}
let arr1 = [1002,1006,1007,1008]
let arr2 = [1003,1004,1005,1012]
if(arr1.includes(+key)){
......@@ -78,10 +79,8 @@ util.transfStatus = function(key) {
return {name: '已关闭', color: '#999999'}
}else if(key==1009){
return {name: '已完成', color: '#2CCA74'}
}else if(key==1010){
return {name: '售后/退款', color: '#EB4E4E'}
}else{
return {name: '待支付', color: '#FDB757'}
return {name: '售后/退款', color: '#EB4E4E'}
}
}
export default util
\ No newline at end of file
......@@ -3,8 +3,8 @@
<div class="ctnr">
<div class="stutas-wrap">
<span>订单状态:</span>
<span class="stutas-circle" :style="{backgroundColor: transfStatus(orderInfo.orderStatus).color}"></span>
<span>{{transfStatus(orderInfo.orderStatus).name}}</span>
<span class="stutas-circle" :style="{backgroundColor: transfStatus(orderInfo.payStatus,orderInfo.orderStatus).color}"></span>
<span>{{transfStatus(orderInfo.payStatus, orderInfo.orderStatus).name}}</span>
</div>
<div class="info-wrap order-info">
<div class="title">订单信息</div>
......
......@@ -20,8 +20,8 @@
<p class="phone">{{ scope.scope.customerPhone}}</p>
</div>
<div slot="orderStatusSlot" slot-scope="scope">
<span class="circle" :style="{backgroundColor: transfStatus(scope.scope.orderStatus).color}"></span>
<span>{{ transfStatus(scope.scope.orderStatus).name }}</span>
<span class="circle" :style="{backgroundColor: transfStatus(scope.scope.payStatus,scope.scope.orderStatus).color}"></span>
<span>{{ transfStatus(scope.scope.payStatus,scope.scope.orderStatus).name }}</span>
</div>
<div slot="orderNoSlot" class="userInfoSlot" slot-scope="scope">
<p class="name">第三方:{{ scope.scope.thirdSubOrderCode || '--' }}</p>
......
......@@ -61,10 +61,10 @@
<script>
const attrList = [
{
label:'商品特点',
key: 'goodsCharacteristic'
},
// {
// label:'商品特点',
// key: 'goodsCharacteristic'
// },
{
label:'供货价(元)',
key: 'sellPrice'
......
......@@ -29,10 +29,14 @@
</div>
<div slot="setPriceSlot" slot-scope="scope">
<el-input type="text" v-model="scope.scope.salePrice" onkeyup="value = value ? value.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(/\.{2,}/g, '').replace('.', '$#$')
.replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') : value" @blur="setPriceFn($event, scope.scope)"></el-input>
.replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') : value" @blur="setPriceFn($event, scope.scope)" placeholder="请输入"></el-input>
</div>
<div slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div>
<div slot="shelvesStatusSlot" slot-scope="scope">
<span class="circle" :style="{color: scope.scope== 1001 ? '#2CCA74' : '#999999'}"></span>
<span>{{scope.scope== 1001 ? '可上架': '已下架'}}</span>
</div>
</GLTable>
<setPriceDialog v-if="isVisible" :visible="isVisible" @handleClose="handleClose" @confirm="confirmPriceChange">
......@@ -145,6 +149,7 @@ export default {
{
label: '商品状态',
prop: 'shelvesStatus',
addHtml: 'shelvesStatusSlot',
formatter: cellValue => {
return cellValue.shelvesStatus== 1001 ? '可上架': '可下架'
}
......@@ -176,10 +181,10 @@ export default {
},
{
type: 'el-button',
name: '移除仓库',
name: '移出仓库',
attrs: {
type: 'text',
fn: '移除仓库'
fn: '移出仓库'
},
listeners: {
click: row => this.batchRemove(row.scope)
......
......@@ -41,6 +41,7 @@ import glsxCombiForm from '@/components/glsx-combi-form'
import util from '@/util/util'
const reasonObj = {1001:'商品无货',1002:'发货时间问题',1003:'不想要了/不喜欢',1004:'商品信息填写错误',1005:'地址信息填写错误',1006:'商品降价',1007:'其他',1008:'尺码不合适',1009:'无理由退货',1010:'发票问题',1011:'商品与页面描述不符',1012:'发错货',1013:'质量问题',1014:'买错尺码/颜色/型号',1015:'商品缺少或破损',1016:'买错了'}
const refundStatusObj = {1000:'待审核',1001: '审核通过',1002: '已收货',1003: '已退款',1004: '已生成新订单',1005: '审核不通过'}
const outRefundTypeObj = {0:'退款成功',1:'退款关闭',2:'退款处理中',3:'退款异常'}
export default {
name: 'goodsOrderDetail',
data() {
......@@ -161,11 +162,11 @@ export default {
this.$apis.platformGoods.getSaleOrderDetail({afterSalesOrderCode:id}).then(res =>{
console.log(res)
if(res?.id){
let {applyQty, refundPrice, refundStatus, tparReturnOrderCode, returnType, returnReasonType, refundedDate} = res || {}
let {applyQty, refundPrice, outRefundType, refundStatus, tparReturnOrderCode, returnType, returnReasonType, refundedDate} = res || {}
const {brandName, goodsSkuName} = res.orderGoods || {}
res.returnType = {1001: '退货退款', 1002: '仅退款', 1003:'退货换货'}[returnType] || '--'
res.returnReasonType = reasonObj[returnReasonType]
refundStatus = refundStatusObj[refundStatus] || '--'
refundStatus = refundStatus!=1003 ? refundStatusObj[refundStatus] : outRefundTypeObj[outRefundType]
res.goodsInfoTableDate = [{brandName, goodsSkuName,applyQty,refundPrice, refundStatus, tparReturnOrderCode}]
res.refundedDate = refundedDate ? util.dateFormat(refundedDate, 'YYYY-MM-DD HH:mm:ss') : '--'
res.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, refundedDate: res.refundedDate}]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!