2024-03-01 14:51:51 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<div class="header">
|
2024-03-04 16:47:22 +08:00
|
|
|
<div class="btns">
|
2024-03-05 14:23:43 +08:00
|
|
|
<el-button @click="goback">取消</el-button>
|
2024-03-04 16:47:22 +08:00
|
|
|
<el-button type="primary" @click="signupload">签约</el-button>
|
|
|
|
|
</div>
|
2024-03-01 14:51:51 +08:00
|
|
|
<el-descriptions title="签约详情" class="descriptions">
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-descriptions title="患者信息" style="padding:0 30px">
|
2024-03-04 16:47:22 +08:00
|
|
|
<el-descriptions-item label="患者姓名">{{ $route.query.patientName }}</el-descriptions-item>
|
2024-03-05 14:23:43 +08:00
|
|
|
<el-descriptions-item label="性别">{{ $route.query.sex == 'MALE' ? '男' : '' }}{{
|
|
|
|
|
$route.query.sex == 'FEMALE' ? '女' : '' }}</el-descriptions-item>
|
2024-03-04 16:47:22 +08:00
|
|
|
<el-descriptions-item label="年龄">{{ $route.query.age }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="电话">{{ $route.query.patientPhone }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="就诊方式">{{
|
2024-03-05 14:23:43 +08:00
|
|
|
$route.query.visitMethod == 'OUTPATIENT_SERVICE' ? '门诊' : $route.query.visitMethod ==
|
|
|
|
|
'BE_IN_HOSPITAL' ?
|
|
|
|
|
'住院' : ''
|
2024-03-04 16:47:22 +08:00
|
|
|
}}
|
|
|
|
|
</el-descriptions-item>
|
2024-03-05 14:23:43 +08:00
|
|
|
<el-descriptions-item label="诊断">{{ $route.query.reviewDiagnosis }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="住院/门诊号">{{ $route.query.inHospitalNumber }}</el-descriptions-item>
|
2024-03-04 16:47:22 +08:00
|
|
|
<el-descriptions-item label="医院">{{ $route.query.hospitalAgencyName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="科室">{{ $route.query.departmentName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="服务包缴费状态">{{ $route.query.paymentStatus == 'PAID' ? '已缴费' : '' }}
|
|
|
|
|
{{ $route.query.paymentStatus == 'UNPAID_FEES' ? '未缴费' : '' }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<!-- <el-descriptions-item label="出院/门诊时间">{{ $route.query.patientName }}</el-descriptions-item> -->
|
|
|
|
|
<!-- <el-descriptions-item label="注册时间">{{ $route.query.patientName }}</el-descriptions-item> -->
|
2024-03-01 14:51:51 +08:00
|
|
|
</el-descriptions>
|
2024-03-19 15:40:58 +08:00
|
|
|
<el-descriptions title="健康管理师信息" style="padding:20px 30px 10px" class="descriptions">
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
|
|
|
|
:inline="true" style="padding-left:40px">
|
|
|
|
|
<el-form-item label="健康管理师" prop="healthManageId">
|
|
|
|
|
<el-input v-model="signPackage.healthManageId"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
2024-03-04 16:47:22 +08:00
|
|
|
<el-descriptions title="服务包信息" style="padding:20px 30px 10px" class="descriptions">
|
2024-03-01 14:51:51 +08:00
|
|
|
</el-descriptions>
|
2024-03-05 14:23:43 +08:00
|
|
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
|
|
|
|
:inline="true" style="padding-left:40px">
|
2024-03-19 15:40:58 +08:00
|
|
|
<el-form-item label="选择服务包" prop="packageId">
|
|
|
|
|
<el-input v-model="signPackage.packageId"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-descriptions title="专病管理信息" style="padding:20px 30px 10px" class="descriptions">
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-form :model="signPackage" :rules="rules" ref="signPackage" label-width="100px" class="demo-ruleForm"
|
|
|
|
|
:inline="true" style="padding-left:40px">
|
|
|
|
|
<el-form-item label="专病管理路径" prop="routeId">
|
|
|
|
|
<el-input v-model="signPackage.routeId"></el-input>
|
2024-03-04 16:47:22 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-descriptions title="硬件信息" style="padding:20px 30px 10px" class="descriptions">
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-form :model="form" :rules="rules" ref="form" label-width="100px" class="demo-ruleForm" :inline="true"
|
|
|
|
|
style="padding-left:40px">
|
2024-03-05 14:23:43 +08:00
|
|
|
<div v-for="(item, index) in form.devices" :key="index">
|
|
|
|
|
<el-form-item label="硬件类型" :prop="`devices[${index}].hardwareType`"
|
|
|
|
|
:rules="rules.devices.hardwareType">
|
2024-03-04 16:47:22 +08:00
|
|
|
<el-select v-model="item.hardwareType" placeholder="请选择硬件类型" clearable style="width:208px">
|
|
|
|
|
<el-option v-for="dict in dict.type.hardware_type" :key="dict.value" :label="dict.label"
|
|
|
|
|
:value="dict.value" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
2024-03-05 14:23:43 +08:00
|
|
|
<el-form-item label="SN码" :prop="`devices[${index}].snCode`" :rules="rules.devices.snCode">
|
2024-03-04 16:47:22 +08:00
|
|
|
<el-input v-model="item.snCode" placeholder="请输入设备SN码"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button size="mini" @click="delhardware(index)">删除</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
<el-button class="addbtn" type="primary" size="mini" @click="addhardware">新增硬件</el-button>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-descriptions title="知情同意书" style="padding:20px 30px 10px" class="descriptions">
|
|
|
|
|
</el-descriptions>
|
2024-03-05 14:23:43 +08:00
|
|
|
<el-upload :action="upload.url" list-type="picture-card" style="margin-left:70px" :data="upload.data"
|
|
|
|
|
ref="upload" :on-preview="handlePictureCardPreview" :on-remove="handleRemove" :headers="upload.headers"
|
|
|
|
|
:on-success="handleSuccess" :auto-upload="false">
|
2024-03-04 16:47:22 +08:00
|
|
|
<i class="el-icon-plus"></i>
|
|
|
|
|
</el-upload>
|
2024-03-01 14:51:51 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
2024-03-05 14:23:43 +08:00
|
|
|
|
2024-03-01 14:51:51 +08:00
|
|
|
<script>
|
2024-03-04 16:47:22 +08:00
|
|
|
import {
|
|
|
|
|
addsign
|
|
|
|
|
} from '@/api/manage/newSigning.js'
|
2024-03-05 14:23:43 +08:00
|
|
|
import { getToken } from '@/utils/auth'
|
2024-03-01 14:51:51 +08:00
|
|
|
export default {
|
2024-03-04 16:47:22 +08:00
|
|
|
dicts: ['hardware_type'],
|
2024-03-01 14:51:51 +08:00
|
|
|
name: "newSigning",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2024-03-05 14:23:43 +08:00
|
|
|
signPackage: {
|
|
|
|
|
packageName: undefined
|
|
|
|
|
},
|
2024-03-04 16:47:22 +08:00
|
|
|
form: {
|
2024-03-05 14:23:43 +08:00
|
|
|
record: {
|
|
|
|
|
patientId: undefined,
|
|
|
|
|
patientPhone: undefined,
|
|
|
|
|
},
|
|
|
|
|
devices: [
|
2024-03-04 16:47:22 +08:00
|
|
|
{
|
2024-03-05 14:23:43 +08:00
|
|
|
snCode: undefined,
|
|
|
|
|
hardwareType: undefined,
|
2024-03-04 16:47:22 +08:00
|
|
|
}
|
|
|
|
|
],
|
2024-03-05 14:23:43 +08:00
|
|
|
informeds: []
|
2024-03-04 16:47:22 +08:00
|
|
|
},
|
|
|
|
|
rules: {
|
2024-03-19 15:40:58 +08:00
|
|
|
packageId: [
|
2024-03-04 16:47:22 +08:00
|
|
|
{ required: true, message: '请选择服务包', trigger: 'change' }
|
|
|
|
|
],
|
2024-03-05 14:23:43 +08:00
|
|
|
devices: {
|
2024-03-04 16:47:22 +08:00
|
|
|
snCode: [
|
|
|
|
|
{ required: true, message: '请输入SN码', trigger: 'change' }
|
|
|
|
|
],
|
|
|
|
|
hardwareType: [
|
|
|
|
|
{ required: true, message: '请选择硬件类型', trigger: 'change' }
|
|
|
|
|
],
|
|
|
|
|
},
|
2024-03-05 14:23:43 +08:00
|
|
|
},
|
|
|
|
|
upload: {
|
|
|
|
|
data: {
|
|
|
|
|
type: 'signInformedFileUrl'
|
|
|
|
|
},
|
|
|
|
|
headers: {
|
|
|
|
|
Authorization: 'Bearer ' + getToken(),
|
|
|
|
|
},
|
|
|
|
|
url: process.env.VUE_APP_BASE_API + '/manage/file/uploadFile'
|
2024-03-04 16:47:22 +08:00
|
|
|
}
|
2024-03-01 14:51:51 +08:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
2024-03-05 15:44:20 +08:00
|
|
|
this.form.record = this.$route.query
|
2024-03-01 14:51:51 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
2024-03-04 16:47:22 +08:00
|
|
|
//签约
|
|
|
|
|
signupload() {
|
2024-03-05 14:23:43 +08:00
|
|
|
this.$refs.upload.submit();
|
|
|
|
|
},
|
|
|
|
|
//文件上传完成
|
|
|
|
|
handleSuccess(response, file, fileList) {
|
|
|
|
|
this.form.informeds = []
|
|
|
|
|
fileList.forEach(e => {
|
|
|
|
|
this.form.informeds.push({
|
|
|
|
|
informedFilePath: e.response.imgUrl,
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.form.signPackage = this.signPackage
|
2024-03-04 16:47:22 +08:00
|
|
|
addsign(this.form).then(res => {
|
2024-03-05 14:23:43 +08:00
|
|
|
this.$confirm('签约成功, 是否返回上一页?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'success'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$modal.msgSuccess("签约成功");
|
|
|
|
|
});
|
2024-03-04 16:47:22 +08:00
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
//新增硬件
|
|
|
|
|
addhardware() {
|
2024-03-05 14:23:43 +08:00
|
|
|
this.form.devices.push({
|
2024-03-04 16:47:22 +08:00
|
|
|
snCode: '',
|
|
|
|
|
hardwareType: '',
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
delhardware(index) {
|
2024-03-05 14:23:43 +08:00
|
|
|
this.form.devices.splice(index, 1);
|
2024-03-04 16:47:22 +08:00
|
|
|
},
|
|
|
|
|
handleRemove(file, fileList) {
|
|
|
|
|
console.log(file, fileList);
|
|
|
|
|
},
|
|
|
|
|
handlePictureCardPreview(file) {
|
2024-03-05 14:23:43 +08:00
|
|
|
},
|
|
|
|
|
goback() {
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
},
|
2024-03-01 14:51:51 +08:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
2024-03-05 14:23:43 +08:00
|
|
|
|
2024-03-01 14:51:51 +08:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.app-container {
|
|
|
|
|
padding: 14px 0 0;
|
|
|
|
|
background-color: #F2F3F5 !important;
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
.descriptions {
|
|
|
|
|
padding: 20px 20px 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.descriptions {
|
|
|
|
|
::v-deep .el-descriptions-item__label.has-colon::after {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header {
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
width: 98%;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
}
|
2024-03-04 16:47:22 +08:00
|
|
|
|
|
|
|
|
.btns {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 30px;
|
|
|
|
|
right: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.addbtn {
|
|
|
|
|
margin-right: 100px;
|
|
|
|
|
float: right;
|
|
|
|
|
transform: translateY(-200%);
|
|
|
|
|
}
|
2024-03-01 14:51:51 +08:00
|
|
|
}
|
2024-03-05 14:23:43 +08:00
|
|
|
</style>
|