gePhoneApply.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.apply_type" mode="dict"
  7. dictKey="phonenumber_apply_type"></hs-show>
  8. <hs-show v-if="data.formData.apply_type === '6'" label="其他" :data="data.formData.remark"></hs-show>
  9. <hs-show v-if="data.pageType !== 1" label="手机卡号" :data="data.formData.phone_num"></hs-show>
  10. <u-gap height="10" bgColor="#f5f5f5"></u-gap>
  11. <view v-if="data.pageType === 1 && data.baseName === '信息科受理'" style="padding: 10px;color: #ffaa00;">
  12. 请您在下方填写申请的手机号
  13. <hs-input @input="submitMaintenanceRecord()"
  14. label="手机卡号" v-model="form.phoneNum"></hs-input>
  15. </view>
  16. <u-gap height="10" bgColor="#f5f5f5"></u-gap>
  17. </view>
  18. <ge></ge>
  19. </view>
  20. </template>
  21. <script>
  22. import ge from '../components/ge'
  23. export default {
  24. components: {
  25. ge
  26. },
  27. data() {
  28. return {
  29. data: uni.getStorageSync("approval"),
  30. form: {}
  31. }
  32. },
  33. mounted() {
  34. },
  35. methods: {
  36. submitMaintenanceRecord() {
  37. console.log('input')
  38. let data = {
  39. id: this.data.formData.id,
  40. phoneNum: this.form.phoneNum
  41. }
  42. this.$httpRequest({
  43. url: '/app/phoneApplyNumber',
  44. method: 'post',
  45. data: data,
  46. urlType: this.$getUrlType()
  47. }).then(res => {
  48. })
  49. }
  50. }
  51. }
  52. </script>
  53. <style>
  54. .desc {
  55. padding: 10rpx 30rpx;
  56. color: #818181;
  57. }
  58. .content {
  59. display: flex;
  60. flex-direction: column;
  61. align-items: center;
  62. justify-content: center;
  63. }
  64. .touch {
  65. position: fixed;
  66. right: -5rpx;
  67. bottom: 60rpx;
  68. width: 105rpx;
  69. height: 105rpx;
  70. padding: 5rpx;
  71. background-color: rgb(10, 185, 156);
  72. border-top-left-radius: 50%;
  73. border-bottom-left-radius: 50%;
  74. color: #fff;
  75. font-size: 50rpx;
  76. /* 去除标签点击事件高亮效果 */
  77. -webkit-tap-highlight-color: transparent;
  78. /* 使用transform: translate3d 处理性能高 GUP */
  79. }
  80. </style>