companiesNotify.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!-- @format -->
  2. <template>
  3. <view class="container">
  4. <view class="content">
  5. <u-alert
  6. type="warning"
  7. :show-icon="true"
  8. :title="`小程序只能注册计量器具使用单位,证件类别只支持营业执照和法人证书,授权委托书请前往PC端进行注册。`"
  9. ></u-alert>
  10. <view style="margin-top: 30rpx">
  11. <u-form labelWidth="140">
  12. <u-form-item :required="true" label="单位类别">
  13. <u-checkbox-group
  14. size="16"
  15. v-model="unitCategory"
  16. placement="column"
  17. @change="checkboxChange"
  18. >
  19. <u-checkbox
  20. :customStyle="{ marginBottom: '8px' }"
  21. v-for="(item, index) in unitCategoryList"
  22. :key="index"
  23. :label="item.dictLabel"
  24. :name="item.dictLabel"
  25. :disabled="item.disabled"
  26. >
  27. </u-checkbox>
  28. </u-checkbox-group>
  29. </u-form-item>
  30. <u-form-item :required="true" label="证件类别">
  31. <u-radio-group v-model="documentType" placement="column">
  32. <u-radio
  33. :disabled="item.disabled"
  34. :customStyle="{ marginBottom: '8px' }"
  35. v-for="(item, index) in documentTypeList"
  36. :key="index"
  37. :label="item.name"
  38. :name="item.name"
  39. >
  40. </u-radio>
  41. </u-radio-group>
  42. </u-form-item>
  43. </u-form>
  44. </view>
  45. </view>
  46. <view class="btn">
  47. <u-button
  48. @click="handleRegister"
  49. shape="circle"
  50. :customStyle="{ width: '300rpx' }"
  51. type="primary"
  52. >前往注册</u-button
  53. >
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. import { useDict, paraseDict } from "@/utils/index";
  59. export default {
  60. data() {
  61. return {
  62. unitCategory: ["计量器具使用单位"],
  63. documentType: "营业执照",
  64. unitCategoryList: [],
  65. documentTypeList: [
  66. {
  67. name: "营业执照",
  68. },
  69. {
  70. name: "法人证书",
  71. },
  72. {
  73. name: "授权委托书",
  74. disabled: true,
  75. },
  76. ],
  77. };
  78. },
  79. onLoad() {
  80. useDict("common_dwlb").then((res) => {
  81. this.unitCategoryList = res;
  82. console.log(this.unitCategoryList);
  83. this.unitCategoryList.forEach((element) => {
  84. if (element.dictLabel != "计量器具使用单位") {
  85. element.disabled = true;
  86. }
  87. });
  88. });
  89. },
  90. methods: {
  91. handleRegister() {
  92. uni.navigateTo({
  93. url: `/pages/companiesRegistered/index?type=${this.documentType}`,
  94. success: (res) => {},
  95. fail: () => {},
  96. complete: () => {},
  97. });
  98. },
  99. },
  100. };
  101. </script>
  102. <style lang="scss">
  103. .btn {
  104. position: fixed;
  105. bottom: 0;
  106. left: 0;
  107. width: 100%;
  108. padding: 30rpx;
  109. display: flex;
  110. justify-content: center;
  111. }
  112. .u-checkbox {
  113. margin-bottom: 20rpx;
  114. }
  115. .container {
  116. height: 100vh;
  117. background: rgb(248, 249, 250);
  118. }
  119. .content {
  120. background: #fff;
  121. padding: 30rpx;
  122. width: 95%;
  123. margin: 0 auto;
  124. }
  125. </style>