Browse Source

修复app下拉选的确定按钮位置问题

master
ljlong_2630 1 month ago
parent
commit
a0e7b659ff
  1. 2
      src/components/device/slectDeviceList.vue
  2. 2
      src/components/item/slectItemList.vue
  3. 18
      src/pages/upkeepOrder/addServiceRecord.vue

2
src/components/device/slectDeviceList.vue

@ -185,6 +185,8 @@
}
}
.list {
overflow-y: auto; /* 启用垂直滚动条 */
max-height: 500px; /* 设置最大高度 */
.device {
display: flex;
margin-bottom: 20rpx;

2
src/components/item/slectItemList.vue

@ -240,6 +240,8 @@ function chooseItem(item) {
}
.list {
overflow-y: auto; /* 启用垂直滚动条 */
max-height: 500px; /* 设置最大高度 */
.item {
display: flex;
margin-bottom: 20rpx;

18
src/pages/upkeepOrder/addServiceRecord.vue

@ -99,7 +99,7 @@
<view class="popup">
<u-form :model="form1" ref="form1Ref" label-width="160rpx">
<u-form-item :label="`备件`" prop="number" required>
<view class="select" @click="openSingleColumn('number',form1.number,sparePartsList,'form1')">
<view class="select" @click="openSingleColumnItem('number',form1.number,sparePartsList,'form1')">
<view class="input" v-if='form1.number'>
{{form1.name}}
</view>
@ -371,9 +371,23 @@ const form = ref({
} else {
singleColumnDefaultValue.value = []
}
//singleColumnShow.value = true
singleColumnShow.value = true
}
//
function openSingleColumnItem(fieldName, val, list, from) {
if (fieldName == 'deviceNumber' && form.value.id) return;
whichForm.value = from
singleColumnList.value = list
field.value = fieldName
if (val) {
singleColumnDefaultValue.value = [list.findIndex(item => item.value == val)]
} else {
singleColumnDefaultValue.value = []
}
isShowSelectItem.value = true;
}
//
function chooseSingleColumn(e) {
if(whichForm.value == 'form'){

Loading…
Cancel
Save