Commit e6f03fc2 authored by 小费同学阿's avatar 小费同学阿 💬

Merge remote-tracking branch 'origin/master'

parents 9884110f 09db10a0
...@@ -634,7 +634,7 @@ export default { ...@@ -634,7 +634,7 @@ export default {
customerStatistics: {}, customerStatistics: {},
mapData: [], mapData: [],
yData1: { yData1: {
label: '新增用户量', label: '新增注册量',
data: [], data: [],
line_color: '#3490CE', line_color: '#3490CE',
area_color: 'rgba(52,144,206,0.3)', area_color: 'rgba(52,144,206,0.3)',
......
...@@ -77,25 +77,26 @@ ...@@ -77,25 +77,26 @@
<el-col :span="16"> <el-col :span="16">
<el-form-item label="服务地点"> <el-form-item label="服务地点">
<el-cascader <InputTips :text="form.selectedOptions" class="inputWidth" />
ref="serviceArea" <!-- <el-cascader-->
v-model="form.selectedOptions" <!-- ref="serviceArea"-->
size="large" <!-- v-model="form.selectedOptions"-->
:options="areaOptions" <!-- size="large"-->
placeholder="-" <!-- :options="areaOptions"-->
expand-trigger="hover" <!-- placeholder="-"-->
clearable <!-- expand-trigger="hover"-->
class="overflow-hidden" <!-- clearable-->
@change="handleChangeCascader" <!-- class="overflow-hidden"-->
@mouseover.native="showTooltip = true" <!-- @change="handleChangeCascader"-->
@mouseout.native="showTooltip = false" <!-- @mouseover.native="showTooltip = true"-->
> <!-- @mouseout.native="showTooltip = false"-->
<template #suffix> <!-- >-->
<el-tooltip placement="top" content="这是提示内容" :disabled="!showTooltip" :offset="[0, 8]"> <!-- <template #suffix>-->
<i class="el-icon-question" /> <!-- <el-tooltip placement="top" content="这是提示内容" :disabled="!showTooltip" :offset="[0, 8]">-->
</el-tooltip> <!-- <i class="el-icon-question" />-->
</template> <!-- </el-tooltip>-->
</el-cascader> <!-- </template>-->
<!-- </el-cascader>-->
</el-form-item> </el-form-item>
<el-form-item prop="address"> <el-form-item prop="address">
<el-input <el-input
...@@ -652,11 +653,13 @@ import { getInfo } from '@/api/login' ...@@ -652,11 +653,13 @@ import { getInfo } from '@/api/login'
import { listCheckManage } from '@/api/business/manage' import { listCheckManage } from '@/api/business/manage'
import { isEmpty, parseTime } from '@/utils/ruoyi' import { isEmpty, parseTime } from '@/utils/ruoyi'
import { deepClone } from '@/utils' import { deepClone } from '@/utils'
import { listItemByType } from '@/api/business/item' import { listAllByType, listItemByType } from '@/api/business/item'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { signHospitalMessage } from '@/api/business/hospital' import { signHospitalMessage } from '@/api/business/hospital'
import InputTips from '@/components/InputTips/InputTips.vue'
export default { export default {
name: 'EquipmentDetail', name: 'EquipmentDetail',
components: { InputTips },
dicts: ['device_status', 'device_type', 'exam_type', 'check_type', 'service_area'], dicts: ['device_status', 'device_type', 'exam_type', 'check_type', 'service_area'],
data() { data() {
return { return {
...@@ -894,6 +897,8 @@ export default { ...@@ -894,6 +897,8 @@ export default {
this.itemType = 3 this.itemType = 3
} }
this.getItemByType() this.getItemByType()
this.getAllByType()
console.log('登陆人', res) console.log('登陆人', res)
}) })
}, },
...@@ -1043,6 +1048,22 @@ export default { ...@@ -1043,6 +1048,22 @@ export default {
console.log(' this.checkTypeText', this.form.checkTypeText) console.log(' this.checkTypeText', this.form.checkTypeText)
}) })
}, },
getAllByType() {
listAllByType({ itemType: this.itemType }).then(res => {
console.log('检查全部项目', res)
this.checkItemOptions = res.rows
// console.log('xdddd', this.checkItemOptions)
const result = []
const ids = [... this.form.checkType]
for (let i = 0; i < this.checkItemOptions.length; i++) {
if (ids.includes(parseInt(this.checkItemOptions[i].id))) {
result.push(this.checkItemOptions[i].name)
}
}
// this.form.checkTypeText = result
// console.log(' this.checkTypeText', this.form.checkTypeText)
})
},
// 获取地址数据 // 获取地址数据
getAreaData() { getAreaData() {
getAreTreeStructure().then(response => { getAreTreeStructure().then(response => {
...@@ -1208,6 +1229,8 @@ export default { ...@@ -1208,6 +1229,8 @@ export default {
this.form = response.data this.form = response.data
console.log('查询是否为医院设备', this.form.isPrivate) console.log('查询是否为医院设备', this.form.isPrivate)
this.form.selectedOptions = response.data.addressCode.split(',').map(Number) this.form.selectedOptions = response.data.addressCode.split(',').map(Number)
console.log('地址编码-------------', this.form.selectedOptions)
this.getAreNameById(this.form.selectedOptions)
// if (this.form.isPrivate === '1') { // if (this.form.isPrivate === '1') {
// signHospitalMessage().then(response => { // signHospitalMessage().then(response => {
// console.log('查到医院信息', response) // console.log('查到医院信息', response)
......
...@@ -176,7 +176,13 @@ ...@@ -176,7 +176,13 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="宠物品种"> <el-form-item label="宠物品种">
<el-input v-model="form.petBreed" :disabled="true" placeholder="-" /> <el-input v-model="form.petBreed" :disabled="true" placeholder="-" class="half__-5px" />
<el-input
v-model="form.petChildBreed"
placeholder="-"
class="petChildBreed half"
disabled
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -566,6 +572,15 @@ export default { ...@@ -566,6 +572,15 @@ export default {
} }
.half__-5px {
width: calc(50% - 5px) !important;
}
.half {
width: 50% !important;
}
.petChildBreed {
margin-left: 5px;
}
.tip1 { .tip1 {
height: 30px; height: 30px;
border-left: 5px solid #5bb647; border-left: 5px solid #5bb647;
......
...@@ -1090,7 +1090,7 @@ color: #333333;" ...@@ -1090,7 +1090,7 @@ color: #333333;"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow" v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow && ( scope.row.status === '0' || scope.row.status === '1' )"
icon="el-icon-edit" icon="el-icon-edit"
plain plain
size="mini" size="mini"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment