createAConstructionOrder.wxml
6.93 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!--tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.wxml-->
<!-- 确认施工 -->
<wxs src="../../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- wx:if="{{flag}}" -->
<block>
<view>
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" scroll activeIndex="{{ tabIndex }}" />
</view>
<scroll-view scroll-y style="height: 80vh;" enhanced="{{ true }}" show-scrollbar="{{ false }}">
<view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="box">
<view class="orderBox">
<gl-cell border="{{ false }}" valueAlign="right" label="选择商品并创建此施工单" labelWidth="var(--fontSize330)" haveArrow bindclick="relateGoods" data-show-name="selesBox" placeholder="请选择" disabled="{{ confirmInfo.relateGoodsDisabled }}"></gl-cell>
<view class="goodsListCon" wx:if="{{ confirmInfo.subOrderList && confirmInfo.subOrderList.length }}">
<view class="goods" wx:for="{{ confirmInfo.subOrderList }}" wx:key="index">
<view class="left">
<view class="goods-text">
<view class="name">
<view class="dot"></view>
<view class="text">{{item.upgradeGoodsName}}</view>
</view>
<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{item}}">库存{{item.stock===0||item.stock?item.stock:'-'}}</view>
<!-- <view class="inventory">库存1020.00米/件</view> -->
</view>
</view>
<view class="count">x{{item.number}}</view>
</view>
</view>
</view>
</view>
<view class="servies-content box">
<view class="title">选择技师</view>
<gl-cell border valueAlign="right" label="主技师" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" placeholder="请选择">
<block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide">
{{mainSelected[0] && mainSelected[0].staffName}}
<text class="text" wx:if="{{ deputySelected.length && mainSelected[0] && mainSelected[0].shareRatio !== '' && mainSelected[0].shareRatio !== undefined && mainSelected[0].shareRatio !== null }}">{{mainSelected[0].shareRatio}}%</text>
</view>
</block>
</gl-cell>
<gl-cell border valueAlign="right" label="副手技师" labelWidth="var(--fontSize140)" haveArrow bindclick="showPopup" data-type="deputy" placeholder="请选择">
<block wx:if="{{ deputySelected.length }}">
<view class="techic-value text-hide">
<view class="text-hide" wx:if="{{ deputySelected[0] }}">
{{deputySelected[0].staffName}}
<text class="text" wx:if="{{ deputySelected[0].shareRatio !== '' && deputySelected[0].shareRatio !== undefined && deputySelected[0].shareRatio !== null }}">{{deputySelected[0].shareRatio}}%</text>
</view>
<view class="deputy-value text-hide" wx:if="{{ deputySelected[1] }}">
· {{deputySelected[1].staffName}}
<text class="text" wx:if="{{ deputySelected[1].shareRatio !== '' && deputySelected[1].shareRatio !== undefined && deputySelected[1].shareRatio !== null }}">{{deputySelected[1].shareRatio}}%</text>
</view>
</view>
<!-- {{filter.techicianRatio(deputySelected)}}</view> -->
</block>
</gl-cell>
</view>
<view class="servies-content box">
<view class="title">
选择服务项目
<view class="check-tip">
共选择:
<text>{{filter.activeNum(servicesList, 'detailList')}}</text>
个
</view>
</view>
<view class="content">
<block wx:for="{{ servicesList }}" wx:key="index">
<view class="content-box">
<view class="item-top" bindtap="handleShowItem" data-index="{{ index }}">
<view class="left">
<image src="{{ IMG_URL }}collapse_icon.png" class="{{ !item.showItemFlag ? 'rotate-180' : '' }}" mode="" />
<text calss="name">{{item.title}}</text>
</view>
<view class="check-tip">
已选择:
<text>{{filter.activeNum(item.detailList)}}</text>
个
</view>
</view>
<block wx:for="{{ item.detailList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view hidden="{{ !item.showItemFlag }}" class="mt">
<view class="item-box {{ i.active?'active':'' }}">
<view class="message">
<view class="cellBox">
<view class="ser-name text-hide">{{i.serviceItemsName}}</view>
<view class="other">
<text>用料标准{{i.materialStandard || '-'}}米/件</text>
<text class="split">|</text>
<text>施工标准{{i.timeStandard || '-'}}min</text>
</view>
</view>
<view class="count-box" wx:if="{{ i.active }}">
<input type="number" class="count-input" value="{{ i.useNum }}" maxlength="2" bindblur="handleCountBlur" bindinput="handleCountInput" data-target="{{ i }}" />
<text>个/件</text>
</view>
</view>
<view class="check" bindtap="handleChecked" data-target="{{ i }}">
<block wx:if="{{ i.active }}">
<image src="{{ IMG_URL }}check.png" mode="" />
</block>
<block wx:else>
<view class="arc"></view>
</block>
</view>
</view>
</view>
</block>
</view>
</block>
</view>
</view>
</view>
</scroll-view>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="tipsadd" wx:if="{{ showTips }}">
<gl-image class="tipsIcon" webp src="/miniProgram/tipsIcon.png"></gl-image>
<view class="contentText">
<view class="tradeNoCon">
<view>需要将客户已选的商品全部生成施工单</view>
</view>
</view>
</view>
<view class="btns-con">
<view class="save text-center" bindtap="backup">上一步</view>
<view class="confirm text-center" bindtap="submitConstructionOrder">提交施工单</view>
</view>
</view>
</block>
<relate-goods-popup show="{{ relateGoodsVisable }}" goodsList="{{ goodsList }}" bindconfirm="handelRelateGoodsConfirm" selected="{{ editGoodsList }}" bindcancel="handelRelateGoodsCancel" baseConfigData="{{ baseConfigData }}" bind:openInventory="openInventory"></relate-goods-popup>
<technician-select-popup show="{{ artificerSelectPopup }}" title="选择技师" copyArtificerList="{{ artificerList }}" multiple="{{ technicianMultiple }}" artificerSelectObj="{{ technicianMultiple ? deputySelected : mainSelected }}" disabledSelectObj="{{ technicianMultiple ? mainSelected : deputySelected }}" bindconfirm="changeArtificer" bindcancel="cancelTechnician" deputyFlag="{{ technicianMultiple }}" idKey="uuid" />
<inventory-info show="{{showInventory}}" inventory-data="{{inventoryData}}" title="库存信息" bind:close="onInventoryClose" />