You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
3.0 KiB

3 years ago
<template>
<div class="business">
<div class="fileBox">
<p class="title">建立屈光档案</p>
2 years ago
<el-button type="primary" size="small" @click="sendFile">发送</el-button>
3 years ago
</div>
<div style="margin: 12px 0">
状态<span class="circle">已发送</span>
</div>
<div style="margin-bottom: 60px;">
备注
2 years ago
<el-input v-model="remark" auto-complete="off" style="width: 420px" />
3 years ago
</div>
<div class="fileBox">
2 years ago
<p class="title">预约激光治疗</p>
2 years ago
<el-button type="primary" size="small" @click="sendTreat">发送</el-button>
3 years ago
</div>
<div style="margin: 12px 0">
状态<span class="circle">已发送</span>
</div>
<div>
备注
2 years ago
<el-input v-model="treatRemark" auto-complete="off" style="width: 420px" />
3 years ago
</div>
</div>
</template>
<script>
import dialogjs from '@/mixins/dialog'
export default {
components: {
},
mixins: [dialogjs],
props: {
2 years ago
platform: {
type: String,
default: ''
},
patientId: {
type: String,
default: ''
},
patientName: {
3 years ago
type: String,
default: ''
}
},
data() {
return {
remark: '',
2 years ago
treatRemark: '',
jzNumber: ''
3 years ago
}
},
watch: {
},
created() {
},
mounted() {
2 years ago
this.jzNumber = window.localStorage.getItem('jzNumber')
3 years ago
},
methods: {
2 years ago
// 建立屈光档案
async sendFile() {
// const params = {
// remark: this.treatRemark,
// jzNumber: this.jzNumber,
// platform: this.platform,
// patientName: this.patientName,
// patientId: this.patientId
// }
// const { data: res } = await this.$http.post('/appoint/sendInfo4Appoint', params)
// if (res.code === 0) {
// this.$message.success('发送成功')
// } else {
// this.$message.error(res.msg)
// }
3 years ago
},
2 years ago
// 发送激光治疗
async sendTreat() {
3 years ago
const params = {
2 years ago
remark: this.treatRemark,
jzNumber: this.jzNumber,
platform: this.platform,
patientName: this.patientName,
patientId: this.patientId
3 years ago
}
2 years ago
const { data: res } = await this.$http.post('/appoint/sendInfo4Appoint', params)
3 years ago
if (res.code === 0) {
2 years ago
this.$message.success('发送成功')
3 years ago
} else {
this.$message.error(res.msg)
}
}
}
}
</script>
<style lang="scss" scoped>
.business {
2 years ago
width: 650px;
3 years ago
padding: 16px;
box-sizing: border-box;
box-sizing: border-box;
.fileBox{
display: flex;
justify-content: space-between;
.title{
color: rgba(0, 0, 0, 0.88);
font-weight: 500;
font-size: 16px;
margin-top: 6px;
}
}
.circle{
&::before {
content: '';
width: 6px;
height: 6px;
margin:0 8px;
display: inline-block;
vertical-align: middle;
background: #52C41A;
border-radius: 50%;
}
}
}
</style>