fifth.wxml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <!-- 套餐编码搜索 -->
  2. <van-overlay show="{{show}}" z-index='999'>
  3. <view class="show_box">
  4. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchValue }}" placeholder="请输入搜索关键词" bind:search="onSearch"
  5. />
  6. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancel">取消</view>
  7. </view>
  8. <scroll-view style="height: 88%;" scroll-y="true">
  9. <view wx:for="{{searchList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChoose">
  10. {{item.code}}
  11. </view>
  12. </scroll-view>
  13. </view>
  14. </van-overlay>
  15. <!-- 套餐名称搜索 -->
  16. <van-overlay show="{{t_show}}" z-index='999'>
  17. <view class="show_box">
  18. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchTValue }}" placeholder="请输入搜索关键词" bind:search="onSearchT"
  19. />
  20. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelT">取消</view>
  21. </view>
  22. <scroll-view style="height: 88%;" scroll-y="true">
  23. <view wx:for="{{searchTList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChoose">
  24. {{item.title}}
  25. </view>
  26. </scroll-view>
  27. </view>
  28. </van-overlay>
  29. <!-- 施工部位搜索 -->
  30. <van-overlay show="{{d_show}}" z-index='999'>
  31. <view class="show_box">
  32. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchDValue }}" placeholder="请输入搜索关键词" bind:search="onSearchD"
  33. />
  34. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelD">取消</view>
  35. </view>
  36. <scroll-view style="height: 88%;" scroll-y="true">
  37. <view wx:for="{{searchDList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseD">
  38. {{item.title}}
  39. </view>
  40. </scroll-view>
  41. </view>
  42. </van-overlay>
  43. <!-- 卷膜分类搜索 -->
  44. <van-overlay show="{{b_show}}" z-index='999'>
  45. <view class="show_box">
  46. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchBValue }}" placeholder="请输入搜索关键词" bind:search="onSearchB"
  47. />
  48. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelB">取消</view>
  49. </view>
  50. <scroll-view style="height: 88%;" scroll-y="true">
  51. <view wx:for="{{searchBList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseB">
  52. {{item.title}}
  53. </view>
  54. </scroll-view>
  55. </view>
  56. </van-overlay>
  57. <!-- 卷膜型号搜索 -->
  58. <van-overlay show="{{r_show}}" z-index='999'>
  59. <view class="show_box">
  60. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchRValue }}" placeholder="请输入搜索关键词" bind:search="onSearchR"
  61. />
  62. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelR">取消</view>
  63. </view>
  64. <scroll-view style="height: 88%;" scroll-y="true">
  65. <view wx:for="{{searchRList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseR">
  66. {{item.title}}
  67. </view>
  68. </scroll-view>
  69. </view>
  70. </van-overlay>
  71. <!-- 卷膜编码搜索 -->
  72. <van-overlay show="{{n_show}}" z-index='999'>
  73. <view class="show_box">
  74. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchNValue }}" placeholder="请输入搜索关键词" bind:search="onSearchN"
  75. />
  76. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelN">取消</view>
  77. </view>
  78. <scroll-view style="height: 88%;" scroll-y="true">
  79. <view wx:for="{{searchNList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseN">
  80. {{item.roll_film_number}}
  81. </view>
  82. </scroll-view>
  83. </view>
  84. </van-overlay>
  85. <view wx:if="{{showCamera}}" style="width: 100%; height: 100%;" class="cation">
  86. <camera device-position="back" flash="auto" binderror="error" style="width: 100%; height: 70%;margin:40rpx auto"></camera>
  87. <view class="take_content">
  88. <view class="take" bindtap="takePhoto">
  89. <image src="../../../images/take.png" mode="widthFix" style="width: 40pt;"/>
  90. </view>
  91. </view>
  92. </view>
  93. <view wx:else>
  94. <image src="../../../images/head.png" style="width:100%;height: 250rpx;z-index:-1"></image>
  95. <view class="title">5.选择产品套餐</view>
  96. <view style="height:60vh;overflow: auto;">
  97. <view wx:for="{{chooseList}}" wx:for-item='item' wx:for-index='index' class="chooseItem" wx:key="index">
  98. <view wx:if="{{set_status!='is_detail'}}" class="btn1 add" data-index="{{index}}" bindtap="handleAdd">+</view>
  99. <view wx:if="{{set_status!='is_detail'}}" class="btn1 delete" data-index="{{index}}" bindtap="handleDelete">X</view>
  100. <van-cell-group>
  101. <van-field
  102. label='套餐名称'
  103. value="{{ item.title }}"
  104. placeholder="请选择"
  105. required
  106. readonly
  107. use-button-slot
  108. >
  109. <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" data-index="{{index}}" bindtap="onChooseT">
  110. 选择
  111. </van-button>
  112. </van-field>
  113. <van-field
  114. label='套餐编码'
  115. value="{{ item.code }}"
  116. placeholder="请选择"
  117. required
  118. readonly
  119. use-button-slot
  120. >
  121. <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" data-index="{{index}}" bindtap="onChoose">
  122. 选择
  123. </van-button>
  124. </van-field>
  125. <van-field
  126. label='数量'
  127. value="{{ item.number }}"
  128. placeholder="请输入"
  129. required
  130. data-index="{{index}}"
  131. bind:change='handleChangeNumber'
  132. >
  133. </van-field>
  134. </van-cell-group>
  135. <view wx:for="{{item.detail}}" wx:for-item="_item" wx:for-index='_index' wx:key="_index" class="item_in">
  136. <view wx:if="{{set_status!='is_detail'}}" class="btn1 add1" data-index="{{index}}" data-itemIndex="{{_index}}" bindtap="handleAddItem">+</view>
  137. <view wx:if="{{set_status!='is_detail'}}" class="btn1 delete1" data-index="{{index}}" data-itemIndex="{{_index}}" bindtap="handleDeleteItem">X</view>
  138. <van-cell-group>
  139. <van-field
  140. label='施工部位'
  141. value="{{_item.car_depart_name}}"
  142. placeholder="请选择施工部位"
  143. required
  144. readonly
  145. use-button-slot
  146. >
  147. <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" data-index="{{index}}" data-itemIndex="{{_index}}" bindtap="onChooseCarDepart">
  148. 选择
  149. </van-button>
  150. </van-field>
  151. <van-field
  152. wx:if="{{!special_type}}"
  153. label='卷膜分类'
  154. value="{{ _item.basic_roll_film_name }}"
  155. placeholder="请选择卷膜分类"
  156. required
  157. readonly
  158. use-button-slot
  159. >
  160. <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" bindtap="onChooseBasicFilm" data-index="{{index}}" data-itemIndex="{{_index}}">
  161. 选择
  162. </van-button>
  163. </van-field>
  164. <van-field
  165. label='卷膜型号'
  166. wx:if="{{!special_type}}"
  167. value="{{ _item.roll_film_name }}"
  168. placeholder="请选择卷膜型号"
  169. required
  170. readonly
  171. use-button-slot
  172. >
  173. <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" bindtap="onChooseRollFilm" data-index="{{index}}" data-itemIndex="{{_index}}" data-item="{{_item}}">
  174. 选择
  175. </van-button>
  176. </van-field>
  177. <van-field
  178. label='卷膜编码'
  179. wx:if="{{!special_type}}"
  180. value="{{ _item.roll_film_number }}"
  181. placeholder="请选择卷膜编码"
  182. required
  183. readonly
  184. use-button-slot
  185. >
  186. <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" bindtap="scanBarcode" data-index="{{index}}" data-itemIndex="{{_index}}" style="margin-right: 10rpx;">
  187. 扫码
  188. </van-button>
  189. <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" bindtap="onChooseNumber" data-index="{{index}}" data-itemIndex="{{_index}}" data-item="{{_item}}">
  190. 选择
  191. </van-button>
  192. </van-field>
  193. <van-field
  194. label='耗用米数'
  195. wx:if="{{!special_type}}"
  196. value="{{ _item.expend_meters }}"
  197. placeholder="默认带出"
  198. required
  199. readonly
  200. >
  201. </van-field>
  202. </van-cell-group>
  203. <view class="image_item" bindtap="handleOpenCamera" data-index='{{index}}' data-itemIndex="{{_index}}" wx:if="{{showImg}}" style="position: relative;">
  204. <view wx:if="{{_item.src&&set_status!=='is_detail'?true:false}}" style="position: absolute;right: 0;top: 0;" catch:tap="handleDelPic" data-index="{{index}}" data-itemIndex="{{_index}}"><van-icon name="close" color='red' size='30'/></view>
  205. <image wx:if="{{_item.src?true:false}}" style="width: 100%;height: 100%;" src="{{set_status?_item.show_url:_item.src}}"></image>
  206. <image wx:else style="width: 100%;height: 100%;" src="https://zh.qingyaokeji.com/3.jpg"></image>
  207. </view>
  208. </view>
  209. </view>
  210. </view>
  211. <view class="btn">
  212. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleReturn"><text class="font_item">上一步</text></van-button>
  213. <van-button disabled='{{chooseList.length!=0?false:true}}' color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleNext"> <text class="font_item">下一步</text></van-button>
  214. </view>
  215. </view>