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

Merge remote-tracking branch 'origin/master'

parents acec90e8 6aa0ed5b
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12" height="12" viewBox="0 0 12 12"><defs><style>.a{fill:none;}.b{isolation:isolate;clip-path:url(#a);}.c{fill:#333;}</style><clipPath id="a"><rect class="a" x="1" y="1" width="12" height="12"/></clipPath></defs><g class="b" transform="translate(-1 -1)"><path class="c" d="M175.909,220.487l3.792,3.686-.852.828-5.247-5.1,5.247-5.1.852.828-3.792,3.686H185.6v1.171Z" transform="translate(-172.602 -212.901)"/></g></svg>
\ No newline at end of file
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
// this.cropperVisible = true // this.cropperVisible = true
// }) // })
this.fileName = file.name this.fileName = file.name.replace(/[%;]/g, '')
}, },
// 点击剪裁弹框的确定按钮 // 点击剪裁弹框的确定按钮
async onConfirm(blob) { async onConfirm(blob) {
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<el-form-item label="文章封面" prop="articleCover"> <el-form-item label="文章封面" prop="articleCover">
<!-- 0-- 文章信息的页面--文章封面 --> <!-- 0-- 文章信息的页面--文章封面 -->
<div class="base-msg"> <div class="base-msg">
<div class="petPicture" style="padding-bottom: 20px;"> <div class="petPicture" style="">
<ImagePreview :height="150" :src="baseURL+form.articleCover" :width="150" /> <ImagePreview :height="150" :src="baseURL+form.articleCover" :width="150" />
</div> </div>
</div> </div>
...@@ -61,34 +61,20 @@ ...@@ -61,34 +61,20 @@
/> />
</el-select> </el-select>
</div> </div>
<!-- <div v-if="form.articleStatus==='0'" style="padding-top: 1px;">已上架</div>-->
<!-- <div v-else-if="form.articleStatus==='1'" style="padding-top: 1px;">已下架</div>-->
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="文章内容" prop="articleCover">
<!-- 0-- 文章信息的页面--文章封面 -->
<editor v-model="form.articleContent" read-only />
</el-form-item>
<el-form-item label="" prop="">
<el-button class="resetBtn" icon="el-icon-back" @click="goBack">返 回</el-button>
</el-form-item>
</el-form> </el-form>
</div> </div>
<!-- 2-- 文章信息--文章内容 -->
<div style="display: flex">
<!-- 文章内容-->
<div class="tip-green" />
<div
class="title-font-style"
>文章内容
</div>
</div>
<!-- 2-- 文章信息的页面--文章内容 -->
<div class="base-msg" style="padding-top: 32px; padding-bottom: 20px; padding-left: 13px;">
<el-row>
<div v-html="form.articleContent" />
</el-row>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button class="resetBtn" icon="el-icon-back" @click="goBack">返 回</el-button>
</div> </div>
</div> </div>
</el-card> </el-card>
</div> </div>
</template> </template>
...@@ -200,6 +186,7 @@ export default { ...@@ -200,6 +186,7 @@ export default {
.pet-owner-detail { .pet-owner-detail {
//最外层嵌套卡片的样式 //最外层嵌套卡片的样式
.box-card { .box-card {
min-height: calc(100vh - 100px);
} }
//模块tip样式--绿色 //模块tip样式--绿色
...@@ -232,7 +219,7 @@ export default { ...@@ -232,7 +219,7 @@ export default {
//1--基本信息--模块内信息整体样式 //1--基本信息--模块内信息整体样式
.base-msg { .base-msg {
width: 500px; width: 700px;
//color: #666666; //color: #666666;
//display: grid !important; //display: grid !important;
//grid-template-columns: repeat(3, auto); //grid-template-columns: repeat(3, auto);
...@@ -273,4 +260,18 @@ export default { ...@@ -273,4 +260,18 @@ export default {
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
} }
::v-deep .ql-editor {
background-color: #f5f7fa;
}
::v-deep .ql-toolbar {
background-color: #f5f7fa;
.ql-formats {
button {
pointer-events: none !important;
}
.ql-picker {
pointer-events: none !important;
}
}
}
</style> </style>
...@@ -70,22 +70,23 @@ ...@@ -70,22 +70,23 @@
<!--反向选择--> <!--反向选择-->
<el-button <el-button
v-hasPermi="['system:manage:export']" v-hasPermi="['system:manage:export']"
class="fourWordsBtn" class="fourWordswhiteBtn"
icon="el-icon-back"
size="mini" size="mini"
@click="reverseSelect" @click="reverseSelect"
>反向选择 >
<svg-icon icon-class="shuaixuan_icon_fanxiang" />
反向选择
</el-button> </el-button>
<!--批量导出--> <!--批量导出-->
<el-button <el-button
v-hasPermi="['system:pets:export']" v-hasPermi="['system:pets:export']"
class="fourWordsBtn" class="fourWordswhiteBtn"
size="mini" size="mini"
:loading="exportLoading" :loading="exportLoading"
@click="handleExport" @click="handleExport"
> >
<!-- 导入svg文件--> <!-- 导入svg文件-->
<svg-icon icon-class="shaixuan_icon_daochu" /> <svg-icon icon-class="shaixuan_icon_daochu" style="font-size: 11px" />
批量导出 批量导出
</el-button> </el-button>
</el-form-item> </el-form-item>
...@@ -155,13 +156,14 @@ ...@@ -155,13 +156,14 @@
<div style="padding-right: 20px;"> <div style="padding-right: 20px;">
<el-button <el-button
v-hasPermi="['business:article:edit']" v-hasPermi="['business:article:edit']"
icon="el-icon-edit"
plain plain
size="mini" size="mini"
class="el-button--primary--solid" class="el-button--primary--solid"
type="primary" type="primary"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>编辑 >
<svg-icon icon-class="liebiao_icon_bianji" style="font-size: 11px;vertical-align: top;" />
编辑
</el-button> </el-button>
</div> </div>
<div v-if="scope.row.articleStatus==='1'"> <div v-if="scope.row.articleStatus==='1'">
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="bannerList" :data="bannerList"
:header-cell-style="{background:'#E8E9E8'}" :header-cell-style="{background:'#f4f4f4'}"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column label="序号" min-width="10px" show-overflow-tooltip type="index" /> <el-table-column label="序号" min-width="10px" show-overflow-tooltip type="index" />
...@@ -117,14 +117,14 @@ ...@@ -117,14 +117,14 @@
<div style="padding-right: 20px;"> <div style="padding-right: 20px;">
<el-button <el-button
v-hasPermi="['business:banner:edit']" v-hasPermi="['business:banner:edit']"
icon="el-icon-edit"
plain plain
size="mini" size="mini"
class="el-button--primary--solid" class="el-button--primary--solid"
:disabled="scope.row.status === '1'" :disabled="scope.row.status === '1'"
type="primary" type="primary"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>编辑 >
<svg-icon icon-class="liebiao_icon_bianji" style="font-size: 11px;vertical-align: top;margin-right: 2px" />编辑
</el-button> </el-button>
</div> </div>
<div v-if="scope.row.status==='2'"> <div v-if="scope.row.status==='2'">
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
/> />
</div> </div>
<div class="prestoredRankFont"> <div class="prestoredRankFont">
{{ item.total }} {{ moneyFormat(item.total) }}
</div> </div>
</div> </div>
</div> </div>
...@@ -855,4 +855,7 @@ export default { ...@@ -855,4 +855,7 @@ export default {
.progressWidth { .progressWidth {
width: 330px; width: 330px;
} }
::v-deep .cell {
line-height: 2.125rem;
}
</style> </style>
<template> <template>
<div> <div>
<div v-if="value >= 0" class="upPercentDiv"> <div v-if="value > 0" class="upPercentDiv">
+{{ value || 0 }}% <img src="../../../assets/data_statistics/caiwu_icon_sheng.png" height="12" width="8"> <span v-if="value > 0">+</span>{{ value || 0.0 }}% <img v-if="value > 0" src="../../../assets/data_statistics/caiwu_icon_sheng.png" height="12" width="8">
</div> </div>
<div v-else class="downPercentDiv"> <div v-else class="downPercentDiv">
{{ value || 0 }}% <img src="../../../assets/data_statistics/caiwu_icon_zjiang.png" height="12" width="8"> {{ value || 0.0 }}% <img v-if="value < 0" src="../../../assets/data_statistics/caiwu_icon_zjiang.png" height="12" width="8">
</div> </div>
</div> </div>
</template> </template>
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
font-size: 12px; font-size: 12px;
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-weight: bold; font-weight: bold;
color: #5FB54B; color: #DB4747;
text-align: right; text-align: right;
} }
.downPercentDiv { .downPercentDiv {
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
font-size: 12px; font-size: 12px;
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-weight: bold; font-weight: bold;
color: #DB4747; color: #5FB54B;
text-align: right; text-align: right;
} }
</style> </style>
...@@ -126,21 +126,19 @@ ...@@ -126,21 +126,19 @@
<div class="rank_hospital_name_font"> <div class="rank_hospital_name_font">
<overlong-tool :text="(item.ownerId || '-') + ' (' + item.nickname + ')'" :max="30" /> <overlong-tool :text="(item.ownerId || '-') + ' (' + item.nickname + ')'" :max="30" />
</div> </div>
<el-row> <div style="display: flex">
<el-col :span="18"> <div class="progressWidth">
<el-progress <el-progress
:percentage="item.money/petOwnerConsumeRank[0].money*100" :percentage="item.money/petOwnerConsumeRank[0].money*100"
:stroke-width="9" :stroke-width="9"
:show-text="false" :show-text="false"
class="consumeRankProgress" class="consumeRankProgress"
/> />
</el-col> </div>
<el-col :span="6">
<div class="consumeRankFont"> <div class="consumeRankFont">
{{ item.money }} {{ moneyFormat(item.money) }}
</div> </div>
</el-col> </div>
</el-row>
</div> </div>
</div> </div>
<empty-tool v-else title="宠主累计消费排行" /> <empty-tool v-else title="宠主累计消费排行" />
...@@ -434,7 +432,7 @@ ...@@ -434,7 +432,7 @@
<overlong-tool :text="item.ownerId + '('+(item.nickname || '-')+')'" :max="30" /> <overlong-tool :text="item.ownerId + '('+(item.nickname || '-')+')'" :max="30" />
</div> </div>
<el-row> <el-row>
<el-col :span="19"> <el-col :span="16">
<el-progress <el-progress
:percentage="item.money/vipTopUpRank[0].money*100" :percentage="item.money/vipTopUpRank[0].money*100"
:stroke-width="9" :stroke-width="9"
...@@ -442,9 +440,9 @@ ...@@ -442,9 +440,9 @@
class="consumeRankProgress" class="consumeRankProgress"
/> />
</el-col> </el-col>
<el-col :span="5"> <el-col :span="8">
<div class="consumeRankFont"> <div class="consumeRankFont">
{{ moneyFormat(item.money) }}元 {{ moneyFormat(item.money) }}
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -662,8 +660,7 @@ export default { ...@@ -662,8 +660,7 @@ export default {
data: [], data: [],
line_color: '#5FB54B', line_color: '#5FB54B',
area_color: 'rgba(95,181,75,0.3)', area_color: 'rgba(95,181,75,0.3)',
unit: '万元', unit: '万元'
fixNum: 2
}, },
petOwnerConsumeRank: [], petOwnerConsumeRank: [],
vipTopUpRank: [], vipTopUpRank: [],
...@@ -1217,4 +1214,10 @@ export default { ...@@ -1217,4 +1214,10 @@ export default {
height: 500px; height: 500px;
} }
} }
.progressWidth {
width: 330px;
}
::v-deep .cell {
line-height: 2.125rem;
}
</style> </style>
...@@ -79,17 +79,17 @@ export default { ...@@ -79,17 +79,17 @@ export default {
// this.$modal.msgError('内容不能为空') // this.$modal.msgError('内容不能为空')
// return // return
// } // }
this.$confirm('系统将立即发布编辑内容,是否确定', '提示', { this.$refs['ruleForm'].validate((valid) => {
confirmButtonText: '确定', if (valid) {
cancelButtonText: '取消', this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
customClass: 'box-logout', confirmButtonText: '确定',
cancelButtonClass: 'resetBtn', cancelButtonText: '取消',
confirmButtonClass: 'queryBtn', customClass: 'box-logout',
type: 'warning', cancelButtonClass: 'resetBtn',
closeOnClickModal: false confirmButtonClass: 'queryBtn',
}).then(() => { type: 'warning',
this.$refs['ruleForm'].validate((valid) => { closeOnClickModal: false
if (valid) { }).then(() => {
if (this.isAdd) { if (this.isAdd) {
// 新增 // 新增
addManagement(this.privacyPolicy).then(response => { addManagement(this.privacyPolicy).then(response => {
...@@ -105,8 +105,8 @@ export default { ...@@ -105,8 +105,8 @@ export default {
} }
}) })
} }
} })
}) }
}) })
}, },
getPrivacyPolicy() { getPrivacyPolicy() {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button style="color: #5FB54B" type="text" @click="check(scope.row)">查看</el-button> <el-button style="color: #5FB54B" type="text" @click="check(scope.row, 1)">查看</el-button>
<el-button style="color: #5FB54B" type="text" @click="downloadPdf(scope.row)">下载</el-button> <el-button style="color: #5FB54B" type="text" @click="downloadPdf(scope.row)">下载</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button style="color: #5FB54B" type="text" @click="check(scope.row)">查看</el-button> <el-button style="color: #5FB54B" type="text" @click="check(scope.row, 2)">查看</el-button>
<el-button style="color: #5FB54B" type="text" @click="downloadPdf(scope.row)">下载</el-button> <el-button style="color: #5FB54B" type="text" @click="downloadPdf(scope.row)">下载</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
/> />
<!-- 合同文件查看 --> <!-- 合同文件查看 -->
<el-dialog <el-dialog
title="合同文件" :title="title"
:visible.sync="openContractDocument" :visible.sync="openContractDocument"
:before-close="closeContractDocument" :before-close="closeContractDocument"
width="50%" width="50%"
...@@ -141,7 +141,8 @@ export default { ...@@ -141,7 +141,8 @@ export default {
pageSize: 20, pageSize: 20,
hospitalId: null hospitalId: null
}, },
id: null id: null,
title: ''
} }
}, },
mounted() { mounted() {
...@@ -190,7 +191,12 @@ export default { ...@@ -190,7 +191,12 @@ export default {
console.log('医院ID', this.currentHospitalId) console.log('医院ID', this.currentHospitalId)
}) })
}, },
check(row) { check(row, num) {
if (num === 1) {
this.title = '入驻合同'
} else if (num === 2) {
this.title = '授权合同'
}
this.openContractDocument = true this.openContractDocument = true
this.contractDocumentUrl = this.baseUrl + row.contract this.contractDocumentUrl = this.baseUrl + row.contract
}, },
......
...@@ -79,17 +79,17 @@ export default { ...@@ -79,17 +79,17 @@ export default {
// this.$modal.msgError('内容不能为空') // this.$modal.msgError('内容不能为空')
// return // return
// } // }
this.$confirm('系统将立即发布编辑内容,是否确定', '提示', { this.$refs['ruleForm'].validate((valid) => {
confirmButtonText: '确定', if (valid) {
cancelButtonText: '取消', this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
customClass: 'box-logout', confirmButtonText: '确定',
cancelButtonClass: 'resetBtn', cancelButtonText: '取消',
confirmButtonClass: 'queryBtn', customClass: 'box-logout',
type: 'warning', cancelButtonClass: 'resetBtn',
closeOnClickModal: false confirmButtonClass: 'queryBtn',
}).then(() => { type: 'warning',
this.$refs['ruleForm'].validate((valid) => { closeOnClickModal: false
if (valid) { }).then(() => {
if (this.isAdd) { if (this.isAdd) {
// 新增 // 新增
addManagement(this.privacyPolicy).then(response => { addManagement(this.privacyPolicy).then(response => {
...@@ -105,8 +105,8 @@ export default { ...@@ -105,8 +105,8 @@ export default {
} }
}) })
} }
} })
}) }
}) })
}, },
getPrivacyPolicy() { getPrivacyPolicy() {
......
...@@ -79,17 +79,17 @@ export default { ...@@ -79,17 +79,17 @@ export default {
// this.$modal.msgError('内容不能为空') // this.$modal.msgError('内容不能为空')
// return // return
// } // }
this.$confirm('系统将立即发布编辑内容,是否确定', '提示', { this.$refs['ruleForm'].validate((valid) => {
confirmButtonText: '确定', if (valid) {
cancelButtonText: '取消', this.$confirm('系统将立即发布编辑内容,是否确定', '提示', {
customClass: 'box-logout', confirmButtonText: '确定',
cancelButtonClass: 'resetBtn', cancelButtonText: '取消',
confirmButtonClass: 'queryBtn', customClass: 'box-logout',
type: 'warning', cancelButtonClass: 'resetBtn',
closeOnClickModal: false confirmButtonClass: 'queryBtn',
}).then(() => { type: 'warning',
this.$refs['ruleForm'].validate((valid) => { closeOnClickModal: false
if (valid) { }).then(() => {
if (this.isAdd) { if (this.isAdd) {
// 新增 // 新增
addManagement(this.privacyPolicy).then(response => { addManagement(this.privacyPolicy).then(response => {
...@@ -105,8 +105,8 @@ export default { ...@@ -105,8 +105,8 @@ export default {
} }
}) })
} }
} })
}) }
}) })
}, },
getPrivacyPolicy() { getPrivacyPolicy() {
......
...@@ -959,7 +959,7 @@ color: #333333;" ...@@ -959,7 +959,7 @@ color: #333333;"
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.inputShow">-</span> <span v-if="scope.row.inputShow">-</span>
<span v-else> <span v-else>
{{ scope.row.treatStartTime && scope.row.treatStatus === 3 ? moment(scope.row.treatStartTime).format('YYYY/MM/DD') : '-' }} {{ scope.row.treatStartTime && scope.row.treatStatus === '3' ? moment(scope.row.treatStartTime).format('YYYY/MM/DD') : '-' }}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -1054,16 +1054,14 @@ color: #333333;" ...@@ -1054,16 +1054,14 @@ color: #333333;"
v-if="!petInHospitalStatus" v-if="!petInHospitalStatus"
ref="inHosForm" ref="inHosForm"
:model="inHosForm" :model="inHosForm"
:rule="inHosRules"
hide-required-asterisk
class="demo-ruleForm" class="demo-ruleForm"
:inline-message="true"
label-width="0" label-width="0"
> >
<el-table <el-table
ref="inHospitalForm"
:data="petInHospitalList" :data="petInHospitalList"
:header-cell-style="{ background:'#F4F4F4'}" :header-cell-style="{ background:'#F4F4F4'}"
> >
<el-table-column align="left" label="病情等级" prop="diseaseLevel"> <el-table-column align="left" label="病情等级" prop="diseaseLevel">
<template slot-scope="scope"> <template slot-scope="scope">
<sapn v-if="!scope.row.diseaseLevel && !petInHospitalUpdateShow">-</sapn> <sapn v-if="!scope.row.diseaseLevel && !petInHospitalUpdateShow">-</sapn>
...@@ -1072,8 +1070,17 @@ color: #333333;" ...@@ -1072,8 +1070,17 @@ color: #333333;"
:options="dict.type.disease_level" :options="dict.type.disease_level"
:value="scope.row.diseaseLevel" :value="scope.row.diseaseLevel"
/> />
<el-form-item v-else :prop="'diseaseLevel'" :rule="inHosRules.diseaseLevel"> <el-form-item
<el-select v-model="scope.row.diseaseLevel" placeholder="请选择病情等级" clearable="true"> v-else
prop="diseaseLevel"
:rules="[{ required: true, message: '请选择病情等级', trigger: 'change' }]"
>
<el-select
v-model="inHosForm.diseaseLevel"
placeholder="请选择病情等级"
:clearable="true"
@change="scope.row.diseaseLevel = inHosForm.diseaseLevel"
>
<el-option <el-option
v-for="item in dict.type.disease_level" v-for="item in dict.type.disease_level"
:key="item.value" :key="item.value"
...@@ -1094,8 +1101,12 @@ color: #333333;" ...@@ -1094,8 +1101,12 @@ color: #333333;"
<span <span
v-if="!petInHospitalUpdateShow" v-if="!petInHospitalUpdateShow"
>{{ scope.row.bathe ? (scope.row.bathe === '0' ? '能' : '否') : '-' }}</span> >{{ scope.row.bathe ? (scope.row.bathe === '0' ? '能' : '否') : '-' }}</span>
<el-form-item v-else :prop="'bathe'" :rule="inHosRules.bathe"> <el-form-item
<el-select v-model="scope.row.bathe" placeholder="请选择能否沐浴" clearable="true"> v-else
prop="bathe"
:rules="[{ required: true, message: '请选择能否沐浴', trigger: 'change' }]"
>
<el-select v-model="inHosForm.bathe" placeholder="请选择能否沐浴" clearable="true">
<el-option <el-option
label="能" label="能"
value="0" value="0"
...@@ -1145,7 +1156,7 @@ color: #333333;" ...@@ -1145,7 +1156,7 @@ color: #333333;"
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()" @click="updatePetInHospitalShow(scope.row)"
>编辑 >编辑
</el-button> </el-button>
<el-button <el-button
...@@ -1159,7 +1170,7 @@ color: #333333;" ...@@ -1159,7 +1170,7 @@ color: #333333;"
>保存 >保存
</el-button> </el-button>
<el-button <el-button
v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow && (scope.row.status === '1' || scope.row.status === '2')" v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow && ( scope.row.status === '0' || scope.row.status === '1' )"
id="remove-hospitalized" id="remove-hospitalized"
icon="el-icon-document" icon="el-icon-document"
plain plain
...@@ -1486,8 +1497,8 @@ export default { ...@@ -1486,8 +1497,8 @@ export default {
checkForm: {}, // 检查table编辑 checkForm: {}, // 检查table编辑
treatForm: {}, // 治疗table编辑 treatForm: {}, // 治疗table编辑
inHosForm: { inHosForm: {
diseaseLevel: null, diseaseLevel: undefined,
bathe: null bathe: undefined
}, // 住院治疗table编辑 }, // 住院治疗table编辑
treatRules: {}, treatRules: {},
detailInfo: { detailInfo: {
...@@ -2100,6 +2111,10 @@ export default { ...@@ -2100,6 +2111,10 @@ export default {
this.petInHospitalList = [] this.petInHospitalList = []
this.petInHospitalList.push(obj) this.petInHospitalList.push(obj)
this.petInHospitalUpdateShow = true this.petInHospitalUpdateShow = true
this.inHosForm = {
diseaseLevel: undefined,
bathe: undefined
}
console.log('lb', this.petInHospitalList) console.log('lb', this.petInHospitalList)
} }
}, },
...@@ -2264,16 +2279,22 @@ export default { ...@@ -2264,16 +2279,22 @@ export default {
}) })
}, },
/** 开启编辑病历住院信息 */ /** 开启编辑病历住院信息 */
updatePetInHospitalShow() { updatePetInHospitalShow(row) {
this.petInHospitalUpdateShow = true this.petInHospitalUpdateShow = true
this.inHosForm.diseaseLevel = row.diseaseLevel
this.inHosForm.bathe = row.bathe
}, },
/** 保存编辑病历住院信息 */ /** 保存编辑病历住院信息 */
saveUpdatePetInHospital(row) { saveUpdatePetInHospital(row) {
console.log('修改保存', row) console.log('修改保存', row)
console.log('inHosForm', this.inHosForm)
this.$refs.inHosForm.validate((valid) => { this.$refs.inHosForm.validate((valid) => {
console.log('校验结果', valid)
if (valid) { if (valid) {
row.state = '1' row.state = '1'
const updateForm = JSON.parse(JSON.stringify(this.recordDetail)) const updateForm = JSON.parse(JSON.stringify(this.recordDetail))
row.diseaseLevel = this.inHosForm.diseaseLevel
row.bathe = this.inHosForm.bathe
updateForm.inHospitalBo = row updateForm.inHospitalBo = row
updateForm.inHospitalBo.createTime = null updateForm.inHospitalBo.createTime = null
updateForm.createTime = null updateForm.createTime = null
......
...@@ -77,9 +77,8 @@ ...@@ -77,9 +77,8 @@
<el-col :span="8"> <el-col :span="8">
<!--宠物体重--> <!--宠物体重-->
<el-form-item label="宠物体重"> <el-form-item label="宠物体重">
<el-input v-model="detailInfo.petWeight" placeholder="-" disabled> <el-input v-model="detailInfo.petWeight" placeholder="-" class="inputClass" disabled />
<template #suffix>kg</template> <span style="margin-left: 5px">kg</span>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -414,7 +413,7 @@ ...@@ -414,7 +413,7 @@
</el-form> </el-form>
</div> </div>
<!-- 办理入院弹出框--> <!-- 办理入院弹出框-->
<handling-admissions ref="admissions" :is-show="admissionShow" :in-hospital-info="detailInfo" @admissionModleClose="admissionModleClose" :disease-level="diseaseLevel" /> <handling-admissions ref="admissions" :is-show="admissionShow" :in-hospital-info="detailInfo" :disease-level="diseaseLevel" @admissionModleClose="admissionModleClose" />
<!-- 出院办理弹出框--> <!-- 出院办理弹出框-->
<handle-discharge :is-show="dischargeShow" :flag="disChargeFlag" :in-hospital-info="detailInfo" @disChargModleClose="disChargModleClose" /> <handle-discharge :is-show="dischargeShow" :flag="disChargeFlag" :in-hospital-info="detailInfo" @disChargModleClose="disChargModleClose" />
<!-- 更改病房弹出框--> <!-- 更改病房弹出框-->
...@@ -527,6 +526,11 @@ export default { ...@@ -527,6 +526,11 @@ export default {
} }
</script> </script>
<style>
.inputClass{
width: 90% !important;
}
</style>
<style scoped lang="scss"> <style scoped lang="scss">
//整个页面整体布局 //整个页面整体布局
.pet-detail { .pet-detail {
......
...@@ -233,14 +233,15 @@ ...@@ -233,14 +233,15 @@
type="warning" type="warning"
@click="handleDischargeMe(scope.row)" @click="handleDischargeMe(scope.row)"
>办理出院</el-button> >办理出院</el-button>
<el-button <!-- <el-button-->
v-else-if="scope.row.status==='4'" <!-- v-else-if="scope.row.status==='4'"-->
icon="el-icon-paperclip" <!-- icon="el-icon-paperclip"-->
plain <!-- plain-->
size="mini" <!-- size="mini"-->
class="el-button--warning--solid--four" <!-- class="el-button&#45;&#45;warning&#45;&#45;solid&#45;&#45;four"-->
type="warning" <!-- type="warning"-->
>导出明细</el-button> <!-- disabled-->
<!-- >导出明细</el-button>-->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -154,13 +154,14 @@ ...@@ -154,13 +154,14 @@
:prop="'settingList.'+index+'.sort'" :prop="'settingList.'+index+'.sort'"
:rules="[ :rules="[
{ required: true, message: '请输入权重', trigger: 'change' }, { required: true, message: '请输入权重', trigger: 'change' },
{ validator: validateSort, trigger: 'change, blur' } { validator: validateSort(item), trigger: 'change, blur' }
]" ]"
> >
<el-input-number <el-input-number
v-model="item.sort" v-model="item.sort"
:min="0" :min="0"
:max="9999" :max="9999"
:disabled="item.itemType === '2'"
controls-position="right" controls-position="right"
style="width: 100%;" style="width: 100%;"
@keydown.native="handleKeyDownSort" @keydown.native="handleKeyDownSort"
...@@ -282,7 +283,9 @@ export default { ...@@ -282,7 +283,9 @@ export default {
{ value: '0', label: '否' } { value: '0', label: '否' }
], ],
fullscreenLoading: false, fullscreenLoading: false,
isPlatRole: false isPlatRole: false,
// 临时数组(用于预约外部服务, 权重为0)
temporaryArray: []
} }
}, },
created() { created() {
...@@ -320,6 +323,11 @@ export default { ...@@ -320,6 +323,11 @@ export default {
console.log('检查项目列表', response) console.log('检查项目列表', response)
if (response.rows.length > 0) { if (response.rows.length > 0) {
this.form.settingList = response.rows this.form.settingList = response.rows
console.log('临时对象', this.temporaryArray)
this.form.settingList.forEach(item => {
item.sort = item.itemType === '0' ? item.sort : 0
})
console.log('dddd', this.form.settingList)
} else { } else {
this.form.settingList = [{ this.form.settingList = [{
name: '', name: '',
...@@ -366,12 +374,14 @@ export default { ...@@ -366,12 +374,14 @@ export default {
} }
}, },
/** 权重校验 */ /** 权重校验 */
validateSort: function(rule, value, callback) { validateSort(item) {
console.log('value', value) return (rule, value, callback) => {
if (value === 0) { console.log('value', value)
callback(new Error('权重不能为0')) if (value === 0 && item.itemType !== '2') {
} else { callback(new Error('权重不能为0'))
callback() } else {
callback()
}
} }
}, },
/** 将阿拉伯数字转成汉字(如:1变成一)*/ /** 将阿拉伯数字转成汉字(如:1变成一)*/
......
...@@ -362,6 +362,7 @@ export default { ...@@ -362,6 +362,7 @@ export default {
this.subscribeMessage = response.data this.subscribeMessage = response.data
this.subscribeMessage.payAmount = this.keepTwoDecimals(this.subscribeMessage.payAmount) this.subscribeMessage.payAmount = this.keepTwoDecimals(this.subscribeMessage.payAmount)
// 时间 // 时间
this.subscribeMessage.amountPaid = moneyFormat(this.subscribeMessage.amountPaid)
this.deviceQueryParams.reservationTime = parseTime(new Date(), '{y}-{m}-{d}') this.deviceQueryParams.reservationTime = parseTime(new Date(), '{y}-{m}-{d}')
// 服务类型(医院自有、外部服务) // 服务类型(医院自有、外部服务)
if (this.subscribeMessage.checkType === '0') { if (this.subscribeMessage.checkType === '0') {
......
...@@ -82,10 +82,11 @@ ...@@ -82,10 +82,11 @@
<el-button <el-button
v-hasPermi="['business:check:export']" v-hasPermi="['business:check:export']"
class="fourWordswhiteBtn" class="fourWordswhiteBtn"
icon="el-icon-finished"
size="mini" size="mini"
@click="selectAll()" @click="selectAll()"
>选择全部 >
<svg-icon style="margin-right: 5px" icon-class="shuaixuan_icon_quanbu" />
选择全部
</el-button> </el-button>
<el-button <el-button
v-hasPermi="['business:check:export']" v-hasPermi="['business:check:export']"
...@@ -98,10 +99,11 @@ ...@@ -98,10 +99,11 @@
<el-button <el-button
v-hasPermi="['business:check:export']" v-hasPermi="['business:check:export']"
class="fourWordswhiteBtn" class="fourWordswhiteBtn"
icon="el-icon-upload2"
size="mini" size="mini"
@click="handleExport()" @click="handleExport()"
>批量导出 >
<svg-icon style="margin-right: 5px" icon-class="shaixuan_icon_daochu" />
批量导出
</el-button> </el-button>
<el-button <el-button
v-hasPermi="['business:check:item']" v-hasPermi="['business:check:item']"
...@@ -346,7 +348,7 @@ ...@@ -346,7 +348,7 @@
<el-table-column prop="num" align="left" label="剩余可预约" /> <el-table-column prop="num" align="left" label="剩余可预约" />
<el-table-column v-if="currentCheckType === '2'" prop="price" align="left" label="设备服务费"> <el-table-column v-if="currentCheckType === '2'" prop="price" align="left" label="设备服务费">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.price || '-' }}</span> <span>{{ moneyFormat(scope.row.price) + ' 元' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="left" label="操作"> <el-table-column align="left" label="操作">
...@@ -356,8 +358,9 @@ ...@@ -356,8 +358,9 @@
class="el-button--success--solid--four" class="el-button--success--solid--four"
size="mini" size="mini"
type="success" type="success"
style="width: 84px !important; height: 24px;"
plain plain
:disabled="parseInt(currentPayAmount) > parseInt(currentHospital.currentBalance)" :disabled="parseInt(scope.row.price) > parseInt(currentHospital.currentBalance)"
@click="handleSubscribeDevice(scope.row)" @click="handleSubscribeDevice(scope.row)"
>立即预约 >立即预约
</el-button> </el-button>
...@@ -366,6 +369,7 @@ ...@@ -366,6 +369,7 @@
size="mini" size="mini"
type="success" type="success"
class="el-button--success--solid--four" class="el-button--success--solid--four"
style="width: 84px !important; height: 24px;"
plain plain
@click="handleSubscribeDevice(scope.row)" @click="handleSubscribeDevice(scope.row)"
>立即预约 >立即预约
...@@ -512,8 +516,6 @@ export default { ...@@ -512,8 +516,6 @@ export default {
selectableDevice: [], selectableDevice: [],
// 当前的检查ID // 当前的检查ID
currentCheckId: null, currentCheckId: null,
// 当前的设备服务费
currentPayAmount: null,
// 检查类型(0-自有、2-外部) // 检查类型(0-自有、2-外部)
currentCheckType: null, currentCheckType: null,
updateRow: {}, updateRow: {},
...@@ -568,7 +570,7 @@ export default { ...@@ -568,7 +570,7 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
if (this.queryParams.orderByColumn === null) { if (this.queryParams.orderByColumn === null) {
this.queryParams.orderByColumn = 'c.check_start_time' this.queryParams.orderByColumn = 'c.create_time'
this.queryParams.isAsc = 'desc' this.queryParams.isAsc = 'desc'
} }
console.log('检查筛选条件', this.queryParams) console.log('检查筛选条件', this.queryParams)
...@@ -744,12 +746,6 @@ export default { ...@@ -744,12 +746,6 @@ export default {
this.deviceQueryParams.checkTypeList = [...new Set(this.deviceQueryParams.checkTypeList)] this.deviceQueryParams.checkTypeList = [...new Set(this.deviceQueryParams.checkTypeList)]
this.deviceQueryParams.reservationTime = this.getCurrentTime() this.deviceQueryParams.reservationTime = this.getCurrentTime()
this.currentCheckId = row.id this.currentCheckId = row.id
if (row.checkType === '2') {
this.currentPayAmount = row.devicePrice
this.updateRow = row
} else {
this.currentPayAmount = row.payAmount
}
this.currentCheckType = row.checkType this.currentCheckType = row.checkType
console.log('点击立即预约后的状态', this.deviceQueryParams) console.log('点击立即预约后的状态', this.deviceQueryParams)
// 设置检查项目id // 设置检查项目id
...@@ -786,7 +782,7 @@ export default { ...@@ -786,7 +782,7 @@ export default {
checkMessage.checkStartTime = row.checkDate + ' ' + checkTimeList[0] checkMessage.checkStartTime = row.checkDate + ' ' + checkTimeList[0]
checkMessage.checkEndTime = row.checkDate + ' ' + checkTimeList[1] checkMessage.checkEndTime = row.checkDate + ' ' + checkTimeList[1]
checkMessage.checkSchedule = '2' // 把进度改为预约检查 checkMessage.checkSchedule = '2' // 把进度改为预约检查
checkMessage.devicePrice = this.currentPayAmount checkMessage.devicePrice = row.price
if (this.updateRow.checkType === '2') { if (this.updateRow.checkType === '2') {
checkMessage.payAmount = this.updateRow.payAmount checkMessage.payAmount = this.updateRow.payAmount
} }
...@@ -808,11 +804,6 @@ export default { ...@@ -808,11 +804,6 @@ export default {
console.log('设备', res) console.log('设备', res)
this.deviceList = res.rows.table this.deviceList = res.rows.table
this.deviceTotal = res.total this.deviceTotal = res.total
if (this.currentCheckType === '2' && this.deviceList.length > 0) {
this.deviceList.forEach(item => {
item['price'] = this.keepTwoDecimals(this.currentPayAmount) + ' 元'
})
}
}) })
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
...@@ -103,8 +103,7 @@ ...@@ -103,8 +103,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="科室" prop="hospitalDepartmentName"> <el-form-item label="科室" prop="hospitalDepartmentName">
<InputTips :text="registerForm.hospitalDepartmentName" />
<el-input v-model="registerForm.hospitalDepartmentName" placeholder="-" :disabled="true" maxlength="20" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
...@@ -288,7 +287,7 @@ ...@@ -288,7 +287,7 @@
<!-- 住院模块--后续开发 --> <!-- 住院模块--后续开发 -->
<el-row class="hospital-content"> <el-row class="hospital-content">
<div> <div>
<el-form-item label="住院治疗"> <el-form-item label="住院治疗" prop="diseaseLevel" :rules="[{required: !!prescribingForm.bathe, message: '请选择住院治疗', trigger: 'change'}]">
<el-select <el-select
v-model="prescribingForm.diseaseLevel" v-model="prescribingForm.diseaseLevel"
clearable clearable
...@@ -351,7 +350,7 @@ ...@@ -351,7 +350,7 @@
<el-button class="queryBtn" icon="el-icon-check" @click="submit"> <el-button class="queryBtn" icon="el-icon-check" @click="submit">
</el-button> </el-button>
<el-button class="backBth" icon="el-icon-back" @click="cancle">返 回</el-button> <el-button class="resetBtn" icon="el-icon-back" @click="cancle">返 回</el-button>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
...@@ -363,8 +362,12 @@ import { mapGetters } from 'vuex' ...@@ -363,8 +362,12 @@ import { mapGetters } from 'vuex'
import { submitPrescribing } from '@/api/business/registration' import { submitPrescribing } from '@/api/business/registration'
import xiaoshoutishi from '@/assets/images/xiaoshoutishi.png' import xiaoshoutishi from '@/assets/images/xiaoshoutishi.png'
import moment from 'moment' import moment from 'moment'
import InputTips from '@/components/InputTips/InputTips.vue'
export default { export default {
name: 'PrescribingModle', name: 'PrescribingModle',
components: {
InputTips
},
// 数据字典 // 数据字典
dicts: ['pet_breed', 'pet_sex', 'sterilization_status', 'pet_insure', 'check_type', 'disease_level', 'ward_type'], dicts: ['pet_breed', 'pet_sex', 'sterilization_status', 'pet_insure', 'check_type', 'disease_level', 'ward_type'],
props: { props: {
...@@ -784,14 +787,18 @@ export default { ...@@ -784,14 +787,18 @@ export default {
console.log('我就是为了看预约挂号传值!!!!', temp) console.log('我就是为了看预约挂号传值!!!!', temp)
submitPrescribing(temp).then(res => { submitPrescribing(temp).then(res => {
console.log('看见了吗!!!!', res) console.log('看见了吗!!!!', res)
if (res.code === 204) { // if (res.code === 204) {
this.$notify.error({ // this.$notify.error({
title: '错误', // title: '错误',
message: '当日ICU病房已满' // message: '当日ICU病房已满'
}) // })
} // this.$emit('prescrib-close')
// }
this.$message.success('操作成功') this.$message.success('操作成功')
this.$emit('prescrib-close') this.$emit('prescrib-close')
}).catch(err => {
console.log('错误信息', err)
this.$emit('prescrib-close')
}) })
} }
}) })
......
...@@ -53,9 +53,10 @@ ...@@ -53,9 +53,10 @@
<el-button <el-button
v-hasPermi="['business:manage:export']" v-hasPermi="['business:manage:export']"
class="fourWordswhiteBtn" class="fourWordswhiteBtn"
icon="el-icon-finished"
@click="selectAll()" @click="selectAll()"
>选择全部 >
<svg-icon style="margin-right: 5px" icon-class="shuaixuan_icon_quanbu" />
选择全部
</el-button> </el-button>
<el-button <el-button
v-hasPermi="['business:manage:export']" v-hasPermi="['business:manage:export']"
...@@ -68,10 +69,11 @@ ...@@ -68,10 +69,11 @@
<el-button <el-button
v-hasPermi="['business:manage:export']" v-hasPermi="['business:manage:export']"
class="fourWordswhiteBtn" class="fourWordswhiteBtn"
icon="el-icon-upload2"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
>批量导出 >
<svg-icon style="margin-right: 5px" icon-class="shaixuan_icon_daochu" />
批量导出
</el-button> </el-button>
<el-button <el-button
v-hasPermi="['business:treat:item']" v-hasPermi="['business:treat:item']"
...@@ -105,7 +107,7 @@ ...@@ -105,7 +107,7 @@
:data="treatmentList" :data="treatmentList"
:row-key="getRowKeys" :row-key="getRowKeys"
:header-cell-class-name="cellClass" :header-cell-class-name="cellClass"
:header-cell-style="{ background:'#E8E9E8' }" :header-cell-style="{ background:'#F4F4F4' }"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" min-width="47" align="center" :reserve-selection="true" /> <el-table-column type="selection" min-width="47" align="center" :reserve-selection="true" />
...@@ -582,6 +584,7 @@ export default { ...@@ -582,6 +584,7 @@ export default {
this.getList() this.getList()
this.getUserNameList() this.getUserNameList()
this.getCurrentUser() this.getCurrentUser()
this.getAppointmentRecord()
}, },
methods: { methods: {
// 获取当前登陆用户 // 获取当前登陆用户
...@@ -780,7 +783,7 @@ export default { ...@@ -780,7 +783,7 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
if (this.queryParams.orderByColumn === null) { if (this.queryParams.orderByColumn === null) {
this.queryParams.orderByColumn = 'treatStartTime' this.queryParams.orderByColumn = 'c.create_time'
this.queryParams.isAsc = 'desc' this.queryParams.isAsc = 'desc'
} }
selectTreatListP(this.queryParams).then(res => { selectTreatListP(this.queryParams).then(res => {
......
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