geUseSeal.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <view>
  3. <view>
  4. <hs-show label="申请人" :data="data.formData.apply_user_name"></hs-show>
  5. <hs-show label="部门" :data="data.formData.department" mode="dept"></hs-show>
  6. <hs-show label="使用形式" :data="data.formData.us_a" mode="dict" dictKey="hzl_seal_use_type"></hs-show>
  7. <hs-show label="印章类别" :data="data.formData.us_b" mode="dict" dictKey="seal_type"></hs-show>
  8. <hs-show label="使用地点" :data="data.formData.us_e" mode="dict" dictKey="hzl_seal_use_address"></hs-show>
  9. <hs-show label="用印开始时间" :data="data.formData.us_f_time"></hs-show>
  10. <hs-show label="用印结束时间 " :data="data.formData.us_d_time"></hs-show>
  11. <hs-show label="归还时间" :data="data.formData.us_j_time"></hs-show>
  12. <hs-show label="文件类型" :data="data.formData.so_g" mode="dict" dictKey="hzl_file_type"></hs-show>
  13. <hs-show label="文件名称" :data="data.formData.so_h"></hs-show>
  14. <hs-show label="文件份数" :data="data.formData.so_i"></hs-show>
  15. <view class="desc">
  16. 文件预览图片
  17. </view>
  18. <view class="desc">
  19. <uni-file-picker :value="data.formData.photos" file-mediatype="image" readonly>
  20. </uni-file-picker>
  21. </view>
  22. <hs-show label="申请原因" :data="data.formData.conclusion"></hs-show>
  23. <hs-show label="备注" :data="data.formData.remark"></hs-show>
  24. </view>
  25. <ge :isEnd="1"></ge>
  26. </view>
  27. </template>
  28. <script>
  29. import ge from '../components/ge'
  30. export default {
  31. components: {
  32. ge
  33. },
  34. data() {
  35. return {
  36. data: uni.getStorageSync("approval"),
  37. }
  38. },
  39. mounted() {
  40. this.data.formData.photos = JSON.parse(this.data.formData.photos)
  41. },
  42. methods: {
  43. confirm1(e) {
  44. let that = this;
  45. uni.showModal({
  46. title: "提醒",
  47. content: "确定在当前节点同意并结束吗?",
  48. success(res) {
  49. if (res.confirm) {
  50. that.$httpRequest({
  51. url: '/app/useSealEnd?taskId=' + that.data.id,
  52. method: 'get'
  53. }).then((res) => {
  54. if (res.data.code === 200) {
  55. uni.showModal({
  56. title: "结束成功",
  57. icon: "OK",
  58. showCancel: false,
  59. success() {
  60. uni.navigateBack()
  61. }
  62. })
  63. } else {
  64. uni.showModal({
  65. title: "结束失败",
  66. content: res.msg,
  67. showCancel: false,
  68. success() {
  69. uni.navigateBack()
  70. }
  71. })
  72. }
  73. })
  74. }
  75. }
  76. })
  77. },
  78. }
  79. }
  80. </script>
  81. <style>
  82. .desc {
  83. padding: 10rpx 30rpx;
  84. color: #818181;
  85. }
  86. .content {
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. justify-content: center;
  91. }
  92. .touch {
  93. position: fixed;
  94. right: -5rpx;
  95. bottom: 60rpx;
  96. width: 105rpx;
  97. height: 105rpx;
  98. padding: 5rpx;
  99. background-color: rgb(10, 185, 156);
  100. border-top-left-radius: 50%;
  101. border-bottom-left-radius: 50%;
  102. color: #fff;
  103. font-size: 50rpx;
  104. /* 去除标签点击事件高亮效果 */
  105. -webkit-tap-highlight-color: transparent;
  106. /* 使用transform: translate3d 处理性能高 GUP */
  107. }
  108. </style>