Commit eba0e270 authored by 王飞龙's avatar 王飞龙

bug修改

parent 206ad864
...@@ -290,10 +290,14 @@ ...@@ -290,10 +290,14 @@
>使用信息 >使用信息
</div> </div>
</div> </div>
<el-table :data="useList" :header-cell-style="{ background:'#F4F4F4'}" > <el-table :data="useList" :header-cell-style="{ background:'#F4F4F4'}">
<el-table-column label="检查项目" align="center" prop="checkItemsName" show-overflow-tooltip /> <el-table-column label="检查项目" align="center" prop="checkItemsName" show-overflow-tooltip />
<el-table-column label="宠物昵称" align="center" prop="petNickname" show-overflow-tooltip /> <el-table-column label="宠物昵称" align="center" prop="petNickname" show-overflow-tooltip />
<el-table-column label="宠主姓名" align="center" prop="nickname" show-overflow-tooltip /> <el-table-column label="宠主姓名" align="center" prop="nickname" show-overflow-tooltip>
<template slot-scope=" scope ">
{{ scope.row.nickname || "-" }}
</template>
</el-table-column>
<el-table-column label="宠主手机号" align="center" prop="phonenumber" /> <el-table-column label="宠主手机号" align="center" prop="phonenumber" />
<el-table-column label="检查日期" align="center" prop="checkStartTime" show-overflow-tooltip> <el-table-column label="检查日期" align="center" prop="checkStartTime" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -313,7 +317,7 @@ ...@@ -313,7 +317,7 @@
<el-table-column label="检查状态" align="center" prop="payType" show-overflow-tooltip> <el-table-column label="检查状态" align="center" prop="payType" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-show="scope.row.checkSchedule === '0' || scope.row.checkSchedule === '1'">-</span> <span v-show="scope.row.checkSchedule === '0' || scope.row.checkSchedule === '1'">-</span>
<span v-show="scope.row.checkSchedule === '2'" style="color: #DB4747;">待检查</span> <span v-show="scope.row.checkSchedule === '2'" style="color: #FF9D4E;">待检查</span>
<span v-show="scope.row.checkSchedule === '3'" style="color: #5FB54B;">已检查</span> <span v-show="scope.row.checkSchedule === '3'" style="color: #5FB54B;">已检查</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -595,7 +599,7 @@ ...@@ -595,7 +599,7 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<!-- 8--> <!-- 8-->
<el-row> <el-row>
<el-col> <el-col>
<el-form-item label="支持服务地区" prop="serviceArea"> <el-form-item label="支持服务地区" prop="serviceArea">
...@@ -615,7 +619,7 @@ ...@@ -615,7 +619,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<!-- 9--> <!-- 9-->
<el-row> <el-row>
<el-col> <el-col>
<el-form-item label="支持检查项目" prop="checkType"> <el-form-item label="支持检查项目" prop="checkType">
...@@ -648,7 +652,7 @@ ...@@ -648,7 +652,7 @@
:click-action="cancel" :click-action="cancel"
:is-show-confirm="true" :is-show-confirm="true"
/> />
<!-- <el-button class="resetBtn" size="mini" icon="el-icon-back" @click="cancel">返回</el-button>--> <!-- <el-button class="resetBtn" size="mini" icon="el-icon-back" @click="cancel">返回</el-button>-->
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
...@@ -865,7 +869,7 @@ export default { ...@@ -865,7 +869,7 @@ export default {
this.identify = this.$route.query.identify this.identify = this.$route.query.identify
this.form.isPrivate = this.$route.query.isPrivate this.form.isPrivate = this.$route.query.isPrivate
// console.time('start option') // console.time('start option')
Promise.all([this.getUserInfo(), this.getAreaData(), this.getuseList(), this.getItemByType()]) Promise.all([this.getAreaData(), this.getuseList(), this.getItemByType()])
.then(_ => { .then(_ => {
// console.timeLog('start option') // console.timeLog('start option')
// console.time('detail') // console.time('detail')
...@@ -1137,6 +1141,7 @@ export default { ...@@ -1137,6 +1141,7 @@ export default {
return getDevice(this.id).then(({ data }) => { return getDevice(this.id).then(({ data }) => {
data.selectedOptions = data.addressCode.split(',').map(Number) data.selectedOptions = data.addressCode.split(',').map(Number)
data.serviceArea = data.serviceArea.split(';') data.serviceArea = data.serviceArea.split(';')
this.getUserInfo()
if (data.checkType != null && data.checkType !== '') { if (data.checkType != null && data.checkType !== '') {
data.checkType = data.checkType.split(',').map(Number) data.checkType = data.checkType.split(',').map(Number)
} }
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="支持服务地区" prop="serviceArea"> <el-form-item label="支持服务地区" prop="serviceArea">
<el-input <el-input
v-model="form.serviceAreaText" v-model="serviceAreaText"
type="textarea" type="textarea"
:row="4" :row="4"
placeholder="-" placeholder="-"
...@@ -370,13 +370,13 @@ export default { ...@@ -370,13 +370,13 @@ export default {
pms: '', pms: '',
pme: '' pme: ''
}, },
serviceAreaText: [],
// 详情表单 // 详情表单
form: { form: {
selectedOptions: [], selectedOptions: [],
deviceName: '', deviceName: '',
// appointmentMethod: '', // appointmentMethod: '',
serviceArea: [], serviceArea: [],
serviceAreaText: [],
checkTypeText: [], checkTypeText: [],
head: '', head: '',
phone: '', phone: '',
...@@ -392,8 +392,8 @@ export default { ...@@ -392,8 +392,8 @@ export default {
this.getUseDetail() this.getUseDetail()
this.getCheckList() this.getCheckList()
this.getUserLogin() this.getUserLogin()
this.getAreaData()
this.getUserInfo() this.getUserInfo()
this.getAreaData()
}, },
methods: { methods: {
removeEmptyChildren(array) { removeEmptyChildren(array) {
...@@ -457,11 +457,10 @@ export default { ...@@ -457,11 +457,10 @@ export default {
labelList.push('-') labelList.push('-')
} }
} }
this.form.serviceAreaText = labelList this.serviceAreaText = labelList
console.log(labelList)
console.log('111111111111', labelList) console.log('111111111111', labelList)
console.log(' ----------------引人注目----------------------------his.form.serviceAreaText', this.form.serviceAreaText) console.log(' ----------------引人注目----------------------------his.form.serviceAreaText', this.serviceAreaText)
} }
}) })
}, },
...@@ -537,6 +536,7 @@ export default { ...@@ -537,6 +536,7 @@ export default {
} }
if (res.data.serviceArea !== '' && res.data.serviceArea !== null) { if (res.data.serviceArea !== '' && res.data.serviceArea !== null) {
this.form.serviceArea = res.data.serviceArea.split(';') this.form.serviceArea = res.data.serviceArea.split(';')
// this.serviceAreaS = this.form.serviceArea.split(';') // this.serviceAreaS = this.form.serviceArea.split(';')
// this.serviceArea = [] // this.serviceArea = []
// for (let i = 0; i < this.serviceAreaS.length; i++) { // for (let i = 0; i < this.serviceAreaS.length; i++) {
......
...@@ -630,13 +630,12 @@ color: #333333;" ...@@ -630,13 +630,12 @@ color: #333333;"
</el-button> </el-button>
<el-button <el-button
v-if="isEdit && scope.row.paymentStatus === '0' && !scope.row.inputShow" v-if="isEdit && scope.row.paymentStatus === '0' && !scope.row.inputShow"
icon="el-icon-edit"
plain plain
size="mini" size="mini"
style="width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(52,144,206);" style="width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(52,144,206);"
type="primary" type="primary"
@click="handleUpdate(scope.$index,'stockDispenseOutboundList')" @click="handleUpdate(scope.$index,'stockDispenseOutboundList')"
>编辑 ><svg-icon icon-class="liebiao_icon_bianji" style="font-size: 11px;vertical-align: top;" />编辑
</el-button> </el-button>
<el-button <el-button
v-if="isEdit && (scope.row.paymentStatus === '0'|| scope.row.isAdd ) && scope.row.inputShow" v-if="isEdit && (scope.row.paymentStatus === '0'|| scope.row.isAdd ) && scope.row.inputShow"
...@@ -830,13 +829,12 @@ color: #333333;" ...@@ -830,13 +829,12 @@ color: #333333;"
</el-button> </el-button>
<el-button <el-button
v-if="isEdit && scope.row.payType === '0' && !scope.row.inputShow" v-if="isEdit && scope.row.payType === '0' && !scope.row.inputShow"
icon="el-icon-edit"
plain plain
size="mini" size="mini"
style="width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(52,144,206);" style="width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(52,144,206);"
type="primary" type="primary"
@click="handleUpdate(scope.$index,'checkManageBos')" @click="handleUpdate(scope.$index,'checkManageBos')"
>编辑 ><svg-icon icon-class="liebiao_icon_bianji" style="font-size: 11px;vertical-align: top;" />编辑
</el-button> </el-button>
<el-button <el-button
v-if="isEdit && (scope.row.payType === '0'|| scope.row.isAdd ) && scope.row.inputShow" v-if="isEdit && (scope.row.payType === '0'|| scope.row.isAdd ) && scope.row.inputShow"
...@@ -1013,13 +1011,12 @@ color: #333333;" ...@@ -1013,13 +1011,12 @@ color: #333333;"
</el-button> </el-button>
<el-button <el-button
v-if="isEdit && scope.row.payType === '0' && !scope.row.inputShow" v-if="isEdit && scope.row.payType === '0' && !scope.row.inputShow"
icon="el-icon-edit"
plain plain
size="mini" size="mini"
style="width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(52,144,206);" style="width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(52,144,206);"
type="primary" type="primary"
@click="handleUpdate(scope.$index,'treatManageBo')" @click="handleUpdate(scope.$index,'treatManageBo')"
>编辑 ><svg-icon icon-class="liebiao_icon_bianji" style="font-size: 11px;vertical-align: top;" />编辑
</el-button> </el-button>
<el-button <el-button
v-if="isEdit && (scope.row.payType === '0'|| scope.row.isAdd ) && scope.row.inputShow" v-if="isEdit && (scope.row.payType === '0'|| scope.row.isAdd ) && scope.row.inputShow"
...@@ -1169,13 +1166,12 @@ color: #333333;" ...@@ -1169,13 +1166,12 @@ color: #333333;"
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow && ( scope.row.status === '0' || scope.row.status === '1' )" v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow && ( scope.row.status === '0' || scope.row.status === '1' )"
icon="el-icon-edit"
plain plain
size="mini" size="mini"
style="width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(52,144,206);" style="width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(52,144,206);"
type="primary" type="primary"
@click="updatePetInHospitalShow(scope.row)" @click="updatePetInHospitalShow(scope.row)"
>编辑 ><svg-icon icon-class="liebiao_icon_bianji" style="font-size: 11px;vertical-align: top;" />编辑
</el-button> </el-button>
<el-button <el-button
v-if="isEdit && !petInHospitalStatus && petInHospitalUpdateShow" v-if="isEdit && !petInHospitalStatus && petInHospitalUpdateShow"
......
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