lin.wxml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.title}}
  11. </view>
  12. </scroll-view>
  13. </view>
  14. </van-overlay>
  15. <!-- 选择卷膜代码 -->
  16. <van-overlay show="{{c_show}}" z-index='999'>
  17. <view class="show_box">
  18. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchCValue }}" placeholder="请输入搜索关键词" bind:search="onSearchC"
  19. />
  20. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelC">取消</view>
  21. </view>
  22. <scroll-view style="height: 88%;" scroll-y="true">
  23. <view wx:for="{{searchCList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseC">
  24. {{item.code}}
  25. </view>
  26. </scroll-view>
  27. </view>
  28. </van-overlay>
  29. <!-- 选择卷膜型号 -->
  30. <van-overlay show="{{r_show}}" z-index='999'>
  31. <view class="show_box">
  32. <view class="show_title"> <van-search style="width: 85%;" value="{{ searchCValue }}" placeholder="请输入搜索关键词" bind:search="onSearchR"
  33. />
  34. <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelC">取消</view>
  35. </view>
  36. <scroll-view style="height: 88%;" scroll-y="true">
  37. <view wx:for="{{searchCList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseC">
  38. {{item.title}}
  39. </view>
  40. </scroll-view>
  41. </view>
  42. </van-overlay>
  43. <image src="../../../images/head.png" style="width:100%;height: 250rpx;z-index:-1"></image>
  44. <view class="title">领料单申领区域</view>
  45. <view wx:for="{{productList}}" wx:for-item="item" wx:for-index='index' wx:key="index" class="item_in">
  46. <view class="btn1 add1" data-index="{{index}}" bindtap="handleAddItem" wx:if="{{set_status!='is_detail'&&apply_status==0}}">+</view>
  47. <view class="btn1 delete1" data-index="{{index}}" bindtap="handleDeleteItem" wx:if="{{set_status!='is_detail'&&apply_status==0}}">X</view>
  48. <view class="item_content">
  49. <van-cell-group>
  50. <van-field
  51. label='卷膜分类'
  52. title-width='4.8rem'
  53. value="{{ item.b_r_f_name }}"
  54. placeholder="请选择"
  55. clearable
  56. required
  57. readonly
  58. use-button-slot
  59. >
  60. <van-button wx:if="{{set_status!='is_detail'&&apply_status==0}}" slot="button" size="small" type="primary" bindtap="onChoose" data-index="{{index}}">
  61. 选择
  62. </van-button>
  63. </van-field>
  64. <van-field
  65. label='卷膜代码'
  66. title-width='4.8rem'
  67. value="{{ item.code }}"
  68. placeholder="请选择"
  69. clearable
  70. readonly
  71. required
  72. use-button-slot
  73. >
  74. <van-button wx:if="{{set_status!='is_detail'&&apply_status==0}}" slot="button" size="small" type="primary" bindtap="onChooseC" data-index="{{index}}">
  75. 选择
  76. </van-button>
  77. </van-field>
  78. <van-field
  79. label='卷膜型号'
  80. title-width='4.8rem'
  81. value="{{ item.title }}"
  82. placeholder="请选择"
  83. clearable
  84. required
  85. readonly
  86. use-button-slot
  87. >
  88. <van-button wx:if="{{set_status!='is_detail'&&apply_status==0}}" slot="button" size="small" type="primary" bindtap="onChooseR" data-index="{{index}}">
  89. 选择
  90. </van-button>
  91. </van-field>
  92. <van-field
  93. label='申领米数'
  94. title-width='4.8rem'
  95. value="{{ item.apply_number }}"
  96. placeholder="请输入"
  97. clearable
  98. required
  99. readonly="{{set_status=='is_detail'||apply_status!=0}}"
  100. data-index="{{index}}"
  101. bind:change='handleChangeNumber'
  102. >
  103. </van-field>
  104. <van-field
  105. label='备注'
  106. title-width='4.8rem'
  107. value="{{ item.mark }}"
  108. placeholder="请输入"
  109. clearable
  110. autosize
  111. readonly="{{set_status=='is_detail'||apply_status!=0}}"
  112. type='textarea'
  113. data-index="{{index}}"
  114. bind:change="onChangeMark"
  115. >
  116. </van-field>
  117. </van-cell-group>
  118. </view>
  119. </view>
  120. <view class="btn">
  121. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleReturn">
  122. <text class="font_item">上一步</text>
  123. </van-button>
  124. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleBack" wx:if="{{set_status?true:false}}"> <text class="font_item">下一步</text></van-button>
  125. <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleNext" wx:else> <text class="font_item">提交</text></van-button>
  126. </view>