assayForm.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!-- @format -->
  2. <template>
  3. <view class="container">
  4. <view style="margin: 15rpx 0">
  5. <view class="contentItems">
  6. <u-form labelPosition="left" labelWidth="160rpx">
  7. <view class="content">
  8. <u-form-item label="选择器具:">
  9. <u-input border="none" placeholder="请输入申请单位" value="血氧仪器"></u-input>
  10. </u-form-item>
  11. </view>
  12. <view class="content">
  13. <u-form-item label="申请单位:">
  14. <u-input border="none" placeholder="请输入申请单位"></u-input>
  15. </u-form-item>
  16. </view>
  17. <view class="content">
  18. <u-form-item label="申请日期:">
  19. <u-input border="none" placeholder="请输入申请日期"></u-input>
  20. </u-form-item>
  21. </view>
  22. <view class="content">
  23. <u-form-item label="申请人:">
  24. <u-input border="none" placeholder="请输入申请人"></u-input>
  25. </u-form-item>
  26. </view>
  27. <view class="content">
  28. <u-form-item label="联系电话:">
  29. <u-input border="none" placeholder="请输入联系电话"> </u-input>
  30. </u-form-item>
  31. </view>
  32. </u-form>
  33. <u-checkbox-group style="margin-top: 20rpx;" v-model="checkboxValue1" placement="column"
  34. @change="checkboxChange">
  35. <u-checkbox style="color:red" v-for="item in checkBoxList" :key="item" :label="item.name"
  36. :name='item.label'>
  37. </u-checkbox>
  38. </u-checkbox-group>
  39. </view>
  40. </view>
  41. <view style="width: 95%; margin: 20rpx auto 0">
  42. <u-button type="primary"> 提交 </u-button>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. checked: null,
  52. checkBoxList: [{
  53. name: '我单位承诺,本次提交备案的计量器具的相关信息均真实准确,经过自我严格审核,均符合《市场监管总局关于调整实施强制管理的计量器具目录的公告》(国家市场监督管理总局公告2020年第42号)中《实施强制管理的计量器具目录》的规定。',
  54. label: false
  55. }],
  56. checkboxValue1: [],
  57. };
  58. },
  59. methods: {
  60. checkboxChange(value) {
  61. console.log('Checkbox changed:', value);
  62. },
  63. },
  64. };
  65. </script>
  66. <style lang="scss" scoped>
  67. ::v-deep .u-checkbox {
  68. display: flex;
  69. flex-direction: row;
  70. /* overflow: hidden; */
  71. flex-direction: row;
  72. align-items: flex-start;
  73. }
  74. ::v-deep uni-text[data-v-c4a74aee] span {
  75. font-size: 26rpx;
  76. color: red;
  77. line-height: 40rpx;
  78. }
  79. .createFixed {
  80. background: #2979ff;
  81. display: flex;
  82. justify-content: center;
  83. align-items: center;
  84. width: 90rpx;
  85. height: 90rpx;
  86. border-radius: 50%;
  87. position: fixed;
  88. right: 30rpx;
  89. bottom: 200rpx;
  90. }
  91. .createNew {
  92. font-size: 30rpx;
  93. margin: 20rpx 0 20rpx 20rpx;
  94. color: #3c9ff3;
  95. }
  96. .container {
  97. height: 100vh;
  98. background: rgb(243, 244, 249);
  99. .contentItems {
  100. width: 93%;
  101. border-radius: 6px;
  102. background: #fff;
  103. margin: 0rpx auto 20rpx;
  104. padding: 20rpx 30rpx 20rpx;
  105. .content {
  106. border-bottom: 1px solid rgb(242, 242, 242);
  107. display: flex;
  108. justify-content: space-between;
  109. }
  110. // .content:last-child {
  111. // border-bottom: none;
  112. // }
  113. .title {
  114. font-size: 26rpx;
  115. color: black;
  116. letter-spacing: 3rpx;
  117. }
  118. .message {
  119. font-size: 26rpx;
  120. color: rgb(146, 146, 146);
  121. }
  122. }
  123. }
  124. </style>