resultValueEntry.axml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <view>
  2. <view class="flex-box-ce header">
  3. <view class="{{tabIndex==1? 'tabs':''}} flex-1" onTap="tabAction" data-index="1">未录入
  4. <text a:if="{{age.num1}}" class="red">({{age.num1}})</text></view>
  5. <view class="{{tabIndex==2? 'tabs':''}} flex-1" onTap="tabAction" data-index="2">已录入
  6. <text a:if="{{age.num2}}" class="red">({{age.num2}})</text></view>
  7. </view>
  8. <view class="main">
  9. <scroll-view class="scroll" a:if="{{rvenotList.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  10. <view a:for="{{rvenotList}}" style="margin: 0.2rem 0px;padding: 0.24rem ;background-color: rgb(255, 255, 255);">
  11. <view class="flex-box-ce" style="border-bottom: 1px dashed rgb(243, 243, 243);padding-bottom: 0.25rem;">
  12. <img-box name="{{item.userName}}" id="{{item.userId}}" height="70rpx" width="70rpx" fSize="24rpx"></img-box>
  13. <view style="padding:0 10rpx">{{item.userName}}</view>
  14. <view class="fontColorB" style="font-size:0.26rem;">
  15. <text a:for="{{item.dept_list}}" a:for-index="e">{{item.name}}
  16. <text a:if="{{item.dept_list.length - e > 1}}">,</text></text>
  17. </view>
  18. </view>
  19. <view class="title">{{ item.name }}</view>
  20. <view a:for="{{item.dil}}" a:for-item="arr" a:if="{{arr.prop}}" style="margin-top:10rpx">
  21. <text style="color:#929292;font-size:.27rem;">{{ arr.lab }}:</text>
  22. <text style="font-size:.28rem;">{{ arr.prop }}</text>
  23. </view>
  24. <view a:if="{{tabIndex == 1}}">
  25. <input class="flex-1 input" onInput="bindTextAreaBlur" data-index="{{index}}" data-item="{{item}}" value="{{item.result}}" placeholder="请输入结果值" />
  26. <view class="page-section-demo">
  27. <button size="mini" type="primary" catchTap="openImg" style="margin-bottom:20rpx" data-index="{{index}}" data-item="{{item}}">+附件</button>
  28. <view class="images flex-box-ce" a:for="{{item.result_file.append}}" a:for-item="e" a:for-index="index2" a:key="{{e.fileId}}">
  29. <view class="blue font-flex-word" catchTap="showImg" data-item="{{e}}">{{e.fileName}}</view>
  30. <view catchTap="deleteImg" data-index="{{index}}" data-indexT="{{index2}}" data-item="{{item.result_file.append}}" style="padding:14rpx 20rpx">
  31. <icon type="clear" size="16" />
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view a:else>
  37. <text style="color:#929292;font-size:.27rem;">结果值:</text>
  38. <text style="font-size:.28rem;">{{ item.result }} {{ item.unit }}</text>
  39. <view class="images flex-box-ce" a:for="{{item.result_file.append}}" a:for-item="e" a:for-index="index2" a:key="{{e.fileId}}">
  40. <view class="blue font-flex-word" catchTap="showImg" data-item="{{e}}">{{e.fileName}}</view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="noDatas">没有更多咯</view>
  45. </scroll-view>
  46. <no-data a:if="{{rvenotList.length==0}}"></no-data>
  47. </view>
  48. <view class="footer" a:if="{{tabIndex==1}}">
  49. <view class="footfoot flex-box-ce">
  50. <view class="footcol flex-1" data-index='1' catchTap="save">
  51. <text class="iconfont icon-wj-jlb"></text>
  52. <view>暂存</view>
  53. </view>
  54. <view class="footBut flex-box-ce">
  55. <!--<view class="footcolButno" catchTap="scorerveno">取消</view> -->
  56. <view class="footcolButok" data-index='0' catchTap="save">提交</view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>