|
|
@ -1,57 +1,69 @@ |
|
|
|
<template> |
|
|
|
<view> |
|
|
|
<view class="personal-pet-health-info"> |
|
|
|
<view class="personal-pet-info-title border-bottom"> |
|
|
|
宠物健康情况 |
|
|
|
</view> |
|
|
|
<u--form labelPosition="left" :model="petHealthInfo" ref="uForm"> |
|
|
|
<u-form-item required label="疫苗" :prop="`petHealthInfo.vaccine`" labelWidth="80" borderBottom |
|
|
|
@click="showVaccine = true"> |
|
|
|
<u--input v-model="petHealthInfo.vaccine" disabled disabledColor="#ffffff" placeholder="请选择" |
|
|
|
placeholderStyle="text-align:right;color:#AAA" border="none" inputAlign="right"></u--input> |
|
|
|
<u-icon slot="right" name="arrow-right" color="#AAA"></u-icon> |
|
|
|
</u-form-item> |
|
|
|
<u-form-item required label="驱虫" :prop="`petHealthInfo.deworm`" labelWidth="80" borderBottom |
|
|
|
@click="showExpelling = true"> |
|
|
|
<u--input v-model="petHealthInfo.deworm" disabled disabledColor="#ffffff" placeholder="请选择" |
|
|
|
placeholderStyle="text-align:right;color:#AAA" border="none" inputAlign="right"></u--input> |
|
|
|
<u-icon slot="right" name="arrow-right" color="#AAA"></u-icon> |
|
|
|
</u-form-item> |
|
|
|
<u-form-item label="绝育" :prop="`petHealthInfo.neutered`" labelWidth="80" borderBottom |
|
|
|
@click="showSterilization = true" ref="item1"> |
|
|
|
<u--input v-model="petHealthInfo.neutered" disabled disabledColor="#ffffff" placeholder="请选择" |
|
|
|
placeholderStyle="text-align:right;color:#AAA" border="none" inputAlign="right"></u--input> |
|
|
|
<u-icon slot="right" name="arrow-right" color="#AAA"></u-icon> |
|
|
|
</u-form-item> |
|
|
|
<u-form-item v-if="petType === 'dog' || petType === '狗狗' " label="狗证" |
|
|
|
:prop="`petHealthInfo.doglicenseStatus`" labelWidth="80" borderBottom @click="showDog = true" |
|
|
|
ref="item1"> |
|
|
|
<u--input v-model="petHealthInfo.doglicenseStatus" disabled disabledColor="#ffffff" |
|
|
|
placeholder="请选择" placeholderStyle="text-align:right;color:#AAA" border="none" |
|
|
|
inputAlign="right"></u--input> |
|
|
|
<u-icon slot="right" name="arrow-right" color="#AAA"></u-icon> |
|
|
|
</u-form-item> |
|
|
|
<view class="dog-tips" v-if="petType === 'dog' || petType === '狗狗'"> |
|
|
|
<u-icon name="info-circle" color="#A94F20" size="12"></u-icon> |
|
|
|
<view style="margin-left: 3px;"> |
|
|
|
未办理养犬许可证且需要外出遛狗, 犬只存在被相关单位收缴 |
|
|
|
甚至捕杀的可能,请您遵守当地养犬规范,合法文明养犬。具体 |
|
|
|
请您查看当地养犬条例 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 赶进度,先注释 --> |
|
|
|
<!-- <u-form-item required label="健康" :prop="`petHealthInfo.healths`" labelWidth="80" @click="healthsSelect"> --> |
|
|
|
<u-form-item required label="健康" :prop="`petHealthInfo.health`" labelWidth="80"> |
|
|
|
<u--input disabledColor="#ffffff" placeholder="请输入" |
|
|
|
v-model="petHealthInfo.health" |
|
|
|
placeholderStyle="text-align:right;color:#AAA" border="none" inputAlign="right"></u--input> |
|
|
|
<view slot="right"> |
|
|
|
<u-icon v-if="showHealths" name="arrow-down" color="#AAA"></u-icon> |
|
|
|
<u-icon v-else name="arrow-right" color="#AAA"></u-icon> |
|
|
|
</view> |
|
|
|
</u-form-item> |
|
|
|
</u--form> |
|
|
|
</view> |
|
|
|
<view > |
|
|
|
<view class="personal-pet-health-info"> |
|
|
|
<view class="personal-pet-info-title border-bottom"> |
|
|
|
宠物健康情况 |
|
|
|
</view> |
|
|
|
<u--form labelPosition="left" :model="petHealthInfo" ref="uForm"> |
|
|
|
<u-form-item required label="疫苗" :prop="`petHealthInfo.vaccineStatus`" labelWidth="80" borderBottom |
|
|
|
@click="showVaccine = true"> |
|
|
|
<u--input v-model="petHealthInfo.vaccineStatus" disabled disabledColor="#ffffff" placeholder="请选择" |
|
|
|
placeholderStyle="text-align:right;color:#AAA" border="none" inputAlign="right"></u--input> |
|
|
|
<u-icon slot="right" name="arrow-right" color="#AAA"></u-icon> |
|
|
|
</u-form-item> |
|
|
|
<u-form-item required label="驱虫" :prop="`petHealthInfo.dewormingStatus`" labelWidth="80" borderBottom |
|
|
|
@click="showExpelling = true"> |
|
|
|
<u--input v-model="petHealthInfo.dewormingStatus" disabled disabledColor="#ffffff" placeholder="请选择" |
|
|
|
placeholderStyle="text-align:right;color:#AAA" border="none" inputAlign="right"></u--input> |
|
|
|
<u-icon slot="right" name="arrow-right" color="#AAA"></u-icon> |
|
|
|
</u-form-item> |
|
|
|
<u-form-item label="绝育" :prop="`petHealthInfo.sterilization`" labelWidth="80" borderBottom |
|
|
|
@click="showSterilization = true" ref="item1"> |
|
|
|
<u--input v-model="petHealthInfo.sterilization" disabled disabledColor="#ffffff" placeholder="请选择" |
|
|
|
placeholderStyle="text-align:right;color:#AAA" border="none" inputAlign="right"></u--input> |
|
|
|
<u-icon slot="right" name="arrow-right" color="#AAA"></u-icon> |
|
|
|
</u-form-item> |
|
|
|
<u-form-item v-if="petType === 'dog' || petType === '狗狗' " label="狗证" :prop="`petHealthInfo.doglicenseStatus`" labelWidth="80" borderBottom |
|
|
|
@click="showDog = true" ref="item1"> |
|
|
|
<u--input v-model="petHealthInfo.doglicenseStatus" disabled disabledColor="#ffffff" placeholder="请选择" |
|
|
|
placeholderStyle="text-align:right;color:#AAA" border="none" inputAlign="right"></u--input> |
|
|
|
<u-icon slot="right" name="arrow-right" color="#AAA"></u-icon> |
|
|
|
</u-form-item> |
|
|
|
<view class="dog-tips" v-if="petType === 'dog' || petType === '狗狗'"> |
|
|
|
<image class="icon" :src="configList.pet_dog_license.paramValueImage"></image> |
|
|
|
<view> |
|
|
|
<up-parse :content="configList.pet_dog_license.paramValueArea" containerStyle="{ |
|
|
|
color: '#A94F20', |
|
|
|
fontSize: '12px', |
|
|
|
}"></up-parse> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-form-item required label="健康" :prop="`petHealthInfo.healths`" labelWidth="80" |
|
|
|
@click="healthsSelect"> |
|
|
|
<u--input disabled disabledColor="#ffffff" placeholder="请选择(多选)" :value="petHealthInfo.healthStatus && petHealthInfo.healthStatus.join(',')" |
|
|
|
placeholderStyle="text-align:right;color:#AAA" border="none" inputAlign="right"></u--input> |
|
|
|
<view slot="right"> |
|
|
|
<u-icon v-if="showHealths" name="arrow-down" color="#AAA"></u-icon> |
|
|
|
<u-icon v-else name="arrow-right" color="#AAA" ></u-icon> |
|
|
|
</view> |
|
|
|
</u-form-item> |
|
|
|
</u--form> |
|
|
|
</view> |
|
|
|
<view class="health-select" v-show="showHealths"> |
|
|
|
<view style="padding: 10px;height: 85%;"> |
|
|
|
<u-checkbox-group v-model="petHealthInfo.healthStatus" @change="checkboxChange" placement="column" activeColor="#ffbf60"> |
|
|
|
<u-checkbox :customStyle="{marginBottom: '8px'}" v-for="(item, index) in healthData" |
|
|
|
:key="index" :label="item" :name="item"> |
|
|
|
</u-checkbox> |
|
|
|
</u-checkbox-group> |
|
|
|
<u--input placeholder="请输入其他健康特征" |
|
|
|
:disabled="!(petHealthInfo.healthStatus && petHealthInfo.healthStatus.includes('其他'))" |
|
|
|
border="surround" maxlength='20' |
|
|
|
:customStyle="{backgroundColor: '#fff'}" |
|
|
|
@change="updatePetHealthInfo()" |
|
|
|
v-model="petHealthInfo.remark"></u--input> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 赶进度,先注释 --> |
|
|
|
<!-- <view class="health-select" v-show="showHealths"> |
|
|
@ -221,22 +233,26 @@ |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
.personal-pet-health-info { |
|
|
|
background-color: #fff; |
|
|
|
padding: 10px 20px 0 20px; |
|
|
|
margin-top: 10px; |
|
|
|
} |
|
|
|
|
|
|
|
.health-select { |
|
|
|
background-color: #fffcf2; |
|
|
|
padding: 10px 20px; |
|
|
|
} |
|
|
|
|
|
|
|
.dog-tips { |
|
|
|
color: #A94F20; |
|
|
|
font-size: 12px; |
|
|
|
display: flex; |
|
|
|
align-items: baseline; |
|
|
|
margin-top: 5px; |
|
|
|
} |
|
|
|
</style> |
|
|
|
.personal-pet-health-info{ |
|
|
|
background-color: #fff; |
|
|
|
padding: 10px 20px 0 20px; |
|
|
|
margin-top: 10px; |
|
|
|
} |
|
|
|
.health-select{ |
|
|
|
background-color: #fffcf2; |
|
|
|
padding: 10px 20px; |
|
|
|
} |
|
|
|
.dog-tips{ |
|
|
|
color: #A94F20; |
|
|
|
font-size: 12px; |
|
|
|
display: flex; |
|
|
|
align-items: baseline; |
|
|
|
margin-top: 5px; |
|
|
|
|
|
|
|
.icon { |
|
|
|
width: 12px; |
|
|
|
height: 12px; |
|
|
|
margin-right: 3px; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |