bug,换行,隐藏公共报修房屋字段
This commit is contained in:
@@ -58,7 +58,13 @@
|
||||
</scroll-view>
|
||||
|
||||
<!-- submit -->
|
||||
<view class="action_btn" @tap="handleSelecthouse">
|
||||
<view
|
||||
class="action_btn"
|
||||
:class="{
|
||||
disabled: disabled
|
||||
}"
|
||||
@tap="handleSelecthouse"
|
||||
>
|
||||
<text>确定派单</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -141,10 +147,12 @@ function resetList() {
|
||||
getlist()
|
||||
}
|
||||
//searchlist----------------------
|
||||
const disabled = ref(true)
|
||||
const checkoutUserid = ref(null)
|
||||
const checkoutInfo = ref(null)
|
||||
function radioChange(val) {
|
||||
checkoutUserid.value = val.detail.value
|
||||
disabled.value = false
|
||||
const find = searchlist.value.find(item => item.userId === val.detail.value)
|
||||
if (find) {
|
||||
checkoutInfo.value = find
|
||||
@@ -159,15 +167,24 @@ onMounted(() => {
|
||||
eventChannel = instance.getOpenerEventChannel()
|
||||
}
|
||||
})
|
||||
|
||||
/* 确定派单 */
|
||||
function handleSelecthouse() {
|
||||
// api
|
||||
if (eventChannel) {
|
||||
eventChannel.emit('backData', {
|
||||
checkoutUserid: checkoutUserid.value
|
||||
if (checkoutUserid.value) {
|
||||
// api
|
||||
if (eventChannel) {
|
||||
eventChannel.emit('backData', {
|
||||
checkoutUserid: checkoutUserid.value
|
||||
})
|
||||
// 3. 返回上一页
|
||||
uni.navigateBack()
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
mask: true,
|
||||
icon: 'error',
|
||||
title: '请选择派单人员'
|
||||
})
|
||||
// 3. 返回上一页
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
// ===========================================
|
||||
@@ -247,6 +264,10 @@ function handleSelecthouse() {
|
||||
margin-top: 20rpx;
|
||||
background: #4d5dfa;
|
||||
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
||||
&.disabled {
|
||||
background-color: #f3f3f3;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user