| | |
| | | </view> |
| | | |
| | | <!-- 标签栏 --> |
| | | <view class="tabs"> |
| | | <view v-for="(tab, index) in tabs" :key="index" class="tab" :class="{active: currentTab === index}" |
| | | @tap="switchTab(index,tab.id)"> |
| | | {{ tab.fcheckItem }} |
| | | <scroll-view class="tabs" scroll-x="true" :show-scrollbar="false"> |
| | | <view class="tabs-container"> |
| | | <view v-for="(tab, index) in tabs" :key="index" class="tab" :class="{active: currentTab === index}" |
| | | @tap="switchTab(index,tab.id)"> |
| | | {{ tab.fcheckItem }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | <view class="tab-content"> |
| | | <!-- 基本信息 --> |
| | | <view class="section"> |
| | |
| | | <uni-icons type="compose" size="16" color="#fff"></uni-icons> |
| | | 备注 |
| | | </button> |
| | | <input v-if="(tableData.length < formData.checkQyt)" @input="search($event)" |
| | | v-model="inputTxt" type="text" class="result-input" placeholder="请输入检验结果..." |
| | | <input v-if="(tableData.length < formData.checkQyt) && formData.fupAllow && formData.fdownAllow" |
| | | @input="onNumberInput" |
| | | v-model="formData.fcheckResu" |
| | | type="text" |
| | | class="result-input" |
| | | placeholder="请输入检验结果..." |
| | | placeholder-class="placeholder" /> |
| | | <input v-else |
| | | @input="search($event)" |
| | | v-model="inputTxt" |
| | | type="text" |
| | | class="result-input" |
| | | placeholder="请输入检验结果..." |
| | | placeholder-class="placeholder" /> |
| | | <button v-if="(tableData.length < formData.checkQyt)" |
| | | style="margin: 0px;background-color: #3498db;color:#ffffff ;" class="btn primary-btn" |
| | |
| | | //检测输入框的输入,并给变量赋值 |
| | | search(event) { |
| | | this.formData.fcheckResu = event.detail.value; |
| | | }, |
| | | onNumberInput(e) { |
| | | // 只允许输入数字和小数点 |
| | | let val = e.detail.value.replace(/[^\d.]/g, ''); |
| | | // 只允许一个小数点 |
| | | val = val.replace(/\.{2,}/g, '.'); |
| | | val = val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.'); |
| | | this.formData.fcheckResu = val; |
| | | }, |
| | | toggleResult(item) { |
| | | let fstand = "√"; |
| | |
| | | } |
| | | |
| | | .tabs { |
| | | display: flex; |
| | | background-color: $bg-color; |
| | | border-bottom: 1px solid $border-color; |
| | | width: 100%; |
| | | white-space: nowrap; |
| | | |
| | | .tabs-container { |
| | | display: flex; |
| | | min-width: 100%; |
| | | } |
| | | |
| | | .tab { |
| | | flex: 1; |
| | | flex: none; |
| | | min-width: 120px; |
| | | text-align: center; |
| | | padding: 12px 0; |
| | | padding: 12px 16px; |
| | | border-right: 1px solid $border-color; |
| | | color: #666; |
| | | transition: all 0.3s; |
| | | white-space: nowrap; |
| | | |
| | | &:last-child { |
| | | border-right: none; |