定制表单手机号回填,修改订单详情更改状态传参

main
jinna 2 years ago
parent 866ab3f803
commit 7216ba39ae
  1. 1
      pages/pages_zhentou/form/form.vue
  2. 16
      pages/pages_zhentou/order/checkOrder.vue
  3. 103
      pages/pages_zhentou/order/express.vue
  4. 8
      pages/pages_zhentou/order/order.vue

@ -430,6 +430,7 @@
this.orderNo = options.orderNo this.orderNo = options.orderNo
this.orderNum = options.orderNum this.orderNum = options.orderNum
this.pageFrom = options.pageFrom this.pageFrom = options.pageFrom
this.valiFormData.phone = JSON.parse(uni.getStorageSync('userInfo')).phone ;
// if(options.pageFrom == 'order'){ // if(options.pageFrom == 'order'){
// this.phoneNumber = options.phone // this.phoneNumber = options.phone
// // this.getInfo() // // this.getInfo()

@ -92,7 +92,7 @@
<p class="btn confirm" v-if="orderData.status == 3" @click="handleConfirm">确认收货</p> <p class="btn confirm" v-if="orderData.status == 3" @click="handleConfirm">确认收货</p>
<p class="btn confirm" v-if="orderData.status == 1" @click="goPay">立即支付</p> <p class="btn confirm" v-if="orderData.status == 1" @click="goPay">立即支付</p>
<!-- <p class="btn confirm info" v-if="orderData.status == 3" @click="handleInfo(item)">完善定制信息</p> --> <!-- <p class="btn confirm info" v-if="orderData.status == 3" @click="handleInfo(item)">完善定制信息</p> -->
<p class="btn confirm info" v-if="orderData.status == 2" @click="handleInfo">完善定制信息</p> <p class="btn confirm info" v-if="orderData.status == 2 && orderData.filledMadeInfoNum < orderData.goodsNum" @click="handleInfo">完善定制信息</p>
<p class="btn confirm" v-if="orderData.status == 0" @click="clickCustom">再次定制</p> <p class="btn confirm" v-if="orderData.status == 0" @click="clickCustom">再次定制</p>
</view> </view>
</view> </view>
@ -274,9 +274,10 @@
title: '订单取消成功', title: '订单取消成功',
icon: 'none' icon: 'none'
}) })
setTimeout(() => { this.getDetail()
uni.navigateBack() // setTimeout(() => {
}, 500) // uni.navigateBack()
// }, 500)
} else if (res.data.code == 401) { } else if (res.data.code == 401) {
this.doLogin() this.doLogin()
@ -318,9 +319,10 @@
title: '收货成功', title: '收货成功',
icon: 'none' icon: 'none'
}) })
setTimeout(() => { this.getDetail()
uni.navigateBack() // setTimeout(() => {
}, 500) // uni.navigateBack()
// }, 500)
} else if (res.data.code == 401) { } else if (res.data.code == 401) {
this.doLogin() this.doLogin()
} else { } else {

@ -33,49 +33,50 @@
export default { export default {
data() { data() {
return { return {
options: [{ options: [
status: '投柜或驿站', // {
context: '【青岛市】 快件已被 菜鸟的【青岛康泰源惠客友超市店】代收,【取件地址:青岛康泰源惠客友超市店】,请及时取件。如有疑问请联系:15805321109,投诉电话:0532-88985563', // status: '驿',
time: '2023-08-18 10:33:33' // context: ' 158053211090532-88985563',
}, // time: '2023-08-18 10:33:33'
{ // },
status: '派件', // {
context: '【青岛市】青岛市中五二部(0532-88985563)业务员【杨金梅,19106394524】正在为您派件(95720为中通快递员外呼专属号码,请放心接听,如有问题可联系投诉电话:0532-88985563)', // status: '',
time: '2023-08-18 08:08:38' // context: '0532-88985563,19106394524957200532-88985563',
}, // time: '2023-08-18 08:08:38'
{ // },
status: '在途', // {
context: '【青岛市】 快件已到达 青岛市中五二部', // status: '',
time: '2023-08-18 08:08:33' // context: ' ',
}, // time: '2023-08-18 08:08:33'
{ // },
status: '在途', // {
context: '【青岛市】 快件已发往 青岛市中五二部', // status: '',
time: '2023-08-18 04:36:56' // context: ' ',
}, // time: '2023-08-18 04:36:56'
{ // },
status: '在途', // {
context: '【青岛市】 快件已到达 青岛中转部', // status: '',
time: '2023-08-18 01:04:40' // context: ' ',
}, // time: '2023-08-18 01:04:40'
{ // },
status: '在途', // {
context: '【昆明市】 快件已发往 青岛中转部', // status: '',
time: '2023-08-16 00:51:30' // context: ' ',
}, // time: '2023-08-16 00:51:30'
{ // },
status: '在途', // {
context: '【昆明市】 快件已到达 昆明中转', // status: '',
time: '2023-08-15 15:30:16' // context: ' ',
}, { // time: '2023-08-15 15:30:16'
status: '在途', // }, {
context: '【丽江市】 快件已发往 昆明中转', // status: '',
time: '2023-08-14 19:02:02' // context: ' ',
}, { // time: '2023-08-14 19:02:02'
status: '揽收', // }, {
context: '【丽江市】 【丽江华坪县】(0888-8834031) 的 P1陈平(15108866686) 已揽收', // status: '',
time: '2023-08-14 19:01:18' // context: ' 0888-8834031 P115108866686 ',
} // time: '2023-08-14 19:01:18'
// }
], ],
logisticsNo:'', logisticsNo:'',
company:'', company:'',
@ -98,8 +99,8 @@
customer: "1C32AD38DC92D3A1950391AD766C7F6D", customer: "1C32AD38DC92D3A1950391AD766C7F6D",
sign: "", sign: "",
param: JSON.stringify({ param: JSON.stringify({
"com": 'zhongtong', "com": this.companyCode,
"num": '78713552736238', "num": this.logisticsNo,
"phone": '17852327323', "phone": '17852327323',
"from": "", "from": "",
"to": "", "to": "",
@ -246,12 +247,12 @@
.set-2:nth-of-type(1)>.img-border { .set-2:nth-of-type(1)>.img-border {
width: 38rpx; width: 38rpx;
height: 38rpx; height: 38rpx;
background: #FFCCD8; background: transparent;
border-radius: 50%; border-radius: 50%;
position: absolute; position: absolute;
top: 0%; top: 0%;
margin-top: -3rpx; margin-top: -3rpx;
left: -68rpx; left: -11%;
z-index: 100; z-index: 100;
} }
@ -269,7 +270,7 @@
position: absolute; position: absolute;
top: 0; top: 0;
left: -52upx; left: -52upx;
height: 70%; height: 80%;
margin-top: -22rpx; margin-top: -22rpx;
border-style: solid; border-style: solid;
border-left: 1rpx; border-left: 1rpx;
@ -280,7 +281,7 @@
position: absolute; position: absolute;
top: 50%; top: 50%;
left: -52upx; left: -52upx;
height: 60%; height: 70%;
margin-top: 22rpx; margin-top: 22rpx;
border-style: solid; border-style: solid;
border-left: 1rpx; border-left: 1rpx;
@ -290,11 +291,11 @@
.set-2:nth-of-type(1) .left_line_down { .set-2:nth-of-type(1) .left_line_down {
top: 0; top: 0;
height: 105%; height: 120%;
} }
.set-2:last-of-type .left_line_up { .set-2:last-of-type .left_line_up {
height: 10%; height: 20%;
} }
} }
} }

@ -53,7 +53,7 @@
<p class="btn confirm" v-if="item.status == 3" @click.stop="handleConfirm(item)">确认收货</p> <p class="btn confirm" v-if="item.status == 3" @click.stop="handleConfirm(item)">确认收货</p>
<p class="btn" v-if="item.status == 1" @click.stop="cancelOrder(item)">取消订单</p> <p class="btn" v-if="item.status == 1" @click.stop="cancelOrder(item)">取消订单</p>
<p class="btn confirm" @click.stop="goPay(item)" v-if="item.status == 1">立即支付</p> <p class="btn confirm" @click.stop="goPay(item)" v-if="item.status == 1">立即支付</p>
<p class="btn confirm info" v-if="item.status == 2" @click.stop="handleInfo(item)">完善定制信息</p> <p class="btn confirm info" v-if="item.status == 2 && item.filledMadeInfoNum < item.goodsNum" @click.stop="handleInfo(item)">完善定制信息</p>
<p class="btn" v-if="item.status == 0" @click.stop="handleDelete(item)">删除订单</p> <p class="btn" v-if="item.status == 0" @click.stop="handleDelete(item)">删除订单</p>
<p class="btn confirm" v-if="item.status == 0" @click.stop="clickCustom">再次定制</p> <p class="btn confirm" v-if="item.status == 0" @click.stop="clickCustom">再次定制</p>
</view> </view>
@ -87,7 +87,9 @@
let userInfo = uni.getStorageSync('userInfo'); let userInfo = uni.getStorageSync('userInfo');
if (userInfo) { if (userInfo) {
this.userInfo = JSON.parse(userInfo); this.userInfo = JSON.parse(userInfo);
this.hasMore = true this.hasMore = true;
this.current = 0;
this.orderData= []
this.loadMore(); this.loadMore();
} }
}, },
@ -562,7 +564,7 @@
.btn_box { .btn_box {
width: 100%; width: 100%;
height: 60rpx; // height: 60rpx;
margin: 35rpx 0 0; margin: 35rpx 0 0;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;

Loading…
Cancel
Save