|
@@ -4,9 +4,9 @@
|
|
|
<view class="top">
|
|
|
<view class="orderState">
|
|
|
<image src="../../static/img/icon_order_def.png" mode="" style="width: 44rpx;height: 44rpx;"></image>
|
|
|
- <view class="SheetState">已结算</view>
|
|
|
- <view class="SheetState" v-if="orderData.SheetState==1">已结算</view>
|
|
|
- <view class="SheetState" v-if="orderData.SheetState==2">未结算</view>
|
|
|
+
|
|
|
+ <view class="SheetState" v-if="orderData.billsheet.PayState==2">已结算</view>
|
|
|
+ <view class="SheetState" v-if="orderData.billsheet.PayState==0">未结算</view>
|
|
|
</view>
|
|
|
|
|
|
|
|
@@ -16,10 +16,8 @@
|
|
|
<view class="shopBox">
|
|
|
<image src="../../static/img/icon_store.png" mode="" class="shopBoximg"></image>
|
|
|
<view class="shopCont">
|
|
|
- <view class="shopName">{{orderData.ShopName}}这是门店名称</view>
|
|
|
- <view class="Address">江苏省南京市鼓楼区铁路南街233
|
|
|
- {{orderData.ProvinceName}}{{orderData.CityName}}{{orderData.AreaName}}{{orderData.Address}}
|
|
|
- </view>
|
|
|
+ <view class="shopName">{{orderData.billsheet.ShopName}}</view>
|
|
|
+ <view class="Address">{{orderData.billsheet.Address}}</view>
|
|
|
|
|
|
</view>
|
|
|
<view class="shopRightBox" @click="map">
|
|
@@ -42,7 +40,7 @@
|
|
|
<view class="information">
|
|
|
<view class="carMes">
|
|
|
<view class="plate">{{orderData.billsheet.PlateNumber}}</view>
|
|
|
- <view class="mileage">{{orderData.billsheet.CurrentMileage}}km</view>
|
|
|
+ <view class="mileage" v-if="orderData.billsheet.CurrentMileage>0">{{orderData.billsheet.CurrentMileage}}km</view>
|
|
|
</view>
|
|
|
<view class="informationLine">
|
|
|
<view class="informationTxt">姓名:</view>
|
|
@@ -54,7 +52,7 @@
|
|
|
</view>
|
|
|
<view class="informationLine">
|
|
|
<view class="informationTxt">单号:</view>
|
|
|
- <view class="informationNum">{{orderData.billsheet}}no</view>
|
|
|
+ <view class="informationNum">{{orderData.billsheet.Code}}</view>
|
|
|
</view>
|
|
|
<view class="informationLine">
|
|
|
<view class="informationTxt">接车时间:</view>
|
|
@@ -62,7 +60,7 @@
|
|
|
</view>
|
|
|
<view class="informationLine">
|
|
|
<view class="informationTxt">服务顾问:</view>
|
|
|
- <view class="informationNum">{{orderData.billsheet}}no</view>
|
|
|
+ <view class="informationNum">{{orderData.billsheet.PickName}}</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
@@ -73,10 +71,10 @@
|
|
|
<view class="detailedLineBox">
|
|
|
<view class="detailedLine" v-for="(item,index) in orderData.listItems">
|
|
|
|
|
|
- <view class="detailedCont">
|
|
|
+
|
|
|
<view class="detailedName">{{item.ItemName}}项目名称</view>
|
|
|
<span>x1</span>
|
|
|
- </view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -88,11 +86,11 @@
|
|
|
<view class="detailedLineBox">
|
|
|
<view class="detailedLine" v-for="(item,index) in orderData.listParts">
|
|
|
|
|
|
- <view class="detailedCont">
|
|
|
+
|
|
|
<view class="detailedName">{{item.GoodsName}}商品名称</view>
|
|
|
<span>x{{item.SaleQty}}</span>
|
|
|
|
|
|
- </view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -114,7 +112,7 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
- this.location = uni.getStorageSync("locationCity");
|
|
|
+
|
|
|
this.id = opt.id
|
|
|
|
|
|
this.getData()
|
|
@@ -131,7 +129,7 @@
|
|
|
map() {
|
|
|
console.log("打开地图")
|
|
|
var that = this;
|
|
|
- if (!that.orderData.Lat || !that.orderData.Lng) {
|
|
|
+ if (!that.orderData.billsheet.lat || !that.orderData.billsheet.lng) {
|
|
|
uni.showToast({
|
|
|
title: '该店铺未设置定位',
|
|
|
icon: 'none',
|
|
@@ -139,10 +137,10 @@
|
|
|
});
|
|
|
} else {
|
|
|
uni.openLocation({
|
|
|
- latitude: Number(that.orderData.Lat),
|
|
|
- longitude: Number(that.orderData.Lng),
|
|
|
- name: that.orderData.ShopName,
|
|
|
- address: that.orderData.Address,
|
|
|
+ latitude: Number(that.orderData.billsheet.lat),
|
|
|
+ longitude: Number(that.orderData.billsheet.lng),
|
|
|
+ name: that.orderData.billsheet.ShopName,
|
|
|
+ address: that.orderData.billsheet.Address,
|
|
|
success: function() {
|
|
|
console.log('success');
|
|
|
},
|
|
@@ -156,7 +154,7 @@
|
|
|
|
|
|
call() {
|
|
|
uni.makePhoneCall({
|
|
|
- phoneNumber: this.orderData.MobilePhone
|
|
|
+ phoneNumber: this.orderData.billsheet.MobilePhone
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -166,11 +164,11 @@
|
|
|
title: '加载中'
|
|
|
});
|
|
|
|
|
|
- this.$http('worldKeepCar/keepCarMy/queryMiNiAppTSheetDetail', {
|
|
|
- lat: this.location.lat,
|
|
|
- lng: this.location.lng,
|
|
|
+ this.$http('openweiXinCardInfoController/queryConsumptionDetail', {
|
|
|
+ // lat: this.location.lat,
|
|
|
+ // lng: this.location.lng,
|
|
|
id: this.id,
|
|
|
- }, 'GET').then(res => {
|
|
|
+ }, 'POST').then(res => {
|
|
|
uni.hideLoading();
|
|
|
this.orderData = res.data;
|
|
|
|
|
@@ -274,13 +272,14 @@
|
|
|
.shopName {
|
|
|
font-size: 30rpx;
|
|
|
font-weight: bold;
|
|
|
- color: #3C3C3C;
|
|
|
+ color: #3C3C3C;
|
|
|
+ line-height: 42rpx;
|
|
|
}
|
|
|
|
|
|
.Address {
|
|
|
color: #999999;
|
|
|
font-size: 24rpx;
|
|
|
- padding-top: 10rpx;
|
|
|
+ margin-top: 10rpx;
|
|
|
}
|
|
|
|
|
|
.shopRihgtTxt {
|
|
@@ -290,7 +289,7 @@
|
|
|
}
|
|
|
|
|
|
.shopRightBox {
|
|
|
- padding-top: 30rpx;
|
|
|
+
|
|
|
padding-left: 28rpx;
|
|
|
}
|
|
|
|
|
@@ -397,8 +396,8 @@
|
|
|
|
|
|
.detailedLine {
|
|
|
display: flex;
|
|
|
- padding-left: 20rpx;
|
|
|
- padding-top: 40rpx;
|
|
|
+ padding: 20rpx 20rpx 0rpx;
|
|
|
+ justify-content: space-between;
|
|
|
}
|
|
|
|
|
|
.detailedImg {
|
|
@@ -407,18 +406,17 @@
|
|
|
border-radius: 10rpx;
|
|
|
}
|
|
|
|
|
|
- .detailedCont {
|
|
|
- padding-left: 20rpx;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
.detailedName {
|
|
|
font-size: 26rpx;
|
|
|
color: #3C3C3C;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ span{
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
|
|
|
.goodscost {
|
|
|
width: 702rpx;
|