gePurchase.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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.dept_id" mode="dept"></hs-show>
  6. <hs-show label="物品类型" :data="data.formData.purchase_type" mode="dict" dictKey="goods_property_type"></hs-show>
  7. <hs-show label="申请原因" :data="data.formData.remark"></hs-show>
  8. <hs-show label="用途" :data="data.formData.what_use"></hs-show>
  9. <hs-show label="规格型号" :data="data.formData.goods_gg"></hs-show>
  10. <!-- <hs-show label="物品类型" :data="data.formData.goods_type" mode="dict" dictKey="goods_storage_type"></hs-show> -->
  11. <hs-show label="物品名称" :data="data.formData.goods_name"></hs-show>
  12. <hs-show label="需求数量" :data="data.formData.want_use_amount"></hs-show>
  13. <hs-show label="预估单价" :data="data.formData.yg_unit_price"></hs-show>
  14. <hs-show label="预估总价" :data="data.formData.yg_total_prices"></hs-show>
  15. <!-- <hs-show label="采购状态" :data="data.formData.purchase_status"></hs-show> -->
  16. <view class="desc">
  17. 已添加照片
  18. </view>
  19. <view class="desc">
  20. <uni-file-picker :value="JSON.parse(data.formData.photos)" file-mediatype="image" readonly>
  21. </uni-file-picker>
  22. </view>
  23. </view>
  24. <ge></ge>
  25. <view class="content" v-if="data.pageType === 1">
  26. <!-- @touchstart="handleStart" @touchmove="handleMove" @touchend="handleEnd" -->
  27. <view :style="{'transform':'translate3d('+0+'px,'+-180+'px,0)'}" class="touch">
  28. <view @click="confirm1">
  29. <view style="margin-left: 25rpx;">
  30. <uni-row>
  31. 同意
  32. </uni-row>
  33. <uni-row>
  34. 结束
  35. </uni-row>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. import ge from '../components/ge'
  44. export default {
  45. components: {
  46. ge
  47. },
  48. data() {
  49. return {
  50. data: uni.getStorageSync("approval")
  51. }
  52. },
  53. mounted() {},
  54. methods: {
  55. confirm1(e) {
  56. let that = this;
  57. uni.showModal({
  58. title: "提醒",
  59. content: "确定在当前节点同意并结束吗?",
  60. success(res) {
  61. if (res.confirm) {
  62. that.$httpRequest({
  63. url: '/app/useSealEnd?taskId=' + that.data.id,
  64. method: 'get'
  65. }).then((res) => {
  66. if (res.data.code === 200) {
  67. uni.showModal({
  68. title: "结束成功",
  69. icon: "OK",
  70. showCancel: false,
  71. success() {
  72. uni.navigateBack()
  73. }
  74. })
  75. } else {
  76. uni.showModal({
  77. title: "结束失败",
  78. content: res.msg,
  79. showCancel: false,
  80. success() {
  81. uni.navigateBack()
  82. }
  83. })
  84. }
  85. })
  86. }
  87. }
  88. })
  89. }
  90. }
  91. }
  92. </script>
  93. <style>
  94. .desc {
  95. padding: 10rpx 30rpx;
  96. color: #818181;
  97. }
  98. .content {
  99. display: flex;
  100. flex-direction: column;
  101. align-items: center;
  102. justify-content: center;
  103. }
  104. .touch {
  105. position: fixed;
  106. right: -5rpx;
  107. bottom: 60rpx;
  108. width: 105rpx;
  109. height: 105rpx;
  110. padding: 5rpx;
  111. background-color: rgb(10, 185, 156);
  112. border-top-left-radius: 50%;
  113. border-bottom-left-radius: 50%;
  114. color: #fff;
  115. font-size: 50rpx;
  116. /* 去除标签点击事件高亮效果 */
  117. -webkit-tap-highlight-color: transparent;
  118. /* 使用transform: translate3d 处理性能高 GUP */
  119. }
  120. </style>