7 changed files with 1070 additions and 23 deletions
@ -0,0 +1,829 @@ |
|||
<template> |
|||
<div class="reserve-edit-page app_content"> |
|||
<van-nav-bar :title="isMockEdit ? '编辑预约' : '新增预约'" left-arrow @click-left="onBack" /> |
|||
|
|||
<div class="content"> |
|||
<div class="form-card"> |
|||
<van-field |
|||
v-model="form.planDate" |
|||
label="预约时间" |
|||
placeholder="请选择时间" |
|||
required |
|||
readonly |
|||
is-link |
|||
@click="showDatePicker = true" |
|||
/> |
|||
|
|||
<van-field |
|||
v-model="form.enforceContent" |
|||
label="执法事项" |
|||
type="textarea" |
|||
placeholder="请输入执法事项" |
|||
required |
|||
maxlength="1000" |
|||
show-word-limit |
|||
rows="3" |
|||
autosize |
|||
/> |
|||
|
|||
<van-field |
|||
v-model="form.bureauDeptName" |
|||
label="执法单位" |
|||
required |
|||
readonly |
|||
/> |
|||
|
|||
<van-field |
|||
v-model="form.enterpriseName" |
|||
label="企业名称" |
|||
placeholder="请输入执法企业" |
|||
required |
|||
readonly |
|||
is-link |
|||
@click="onOpenEnterprisePicker" |
|||
/> |
|||
|
|||
<van-field label="执法人员" required> |
|||
<template #input> |
|||
<div class="person-box"> |
|||
<div |
|||
v-for="(person, index) in personList" |
|||
:key="person.id || index" |
|||
class="person-line" |
|||
> |
|||
<span class="person-name">{{ person.name }}</span> |
|||
<span class="person-phone">{{ person.phone }}</span> |
|||
<van-icon |
|||
v-if="personList.length > 1 && String(person.id) !== String(useCommon.userId)" |
|||
name="close" |
|||
class="person-remove" |
|||
@click="removePerson(index)" |
|||
/> |
|||
</div> |
|||
<div class="add-person-line" @click="onAddPerson"> |
|||
<span>请输入</span> |
|||
<van-icon name="arrow" class="add-person-arrow" /> |
|||
<van-icon name="add-o" color="#2382cf" size="20" /> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
</van-field> |
|||
|
|||
<van-field label="是否公开" required> |
|||
<template #input> |
|||
<van-radio-group v-model="form.isPublic" direction="horizontal"> |
|||
<van-radio :name="1">是</van-radio> |
|||
<van-radio :name="0">否</van-radio> |
|||
</van-radio-group> |
|||
</template> |
|||
</van-field> |
|||
|
|||
<van-field label="参与联合" required> |
|||
<template #input> |
|||
<van-radio-group v-model="form.isUnion" direction="horizontal"> |
|||
<van-radio :name="1">是</van-radio> |
|||
<van-radio :name="0">否</van-radio> |
|||
</van-radio-group> |
|||
</template> |
|||
</van-field> |
|||
</div> |
|||
|
|||
<div class="submit-wrap"> |
|||
<van-button |
|||
type="primary" |
|||
block |
|||
round |
|||
:loading="submitting" |
|||
:loading-text="isMockEdit ? '保存中...' : '发布中...'" |
|||
@click="onSubmit" |
|||
> |
|||
{{ isMockEdit ? '保存' : '发布' }} |
|||
</van-button> |
|||
</div> |
|||
</div> |
|||
|
|||
<van-popup v-model:show="showDatePicker" position="bottom" round> |
|||
<van-date-picker |
|||
v-model="datePickerValue" |
|||
title="选择预约时间" |
|||
:min-date="minDate" |
|||
:max-date="maxDate" |
|||
@confirm="onDateConfirm" |
|||
@cancel="showDatePicker = false" |
|||
/> |
|||
</van-popup> |
|||
|
|||
<van-popup |
|||
v-model:show="showEnterprisePicker" |
|||
position="bottom" |
|||
round |
|||
:style="{ height: '70%' }" |
|||
> |
|||
<div class="picker-panel"> |
|||
<div class="picker-header"> |
|||
<span>选择企业</span> |
|||
<van-icon name="cross" @click="showEnterprisePicker = false" /> |
|||
</div> |
|||
<div class="search-bar"> |
|||
<van-search |
|||
v-model="enterpriseSearchKeyword" |
|||
placeholder="请输入企业名称/统一信用代码搜索" |
|||
@search="handleEnterpriseSearch" |
|||
@clear="clearEnterpriseSearch" |
|||
/> |
|||
<van-button class="search-btn" type="primary" @click="handleEnterpriseSearch">搜索</van-button> |
|||
</div> |
|||
<div class="picker-body"> |
|||
<van-list |
|||
v-model:loading="enterpriseLoading" |
|||
:finished="enterpriseFinished" |
|||
:finished-text="enterpriseFinishedText" |
|||
@load="onEnterpriseLoad" |
|||
> |
|||
<div |
|||
v-for="(item, index) in enterpriseOptions" |
|||
:key="item.enterpriseNumber || index" |
|||
class="picker-item enterprise-item" |
|||
@click="onSelectEnterprise(item)" |
|||
> |
|||
<div class="picker-item-name">{{ item.enterpriseName }}</div> |
|||
<div class="picker-item-meta">{{ item.enterpriseNumber }}</div> |
|||
</div> |
|||
<van-empty |
|||
v-if="!enterpriseLoading && !enterpriseOptions.length" |
|||
:description="enterpriseEmptyText" |
|||
image-size="80" |
|||
/> |
|||
</van-list> |
|||
</div> |
|||
</div> |
|||
</van-popup> |
|||
|
|||
<van-popup |
|||
v-model:show="showPersonPicker" |
|||
position="bottom" |
|||
round |
|||
:style="{ height: '70%' }" |
|||
> |
|||
<div class="picker-panel"> |
|||
<div class="picker-header"> |
|||
<span>选择执法人员</span> |
|||
<van-icon name="cross" @click="showPersonPicker = false" /> |
|||
</div> |
|||
<div class="search-bar"> |
|||
<van-search |
|||
v-model="personSearchKeyword" |
|||
autocomplete="off" |
|||
placeholder="请输入至少1个字搜索" |
|||
@search="handlePersonSearch" |
|||
@clear="clearPersonSearch" |
|||
/> |
|||
<van-button class="search-btn" type="primary" @click="handlePersonSearch">搜索</van-button> |
|||
</div> |
|||
<div class="picker-body"> |
|||
<van-list |
|||
v-model:loading="personLoading" |
|||
:finished="personFinished" |
|||
:finished-text="personFinishedText" |
|||
@load="onPersonLoad" |
|||
> |
|||
<div |
|||
v-for="(user, index) in personSearchResult" |
|||
:key="user.userId || index" |
|||
class="picker-item" |
|||
@click="onSelectPerson(user)" |
|||
> |
|||
<div class="picker-item-name">{{ user.fullname || user.userName }}</div> |
|||
<div class="picker-item-meta"> |
|||
{{ user.lawCertificateNum ? '执法证件号' : '联系电话' }}: |
|||
{{ user.lawCertificateNum || user.phonenumber || user.mobileNumber || '-' }} |
|||
</div> |
|||
</div> |
|||
<van-empty |
|||
v-if="!personLoading && !personSearchResult.length" |
|||
:description="personEmptyText" |
|||
image-size="80" |
|||
/> |
|||
</van-list> |
|||
</div> |
|||
</div> |
|||
</van-popup> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup name="cpReserveEdit"> |
|||
import { useRouter, useRoute } from 'vue-router'; |
|||
import { showConfirmDialog, showSuccessToast, showToast } from 'vant'; |
|||
import { |
|||
addPlan, |
|||
getManualMatchDays, |
|||
getMaxInnerUnitAcPersonNum, |
|||
searchBureauUnitUsers, |
|||
} from '@/api/enforcement/plan'; |
|||
import { queryEnterpriseListAndQrInfo } from '@/api/enforcement/index'; |
|||
import { getMockReserveDetail, updateMockReserve } from '@/api/enforcement/reserve'; |
|||
import { maskPhone } from '@/util/util'; |
|||
|
|||
const router = useRouter(); |
|||
const route = useRoute(); |
|||
const { useCommon } = $globalStore; |
|||
const isMockEdit = computed(() => String(route.query.id || '').startsWith('mock-reserve-')); |
|||
|
|||
const submitting = ref(false); |
|||
const showDatePicker = ref(false); |
|||
const showEnterprisePicker = ref(false); |
|||
const showPersonPicker = ref(false); |
|||
const maxPersonNum = ref(3); |
|||
const manualMatchDays = ref(3); |
|||
|
|||
const minDate = new Date(); |
|||
minDate.setHours(0, 0, 0, 0); |
|||
minDate.setDate(minDate.getDate() + 1); |
|||
const maxDate = new Date(2099, 11, 31); |
|||
const datePickerValue = ref([ |
|||
String(minDate.getFullYear()), |
|||
String(minDate.getMonth() + 1).padStart(2, '0'), |
|||
String(minDate.getDate()).padStart(2, '0'), |
|||
]); |
|||
|
|||
const form = ref({ |
|||
id: '', |
|||
planType: 1, |
|||
planDate: '', |
|||
planTime: 1, |
|||
planActualDate: '', |
|||
planActualTime: 1, |
|||
enforceContent: '', |
|||
bureauDeptId: '', |
|||
bureauDeptName: '', |
|||
enterpriseName: '', |
|||
enterpriseNumber: '', |
|||
enterpriseId: '', |
|||
enforceUserNames: '', |
|||
enforceUserIds: '', |
|||
enforceUserTels: '', |
|||
enforceUserCodes: '', |
|||
isPublic: 1, |
|||
isUnion: 1, |
|||
reserveStatus: 1, |
|||
systemReserved: 0, |
|||
manualReserved: 0, |
|||
organId: '', |
|||
organName: '', |
|||
deptId: '', |
|||
deptName: '', |
|||
isDelete: 0, |
|||
}); |
|||
|
|||
const personList = ref([]); |
|||
|
|||
const enterpriseOptions = ref([]); |
|||
const enterpriseSearchKeyword = ref(''); |
|||
const enterpriseLoading = ref(false); |
|||
const enterpriseFinished = ref(false); |
|||
const enterprisePageNum = ref(1); |
|||
const enterprisePageSize = 10; |
|||
const enterpriseSearched = ref(false); |
|||
let enterpriseSearchSeq = 0; |
|||
|
|||
const personSearchResult = ref([]); |
|||
const personSearchKeyword = ref(''); |
|||
const personLoading = ref(false); |
|||
const personFinished = ref(false); |
|||
const personPageNum = ref(1); |
|||
const personPageSize = 10; |
|||
const personSearched = ref(false); |
|||
let personSearchSeq = 0; |
|||
|
|||
const enterpriseEmptyText = computed(() => enterpriseSearched.value ? '未检索到匹配企业' : '请输入至少2个字搜索'); |
|||
const enterpriseFinishedText = computed(() => enterpriseOptions.value.length ? '没有更多了' : ''); |
|||
const personEmptyText = computed(() => personSearched.value ? '未检索到人员' : '请输入至少1个字搜索'); |
|||
const personFinishedText = computed(() => personSearchResult.value.length ? '没有更多了' : ''); |
|||
|
|||
onMounted(() => { |
|||
form.value.bureauDeptId = useCommon.bureauUnitId || ''; |
|||
form.value.bureauDeptName = useCommon.bureauUnitName || ''; |
|||
form.value.organId = useCommon.organId || ''; |
|||
form.value.organName = useCommon.organName || ''; |
|||
form.value.deptId = useCommon.deptId || ''; |
|||
form.value.deptName = useCommon.deptName || ''; |
|||
|
|||
const name = useCommon.nickName || useCommon.userName || ''; |
|||
const phone = useCommon.lawCertificateNum || maskPhone(useCommon.phonenumber) || ''; |
|||
if (name || useCommon.userId) { |
|||
personList.value = [{ id: useCommon.userId || '', name, phone, code: '' }]; |
|||
syncPersonData(); |
|||
} |
|||
if (isMockEdit.value) loadMockReserve(route.query.id); |
|||
|
|||
getMaxInnerUnitAcPersonNum((res) => { |
|||
const value = Number(res?.data); |
|||
if (res?.code === 200 && value > 0) maxPersonNum.value = value; |
|||
}); |
|||
getManualMatchDays((res) => { |
|||
const value = Number(res?.data); |
|||
if (res?.code === 200 && value > 0) manualMatchDays.value = value; |
|||
}); |
|||
}); |
|||
|
|||
const loadMockReserve = (id) => { |
|||
const detail = getMockReserveDetail(id); |
|||
if (!detail) { |
|||
showToast('模拟预约不存在或已取消'); |
|||
return; |
|||
} |
|||
Object.keys(form.value).forEach(key => { |
|||
if (detail[key] !== undefined && detail[key] !== null) { |
|||
form.value[key] = detail[key]; |
|||
} |
|||
}); |
|||
const names = String(detail.enforceUserNames || '').split(',').filter(Boolean); |
|||
const ids = String(detail.enforceUserIds || '').split(','); |
|||
const tels = String(detail.enforceUserTels || '').split(','); |
|||
const codes = String(detail.enforceUserCodes || '').split(','); |
|||
personList.value = names.map((name, index) => ({ |
|||
id: ids[index] || '', |
|||
name, |
|||
phone: tels[index] || '', |
|||
code: codes[index] || '', |
|||
})); |
|||
const dateParts = String(detail.planDate || '').split('-'); |
|||
if (dateParts.length === 3) datePickerValue.value = dateParts; |
|||
}; |
|||
|
|||
const onDateConfirm = ({ selectedValues }) => { |
|||
form.value.planDate = selectedValues.join('-'); |
|||
form.value.planActualDate = form.value.planDate; |
|||
showDatePicker.value = false; |
|||
}; |
|||
|
|||
const onOpenEnterprisePicker = () => { |
|||
clearEnterpriseSearch(); |
|||
showEnterprisePicker.value = true; |
|||
}; |
|||
|
|||
const handleEnterpriseSearch = () => { |
|||
const keyword = enterpriseSearchKeyword.value.trim(); |
|||
if (keyword.length < 2) { |
|||
showToast('请输入至少2个字搜索'); |
|||
return; |
|||
} |
|||
enterprisePageNum.value = 1; |
|||
enterpriseOptions.value = []; |
|||
enterpriseFinished.value = false; |
|||
enterpriseLoading.value = true; |
|||
enterpriseSearched.value = true; |
|||
fetchEnterpriseList(keyword); |
|||
}; |
|||
|
|||
const clearEnterpriseSearch = () => { |
|||
enterpriseSearchKeyword.value = ''; |
|||
enterpriseOptions.value = []; |
|||
enterprisePageNum.value = 1; |
|||
enterpriseFinished.value = true; |
|||
enterpriseLoading.value = false; |
|||
enterpriseSearched.value = false; |
|||
}; |
|||
|
|||
const onEnterpriseLoad = () => { |
|||
fetchEnterpriseList(enterpriseSearchKeyword.value.trim()); |
|||
}; |
|||
|
|||
const fetchEnterpriseList = (keyword) => { |
|||
if (keyword.length < 2) { |
|||
enterpriseFinished.value = true; |
|||
enterpriseLoading.value = false; |
|||
return; |
|||
} |
|||
const seq = ++enterpriseSearchSeq; |
|||
enterpriseLoading.value = true; |
|||
queryEnterpriseListAndQrInfo( |
|||
{ |
|||
pageNum: enterprisePageNum.value, |
|||
pageSize: enterprisePageSize, |
|||
searchValue: keyword, |
|||
}, |
|||
(res) => { |
|||
if (seq !== enterpriseSearchSeq) return; |
|||
enterpriseLoading.value = false; |
|||
const rows = Array.isArray(res?.rows) ? res.rows : []; |
|||
enterpriseOptions.value = enterprisePageNum.value === 1 |
|||
? rows |
|||
: [...enterpriseOptions.value, ...rows]; |
|||
if ((res?.total || 0) <= enterprisePageSize * enterprisePageNum.value) { |
|||
enterpriseFinished.value = true; |
|||
} else { |
|||
enterprisePageNum.value++; |
|||
} |
|||
}, |
|||
() => { |
|||
if (seq !== enterpriseSearchSeq) return; |
|||
enterpriseLoading.value = false; |
|||
enterpriseFinished.value = true; |
|||
} |
|||
); |
|||
}; |
|||
|
|||
const onSelectEnterprise = (item) => { |
|||
form.value.enterpriseName = item.enterpriseName || ''; |
|||
form.value.enterpriseNumber = item.enterpriseNumber || ''; |
|||
form.value.enterpriseId = item.id || item.enterpriseNumber || ''; |
|||
showEnterprisePicker.value = false; |
|||
}; |
|||
|
|||
const onAddPerson = () => { |
|||
if (personList.value.length >= maxPersonNum.value) { |
|||
showToast(`最多只能添加 ${maxPersonNum.value} 名执法人员`); |
|||
return; |
|||
} |
|||
clearPersonSearch(); |
|||
showPersonPicker.value = true; |
|||
}; |
|||
|
|||
const handlePersonSearch = () => { |
|||
const keyword = personSearchKeyword.value.trim(); |
|||
if (!keyword) { |
|||
showToast('请输入至少1个字搜索'); |
|||
return; |
|||
} |
|||
personPageNum.value = 1; |
|||
personSearchResult.value = []; |
|||
personFinished.value = false; |
|||
personLoading.value = true; |
|||
personSearched.value = true; |
|||
fetchPersonList(keyword); |
|||
}; |
|||
|
|||
const clearPersonSearch = () => { |
|||
personSearchKeyword.value = ''; |
|||
personSearchResult.value = []; |
|||
personPageNum.value = 1; |
|||
personFinished.value = true; |
|||
personLoading.value = false; |
|||
personSearched.value = false; |
|||
}; |
|||
|
|||
const onPersonLoad = () => { |
|||
fetchPersonList(personSearchKeyword.value.trim()); |
|||
}; |
|||
|
|||
const fetchPersonList = (keyword) => { |
|||
if (!keyword) { |
|||
personFinished.value = true; |
|||
personLoading.value = false; |
|||
return; |
|||
} |
|||
const seq = ++personSearchSeq; |
|||
personLoading.value = true; |
|||
searchBureauUnitUsers( |
|||
{ |
|||
sysDeptId: useCommon.bureauUnitId || '', |
|||
userName: keyword, |
|||
globalSearch: false, |
|||
pageNum: personPageNum.value, |
|||
pageSize: personPageSize, |
|||
isShowCardId: '0', |
|||
}, |
|||
(res) => { |
|||
if (seq !== personSearchSeq) return; |
|||
personLoading.value = false; |
|||
const rows = Array.isArray(res?.rows) ? res.rows : []; |
|||
personSearchResult.value = personPageNum.value === 1 |
|||
? rows |
|||
: [...personSearchResult.value, ...rows]; |
|||
if ((res?.total || 0) <= personPageSize * personPageNum.value) { |
|||
personFinished.value = true; |
|||
} else { |
|||
personPageNum.value++; |
|||
} |
|||
}, |
|||
() => { |
|||
if (seq !== personSearchSeq) return; |
|||
personLoading.value = false; |
|||
personFinished.value = true; |
|||
} |
|||
); |
|||
}; |
|||
|
|||
const onSelectPerson = (user) => { |
|||
const id = user.userId != null ? String(user.userId) : ''; |
|||
if (personList.value.some(person => String(person.id) === id)) { |
|||
showToast('该人员已添加'); |
|||
return; |
|||
} |
|||
if (personList.value.length >= maxPersonNum.value) { |
|||
showToast(`最多只能添加 ${maxPersonNum.value} 名执法人员`); |
|||
return; |
|||
} |
|||
personList.value.push({ |
|||
id, |
|||
name: user.fullname || user.userName || '', |
|||
phone: user.lawCertificateNum || maskPhone(user.mobileNumber || user.phonenumber) || '', |
|||
code: '', |
|||
}); |
|||
syncPersonData(); |
|||
showPersonPicker.value = false; |
|||
}; |
|||
|
|||
const removePerson = (index) => { |
|||
personList.value.splice(index, 1); |
|||
syncPersonData(); |
|||
}; |
|||
|
|||
const syncPersonData = () => { |
|||
form.value.enforceUserNames = personList.value.map(person => person.name).join(','); |
|||
form.value.enforceUserIds = personList.value.map(person => person.id).join(','); |
|||
form.value.enforceUserTels = personList.value.map(person => person.phone).join(','); |
|||
form.value.enforceUserCodes = personList.value.map(person => person.code).join(','); |
|||
}; |
|||
|
|||
const onBack = () => { |
|||
router.back(); |
|||
}; |
|||
|
|||
const validate = () => { |
|||
if (!form.value.planDate) { |
|||
showToast('请选择预约时间'); |
|||
return false; |
|||
} |
|||
if (!form.value.enforceContent.trim()) { |
|||
showToast('请输入执法事项'); |
|||
return false; |
|||
} |
|||
if (!form.value.enterpriseName) { |
|||
showToast('请输入执法企业'); |
|||
return false; |
|||
} |
|||
if (!form.value.enterpriseNumber) { |
|||
showToast('请从检索结果中选择企业'); |
|||
return false; |
|||
} |
|||
if (personList.value.length < 2) { |
|||
showToast('执法人员不得少于2人'); |
|||
return false; |
|||
} |
|||
return true; |
|||
}; |
|||
|
|||
const onSubmit = () => { |
|||
if (submitting.value || !validate()) return; |
|||
if (isMockEdit.value) { |
|||
doSubmit(); |
|||
return; |
|||
} |
|||
|
|||
if (form.value.isUnion === 0) { |
|||
showConfirmDialog({ |
|||
title: '提示', |
|||
message: '不联合的预约将直接生成任务,且不能再改为联合,是否确认发布?', |
|||
confirmButtonText: '确认发布', |
|||
cancelButtonText: '取消', |
|||
}).then(doSubmit).catch(() => {}); |
|||
return; |
|||
} |
|||
|
|||
const reserveDate = new Date(form.value.planDate); |
|||
const today = new Date(); |
|||
today.setHours(0, 0, 0, 0); |
|||
const diffDays = Math.ceil((reserveDate.getTime() - today.getTime()) / 86400000); |
|||
if (diffDays <= manualMatchDays.value) { |
|||
showConfirmDialog({ |
|||
title: '提示', |
|||
message: `预约时间小于可预约的最短时间(${manualMatchDays.value}天),发布后将直接生成任务,是否确认发布?`, |
|||
confirmButtonText: '确认发布', |
|||
cancelButtonText: '取消', |
|||
}).then(doSubmit).catch(() => {}); |
|||
return; |
|||
} |
|||
|
|||
doSubmit(); |
|||
}; |
|||
|
|||
const doSubmit = () => { |
|||
submitting.value = true; |
|||
form.value.planActualDate = form.value.planDate; |
|||
form.value.planActualTime = form.value.planTime; |
|||
form.value.enforceUserTels = form.value.enforceUserTels.replace(/[,,\s]/g, '') |
|||
? form.value.enforceUserTels |
|||
: '-'; |
|||
form.value.enforceUserCodes = form.value.enforceUserCodes.replace(/[,,\s]/g, '') |
|||
? form.value.enforceUserCodes |
|||
: '-'; |
|||
form.value.organId = form.value.organId || '-'; |
|||
form.value.organName = form.value.organName || '-'; |
|||
form.value.deptId = form.value.deptId || '-'; |
|||
form.value.deptName = form.value.deptName || '-'; |
|||
|
|||
if (isMockEdit.value) { |
|||
const updated = updateMockReserve(route.query.id, form.value); |
|||
submitting.value = false; |
|||
if (updated) { |
|||
showSuccessToast('保存成功'); |
|||
setTimeout(() => router.back(), 500); |
|||
} else { |
|||
showToast('模拟预约不存在或已取消'); |
|||
} |
|||
return; |
|||
} |
|||
|
|||
addPlan( |
|||
form.value, |
|||
(res) => { |
|||
submitting.value = false; |
|||
if (res.code === 200) { |
|||
showSuccessToast('发布成功'); |
|||
setTimeout(() => router.back(), 800); |
|||
} else { |
|||
showToast(res.msg || '发布失败'); |
|||
} |
|||
}, |
|||
(err) => { |
|||
submitting.value = false; |
|||
showToast(err?.msg || '发布失败,请重试'); |
|||
} |
|||
); |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="less" scoped> |
|||
.reserve-edit-page { |
|||
display: flex; |
|||
flex-direction: column; |
|||
height: 100%; |
|||
background: #f5f6f8; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
:deep(.van-nav-bar) { |
|||
flex-shrink: 0; |
|||
background: #fff; |
|||
|
|||
.van-nav-bar__title { |
|||
color: #333; |
|||
font-size: 17px; |
|||
font-weight: 600; |
|||
} |
|||
|
|||
.van-icon { |
|||
color: #333; |
|||
} |
|||
} |
|||
|
|||
.content { |
|||
flex: 1; |
|||
overflow-y: auto; |
|||
padding: 12px; |
|||
} |
|||
|
|||
.form-card { |
|||
background: #fff; |
|||
border-radius: 12px; |
|||
overflow: hidden; |
|||
box-shadow: 0 4px 14px rgba(44, 116, 190, 0.06); |
|||
|
|||
:deep(.van-field) { |
|||
padding: 16px 14px; |
|||
} |
|||
|
|||
:deep(.van-field__label) { |
|||
width: 80px; |
|||
font-size: 15px; |
|||
color: #333; |
|||
} |
|||
|
|||
:deep(.van-radio-group--horizontal) { |
|||
gap: 64px; |
|||
} |
|||
|
|||
:deep(.van-radio__label) { |
|||
font-size: 15px; |
|||
} |
|||
} |
|||
|
|||
.person-box { |
|||
flex: 1; |
|||
display: flex; |
|||
flex-direction: column; |
|||
gap: 12px; |
|||
} |
|||
|
|||
.person-line { |
|||
display: flex; |
|||
align-items: center; |
|||
gap: 8px; |
|||
color: #333; |
|||
font-size: 15px; |
|||
|
|||
.person-phone { |
|||
color: #666; |
|||
} |
|||
|
|||
.person-remove { |
|||
margin-left: auto; |
|||
color: #999; |
|||
font-size: 16px; |
|||
} |
|||
} |
|||
|
|||
.add-person-line { |
|||
display: flex; |
|||
align-items: center; |
|||
color: #c4c9cf; |
|||
font-size: 15px; |
|||
cursor: pointer; |
|||
|
|||
.add-person-arrow { |
|||
margin-left: 6px; |
|||
color: #999; |
|||
} |
|||
|
|||
.van-icon:last-child { |
|||
margin-left: auto; |
|||
} |
|||
} |
|||
|
|||
.submit-wrap { |
|||
padding: 24px 0 8px; |
|||
|
|||
:deep(.van-button) { |
|||
height: 46px; |
|||
font-size: 17px; |
|||
font-weight: 500; |
|||
background: #1687e8; |
|||
border: none; |
|||
} |
|||
} |
|||
|
|||
.picker-panel { |
|||
display: flex; |
|||
flex-direction: column; |
|||
height: 100%; |
|||
} |
|||
|
|||
.picker-header { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: space-between; |
|||
padding: 14px 16px 8px; |
|||
color: #333; |
|||
font-size: 16px; |
|||
font-weight: 600; |
|||
|
|||
.van-icon { |
|||
color: #999; |
|||
font-size: 18px; |
|||
} |
|||
} |
|||
|
|||
.search-bar { |
|||
display: flex; |
|||
align-items: center; |
|||
margin: 5px; |
|||
|
|||
:deep(.van-search) { |
|||
flex: 1; |
|||
height: 34px; |
|||
padding-right: 0; |
|||
} |
|||
|
|||
.search-btn { |
|||
flex: none; |
|||
height: 34px; |
|||
} |
|||
} |
|||
|
|||
.picker-body { |
|||
flex: 1; |
|||
overflow-y: auto; |
|||
padding: 0 12px 12px; |
|||
} |
|||
|
|||
.picker-item { |
|||
margin-bottom: 8px; |
|||
padding: 12px 14px; |
|||
background: #fff; |
|||
border-bottom: 1px solid #f0f2f5; |
|||
cursor: pointer; |
|||
|
|||
&:active { |
|||
background: #f5faff; |
|||
} |
|||
|
|||
&.enterprise-item { |
|||
border: 1px solid #e6edf5; |
|||
border-radius: 10px; |
|||
} |
|||
} |
|||
|
|||
.picker-item-name { |
|||
color: #333; |
|||
font-size: 15px; |
|||
font-weight: 500; |
|||
} |
|||
|
|||
.picker-item-meta { |
|||
margin-top: 6px; |
|||
color: #999; |
|||
font-size: 12px; |
|||
} |
|||
</style> |
|||
Loading…
Reference in new issue