|
@ -73,11 +73,7 @@ |
|
|
<el-col :span="4" class="table-cell">{{order.integration}}</el-col> |
|
|
<el-col :span="4" class="table-cell">{{order.integration}}</el-col> |
|
|
<el-col :span="4" class="table-cell">{{order.growth}}</el-col> |
|
|
<el-col :span="4" class="table-cell">{{order.growth}}</el-col> |
|
|
<el-col :span="4" class="table-cell"> |
|
|
<el-col :span="4" class="table-cell"> |
|
|
<el-popover |
|
|
<el-popover placement="top-start" title="活动信息" width="200" trigger="hover" |
|
|
placement="top-start" |
|
|
|
|
|
title="活动信息" |
|
|
|
|
|
width="200" |
|
|
|
|
|
trigger="hover" |
|
|
|
|
|
:content="order.promotionInfo"> |
|
|
:content="order.promotionInfo"> |
|
|
<span slot="reference">{{order.promotionInfo | formatLongText}}</span> |
|
|
<span slot="reference">{{order.promotionInfo | formatLongText}}</span> |
|
|
</el-popover> |
|
|
</el-popover> |
|
@ -92,24 +88,21 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="6" class="table-cell-title">收货人</el-col> |
|
|
<el-col :span="6" class="table-cell-title">收货人</el-col> |
|
|
<el-col :span="6" class="table-cell-title">手机号码</el-col> |
|
|
<el-col :span="6" class="table-cell-title">手机号码</el-col> |
|
|
<el-col :span="6" class="table-cell-title">邮政编码</el-col> |
|
|
<el-col :span="6" class="table-cell-title">所在地区</el-col> |
|
|
<el-col :span="6" class="table-cell-title">收货地址</el-col> |
|
|
<el-col :span="6" class="table-cell-title">取货地点</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="6" class="table-cell">{{order.receiverName}}</el-col> |
|
|
<el-col :span="6" class="table-cell">{{order.receiverName}}</el-col> |
|
|
<el-col :span="6" class="table-cell">{{order.receiverPhone}}</el-col> |
|
|
<el-col :span="6" class="table-cell">{{order.receiverPhone}}</el-col> |
|
|
<el-col :span="6" class="table-cell">{{order.receiverPostCode}}</el-col> |
|
|
<el-col :span="6" class="table-cell">{{order.receiverRegion}}</el-col> |
|
|
<el-col :span="6" class="table-cell">{{order | formatAddress}}</el-col> |
|
|
<el-col :span="6" class="table-cell">{{order.receiverDetailAddress}}</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-top: 20px"> |
|
|
<div style="margin-top: 20px"> |
|
|
<svg-icon icon-class="marker" style="color: #606266"></svg-icon> |
|
|
<svg-icon icon-class="marker" style="color: #606266"></svg-icon> |
|
|
<span class="font-small">商品信息</span> |
|
|
<span class="font-small">商品信息</span> |
|
|
</div> |
|
|
</div> |
|
|
<el-table |
|
|
<el-table ref="orderItemTable" :data="order.orderItemList" style="width: 100%;margin-top: 20px" border> |
|
|
ref="orderItemTable" |
|
|
|
|
|
:data="order.orderItemList" |
|
|
|
|
|
style="width: 100%;margin-top: 20px" border> |
|
|
|
|
|
<el-table-column label="商品图片" width="120" align="center"> |
|
|
<el-table-column label="商品图片" width="120" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<img :src="scope.row.productPic" style="height: 80px"> |
|
|
<img :src="scope.row.productPic" style="height: 80px"> |
|
@ -189,9 +182,7 @@ |
|
|
<svg-icon icon-class="marker" style="color: #606266"></svg-icon> |
|
|
<svg-icon icon-class="marker" style="color: #606266"></svg-icon> |
|
|
<span class="font-small">操作信息</span> |
|
|
<span class="font-small">操作信息</span> |
|
|
</div> |
|
|
</div> |
|
|
<el-table style="margin-top: 20px;width: 100%" |
|
|
<el-table style="margin-top: 20px;width: 100%" ref="orderHistoryTable" :data="order.historyList" border> |
|
|
ref="orderHistoryTable" |
|
|
|
|
|
:data="order.historyList" border> |
|
|
|
|
|
<el-table-column label="操作者" width="120" align="center"> |
|
|
<el-table-column label="操作者" width="120" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
{{scope.row.operateMan}} |
|
|
{{scope.row.operateMan}} |
|
@ -220,12 +211,8 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-card> |
|
|
</el-card> |
|
|
<el-dialog title="修改收货人信息" |
|
|
<el-dialog title="修改收货人信息" :visible.sync="receiverDialogVisible" width="40%"> |
|
|
:visible.sync="receiverDialogVisible" |
|
|
<el-form :model="receiverInfo" ref="receiverInfoForm" label-width="150px"> |
|
|
width="40%"> |
|
|
|
|
|
<el-form :model="receiverInfo" |
|
|
|
|
|
ref="receiverInfoForm" |
|
|
|
|
|
label-width="150px"> |
|
|
|
|
|
<el-form-item label="收货人姓名:"> |
|
|
<el-form-item label="收货人姓名:"> |
|
|
<el-input v-model="receiverInfo.receiverName" style="width: 200px"></el-input> |
|
|
<el-input v-model="receiverInfo.receiverName" style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -238,10 +225,8 @@ |
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="所在区域:"> |
|
|
<el-form-item label="所在区域:"> |
|
|
<v-distpicker :province="receiverInfo.receiverProvince" |
|
|
<v-distpicker :province="receiverInfo.receiverProvince" :city="receiverInfo.receiverCity" |
|
|
:city="receiverInfo.receiverCity" |
|
|
:area="receiverInfo.receiverRegion" @selected="onSelectRegion"></v-distpicker> |
|
|
:area="receiverInfo.receiverRegion" |
|
|
|
|
|
@selected="onSelectRegion"></v-distpicker> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="详细地址:"> |
|
|
<el-form-item label="详细地址:"> |
|
|
<el-input v-model="receiverInfo.receiverDetailAddress" type="textarea" rows="3"> |
|
|
<el-input v-model="receiverInfo.receiverDetailAddress" type="textarea" rows="3"> |
|
@ -253,9 +238,7 @@ |
|
|
<el-button type="primary" @click="handleUpdateReceiverInfo">确 定</el-button> |
|
|
<el-button type="primary" @click="handleUpdateReceiverInfo">确 定</el-button> |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog title="修改费用信息" |
|
|
<el-dialog title="修改费用信息" :visible.sync="moneyDialogVisible" width="40%"> |
|
|
:visible.sync="moneyDialogVisible" |
|
|
|
|
|
width="40%"> |
|
|
|
|
|
<div class="table-layout"> |
|
|
<div class="table-layout"> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="6" class="table-cell-title">商品合计</el-col> |
|
|
<el-col :span="6" class="table-cell-title">商品合计</el-col> |
|
@ -266,7 +249,8 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="6" class="table-cell">¥{{order.totalAmount}}</el-col> |
|
|
<el-col :span="6" class="table-cell">¥{{order.totalAmount}}</el-col> |
|
|
<el-col :span="6" class="table-cell"> |
|
|
<el-col :span="6" class="table-cell"> |
|
|
<el-input v-model.number="moneyInfo.freightAmount" size="mini"><template slot="prepend">¥</template></el-input> |
|
|
<el-input v-model.number="moneyInfo.freightAmount" size="mini"><template |
|
|
|
|
|
slot="prepend">¥</template></el-input> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6" class="table-cell">-¥{{order.couponAmount}}</el-col> |
|
|
<el-col :span="6" class="table-cell">-¥{{order.couponAmount}}</el-col> |
|
|
<el-col :span="6" class="table-cell">-¥{{order.integrationAmount}}</el-col> |
|
|
<el-col :span="6" class="table-cell">-¥{{order.integrationAmount}}</el-col> |
|
@ -280,13 +264,15 @@ |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="6" class="table-cell">-¥{{order.promotionAmount}}</el-col> |
|
|
<el-col :span="6" class="table-cell">-¥{{order.promotionAmount}}</el-col> |
|
|
<el-col :span="6" class="table-cell"> |
|
|
<el-col :span="6" class="table-cell"> |
|
|
<el-input v-model.number="moneyInfo.discountAmount" size="mini"><template slot="prepend">-¥</template></el-input> |
|
|
<el-input v-model.number="moneyInfo.discountAmount" size="mini"><template |
|
|
|
|
|
slot="prepend">-¥</template></el-input> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6" class="table-cell"> |
|
|
<el-col :span="6" class="table-cell"> |
|
|
<span class="color-danger">¥{{order.totalAmount+moneyInfo.freightAmount}}</span> |
|
|
<span class="color-danger">¥{{order.totalAmount+moneyInfo.freightAmount}}</span> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="6" class="table-cell"> |
|
|
<el-col :span="6" class="table-cell"> |
|
|
<span class="color-danger">¥{{order.payAmount+moneyInfo.freightAmount-moneyInfo.discountAmount}}</span> |
|
|
<span |
|
|
|
|
|
class="color-danger">¥{{order.payAmount+moneyInfo.freightAmount-moneyInfo.discountAmount}}</span> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</div> |
|
|
</div> |
|
@ -295,12 +281,8 @@ |
|
|
<el-button type="primary" @click="handleUpdateMoneyInfo">确 定</el-button> |
|
|
<el-button type="primary" @click="handleUpdateMoneyInfo">确 定</el-button> |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog title="发送站内信" |
|
|
<el-dialog title="发送站内信" :visible.sync="messageDialogVisible" width="40%"> |
|
|
:visible.sync="messageDialogVisible" |
|
|
<el-form :model="message" ref="receiverInfoForm" label-width="150px"> |
|
|
width="40%"> |
|
|
|
|
|
<el-form :model="message" |
|
|
|
|
|
ref="receiverInfoForm" |
|
|
|
|
|
label-width="150px"> |
|
|
|
|
|
<el-form-item label="标题:"> |
|
|
<el-form-item label="标题:"> |
|
|
<el-input v-model="message.title" style="width: 200px"></el-input> |
|
|
<el-input v-model="message.title" style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
@ -314,11 +296,8 @@ |
|
|
<el-button type="primary" @click="handleSendMessage">确 定</el-button> |
|
|
<el-button type="primary" @click="handleSendMessage">确 定</el-button> |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog title="关闭订单" |
|
|
<el-dialog title="关闭订单" :visible.sync="closeDialogVisible" width="40%"> |
|
|
:visible.sync="closeDialogVisible" |
|
|
<el-form :model="closeInfo" label-width="150px"> |
|
|
width="40%"> |
|
|
|
|
|
<el-form :model="closeInfo" |
|
|
|
|
|
label-width="150px"> |
|
|
|
|
|
<el-form-item label="操作备注:"> |
|
|
<el-form-item label="操作备注:"> |
|
|
<el-input v-model="closeInfo.note" type="textarea" rows="3"> |
|
|
<el-input v-model="closeInfo.note" type="textarea" rows="3"> |
|
|
</el-input> |
|
|
</el-input> |
|
@ -329,11 +308,8 @@ |
|
|
<el-button type="primary" @click="handleCloseOrder">确 定</el-button> |
|
|
<el-button type="primary" @click="handleCloseOrder">确 定</el-button> |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog title="备注订单" |
|
|
<el-dialog title="备注订单" :visible.sync="markOrderDialogVisible" width="40%"> |
|
|
:visible.sync="markOrderDialogVisible" |
|
|
<el-form :model="markInfo" label-width="150px"> |
|
|
width="40%"> |
|
|
|
|
|
<el-form :model="markInfo" |
|
|
|
|
|
label-width="150px"> |
|
|
|
|
|
<el-form-item label="操作备注:"> |
|
|
<el-form-item label="操作备注:"> |
|
|
<el-input v-model="markInfo.note" type="textarea" rows="3"> |
|
|
<el-input v-model="markInfo.note" type="textarea" rows="3"> |
|
|
</el-input> |
|
|
</el-input> |
|
@ -348,39 +324,64 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import {getOrderDetail,updateReceiverInfo,updateMoneyInfo,closeOrder,updateOrderNote,deleteOrder} from '@/api/order'; |
|
|
import { |
|
|
|
|
|
getOrderDetail, |
|
|
|
|
|
updateReceiverInfo, |
|
|
|
|
|
updateMoneyInfo, |
|
|
|
|
|
closeOrder, |
|
|
|
|
|
updateOrderNote, |
|
|
|
|
|
deleteOrder |
|
|
|
|
|
} from '@/api/order'; |
|
|
import LogisticsDialog from '@/views/oms/order/components/logisticsDialog'; |
|
|
import LogisticsDialog from '@/views/oms/order/components/logisticsDialog'; |
|
|
import {formatDate} from '@/utils/date'; |
|
|
import { |
|
|
|
|
|
formatDate |
|
|
|
|
|
} from '@/utils/date'; |
|
|
import VDistpicker from 'v-distpicker'; |
|
|
import VDistpicker from 'v-distpicker'; |
|
|
const defaultReceiverInfo = { |
|
|
const defaultReceiverInfo = { |
|
|
orderId:null, |
|
|
orderId: null, |
|
|
receiverName:null, |
|
|
receiverName: null, |
|
|
receiverPhone:null, |
|
|
receiverPhone: null, |
|
|
receiverPostCode:null, |
|
|
receiverPostCode: null, |
|
|
receiverDetailAddress:null, |
|
|
receiverDetailAddress: null, |
|
|
receiverProvince:null, |
|
|
receiverProvince: null, |
|
|
receiverCity:null, |
|
|
receiverCity: null, |
|
|
receiverRegion:null, |
|
|
receiverRegion: null, |
|
|
status:null |
|
|
status: null |
|
|
}; |
|
|
}; |
|
|
export default { |
|
|
export default { |
|
|
name: 'orderDetail', |
|
|
name: 'orderDetail', |
|
|
components: { VDistpicker, LogisticsDialog}, |
|
|
components: { |
|
|
|
|
|
VDistpicker, |
|
|
|
|
|
LogisticsDialog |
|
|
|
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
id: null, |
|
|
id: null, |
|
|
order: {}, |
|
|
order: {}, |
|
|
receiverDialogVisible:false, |
|
|
receiverDialogVisible: false, |
|
|
receiverInfo:Object.assign({},defaultReceiverInfo), |
|
|
receiverInfo: Object.assign({}, defaultReceiverInfo), |
|
|
moneyDialogVisible:false, |
|
|
moneyDialogVisible: false, |
|
|
moneyInfo:{orderId:null, freightAmount:0, discountAmount:0,status:null}, |
|
|
moneyInfo: { |
|
|
messageDialogVisible:false, |
|
|
orderId: null, |
|
|
message: {title:null, content:null}, |
|
|
freightAmount: 0, |
|
|
closeDialogVisible:false, |
|
|
discountAmount: 0, |
|
|
closeInfo:{note:null,id:null}, |
|
|
status: null |
|
|
markOrderDialogVisible:false, |
|
|
}, |
|
|
markInfo:{note:null}, |
|
|
messageDialogVisible: false, |
|
|
logisticsDialogVisible:false |
|
|
message: { |
|
|
|
|
|
title: null, |
|
|
|
|
|
content: null |
|
|
|
|
|
}, |
|
|
|
|
|
closeDialogVisible: false, |
|
|
|
|
|
closeInfo: { |
|
|
|
|
|
note: null, |
|
|
|
|
|
id: null |
|
|
|
|
|
}, |
|
|
|
|
|
markOrderDialogVisible: false, |
|
|
|
|
|
markInfo: { |
|
|
|
|
|
note: null |
|
|
|
|
|
}, |
|
|
|
|
|
logisticsDialogVisible: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -391,42 +392,42 @@ |
|
|
}, |
|
|
}, |
|
|
filters: { |
|
|
filters: { |
|
|
formatNull(value) { |
|
|
formatNull(value) { |
|
|
if(value===undefined||value===null||value===''){ |
|
|
if (value === undefined || value === null || value === '') { |
|
|
return '暂无'; |
|
|
return '暂无'; |
|
|
}else{ |
|
|
} else { |
|
|
return value; |
|
|
return value; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
formatLongText(value) { |
|
|
formatLongText(value) { |
|
|
if(value===undefined||value===null||value===''){ |
|
|
if (value === undefined || value === null || value === '') { |
|
|
return '暂无'; |
|
|
return '暂无'; |
|
|
}else if(value.length>8){ |
|
|
} else if (value.length > 8) { |
|
|
return value.substr(0, 8) + '...'; |
|
|
return value.substr(0, 8) + '...'; |
|
|
}else{ |
|
|
} else { |
|
|
return value; |
|
|
return value; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
formatPayType(value) {//支付方式:0->未支付;1->支付宝;2->微信 3余额支付 |
|
|
formatPayType(value) { //支付方式:0->未支付;1->支付宝;2->微信 3余额支付 |
|
|
if (value === 1) { |
|
|
if (value === 1) { |
|
|
return '支付宝'; |
|
|
return '支付宝'; |
|
|
} else if (value === 2) { |
|
|
} else if (value === 2) { |
|
|
return '微信'; |
|
|
return '微信'; |
|
|
} else if (value === 3){ |
|
|
} else if (value === 3) { |
|
|
return '余额支付'; |
|
|
return '余额支付'; |
|
|
} else if (value === 5){ |
|
|
} else if (value === 5) { |
|
|
return '积分兑换'; |
|
|
return '积分兑换'; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
formatSourceType(value) {//0->PC订单;1->app订单 |
|
|
formatSourceType(value) { //0->PC订单;1->app订单 |
|
|
if (value === 4) { |
|
|
if (value === 4) { |
|
|
return '小程序'; |
|
|
return '小程序'; |
|
|
} else if (value === 2){ |
|
|
} else if (value === 2) { |
|
|
return 'h5订单'; |
|
|
return 'h5订单'; |
|
|
}else if (value === 0){ |
|
|
} else if (value === 0) { |
|
|
return 'PC订单'; |
|
|
return 'PC订单'; |
|
|
}else if (value === 1){ |
|
|
} else if (value === 1) { |
|
|
return 'android订单'; |
|
|
return 'android订单'; |
|
|
}else if (value === 5){ |
|
|
} else if (value === 5) { |
|
|
return 'ios订单'; |
|
|
return 'ios订单'; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -435,11 +436,11 @@ |
|
|
return '拼团订单'; |
|
|
return '拼团订单'; |
|
|
} else if (value === 3) { |
|
|
} else if (value === 3) { |
|
|
return '团购订单'; |
|
|
return '团购订单'; |
|
|
} else if (value === 6){ |
|
|
} else if (value === 6) { |
|
|
return '秒杀订单'; |
|
|
return '秒杀订单'; |
|
|
}else if (value === 1) { |
|
|
} else if (value === 1) { |
|
|
return '普通订单'; |
|
|
return '普通订单'; |
|
|
}else if (value === 4) { |
|
|
} else if (value === 4) { |
|
|
return '砍价订单'; |
|
|
return '砍价订单'; |
|
|
} else if (value === 5) { |
|
|
} else if (value === 5) { |
|
|
return '积分订单'; |
|
|
return '积分订单'; |
|
@ -448,10 +449,11 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
formatAddress(order) { |
|
|
formatAddress(order) { |
|
|
let str = order.receiverProvince; |
|
|
// let str = order.receiverProvince; |
|
|
if (order.receiverCity != null) { |
|
|
// if (order.receiverCity != null) { |
|
|
str += " " + order.receiverCity; |
|
|
// str += " " + order.receiverCity; |
|
|
} |
|
|
// } |
|
|
|
|
|
let str = ""; |
|
|
str += " " + order.receiverRegion; |
|
|
str += " " + order.receiverRegion; |
|
|
str += " " + order.receiverDetailAddress; |
|
|
str += " " + order.receiverDetailAddress; |
|
|
return str; |
|
|
return str; |
|
@ -459,9 +461,10 @@ |
|
|
formatStatus(value) { |
|
|
formatStatus(value) { |
|
|
if (value === 12) { |
|
|
if (value === 12) { |
|
|
return '待付款'; |
|
|
return '待付款'; |
|
|
}if (value === 1) { |
|
|
} |
|
|
|
|
|
if (value === 1) { |
|
|
return '支付成功,没有回掉'; |
|
|
return '支付成功,没有回掉'; |
|
|
}else if (value === 2) { |
|
|
} else if (value === 2) { |
|
|
return '待发货'; |
|
|
return '待发货'; |
|
|
} else if (value === 3) { |
|
|
} else if (value === 3) { |
|
|
return '待收货'; |
|
|
return '待收货'; |
|
@ -490,14 +493,14 @@ |
|
|
formatPayStatus(value) { |
|
|
formatPayStatus(value) { |
|
|
if (value === 0) { |
|
|
if (value === 0) { |
|
|
return '未支付'; |
|
|
return '未支付'; |
|
|
} else if(value===4){ |
|
|
} else if (value === 4) { |
|
|
return '已退款'; |
|
|
return '已退款'; |
|
|
}else{ |
|
|
} else { |
|
|
return '已支付'; |
|
|
return '已支付'; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
formatDeliverStatus(value) { |
|
|
formatDeliverStatus(value) { |
|
|
if (value === 0||value === 1) { |
|
|
if (value === 0 || value === 1) { |
|
|
return '未发货'; |
|
|
return '未发货'; |
|
|
} else { |
|
|
} else { |
|
|
return '已发货'; |
|
|
return '已发货'; |
|
@ -510,27 +513,27 @@ |
|
|
return '赠品'; |
|
|
return '赠品'; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
formatProductAttr(value){ |
|
|
formatProductAttr(value) { |
|
|
if(value==null){ |
|
|
if (value == null) { |
|
|
return ''; |
|
|
return ''; |
|
|
}else{ |
|
|
} else { |
|
|
let attr = JSON.parse(value); |
|
|
let attr = JSON.parse(value); |
|
|
let result=''; |
|
|
let result = ''; |
|
|
for(let i=0;i<attr.length;i++){ |
|
|
for (let i = 0; i < attr.length; i++) { |
|
|
result+=attr[i].key; |
|
|
result += attr[i].key; |
|
|
result+=":"; |
|
|
result += ":"; |
|
|
result+=attr[i].value; |
|
|
result += attr[i].value; |
|
|
result+=";"; |
|
|
result += ";"; |
|
|
} |
|
|
} |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
onSelectRegion(data){ |
|
|
onSelectRegion(data) { |
|
|
this.receiverInfo.receiverProvince=data.province.value; |
|
|
this.receiverInfo.receiverProvince = data.province.value; |
|
|
this.receiverInfo.receiverCity=data.city.value; |
|
|
this.receiverInfo.receiverCity = data.city.value; |
|
|
this.receiverInfo.receiverRegion=data.area.value; |
|
|
this.receiverInfo.receiverRegion = data.area.value; |
|
|
}, |
|
|
}, |
|
|
formatTime(time) { |
|
|
formatTime(time) { |
|
|
if (time == null || time === '') { |
|
|
if (time == null || time === '') { |
|
@ -549,33 +552,33 @@ |
|
|
} else if (value === 3) { |
|
|
} else if (value === 3) { |
|
|
//已完成 |
|
|
//已完成 |
|
|
return 4; |
|
|
return 4; |
|
|
}else { |
|
|
} else { |
|
|
//待付款、已关闭、无限订单 |
|
|
//待付款、已关闭、无限订单 |
|
|
return 1; |
|
|
return 1; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
showUpdateReceiverDialog(){ |
|
|
showUpdateReceiverDialog() { |
|
|
this.receiverDialogVisible=true; |
|
|
this.receiverDialogVisible = true; |
|
|
this.receiverInfo={ |
|
|
this.receiverInfo = { |
|
|
orderId:this.order.id, |
|
|
orderId: this.order.id, |
|
|
receiverName:this.order.receiverName, |
|
|
receiverName: this.order.receiverName, |
|
|
receiverPhone:this.order.receiverPhone, |
|
|
receiverPhone: this.order.receiverPhone, |
|
|
receiverPostCode:this.order.receiverPostCode, |
|
|
receiverPostCode: this.order.receiverPostCode, |
|
|
receiverDetailAddress:this.order.receiverDetailAddress, |
|
|
receiverDetailAddress: this.order.receiverDetailAddress, |
|
|
receiverProvince:this.order.receiverProvince, |
|
|
receiverProvince: this.order.receiverProvince, |
|
|
receiverCity:this.order.receiverCity, |
|
|
receiverCity: this.order.receiverCity, |
|
|
receiverRegion:this.order.receiverRegion, |
|
|
receiverRegion: this.order.receiverRegion, |
|
|
status:this.order.status |
|
|
status: this.order.status |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleUpdateReceiverInfo(){ |
|
|
handleUpdateReceiverInfo() { |
|
|
this.$confirm('是否要修改收货信息?', '提示', { |
|
|
this.$confirm('是否要修改收货信息?', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
updateReceiverInfo(this.receiverInfo).then(response=>{ |
|
|
updateReceiverInfo(this.receiverInfo).then(response => { |
|
|
this.receiverDialogVisible=false; |
|
|
this.receiverDialogVisible = false; |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
message: '修改成功!' |
|
|
message: '修改成功!' |
|
@ -586,21 +589,21 @@ |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
showUpdateMoneyDialog(){ |
|
|
showUpdateMoneyDialog() { |
|
|
this.moneyDialogVisible=true; |
|
|
this.moneyDialogVisible = true; |
|
|
this.moneyInfo.orderId=this.order.id; |
|
|
this.moneyInfo.orderId = this.order.id; |
|
|
this.moneyInfo.freightAmount=this.order.freightAmount; |
|
|
this.moneyInfo.freightAmount = this.order.freightAmount; |
|
|
this.moneyInfo.discountAmount=this.order.discountAmount; |
|
|
this.moneyInfo.discountAmount = this.order.discountAmount; |
|
|
this.moneyInfo.status=this.order.status; |
|
|
this.moneyInfo.status = this.order.status; |
|
|
}, |
|
|
}, |
|
|
handleUpdateMoneyInfo(){ |
|
|
handleUpdateMoneyInfo() { |
|
|
this.$confirm('是否要修改费用信息?', '提示', { |
|
|
this.$confirm('是否要修改费用信息?', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
updateMoneyInfo(this.moneyInfo).then(response=>{ |
|
|
updateMoneyInfo(this.moneyInfo).then(response => { |
|
|
this.moneyDialogVisible=false; |
|
|
this.moneyDialogVisible = false; |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
message: '修改成功!' |
|
|
message: '修改成功!' |
|
@ -611,40 +614,40 @@ |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
showMessageDialog(){ |
|
|
showMessageDialog() { |
|
|
this.messageDialogVisible=true; |
|
|
this.messageDialogVisible = true; |
|
|
this.message.title=null; |
|
|
this.message.title = null; |
|
|
this.message.content=null; |
|
|
this.message.content = null; |
|
|
}, |
|
|
}, |
|
|
handleSendMessage(){ |
|
|
handleSendMessage() { |
|
|
this.$confirm('是否要发送站内信?', '提示', { |
|
|
this.$confirm('是否要发送站内信?', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.messageDialogVisible=false; |
|
|
this.messageDialogVisible = false; |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
message: '发送成功!' |
|
|
message: '发送成功!' |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
showCloseOrderDialog(){ |
|
|
showCloseOrderDialog() { |
|
|
this.closeDialogVisible=true; |
|
|
this.closeDialogVisible = true; |
|
|
this.closeInfo.note=null; |
|
|
this.closeInfo.note = null; |
|
|
this.closeInfo.id=this.id; |
|
|
this.closeInfo.id = this.id; |
|
|
}, |
|
|
}, |
|
|
handleCloseOrder(){ |
|
|
handleCloseOrder() { |
|
|
this.$confirm('是否要关闭?', '提示', { |
|
|
this.$confirm('是否要关闭?', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
let params = new URLSearchParams(); |
|
|
let params = new URLSearchParams(); |
|
|
params.append("ids",[this.closeInfo.id]); |
|
|
params.append("ids", [this.closeInfo.id]); |
|
|
params.append("note",this.closeInfo.note); |
|
|
params.append("note", this.closeInfo.note); |
|
|
closeOrder(params).then(response=>{ |
|
|
closeOrder(params).then(response => { |
|
|
this.closeDialogVisible=false; |
|
|
this.closeDialogVisible = false; |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
message: '订单关闭成功!' |
|
|
message: '订单关闭成功!' |
|
@ -655,23 +658,23 @@ |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
showMarkOrderDialog(){ |
|
|
showMarkOrderDialog() { |
|
|
this.markOrderDialogVisible=true; |
|
|
this.markOrderDialogVisible = true; |
|
|
this.markInfo.id=this.id; |
|
|
this.markInfo.id = this.id; |
|
|
this.closeOrder.note=null; |
|
|
this.closeOrder.note = null; |
|
|
}, |
|
|
}, |
|
|
handleMarkOrder(){ |
|
|
handleMarkOrder() { |
|
|
this.$confirm('是否要备注订单?', '提示', { |
|
|
this.$confirm('是否要备注订单?', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
let params = new URLSearchParams(); |
|
|
let params = new URLSearchParams(); |
|
|
params.append("id",this.markInfo.id); |
|
|
params.append("id", this.markInfo.id); |
|
|
params.append("note",this.markInfo.note); |
|
|
params.append("note", this.markInfo.note); |
|
|
params.append("status",this.order.status); |
|
|
params.append("status", this.order.status); |
|
|
updateOrderNote(params).then(response=>{ |
|
|
updateOrderNote(params).then(response => { |
|
|
this.markOrderDialogVisible=false; |
|
|
this.markOrderDialogVisible = false; |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
message: '订单备注成功!' |
|
|
message: '订单备注成功!' |
|
@ -682,15 +685,15 @@ |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
handleDeleteOrder(){ |
|
|
handleDeleteOrder() { |
|
|
this.$confirm('是否要进行该删除操作?', '提示', { |
|
|
this.$confirm('是否要进行该删除操作?', '提示', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
let params = new URLSearchParams(); |
|
|
let params = new URLSearchParams(); |
|
|
params.append("ids",[this.id]); |
|
|
params.append("ids", [this.id]); |
|
|
deleteOrder(params).then(response=>{ |
|
|
deleteOrder(params).then(response => { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '删除成功!', |
|
|
message: '删除成功!', |
|
|
type: 'success', |
|
|
type: 'success', |
|
@ -700,8 +703,8 @@ |
|
|
}); |
|
|
}); |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
showLogisticsDialog(){ |
|
|
showLogisticsDialog() { |
|
|
this.logisticsDialogVisible=true; |
|
|
this.logisticsDialogVisible = true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -753,5 +756,3 @@ |
|
|
color: #303133; |
|
|
color: #303133; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|