serviceSupply.wxml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <wxs src='../../utils/formatFuc.wxs' module="utils"></wxs>
  2. <view class="supply-top">
  3. <view class="supply-item" wx:for="{{supplyList}}" wx:key="index">
  4. <view class="item-main">
  5. <view class="row-type" bindtap="showTypePicker" data-index="{{index}}">
  6. <view class="type-title">
  7. <text>*</text>补差项 {{index+1}}
  8. </view>
  9. <view class="type-content">
  10. {{item.itemName}}
  11. </view>
  12. <van-icon name="arrow" size="20px" color="#999"/>
  13. </view>
  14. <view class="row-num">
  15. <view class="num-title">
  16. <text>*</text>选择份数
  17. </view>
  18. <view class="num-block">
  19. <view class="minus-btn" bindtap="minusNum" data-index="{{index}}" data-price="{{item.price}}" data-num="{{item.number}}">-</view>
  20. <view class="current-num">{{item.number}}</view>
  21. <view class="add-btn" data-price="{{item.price}}" bindtap="addNum" data-index="{{index}}" data-num="{{item.number}}">+</view>
  22. </view>
  23. </view>
  24. <view class="row-amount">
  25. <view>补差项金额</view>
  26. <view>¥ {{item.difTotalPrice}}元</view>
  27. </view>
  28. </view>
  29. <view class="item-operate-special" wx:if="{{supplyList.length==1}}">
  30. <view class="disable-item">
  31. 删除补差项</view>
  32. <view class="add-item" bindtap="addItem">
  33. 添加补差项
  34. </view>
  35. </view>
  36. <view class="item-operate" wx:if="{{supplyList.length>1}}">
  37. <view class="del-item" bindtap="delItem" data-index="{{index}}">
  38. 删除补差项</view>
  39. </view>
  40. </view>
  41. <view class="add-item" wx:if="{{supplyList.length>1}}" bindtap="addItem">
  42. 添加补差项
  43. </view>
  44. </view>
  45. <view class="supply-bottom">
  46. <view class="total-amount">
  47. <view class="title">总计补差金额</view>
  48. <view> ¥ <text>{{totalAmount}}</text> 元</view>
  49. </view>
  50. <view class="order-button" bindtap="createOrder">生成支付订单</view>
  51. </view>
  52. <van-popup show="{{showPicker}}" position="bottom">
  53. <van-picker show-toolbar columns="{{columns}}"
  54. title="请选择补差项"
  55. bind:cancel="pickerCancel" bind:confirm="pickerConfirm"
  56. />
  57. </van-popup>