details.wxml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <view class="box">
  2. <view class="title multi-line">{{detailsData.title}}</view>
  3. <view class="time">有效期:{{date.getDate(detailsData.begdate)}} ~ {{date.getDate(detailsData.enddate)}}</view>
  4. <view class="time multi-line" style="margin-top: 10rpx;">提报要求:{{detailsData.notes}}</view>
  5. <view class="title" wx:if="{{detailsData.attinfos.length}}" style="margin-top: 30rpx;">附件列表</view>
  6. <My_accessory list='{{detailsData.attinfos}}' />
  7. </view>
  8. <!-- 提报记录 -->
  9. <view class="box" style="background: none;">
  10. <view class="title multi-line">提报记录</view>
  11. <navigator class="history" url="#" wx:for="{{detailsData.submitedit}}" data-item="{{item}}" bindtap="seeHistory">
  12. <view class="line-1">
  13. {{item.content?item.content:'未填写内容'}}
  14. </view>
  15. <view class="data">
  16. <text>提交时间:{{item.createdate}}</text>
  17. <text>附件数量:{{item.attinfos.length}}</text>
  18. </view>
  19. <view wx:if="{{item.status=='退回'}}" class="back">退回</view>
  20. </navigator>
  21. </view>
  22. <My_empty wx:if="{{!detailsData.submitedit.length}}" />
  23. <!-- 开始提报 -->
  24. <van-popup show="{{ startRecord }}" custom-style="height:75vh;" closeable position="bottom" round bind:close="closeRecord">
  25. <view class="box">
  26. <view class="title multi-line">提报内容</view>
  27. <textarea class="textarea" value="{{content}}" placeholder-style="font-size: 24rpx;color: #BBBBBB;" placeholder="请输入提报内容" bindinput="textareaInput" />
  28. <view class="title multi-line">提报附件<text>已上传{{submiteditData.attinfos.length}}个</text></view>
  29. <My_accessory list="{{submiteditData.attinfos}}" butType="删除" binddeleteFile="deleteFile" />
  30. <My_upload bind:uploadCallback='getFile'>
  31. <navigator class="uploadStyle" url="#">
  32. <text class="iconfont icon-a-tuiguangsucaishangchuan1" />
  33. 上传附件
  34. </navigator>
  35. </My_upload>
  36. </view>
  37. <view style="height: 130rpx;" />
  38. <view class="footer">
  39. <van-button round custom-class='button' loading="{{loading}}" loading-text="提交中..." bindtap="submit">提交</van-button>
  40. </view>
  41. </van-popup>
  42. <!-- 提报详情 -->
  43. <van-popup show="{{ CheckTheRecord }}" custom-style="height:75vh;" closeable position="bottom" round bind:close="recordClose">
  44. <view class="box">
  45. <view class="title multi-line">提报内容</view>
  46. <view class="history" style="margin-bottom: 30rpx;">
  47. {{recordL.content}}
  48. </view>
  49. <view class="title multi-line" wx:if="{{recordL.attinfos.length}}">提报附件<text>已上传{{recordL.attinfos.length}}个</text></view>
  50. <My_accessory list='{{recordL.attinfos}}' />
  51. <block wx:if="{{recordL.status=='退回'}}">
  52. <view class="footer" style="margin-left: -30rpx;">
  53. <van-button round custom-class='button' bindtap="reedit">重新编辑</van-button>
  54. </view>
  55. <view style="height: 160rpx;" />
  56. </block>
  57. </view>
  58. </van-popup>
  59. <!-- 底部按钮 -->
  60. <view class="footer" wx:if="{{!done}}">
  61. <van-button round custom-class='button' bindtap="establish">开始提报</van-button>
  62. </view>
  63. <view style="height: 130rpx;" />
  64. <wxs module="date">
  65. module.exports.getDate = function (time) {
  66. return time ? time.split(" ")[0] : ""
  67. }
  68. </wxs>