Browse Source

Merge branch 'dev' into ats

twt 11 months ago
parent
commit
dc6ce3abed
3 changed files with 12 additions and 8 deletions
  1. 7 7
      pages/user/historyDetail.vue
  2. 1 1
      pages/user/historySpend.vue
  3. 4 0
      utils/common.js

+ 7 - 7
pages/user/historyDetail.vue

@@ -65,12 +65,12 @@
 						{{orderData.billsheet.NextCareMilage}}公里
 					</view>
 				</view>
-				<view class="goodscostLine" style="font-size: 28rpx;color: #FDC752;" v-if="orderData.billsheet.SheetType==1">
+				<!-- <view class="goodscostLine" style="font-size: 28rpx;color: #FDC752;" v-if="orderData.billsheet.SheetType==1">
 					<view class="informationTxt">建议下次保养时间</view>
 					<view class="goodsCostNum3 " v-if="orderData.billsheet.NextCareDate">
 						{{orderData.billsheet.NextCareDate.slice(0,10)}}
 					</view>
-				</view>
+				</view> -->
 				<view class="baoyangtis">建议下次保养,里程或日期,先到为准</view>
 			
             </view>
@@ -111,11 +111,11 @@
 				</view>
 				<view class="informationLine">
 					<view class="informationTxt">服务顾问</view>
-					<view class="informationNum">{{orderData.billsheet.PickName}}</view>
+					<view class="informationNum" v-if="orderData.billsheet.PickName">{{orderData.billsheet.PickName}}</view>
 				</view>
 				<view class="informationLine">
 					<view class="informationTxt">技师</view>
-					<view class="informationNum">{{orderData.billsheet.workNames}}</view>
+					<view class="informationNum" v-if="orderData.billsheet.workNames">{{orderData.billsheet.workNames}}</view>
 				</view>
 				<!-- <view class="informationLine">
 					<view class="informationTxt">手机号:</view>
@@ -166,11 +166,11 @@
 						  	{{item.AmountMoney?item.AmountMoney:0}}
 						  </view>
 					  </view>
-						<view class="itemWorkHoursBox" v-if="itemWorkHours&&itemWorkHours" :class="{nopb:ItemComment&&item.Comment}">
+						<view class="itemWorkHoursBox" v-if="itemWorkHours||itemPrice" :class="{nopb:ItemComment&&item.Comment}">
 							<view class="itemWorkHours" v-if="itemWorkHours">
 								工时:<span class="SalePrice">{{item.SaleQty}}</span> 
 							</view>
-							<view class="itemPrice" v-if="itemWorkHours">
+							<view class="itemPrice" v-if="itemPrice">
 								单价:<span class="SalePrice">{{item.SalePrice}}</span>
 							</view>
 						</view>
@@ -208,7 +208,7 @@
 							</view>
 							<!-- <view class="qty" v-if="goodsNumber">x{{item.SaleQty}}</view> -->
 						</view>
-						<view class="itemWorkHoursBox" v-if="itemWorkHours&&itemWorkHours" :class="{nopb:GoodsComment&&item.Comment}">
+						<view class="itemWorkHoursBox" v-if="goodsPrice||goodsNumber" :class="{nopb:GoodsComment&&item.Comment}">
 							<view class="itemWorkHours" v-if="goodsNumber">
 								数量:<span class="SalePrice">{{item.SaleQty}}<span v-if="item.Unit">({{item.Unit}})</span> </span> 
 							</view>

+ 1 - 1
pages/user/historySpend.vue

@@ -38,7 +38,7 @@
 				<view class="stateBox"  v-if="item.SheetType == 2">
 					<!-- 0待施工(已保存)1施工中(已派工)2已审核 3已质检 4 已作废 -->
 					<view class="danState"  :class="{danState3:item.PayState == 2}" v-if="item.SheetState < 2 ">未审核</view>
-					<view class="danState"  :class="{danState3:item.PayState == 2}" v-if="item.SheetState == 2">已审核</view>
+					<view class="danState"  :class="{danState2:item.PayState == 2}" v-if="item.SheetState == 2">已审核</view>
 					<view class="danState"  v-if="item.SheetState == 4">已作废</view>
 					<!-- 结算状态 -->
 					<view v-if="item.SheetState == 4">

+ 4 - 0
utils/common.js

@@ -30,10 +30,14 @@ const automaticlogin = function() {
 			  provider: 'weixin',
 			  success: function (loginRes) {
 			    //console.log(loginRes);
+				uni.showLoading({
+					title: '加载中'
+				});
 				request.http('miniApp2/sys/getWxOpenID', {
 				   code:loginRes.code,
 				   unionId:extConfig.unionId
 				  },'GET').then(res => {
+					  uni.hideLoading();
 					  $store.commit('mutationswxOpenData', res.data);
 					  var themeColor= res.data.themeColor
 					   uni.setStorageSync('themeColor',themeColor);