|
@@ -9,7 +9,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="form-item__input__wrap" @click="showPos">
|
|
<view class="form-item__input__wrap" @click="showPos">
|
|
|
<view class="form-item__input">
|
|
<view class="form-item__input">
|
|
|
- <input placeholder-class="input-placeholder" class="input" type="text" :value="form.cabinetPositionName" placeholder="请选择阁位" disabled />
|
|
|
|
|
|
|
+ <input placeholder-class="input-placeholder" class="input" type="text" :value="form.andName" placeholder="请选择阁位" disabled />
|
|
|
<view class="icon"><image style="width: 16rpx;height: 16rpx;" src="/static/app/page3/arrow-down.png" mode="aspectFit"></image></view>
|
|
<view class="icon"><image style="width: 16rpx;height: 16rpx;" src="/static/app/page3/arrow-down.png" mode="aspectFit"></image></view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -49,6 +49,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</swiper-item>
|
|
</swiper-item>
|
|
|
</swiper>
|
|
</swiper>
|
|
|
|
|
+ <view class="cover-swiper"></view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -63,7 +64,7 @@
|
|
|
<!-- 阁位 -->
|
|
<!-- 阁位 -->
|
|
|
<c-form-type-action-sheet ref="pos" title="请选择阁位" :loadData="getPos">
|
|
<c-form-type-action-sheet ref="pos" title="请选择阁位" :loadData="getPos">
|
|
|
<template v-slot="{item}">
|
|
<template v-slot="{item}">
|
|
|
- <view>{{item.name}}</view>
|
|
|
|
|
|
|
+ <view>{{item.area}}-{{item.name}}</view>
|
|
|
</template>
|
|
</template>
|
|
|
</c-form-type-action-sheet>
|
|
</c-form-type-action-sheet>
|
|
|
|
|
|
|
@@ -80,9 +81,11 @@
|
|
|
form: {
|
|
form: {
|
|
|
cabinetPositionId: '',
|
|
cabinetPositionId: '',
|
|
|
cabinetPositionName: '',
|
|
cabinetPositionName: '',
|
|
|
|
|
+ andName: '',
|
|
|
num: '',
|
|
num: '',
|
|
|
|
|
+ day: dayjs().add(1, 'day').format('YYYY/MM/DD'),
|
|
|
beginDate: dayjs().format('YYYY-MM-DD'),
|
|
beginDate: dayjs().format('YYYY-MM-DD'),
|
|
|
- visitDate: dayjs().format('YYYY-MM-DD'),
|
|
|
|
|
|
|
+ visitDate: dayjs().add(1, 'day').format('YYYY-MM-DD'),
|
|
|
visitTime: ''
|
|
visitTime: ''
|
|
|
},
|
|
},
|
|
|
current: null,
|
|
current: null,
|
|
@@ -144,7 +147,7 @@
|
|
|
throw new Error("")
|
|
throw new Error("")
|
|
|
}
|
|
}
|
|
|
return res.data.map(item => {
|
|
return res.data.map(item => {
|
|
|
- return { ...item, id: item.cabinetPositionId, name: item.cabinetPositionName || '' }
|
|
|
|
|
|
|
+ return { ...item, id: item.cabinetPositionId, area: item.cabinetAreaName || '未获取', name: item.cabinetPositionName || '未获取' }
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
showPos() {
|
|
showPos() {
|
|
@@ -152,6 +155,7 @@
|
|
|
if(res.arr && res.arr.length > 0){
|
|
if(res.arr && res.arr.length > 0){
|
|
|
this.form.cabinetPositionId = res.arr[0].cabinetPositionId
|
|
this.form.cabinetPositionId = res.arr[0].cabinetPositionId
|
|
|
this.form.cabinetPositionName = res.arr[0].cabinetPositionName
|
|
this.form.cabinetPositionName = res.arr[0].cabinetPositionName
|
|
|
|
|
+ this.form.andName = (res.arr[0].cabinetAreaName || '未获取到') + '-' + (res.arr[0].cabinetPositionName || '未获取到')
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|