geUseSeal.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. <hs-show label="申请原因" :data="data.formData.conclusion"></hs-show>
  16. <hs-show label="备注" :data="data.formData.remark"></hs-show>
  17. </view>
  18. <ge></ge>
  19. <view class="content" v-if="data.pageType === 1 && data.isEnd === '0'">
  20. <!-- @touchstart="handleStart" @touchmove="handleMove" @touchend="handleEnd" -->
  21. <view :style="{'transform':'translate3d('+0+'px,'+-180+'px,0)'}" class="touch">
  22. <view @click="confirm1">
  23. <view style="margin-left: 25rpx;">
  24. <uni-row>
  25. 同意
  26. </uni-row>
  27. <uni-row>
  28. 结束
  29. </uni-row>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. import ge from '../components/ge'
  38. export default {
  39. components: {
  40. ge
  41. },
  42. data() {
  43. return {
  44. data: uni.getStorageSync("approval"),
  45. }
  46. },
  47. onLoad() {
  48. },
  49. methods: {
  50. confirm1(e) {
  51. let that = this;
  52. uni.showModal({
  53. title: "提醒",
  54. content: "确定在当前节点同意并结束吗?",
  55. success(res) {
  56. if (res.confirm) {
  57. that.$httpRequest({
  58. url: '/app/useSealEnd?taskId=' + that.data.id,
  59. method: 'get'
  60. }).then((res) => {
  61. if (res.data.code === 200) {
  62. uni.showModal({
  63. title: "结束成功",
  64. icon: "OK",
  65. showCancel: false,
  66. success() {
  67. uni.navigateBack()
  68. }
  69. })
  70. } else {
  71. uni.showModal({
  72. title: "结束失败",
  73. content: res.msg,
  74. showCancel: false,
  75. success() {
  76. uni.navigateBack()
  77. }
  78. })
  79. }
  80. })
  81. }
  82. }
  83. })
  84. },
  85. }
  86. }
  87. </script>
  88. <style>
  89. .desc {
  90. padding: 10rpx 30rpx;
  91. color: #818181;
  92. }
  93. .content {
  94. display: flex;
  95. flex-direction: column;
  96. align-items: center;
  97. justify-content: center;
  98. }
  99. .touch {
  100. position: fixed;
  101. right: -5rpx;
  102. bottom: 60rpx;
  103. width: 105rpx;
  104. height: 105rpx;
  105. padding: 5rpx;
  106. background-color: rgb(10, 185, 156);
  107. border-top-left-radius: 50%;
  108. border-bottom-left-radius: 50%;
  109. color: #fff;
  110. font-size: 50rpx;
  111. /* 去除标签点击事件高亮效果 */
  112. -webkit-tap-highlight-color: transparent;
  113. /* 使用transform: translate3d 处理性能高 GUP */
  114. }
  115. </style>