|
@@ -5,10 +5,10 @@
|
|
|
<view class="orderState">
|
|
|
<image src="../../static/img/icon_order_def.png" mode="" style="width: 44rpx;height: 44rpx;"></image>
|
|
|
|
|
|
-
|
|
|
- <view class="SheetState" v-if="orderData.orderSheet.sheetState == 0">待确认</view>
|
|
|
- <view class="SheetState" v-if="orderData.orderSheet.sheetState == 1">预约中</view>
|
|
|
- <view class="SheetState" v-if="orderData.orderSheet.sheetState == 2">已到店</view>
|
|
|
+
|
|
|
+ <view class="SheetState" v-if="orderData.orderSheet.sheetState == 0">待确认</view>
|
|
|
+ <view class="SheetState" v-if="orderData.orderSheet.sheetState == 1">预约中</view>
|
|
|
+ <view class="SheetState" v-if="orderData.orderSheet.sheetState == 2">已到店</view>
|
|
|
<view class="SheetState" v-if="orderData.orderSheet.sheetState == 3">已取消</view>
|
|
|
</view>
|
|
|
|
|
@@ -72,33 +72,33 @@
|
|
|
<view class="detailedLine" v-for="(v,index) in orderData.orderDetails">
|
|
|
<view class="detailedName">{{v.itemName}}</view>
|
|
|
<span>¥{{v.amountMoney}}</span>
|
|
|
- </view>
|
|
|
- <view class="detailedLine" v-if=" orderData.orderDetails.length!=0">
|
|
|
- <view class="detailedName">预估总价</view>
|
|
|
- <span v-if="orderData.sumMoney>0">¥{{orderData.sumMoney}}</span>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <view class="detailedLine" v-if=" orderData.orderDetails.length!=0">
|
|
|
+ <view class="detailedName">预估总价</view>
|
|
|
+ <span v-if="orderData.sumMoney>0">¥{{orderData.sumMoney}}</span>
|
|
|
+ </view>
|
|
|
<view class="content">温馨提示:该报价仅为参考价格,实际以门店为准(不同品牌和车型费用会不同)</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
- <view class="bottom" v-if="(orderData.orderSheet.sheetState == 0)||(orderData.orderSheet.sheetState == 1)">
|
|
|
-
|
|
|
- <view class="cancel" @click="cancelBespeak" >取消预约</view>
|
|
|
- <view class="defer" @click="cktime">延期</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 预约时间 -->
|
|
|
+
|
|
|
+ <view class="bottom" v-if="(orderData.orderSheet.sheetState == 0)||(orderData.orderSheet.sheetState == 1)">
|
|
|
+
|
|
|
+ <view class="cancel" @click="cancelBespeak" >取消预约</view>
|
|
|
+ <view class="defer" @click="cktime">延期</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 预约时间 -->
|
|
|
<timeSelect ref="timeSelect" :timedata="timedata" @changeTime="changeTime"></timeSelect>
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
- import timeSelect from '@/components/timeSelect/timeSelect.vue'
|
|
|
- export default {
|
|
|
- components: {
|
|
|
- timeSelect
|
|
|
+<script>
|
|
|
+ import timeSelect from '@/components/timeSelect/timeSelect.vue'
|
|
|
+ export default {
|
|
|
+ components: {
|
|
|
+ timeSelect
|
|
|
},
|
|
|
|
|
|
data() {
|
|
@@ -106,80 +106,80 @@
|
|
|
location: '',
|
|
|
id: '',
|
|
|
orderData: '',
|
|
|
- timedata:'',
|
|
|
+ timedata:'',
|
|
|
billDate:'',
|
|
|
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
|
|
|
- this.id = opt.id
|
|
|
+ this.id = opt.id
|
|
|
|
|
|
- if (this.id) {
|
|
|
- this.getData()
|
|
|
+ if (this.id) {
|
|
|
+ this.getData()
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- changeTime(data){
|
|
|
- console.log(data)
|
|
|
- this.billDate=data
|
|
|
- this.upTime();
|
|
|
- },
|
|
|
- cktime(){
|
|
|
- this.$refs.timeSelect.open();
|
|
|
- },
|
|
|
- upTime() {
|
|
|
- uni.showLoading({
|
|
|
- title: '加载中'
|
|
|
- })
|
|
|
- var that = this
|
|
|
- this.$http('openreservation/carOwner/updateTimeOfAppointment', {
|
|
|
-
|
|
|
- id: this.id,
|
|
|
- shopId: this.orderData.shopInfo.id,
|
|
|
- billDate:this.billDate
|
|
|
- }, 'POST').then(res => {
|
|
|
- uni.hideLoading();
|
|
|
- // var list = res.data.Items
|
|
|
- var list = res.data
|
|
|
- console.log("result+=",res.data);
|
|
|
- uni.showToast({
|
|
|
- title: '延期成功',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- setTimeout(function() {
|
|
|
- that.getData();
|
|
|
- }, 1000);
|
|
|
-
|
|
|
-
|
|
|
- })
|
|
|
- },
|
|
|
- cancelBespeak() {
|
|
|
- uni.showLoading({
|
|
|
- title: '加载中'
|
|
|
- })
|
|
|
- var that = this
|
|
|
- this.$http('openreservation/carOwner/updateState', {
|
|
|
-
|
|
|
- id: this.id,
|
|
|
- shopId: this.orderData.shopInfo.id,
|
|
|
- sheetState:3
|
|
|
- }, 'POST').then(res => {
|
|
|
- uni.hideLoading();
|
|
|
- // var list = res.data.Items
|
|
|
- var list = res.data
|
|
|
- uni.showToast({
|
|
|
- title: '取消成功',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
- setTimeout(function() {
|
|
|
- that.getData();
|
|
|
- }, 1000);
|
|
|
- })
|
|
|
+ changeTime(data){
|
|
|
+ console.log(data)
|
|
|
+ this.billDate=data
|
|
|
+ this.upTime();
|
|
|
+ },
|
|
|
+ cktime(){
|
|
|
+ this.$refs.timeSelect.open();
|
|
|
+ },
|
|
|
+ upTime() {
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ })
|
|
|
+ var that = this
|
|
|
+ this.$http('openreservation/carOwner/updateTimeOfAppointment', {
|
|
|
+
|
|
|
+ id: this.id,
|
|
|
+ shopId: this.orderData.shopInfo.id,
|
|
|
+ billDate:this.billDate
|
|
|
+ }, 'POST').then(res => {
|
|
|
+ uni.hideLoading();
|
|
|
+ // var list = res.data.Items
|
|
|
+ var list = res.data
|
|
|
+ console.log("result+=",res.data);
|
|
|
+ uni.showToast({
|
|
|
+ title: '延期成功',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ setTimeout(function() {
|
|
|
+ that.getData();
|
|
|
+ }, 1000);
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ cancelBespeak() {
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ })
|
|
|
+ var that = this
|
|
|
+ this.$http('openreservation/carOwner/updateState', {
|
|
|
+
|
|
|
+ id: this.id,
|
|
|
+ shopId: this.orderData.shopInfo.id,
|
|
|
+ sheetState:3
|
|
|
+ }, 'POST').then(res => {
|
|
|
+ uni.hideLoading();
|
|
|
+ // var list = res.data.Items
|
|
|
+ var list = res.data
|
|
|
+ uni.showToast({
|
|
|
+ title: '取消成功',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ setTimeout(function() {
|
|
|
+ that.getData();
|
|
|
+ }, 1000);
|
|
|
+ })
|
|
|
},
|
|
|
map() {
|
|
|
console.log("打开地图")
|
|
@@ -227,10 +227,10 @@
|
|
|
uni.hideLoading();
|
|
|
this.orderData = res.data;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
})
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
goback() {
|
|
|
|
|
@@ -260,7 +260,7 @@
|
|
|
|
|
|
.top {
|
|
|
height: 190rpx;
|
|
|
- background-color: #F03B3B;
|
|
|
+ background-color: #FF0000;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -329,7 +329,7 @@
|
|
|
.shopName {
|
|
|
font-size: 30rpx;
|
|
|
font-weight: bold;
|
|
|
- color: #3C3C3C;
|
|
|
+ color: #3C3C3C;
|
|
|
line-height: 42rpx;
|
|
|
}
|
|
|
|
|
@@ -453,7 +453,7 @@
|
|
|
|
|
|
.detailedLine {
|
|
|
display: flex;
|
|
|
- padding: 20rpx 20rpx 0rpx;
|
|
|
+ padding: 20rpx 20rpx 0rpx;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
|
|
@@ -470,9 +470,9 @@
|
|
|
color: #3C3C3C;
|
|
|
}
|
|
|
|
|
|
- span{
|
|
|
- font-size: 26rpx;
|
|
|
- color: #999999;
|
|
|
+ span{
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #999999;
|
|
|
}
|
|
|
|
|
|
.goodscost {
|
|
@@ -759,48 +759,48 @@
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
align-items: center;
|
|
|
- }
|
|
|
- .content{
|
|
|
- background-color: #F4F5F7;
|
|
|
- border-radius: 10rpx;
|
|
|
- padding: 16rpx;
|
|
|
- color: #999999;
|
|
|
- font-size: 24rpx;
|
|
|
- margin: 20rpx;
|
|
|
- }
|
|
|
- .bottom {
|
|
|
- display: flex;
|
|
|
- justify-content: flex-end;
|
|
|
- padding: 20rpx;
|
|
|
- background-color: #FFFFFF;
|
|
|
- align-items: center;
|
|
|
- height: 98rpx;
|
|
|
- width: 100vw;
|
|
|
- position: fixed;
|
|
|
- bottom: 0rpx;
|
|
|
- }
|
|
|
- .cancel{
|
|
|
- color: #3C3C3C;
|
|
|
- font-size: 28rpx;
|
|
|
- width: 150rpx;
|
|
|
- height: 56rpx;
|
|
|
- border-radius: 36rpx;
|
|
|
- border: 1rpx solid #DDDDDD;
|
|
|
- text-align: center;
|
|
|
- line-height: 56rpx;
|
|
|
- margin-right: 40rpx;
|
|
|
- }
|
|
|
- .defer {
|
|
|
- color: #D53533;
|
|
|
- font-size: 28rpx;
|
|
|
- width: 150rpx;
|
|
|
- height: 56rpx;
|
|
|
- border-radius: 36rpx;
|
|
|
- border: 1rpx solid #D53533;
|
|
|
- text-align: center;
|
|
|
- line-height: 56rpx;
|
|
|
- margin-right: 40rpx;
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+ .content{
|
|
|
+ background-color: #F4F5F7;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ padding: 16rpx;
|
|
|
+ color: #999999;
|
|
|
+ font-size: 24rpx;
|
|
|
+ margin: 20rpx;
|
|
|
+ }
|
|
|
+ .bottom {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ padding: 20rpx;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ align-items: center;
|
|
|
+ height: 98rpx;
|
|
|
+ width: 100vw;
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0rpx;
|
|
|
+ }
|
|
|
+ .cancel{
|
|
|
+ color: #3C3C3C;
|
|
|
+ font-size: 28rpx;
|
|
|
+ width: 150rpx;
|
|
|
+ height: 56rpx;
|
|
|
+ border-radius: 36rpx;
|
|
|
+ border: 1rpx solid #DDDDDD;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 56rpx;
|
|
|
+ margin-right: 40rpx;
|
|
|
+ }
|
|
|
+ .defer {
|
|
|
+ color: #D53533;
|
|
|
+ font-size: 28rpx;
|
|
|
+ width: 150rpx;
|
|
|
+ height: 56rpx;
|
|
|
+ border-radius: 36rpx;
|
|
|
+ border: 1rpx solid #D53533;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 56rpx;
|
|
|
+ margin-right: 40rpx;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
-</style>
|
|
|
+</style>
|