EquityItem.wxml
3.33 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
79
80
81
82
83
84
85
<view class="item {{data.status == 1?'':'padding-bottom'}}" bindtap="jumpDetail">
<view class="status status-{{data.status}}">{{statusEnum[data.status]}}</view>
<view class="top flex">
<view class="icon">
<gl-image webp src="/equity/{{data.customerInfo.customerSex == 2 ?'woman-default-avatar' : 'default-avatar'}}.png"></gl-image>
</view>
<view class="info">
<view class="name flex">
{{data.customerInfo.customerName}}
<block wx:if="{{data.changeType > 0}}">
<block wx:if="{{data.changeType == 1}}">
<view class="tips new">New</view>
</block>
<block wx:else>
<view class="tips">更新</view>
</block>
</block>
</view>
<view class="phone">{{data.customerInfo.customerPhone}}</view>
</view>
</view>
<view class="info-box">
<block wx:for="{{infoObject}}" wx:key="index">
<block wx:if="{{data.customerInfo[item.key]}}">
<view class="info-item flex">
<view class="label">{{item.label}}</view>
<view class="value">
<block wx:if="{{item.key == 'carSeriesName'}}">
{{data.customerInfo.carBrand}}-{{data.customerInfo.carChildsBrandName}}-{{data.customerInfo.carSeriesName}}
</block>
<block wx:else>
{{data.customerInfo[item.key]}}
</block>
</view>
</view>
</block>
</block>
<block wx:for="{{sceneTypeStatusMap}}" wx:key="index">
<view class="info-item flex">
<view class="label">{{item.label}}</view>
<view class="value">{{statusEnum[data.sceneTypeStatusMap[item.key]]}}</view>
</view>
</block>
</view>
<block wx:if="{{data.vqOrders.length}}">
<block wx:for="{{data.vqOrders}}" wx:key="index">
<view class="package-box">
<view class="package-title flex">
订单{{index + 1}}
<view class="order-status order-status-{{item.orderStatus}}">{{orderStatusEnum[item.orderStatus]}}</view>
</view>
<goods-list list="{{item.vdQuotationGoodsList}}" goodsNameKey="goodsName" goodsPriceKey="goodsPrice"></goods-list>
<view class="package-info">
<block wx:for="{{orderObj}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<block wx:if="{{item[i.key]}}">
<view class="package-item flex">
<view class="label">{{i.label}}</view>
<view class="value {{i.key == 'quotedPriceUpdate'?'price':''}}">
{{i.unit||''}}{{item[i.key] || ''}}
</view>
</view>
</block>
</block>
</view>
</view>
</block>
</block>
<block wx:if="{{data.status == 1}}">
<view class="bottom flex">
<view class="btn flex" catchtap="jump">新增工单</view>
</view>
</block>
</view>
<modal id="modal2" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="modalbox {{ selectType == 1?'act': '' }} com" bindtap="selectType" data-type="1">
<gl-image class="icon" src="/miniProgram/order1.png"></gl-image>
新增工单
</view>
<view class="modalbox cancle {{ selectType == 2?'act': '' }}" bindtap="selectType" data-type="2">
<gl-image class="icon" src="/miniProgram/order3.png"></gl-image>
战败下单
</view>
</view>
</modal>