orderRatingPopup.wxml
4.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!-- components/orderSwitchPopup/orderSwitchPopup.wxml -->
<wxs src="../../../utils/permission.wxs" module="perm" />
<wxs src="../../index.wxs" module="filter" />
<view wx:if="{{ flag }}" class="container" style="">
<!-- bindtap='_close' 取消遮光层关闭事件 -->
<view class="wrap {{ wrapAnimate }}" style="background:rgba(0,0,0,{{ bgOpacity }});" />
<view class="popup-container {{ popupAnimate }}">
<view class="v_title">
<view class="wx-popup-title">{{title}}</view>
<image bindtap="_close" src="../../images/order-close.png" mode="widthFix" class="btn-colse" wx:if="{{ isShowClose }}" />
</view>
<view class="wx-popup-con">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{ false }}" refresher-threshold="104" style="height:100%;">
<view class="signature">
<image src="{{ orderInfo.electronicSignature }}" binderror="" bindload="" />
</view>
<!-- <view class="customerPhotos">
<image
class="customerPhotosItem"
wx:for="{{orderInfo.customerPhotos}}"
src="{{item.customerPhoto}}"
wx:key="index"
binderror=""
bindload="" />
</view> -->
<block wx:for="{{ orderInfo.subOrderList }}" wx:key="index" wx:for-item="imgItem" wx:for-index="imgIndex">
<view class="box">
<view class="technicianName" wx:if="{{imgItem.technicianName}}">
<view class="name">{{imgItem.technicianName}}</view>
<view class="icon">技师</view>
<view class="select_box" wx:if="{{ perm.hasPermission.canSelectMultiStore(userInfo) }}">
<view class="select" catchtap="selectTap" data-imgindex="{{imgIndex}}">
<view class="select_text">{{imgItem.approveStatus == null? '审批':imgItem.approveStatus == 'Y'?'通过':'不通过'}}</view>
<image class="select_img {{ showSelect && selectIndex == imgIndex&&'select_img_rotate' }}" src="{{ IMG_URL }}images/arrow_blue.png"></image>
</view>
<view class="option_box" wx:if="{{ showSelect && selectIndex == imgIndex }}">
<view class="option {{ imgItem.approveStatus =='Y'&& index == 0 ? 'active' : ''}} {{ imgItem.approveStatus =='N'&& index == 1 ? 'active' : '' }}" wx:for="{{ searchSelectData }}" wx:key="this" data-index="{{ index }}" data-subindex="{{ imgIndex }}" data-sub="{{ imgItem.subOrderCode }}" catchtap="optionTap">{{item}}</view>
</view>
<view class="mask_class" wx:if="{{ showSelect }}" bindtap="closeSelect"></view>
</view>
<view class="status" wx:else>{{imgItem.approveStatus == null? '审批':imgItem.approveStatus == 'Y'?'通过':'不通过'}}</view>
</view>
<view class="title">
<!-- 上传客户合照或车辆照片 -->
<text class="goodsName"> {{filter.replaceItemText(imgItem.upgradeGoodsAlias) ||filter.replaceItemText(imgItem.upgradeGoodsName) || ''}}</text>
</view>
<view class="flex">
<view class="tire-block" wx:for="{{ imgItem.constructionImgList || [] }}" wx:key="index">
<view class="tire-img-box" catchtap="handlePreviewImg" data-item="{{ item }}" data-imgindex="{{ imgIndex }}">
<image wx:if="{{ ( perm.hasPermission.isTechnician(userInfo) ||userInfo.userType==2) }}" class="icon-delete" catchtap="handleDelete" data-index="{{ index }}" data-imgindex="{{ imgIndex }}" src="/tabWorkOrder/images/icon-delete.png" />
<image class="tire-img" src="{{ item }}" />
</view>
</view>
<view class="tire-block" bindtap="handleUpload" data-index="{{ imgIndex }}" wx:if="{{ (!imgItem.constructionImgList || imgItem.constructionImgList.length<9 )&&( perm.hasPermission.isTechnician(userInfo) ||userInfo.userType==2)}}">
<view>
<image class="icon-plus" src="{{ IMG_URL }}camera_icon.png" />
</view>
</view>
</view>
</view>
</block>
<view class="star-box">
<view class="label">评分:</view>
<block wx:for="{{ 5 }}" wx:key="index">
<view class="star" bindtap="setStar" data-index="{{ index }}">
<image src="{{ index < orderInfo.rating?'/tabWorkOrder/images/star-active.png':'/tabWorkOrder/images/star.png' }}" />
</view>
</block>
</view>
<view class="tags">
<block wx:for="{{ tags }}" wx:key="index">
<view wx:if="{{ item.checked }}" class="tag {{ item.checked?'act':'' }}" bindtap="chooseTag" data-index="{{ index }}">{{item.name}}</view>
</block>
</view>
</scroll-view>
</view>
</view>
</view>