serviceSupply.wxml 2.4 KB

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