|
|
@@ -17,7 +17,7 @@
|
|
|
</span>
|
|
|
|
|
|
<div class="operate-button-container" >
|
|
|
- <el-button size="mini" @click="handleCertificates()" v-hasPermi="['store:storeOrder:uploadCredentials']" >上传凭证</el-button>
|
|
|
+<!-- <el-button size="mini" @click="handleCertificates()" v-hasPermi="['store:storeOrder:uploadCredentials']" >上传凭证</el-button>-->
|
|
|
<el-button size="mini" @click="handleEditAddress()" v-if="order.status==0||order.status==1" v-hasPermi="['store:storeOrder:editAddress']" >修改收货地址</el-button>
|
|
|
<el-button size="mini" @click="handleBindCustomer()" v-hasPermi="['store:storeOrder:bindCustomer']" >关联客户</el-button>
|
|
|
<el-button size="mini" @click="editOrder()" v-hasPermi="['store:storeOrder:edit']" >修改订单</el-button>
|
|
|
@@ -59,7 +59,7 @@
|
|
|
|
|
|
<el-descriptions-item label="收货人" >
|
|
|
<span v-if="order!=null ">
|
|
|
- {{order.realName }}
|
|
|
+ {{order.userName }}
|
|
|
</span>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="手机号码" >
|
|
|
@@ -262,16 +262,16 @@
|
|
|
¥{{order.payPostage.toFixed(2)}}
|
|
|
</span>
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item label="优惠券" >
|
|
|
- <span v-if="order!=null">
|
|
|
- ¥{{order.couponPrice.toFixed(2)}}
|
|
|
- </span>
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item label="积分抵扣" >
|
|
|
- <span v-if="order!=null">
|
|
|
- ¥{{order.deductionPrice.toFixed(2)}}
|
|
|
- </span>
|
|
|
- </el-descriptions-item>
|
|
|
+<!-- <el-descriptions-item label="优惠券" >-->
|
|
|
+<!-- <span v-if="order!=null">-->
|
|
|
+<!-- ¥{{order.couponPrice.toFixed(2)}}-->
|
|
|
+<!-- </span>-->
|
|
|
+<!-- </el-descriptions-item>-->
|
|
|
+<!-- <el-descriptions-item label="积分抵扣" >-->
|
|
|
+<!-- <span v-if="order!=null">-->
|
|
|
+<!-- ¥{{order.deductionPrice.toFixed(2)}}-->
|
|
|
+<!-- </span>-->
|
|
|
+<!-- </el-descriptions-item>-->
|
|
|
<el-descriptions-item label="实付金额" >
|
|
|
<span v-if="order!=null">
|
|
|
¥{{order.payMoney.toFixed(2)}}
|
|
|
@@ -524,18 +524,13 @@ import ImageUpload from '@/components/ImageUpload'
|
|
|
import Material from '@/components/Material'
|
|
|
import {
|
|
|
bindCustomer,
|
|
|
- getExpress,
|
|
|
- listStoreOrder,
|
|
|
- getStoreOrder,
|
|
|
- delStoreOrder,
|
|
|
- addStoreOrder,
|
|
|
- updateStoreOrder,
|
|
|
- exportStoreOrder,
|
|
|
+ getLiveOrderAll,
|
|
|
uploadCredentials,
|
|
|
- getStoreOrderAddress,
|
|
|
+ updateLiveOrder,
|
|
|
+ getLiveOrderAddress,
|
|
|
getUserPhone,
|
|
|
getByOrderId, getExpressByDeliverId
|
|
|
-} from "@/api/store/storeOrder";
|
|
|
+} from "@/api/live/liveOrder";
|
|
|
import {getAllList} from "@/api/store/city";
|
|
|
import customerDetails from '../../crm/components/customerDetails.vue';
|
|
|
import addSms from '../../crm/components/addSms.vue';
|
|
|
@@ -679,7 +674,7 @@ export default {
|
|
|
methods: {
|
|
|
getExpressList(){
|
|
|
getByOrderId(this.orderId).then(res=>{
|
|
|
- this.deliverList = res.data;
|
|
|
+ this.deliverList.push(res.data);
|
|
|
})
|
|
|
},
|
|
|
closeSms(){
|
|
|
@@ -694,14 +689,14 @@ export default {
|
|
|
|
|
|
},
|
|
|
handlePhone(){
|
|
|
- const id = this.order.id;
|
|
|
+ const id = this.order.orderId;
|
|
|
getUserPhone(id).then(response =>{
|
|
|
this.order.userPhone = response.userPhone;
|
|
|
})
|
|
|
},
|
|
|
handleAddress(){
|
|
|
- const id = this.order.id;
|
|
|
- getStoreOrderAddress(id).then(response =>{
|
|
|
+ const id = this.order.orderId;
|
|
|
+ getLiveOrderAddress(id).then(response =>{
|
|
|
this.order.userAddress = response.address;
|
|
|
})
|
|
|
},
|
|
|
@@ -760,7 +755,7 @@ export default {
|
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess("上传成功");
|
|
|
this.certificateDialig.open = false;
|
|
|
- this.getOrder(this.order.id);
|
|
|
+ this.getOrder(this.order.orderId);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -814,7 +809,7 @@ export default {
|
|
|
},
|
|
|
handleEditAddress() {
|
|
|
this.getCityList();
|
|
|
- this.editAddressForm.id=this.order.id;
|
|
|
+ this.editAddressForm.id=this.order.orderId;
|
|
|
this.editAddressForm.realName=this.order.realName;
|
|
|
this.editAddressForm.userPhone=this.order.userPhone;
|
|
|
var address=this.order.userAddress.split(' ')
|
|
|
@@ -847,11 +842,11 @@ export default {
|
|
|
this.$refs["editAddressForm"].validate(valid => {
|
|
|
if (valid) {
|
|
|
this.editAddressForm.userAddress=this.editAddressForm.province+" "+this.editAddressForm.city+" "+this.editAddressForm.district+" "+this.editAddressForm.detail;
|
|
|
- updateStoreOrder(this.editAddressForm).then(response => {
|
|
|
+ updateLiveOrder(this.editAddressForm).then(response => {
|
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess("修改成功");
|
|
|
this.editAddress.open = false;
|
|
|
- this.getOrder(this.order.id);
|
|
|
+ this.getOrder(this.order.orderId);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -875,7 +870,7 @@ export default {
|
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess("修改成功");
|
|
|
this.editUser.open = false;
|
|
|
- this.getOrder(this.order.id);
|
|
|
+ this.getOrder(this.order.orderId);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -888,7 +883,7 @@ export default {
|
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess("操作成功");
|
|
|
this.edit.open = false;
|
|
|
- this.getOrder(this.order.id);
|
|
|
+ this.getOrder(this.order.orderId);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -898,7 +893,7 @@ export default {
|
|
|
editOrder(){
|
|
|
this.edit.open=true;
|
|
|
this.editForm.mark=this.order.mark
|
|
|
- this.editForm.id=this.order.id;
|
|
|
+ this.editForm.id=this.order.orderId;
|
|
|
if(this.order.orderType!=null){
|
|
|
this.editForm.orderType=this.order.orderType.toString();
|
|
|
}
|
|
|
@@ -909,7 +904,7 @@ export default {
|
|
|
getOrder(orderId){
|
|
|
this.orderId=orderId;
|
|
|
this.certificates = null;
|
|
|
- getStoreOrder(orderId).then(response => {
|
|
|
+ getLiveOrderAll(orderId).then(response => {
|
|
|
this.order = response.order;
|
|
|
if(response.order.certificates != null){
|
|
|
this.certificates = response.order.certificates;
|