修改
This commit is contained in:
parent
a9dfced869
commit
a2ade2a195
@ -7,4 +7,28 @@ export function addsign(data) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
// 回显
|
||||||
|
export function getByRecordId(id) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/signRecord/getByRecordId/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 修改签约信息
|
||||||
|
|
||||||
|
export function updateSign(data) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/signRecord/updateSign',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 撤销签约
|
||||||
|
export function updateSignStatus(data) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/signRecord/updateSignStatus',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
@ -52,3 +52,10 @@ export function getPatientList(query) {
|
|||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 撤销意向签约
|
||||||
|
export function cancelIntentionalSign(patientId) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/signRecord/cancelIntentionalSign/' + patientId,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -18,6 +18,21 @@ export function updatePatientInfo(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 修改意向签约提交
|
||||||
|
export function updateIntentionalSign(data) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/signRecord/updateIntentionalSign',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 查询意向签约
|
||||||
|
export function getIntentionalSign(signPatientRecordId) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/signRecord/getIntentionalSign/' + signPatientRecordId,
|
||||||
|
method: 'post'
|
||||||
|
})
|
||||||
|
}
|
||||||
// 查询患者信息详细
|
// 查询患者信息详细
|
||||||
export function getPatientInfo(id) {
|
export function getPatientInfo(id) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@ -19,9 +19,14 @@
|
|||||||
alt=""
|
alt=""
|
||||||
class="img"
|
class="img"
|
||||||
/>
|
/>
|
||||||
<div class="name">
|
<el-tooltip
|
||||||
{{ item.patientName }}
|
class="name"
|
||||||
</div>
|
effect="dark"
|
||||||
|
:content="item.patientName"
|
||||||
|
placement="top"
|
||||||
|
>
|
||||||
|
<span> {{ item.patientName }} </span>
|
||||||
|
</el-tooltip>
|
||||||
<div class="agesex">
|
<div class="agesex">
|
||||||
{{ item.sex == "MALE" ? "男" : "" }}
|
{{ item.sex == "MALE" ? "男" : "" }}
|
||||||
{{ item.sex == "FEMALE" ? "女" : "" }}
|
{{ item.sex == "FEMALE" ? "女" : "" }}
|
||||||
@ -47,7 +52,9 @@
|
|||||||
<div class="diagnosi">诊断状态:111</div>
|
<div class="diagnosi">诊断状态:111</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="formitembutton" @click.stop="handleedit(item)">画像编辑</div>
|
<div class="formitembutton" @click.stop="handleedit(item)">
|
||||||
|
画像编辑
|
||||||
|
</div>
|
||||||
<div class="formitem">医生:{{ item.attendingPhysician }}</div>
|
<div class="formitem">医生:{{ item.attendingPhysician }}</div>
|
||||||
<div class="formitem">科室:{{ item.departmentName }}</div>
|
<div class="formitem">科室:{{ item.departmentName }}</div>
|
||||||
<div class="formitem">就诊时间:{{ item.visitDate }}</div>
|
<div class="formitem">就诊时间:{{ item.visitDate }}</div>
|
||||||
@ -322,14 +329,6 @@ export default {
|
|||||||
overflow: hidden; /* 超出容器部分隐藏 */
|
overflow: hidden; /* 超出容器部分隐藏 */
|
||||||
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 鼠标悬停时通过title属性显示完整文本 */
|
|
||||||
.name:hover {
|
|
||||||
// cursor: default; /* 更改鼠标形状为默认指针 */
|
|
||||||
// text-overflow: inherit; /* 取消省略号显示全文 */
|
|
||||||
white-space: normal;
|
|
||||||
overflow: visible; /* 显示全部文本 */
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,12 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="btns">
|
<div class="btns">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
@click="cancelback"
|
||||||
|
v-if="this.$route.query.signPatientRecordId"
|
||||||
|
>撤销签约</el-button
|
||||||
|
>
|
||||||
<el-button @click="goback">取消</el-button>
|
<el-button @click="goback">取消</el-button>
|
||||||
<el-button type="primary" @click="signupload">签约</el-button>
|
<el-button type="primary" @click="signupload">签约</el-button>
|
||||||
</div>
|
</div>
|
||||||
@ -101,7 +107,9 @@
|
|||||||
"
|
"
|
||||||
v-if="signPackage.servicePackageName"
|
v-if="signPackage.servicePackageName"
|
||||||
:style="
|
:style="
|
||||||
signPackage.servicePackageName == '请选择服务包' ? 'color: #c0c4cc;' : ''
|
signPackage.servicePackageName == '请选择服务包'
|
||||||
|
? 'color: #c0c4cc;'
|
||||||
|
: ''
|
||||||
"
|
"
|
||||||
>{{ signPackage.servicePackageName }}</el-button
|
>{{ signPackage.servicePackageName }}</el-button
|
||||||
>
|
>
|
||||||
@ -176,7 +184,7 @@
|
|||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="signPackage.serviceStartTime"
|
v-model="signPackage.serviceStartTime"
|
||||||
type="date"
|
type="date"
|
||||||
disabled
|
value-format="yyyy-MM-dd"
|
||||||
placeholder="开始日期"
|
placeholder="开始日期"
|
||||||
style="width: 150px"
|
style="width: 150px"
|
||||||
>
|
>
|
||||||
@ -185,6 +193,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-model="signPackage.serviceEndTime"
|
v-model="signPackage.serviceEndTime"
|
||||||
style="width: 150px"
|
style="width: 150px"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
disabled
|
disabled
|
||||||
placeholder="结束日期"
|
placeholder="结束日期"
|
||||||
></el-input>
|
></el-input>
|
||||||
@ -313,9 +322,14 @@
|
|||||||
:headers="upload.headers"
|
:headers="upload.headers"
|
||||||
:on-success="handleSuccess"
|
:on-success="handleSuccess"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
|
:file-list="fileList"
|
||||||
>
|
>
|
||||||
<i class="el-icon-plus"></i>
|
<i class="el-icon-plus"></i>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
|
<!-- <div style="width:200px;height:200px">
|
||||||
|
|
||||||
|
<img :src="baseUrl+imageUrl " alt="">
|
||||||
|
</div> -->
|
||||||
<!-- 服务包弹框 -->
|
<!-- 服务包弹框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title=""
|
title=""
|
||||||
@ -364,10 +378,7 @@
|
|||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table :data="servicepackageList" @cell-dblclick="nurseclick">
|
||||||
:data="servicepackageList"
|
|
||||||
@cell-dblclick="nurseclick"
|
|
||||||
>
|
|
||||||
<!-- <el-table :max-height="maxTableHeight" v-loading="loading" :data="servicepackageList"
|
<!-- <el-table :max-height="maxTableHeight" v-loading="loading" :data="servicepackageList"
|
||||||
@selection-change="handleSelectionChange"> -->
|
@selection-change="handleSelectionChange"> -->
|
||||||
<el-table-column label="序号" align="center" type="index" />
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
@ -444,12 +455,22 @@
|
|||||||
@click="detail(scope.row)"
|
@click="detail(scope.row)"
|
||||||
>详情</el-button
|
>详情</el-button
|
||||||
>
|
>
|
||||||
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
<el-button
|
||||||
v-if="signPackage.servicePackageId != scope.row.id">选择</el-button>
|
size="mini"
|
||||||
<!-- {{ signPackage.servicePackageId }}
|
type="text"
|
||||||
|
@click="handleselect(scope.row)"
|
||||||
|
v-if="signPackage.servicePackageId != scope.row.id"
|
||||||
|
>选择</el-button
|
||||||
|
>
|
||||||
|
<!-- {{ signPackage.servicePackageId }}
|
||||||
{{ scope.row.id }} -->
|
{{ scope.row.id }} -->
|
||||||
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
<el-button
|
||||||
v-if="signPackage.servicePackageId == scope.row.id">取消选择</el-button>
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
@click="nohandleselect(scope.row)"
|
||||||
|
v-if="signPackage.servicePackageId == scope.row.id"
|
||||||
|
>取消选择</el-button
|
||||||
|
>
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -485,63 +506,109 @@
|
|||||||
<!-- <pagination v-show="totaldepartment > 0" :total="totaldepartment" :page.sync="informationqueryParams.pageNum"
|
<!-- <pagination v-show="totaldepartment > 0" :total="totaldepartment" :page.sync="informationqueryParams.pageNum"
|
||||||
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" /> -->
|
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" /> -->
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 详情弹框 -->
|
<!-- 详情弹框 -->
|
||||||
<el-dialog title="详情" :visible.sync="detailshow" width="60%" :before-close="handleClose">
|
<el-dialog
|
||||||
<el-form ref="form" :model="formdetail" label-width="150px" :inline="true">
|
title="详情"
|
||||||
<el-form-item label="病种名称:" prop="packageVersion">
|
:visible.sync="detailshow"
|
||||||
<div class="container">
|
width="60%"
|
||||||
<el-tooltip class="item" effect="dark" :content="formdetail.diseaseTypeName" placement="top-start">
|
:before-close="handleClose"
|
||||||
<span>{{ formdetail.diseaseTypeName }}</span>
|
>
|
||||||
</el-tooltip>
|
<el-form
|
||||||
</div>
|
ref="form"
|
||||||
<!-- <span style="display: inline-block; width: 120px">
|
:model="formdetail"
|
||||||
|
label-width="150px"
|
||||||
|
:inline="true"
|
||||||
|
>
|
||||||
|
<el-form-item label="病种名称:" prop="packageVersion">
|
||||||
|
<div class="container">
|
||||||
|
<el-tooltip
|
||||||
|
class="item"
|
||||||
|
effect="dark"
|
||||||
|
:content="formdetail.diseaseTypeName"
|
||||||
|
placement="top-start"
|
||||||
|
>
|
||||||
|
<span>{{ formdetail.diseaseTypeName }}</span>
|
||||||
|
</el-tooltip>
|
||||||
|
</div>
|
||||||
|
<!-- <span style="display: inline-block; width: 120px">
|
||||||
{{ formdetail.diseaseTypeName }}</span> -->
|
{{ formdetail.diseaseTypeName }}</span> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="服务包名称:" prop="packageVersion">
|
<el-form-item label="服务包名称:" prop="packageVersion">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<el-tooltip class="item" effect="dark" :content="formdetail.packageName" placement="top-start">
|
<el-tooltip
|
||||||
<span>{{ formdetail.packageName }}</span>
|
class="item"
|
||||||
</el-tooltip>
|
effect="dark"
|
||||||
</div>
|
:content="formdetail.packageName"
|
||||||
</el-form-item>
|
placement="top-start"
|
||||||
<el-form-item label="价格:" prop="packageVersion">
|
>
|
||||||
<span>{{ formdetail.packagePrice }}元</span>
|
<span>{{ formdetail.packageName }}</span>
|
||||||
</el-form-item>
|
</el-tooltip>
|
||||||
<br />
|
</div>
|
||||||
<el-form-item label="服务期限:" prop="packageVersion">
|
</el-form-item>
|
||||||
<span style="display: inline-block; width: 120px">
|
<el-form-item label="价格:" prop="packageVersion">
|
||||||
{{ formdetail.packageTermAndUnit }}
|
<span>{{ formdetail.packagePrice }}元</span>
|
||||||
</span>
|
</el-form-item>
|
||||||
</el-form-item>
|
<br />
|
||||||
<el-form-item label="硬件类型:" prop="packageVersion">
|
<el-form-item label="服务期限:" prop="packageVersion">
|
||||||
<span>
|
<span style="display: inline-block; width: 120px">
|
||||||
{{ formdetail.hardwareType == "BLOOD_PRESSURE" ? "血压仪" : "" }}
|
{{ formdetail.packageTermAndUnit }}
|
||||||
</span>
|
</span>
|
||||||
<span>
|
</el-form-item>
|
||||||
{{ formdetail.hardwareType == "GLUCOSE_METER" ? "血糖仪" : "" }}
|
<el-form-item label="硬件类型:" prop="packageVersion">
|
||||||
</span>
|
<span>
|
||||||
<span>
|
{{ formdetail.hardwareType == "BLOOD_PRESSURE" ? "血压仪" : "" }}
|
||||||
{{ formdetail.hardwareType == "ELECTROCARDIOGRA" ? "心电仪" : "" }}
|
</span>
|
||||||
</span>
|
<span>
|
||||||
</el-form-item>
|
{{ formdetail.hardwareType == "GLUCOSE_METER" ? "血糖仪" : "" }}
|
||||||
</el-form>
|
</span>
|
||||||
<el-table v-loading="loading" :data="datailList">
|
<span>
|
||||||
<el-table-column label="序号" type="index" />
|
{{
|
||||||
<el-table-column label="服务方式" align="center" prop="serviceWayName" />
|
formdetail.hardwareType == "ELECTROCARDIOGRA" ? "心电仪" : ""
|
||||||
<el-table-column label="服务内容" align="center" prop="serviceContent" :show-overflow-tooltip="true" />
|
}}
|
||||||
<el-table-column label="服务频次" align="center" prop="serviceFrequencyText" />
|
</span>
|
||||||
</el-table>
|
</el-form-item>
|
||||||
<span slot="footer" class="dialog-footer">
|
</el-form>
|
||||||
<el-button @click="detailshow = false">关闭</el-button>
|
<el-table v-loading="loading" :data="datailList">
|
||||||
</span>
|
<el-table-column label="序号" type="index" />
|
||||||
</el-dialog>
|
<el-table-column
|
||||||
|
label="服务方式"
|
||||||
|
align="center"
|
||||||
|
prop="serviceWayName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="服务内容"
|
||||||
|
align="center"
|
||||||
|
prop="serviceContent"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="服务频次"
|
||||||
|
align="center"
|
||||||
|
prop="serviceFrequencyText"
|
||||||
|
/>
|
||||||
|
</el-table>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="detailshow = false">关闭</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
<el-dialog :visible.sync="dialogVisible" title="查看图片">
|
||||||
|
<img width="60%" :src=" dialogImageUrl" alt="" />
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { addsign } from "@/api/manage/newSigning.js";
|
import {
|
||||||
import { listServicepackage,getServicepackage } from "@/api/manage/servicepackage";
|
addsign,
|
||||||
|
updateSign,
|
||||||
|
getByRecordId,
|
||||||
|
updateSignStatus,
|
||||||
|
} from "@/api/manage/newSigning.js";
|
||||||
|
import {
|
||||||
|
listServicepackage,
|
||||||
|
getServicepackage,
|
||||||
|
} from "@/api/manage/servicepackage";
|
||||||
|
|
||||||
import { servicepackageinfo } from "@/api/manage/signRecord.js";
|
import { servicepackageinfo } from "@/api/manage/signRecord.js";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
@ -555,9 +622,12 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formdetail: {},
|
formdetail: {},
|
||||||
handleselectId:'',
|
baseUrl: process.env.VUE_APP_BASE_API,
|
||||||
handleselectName:'',
|
dialogImageUrl: "",
|
||||||
detailshow:false,
|
dialogVisible: false,
|
||||||
|
handleselectId: "",
|
||||||
|
handleselectName: "",
|
||||||
|
detailshow: false,
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@ -640,42 +710,57 @@ export default {
|
|||||||
packagelist: [],
|
packagelist: [],
|
||||||
attendingPhysicianlist: [],
|
attendingPhysicianlist: [],
|
||||||
servicepackageList: [],
|
servicepackageList: [],
|
||||||
servicePackageName:'',
|
servicePackageName: "",
|
||||||
innerVisibleshow:false,
|
innerVisibleshow: false,
|
||||||
datailList:[],
|
datailList: [],
|
||||||
|
patientId: "",
|
||||||
|
id: "",
|
||||||
|
fileList: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.form.record = this.$route.query;
|
this.form.record = this.$route.query;
|
||||||
|
// console.log(this.$route.query, "this.$route.query;");
|
||||||
this.signPackage.packagePaymentStatus = this.form.record.paymentStatus;
|
this.signPackage.packagePaymentStatus = this.form.record.paymentStatus;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.usergetListinfo();
|
this.usergetListinfo();
|
||||||
|
if (this.form.record.signPatientRecordId) {
|
||||||
|
this.infolist();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// mounted() {
|
|
||||||
// this.handleselectId = this.routeId
|
|
||||||
// this.handleselectName = this.routeName
|
|
||||||
// },
|
|
||||||
// watch: {
|
|
||||||
// routeId(newValue, oldValue) {
|
|
||||||
// this.handleselectId = newValue;
|
|
||||||
// },
|
|
||||||
// // servicePackageId(newValue, oldValue) {
|
|
||||||
// // if (newValue) {
|
|
||||||
// // this.queryParams.servicePackageId = newValue;
|
|
||||||
// // this.getList();
|
|
||||||
// // }
|
|
||||||
// // },
|
|
||||||
// routeName(newValue, oldValue) {
|
|
||||||
// this.handleselectName = newValue;
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
methods: {
|
methods: {
|
||||||
|
infolist() {
|
||||||
|
getByRecordId(this.form.record.signPatientRecordId).then((res) => {
|
||||||
|
// console.log(res, "res");
|
||||||
|
this.patientId = res.data.patientId;
|
||||||
|
this.id = res.data.id;
|
||||||
|
this.form.record = res.data;
|
||||||
|
this.form.devices = res.data.signDevices;
|
||||||
|
this.signPackage.packagePrice = res.data.packagePrice;
|
||||||
|
this.signPackage.serviceCycle = res.data.serviceCycle;
|
||||||
|
this.signPackage.serviceStartTime =
|
||||||
|
res.data.serviceStartTime.slice(0.1);
|
||||||
|
this.signPackage.serviceEndTime = res.data.serviceEndTime.slice(0, 10);
|
||||||
|
this.signPackage.servicePackageId = res.data.servicePackageId;
|
||||||
|
this.signPackage.servicePackageName = res.data.packageName;
|
||||||
|
this.signPackage.packageTerm = res.data.packageTerm;
|
||||||
|
this.signPackage.packageTermUnit = res.data.packageTermUnit;
|
||||||
|
this.signPackage.packagePaymentStatus = res.data.packagePaymentStatus;
|
||||||
|
this.route.routeName = res.data.routeName;
|
||||||
|
this.route.routeId = res.data.routeId;
|
||||||
|
if (res.data.signPatientInformeds) {
|
||||||
|
res.data.signPatientInformeds.map((t) => {
|
||||||
|
var obj = {};
|
||||||
|
obj.url = this.baseUrl + t.informedFilePath;
|
||||||
|
this.fileList.push(obj);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
handleselect(row) {
|
handleselect(row) {
|
||||||
console.log(row,'item11')
|
this.signPackage.servicePackageId = row.id;
|
||||||
this.signPackage.servicePackageId = row.id;
|
|
||||||
this.signPackage.servicePackageName = row.packageName;
|
this.signPackage.servicePackageName = row.packageName;
|
||||||
let item = this.servicepackageList.find((e) => e.id == row.id);
|
let item = this.servicepackageList.find((e) => e.id == row.id);
|
||||||
console.log(item,'item')
|
|
||||||
this.signPackage = { ...this.signPackage, ...item };
|
this.signPackage = { ...this.signPackage, ...item };
|
||||||
let datetime = new Date();
|
let datetime = new Date();
|
||||||
let year = datetime.getFullYear();
|
let year = datetime.getFullYear();
|
||||||
@ -688,48 +773,38 @@ export default {
|
|||||||
this.signPackage.serviceStartTime,
|
this.signPackage.serviceStartTime,
|
||||||
item
|
item
|
||||||
);
|
);
|
||||||
console.log(this.signPackage.servicePackageName,'this.signPackage.servicePackageName')
|
this.innerVisibleshow = false;
|
||||||
|
|
||||||
// this.handleselectId = row.id
|
|
||||||
// this.handleselectName = row.packageName
|
|
||||||
// this.$emit("on-template", { routeId: item.id, routeName: item.routeName });
|
|
||||||
this.innerVisibleshow = false
|
|
||||||
},
|
},
|
||||||
nohandleselect() {
|
nohandleselect() {
|
||||||
this.signPackage.servicePackageId = ''
|
this.signPackage.servicePackageId = "";
|
||||||
this.signPackage.servicePackageName = ''
|
this.signPackage.servicePackageName = "";
|
||||||
// this.$set( this.form,'servicePackageName','')
|
this.innerVisibleshow = false;
|
||||||
// this.$set( this.form,'servicePackageId','')
|
this.signPackage.packageTerm = "";
|
||||||
|
this.signPackage.serviceStartTime = "";
|
||||||
console.log(this.signPackage.servicePackageName,'this.signPackage.servicePackageName')
|
this.signPackage.serviceEndTime = "";
|
||||||
this.innerVisibleshow = false
|
|
||||||
|
|
||||||
this.signPackage.packageTerm=''
|
|
||||||
this.signPackage.serviceStartTime=''
|
|
||||||
this.signPackage.serviceEndTime=''
|
|
||||||
// this.$emit("on-template", { routeId: '', routeName: '' });
|
|
||||||
},
|
},
|
||||||
// 详情关闭
|
// 详情关闭
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.detailshow = false
|
this.detailshow = false;
|
||||||
},
|
},
|
||||||
// 详情
|
// 详情
|
||||||
detail(row) {
|
detail(row) {
|
||||||
this.detailshow = true
|
this.detailshow = true;
|
||||||
getServicepackage(row.id).then(response => {
|
getServicepackage(row.id).then((response) => {
|
||||||
this.formdetail = response.data;
|
this.formdetail = response.data;
|
||||||
this.datailList = response.data.voList
|
this.datailList = response.data.voList;
|
||||||
this.datailList.forEach(el => {
|
this.datailList.forEach((el) => {
|
||||||
if (el.serviceFrequencyEnd) {
|
if (el.serviceFrequencyEnd) {
|
||||||
el.serviceFrequencyText = el.serviceFrequencyStart + '~' + el.serviceFrequencyEnd
|
el.serviceFrequencyText =
|
||||||
|
el.serviceFrequencyStart + "~" + el.serviceFrequencyEnd;
|
||||||
} else {
|
} else {
|
||||||
el.serviceFrequencyText = el.serviceFrequencyText
|
el.serviceFrequencyText = el.serviceFrequencyText;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 科室名称重置
|
// 科室名称重置
|
||||||
addresetQuerylist() {
|
addresetQuerylist() {
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@ -741,15 +816,14 @@ export default {
|
|||||||
innerVisiblecancel() {
|
innerVisiblecancel() {
|
||||||
this.innerVisibleshow = false;
|
this.innerVisibleshow = false;
|
||||||
},
|
},
|
||||||
// 科室名称圆点按钮
|
// 科室名称圆点按钮
|
||||||
nurseclick(row) {
|
nurseclick(row) {
|
||||||
this.signPackage.servicePackageId = row.id;
|
this.signPackage.servicePackageId = row.id;
|
||||||
this.signPackage.servicePackageName = row.packageName;
|
this.signPackage.servicePackageName = row.packageName;
|
||||||
this.servicePackageName = row.packageName;
|
this.servicePackageName = row.packageName;
|
||||||
this.route.routeId = "";
|
this.route.routeId = "";
|
||||||
this.route.routeName = "";
|
this.route.routeName = "";
|
||||||
let item = this.servicepackageList.find((e) => e.id == row.id);
|
let item = this.servicepackageList.find((e) => e.id == row.id);
|
||||||
console.log(item,'item')
|
|
||||||
this.signPackage = { ...this.signPackage, ...item };
|
this.signPackage = { ...this.signPackage, ...item };
|
||||||
let datetime = new Date();
|
let datetime = new Date();
|
||||||
let year = datetime.getFullYear();
|
let year = datetime.getFullYear();
|
||||||
@ -762,8 +836,7 @@ export default {
|
|||||||
this.signPackage.serviceStartTime,
|
this.signPackage.serviceStartTime,
|
||||||
item
|
item
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
this.innerVisibleshow = false;
|
this.innerVisibleshow = false;
|
||||||
},
|
},
|
||||||
/** 查询服务包基础信息列表 */
|
/** 查询服务包基础信息列表 */
|
||||||
@ -787,8 +860,7 @@ export default {
|
|||||||
whetherRelease: 1,
|
whetherRelease: 1,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.packagelist = res.data;
|
this.packagelist = res.data;
|
||||||
this.totaldepartment=res.data.length
|
this.totaldepartment = res.data.length;
|
||||||
console.log(res.data,'res.data.length')
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 点击科室
|
// 点击科室
|
||||||
@ -810,22 +882,22 @@ export default {
|
|||||||
},
|
},
|
||||||
tappackage() {
|
tappackage() {
|
||||||
this.innerVisibleshow = true;
|
this.innerVisibleshow = true;
|
||||||
this.getList()
|
this.getList();
|
||||||
// this.route.routeId = "";
|
// this.route.routeId = "";
|
||||||
// this.route.routeName = "";
|
// this.route.routeName = "";
|
||||||
// let item = this.packagelist.find((e) => e.id == id);
|
// let item = this.packagelist.find((e) => e.id == id);
|
||||||
// this.signPackage = { ...this.signPackage, ...item };
|
// this.signPackage = { ...this.signPackage, ...item };
|
||||||
// let datetime = new Date();
|
// let datetime = new Date();
|
||||||
// let year = datetime.getFullYear();
|
// let year = datetime.getFullYear();
|
||||||
// let month = datetime.getMonth() + 1;
|
// let month = datetime.getMonth() + 1;
|
||||||
// let day = datetime.getDate();
|
// let day = datetime.getDate();
|
||||||
// month >= 1 && month <= 9 ? (month = "0" + month) : "";
|
// month >= 1 && month <= 9 ? (month = "0" + month) : "";
|
||||||
// day >= 0 && day <= 9 ? (day = "0" + day) : "";
|
// day >= 0 && day <= 9 ? (day = "0" + day) : "";
|
||||||
// this.signPackage.serviceStartTime = `${year}-${month}-${day}`;
|
// this.signPackage.serviceStartTime = `${year}-${month}-${day}`;
|
||||||
// this.signPackage.serviceEndTime = obtainendtime(
|
// this.signPackage.serviceEndTime = obtainendtime(
|
||||||
// this.signPackage.serviceStartTime,
|
// this.signPackage.serviceStartTime,
|
||||||
// item
|
// item
|
||||||
// );
|
// );
|
||||||
},
|
},
|
||||||
//签约
|
//签约
|
||||||
signupload() {
|
signupload() {
|
||||||
@ -854,33 +926,65 @@ this.getList()
|
|||||||
(e) => e.userId == this.form.record.healthManageId
|
(e) => e.userId == this.form.record.healthManageId
|
||||||
)?.nickName;
|
)?.nickName;
|
||||||
}
|
}
|
||||||
|
if (this.signPackage.serviceEndTime) {
|
||||||
|
this.signPackage.serviceEndTime =
|
||||||
|
this.signPackage.serviceEndTime.slice(0, 10);
|
||||||
|
}
|
||||||
|
if (this.signPackage.serviceStartTime) {
|
||||||
|
this.signPackage.serviceStartTime =
|
||||||
|
this.signPackage.serviceStartTime.slice(0, 10);
|
||||||
|
}
|
||||||
this.form.signPackage = this.signPackage;
|
this.form.signPackage = this.signPackage;
|
||||||
this.form.route = this.route;
|
this.form.route = this.route;
|
||||||
console.log( this.form,' this.form')
|
this.form.record.signPatientRecordId = Number(
|
||||||
// return
|
this.$route.query.signPatientRecordId
|
||||||
addsign(this.form).then((res) => {
|
);
|
||||||
this.$confirm("签约成功, 是否返回上一页?", "提示", {
|
if (!this.form.record.signPatientRecordId) {
|
||||||
confirmButtonText: "确定",
|
addsign(this.form).then((res) => {
|
||||||
cancelButtonText: "取消",
|
this.$confirm("签约成功, 是否返回上一页?", "提示", {
|
||||||
type: "success",
|
confirmButtonText: "确定",
|
||||||
})
|
cancelButtonText: "取消",
|
||||||
.then(() => {
|
type: "success",
|
||||||
this.$store
|
|
||||||
.dispatch("tagsView/delView", this.$route)
|
|
||||||
.then(({ visitedViews }) => {
|
|
||||||
this.$router.push({
|
|
||||||
path: "/patient/signRecord",
|
|
||||||
});
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.then(() => {
|
||||||
this.$modal.msgSuccess("签约成功");
|
this.$store
|
||||||
});
|
.dispatch("tagsView/delView", this.$route)
|
||||||
});
|
.then(({ visitedViews }) => {
|
||||||
|
this.$router.push({
|
||||||
|
path: "/patient/signRecord",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.$modal.msgSuccess("签约成功");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
updateSign(this.form).then((res) => {
|
||||||
|
this.$confirm("修改签约成功, 是否返回上一页?", "提示", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "success",
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.$store
|
||||||
|
.dispatch("tagsView/delView", this.$route)
|
||||||
|
.then(({ visitedViews }) => {
|
||||||
|
this.$router.push({
|
||||||
|
path: "/patient/visitout",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.$modal.msgSuccess("签约成功");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//文件上传完成
|
//文件上传完成
|
||||||
handleSuccess(response, file, fileList) {
|
handleSuccess(response, file, fileList) {
|
||||||
|
// this.fileList = fileList;
|
||||||
this.form.informeds = [];
|
this.form.informeds = [];
|
||||||
fileList.forEach((e) => {
|
fileList.forEach((e) => {
|
||||||
this.form.informeds.push({
|
this.form.informeds.push({
|
||||||
@ -900,17 +1004,55 @@ this.getList()
|
|||||||
this.form.devices.splice(index, 1);
|
this.form.devices.splice(index, 1);
|
||||||
},
|
},
|
||||||
handleRemove(file, fileList) {
|
handleRemove(file, fileList) {
|
||||||
console.log(file, fileList);
|
|
||||||
},
|
},
|
||||||
handlePictureCardPreview(file) {},
|
handlePictureCardPreview(file) {
|
||||||
goback() {
|
this.dialogImageUrl = file.url;
|
||||||
this.$store
|
this.dialogVisible=true
|
||||||
.dispatch("tagsView/delView", this.$route)
|
},
|
||||||
.then(({ visitedViews }) => {
|
// 撤销签约
|
||||||
this.$router.push({
|
cancelback() {
|
||||||
path: "/patient/signRecord",
|
this.$prompt("原因", "取消签约", {
|
||||||
});
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
}).then(({ value }) => {
|
||||||
|
const query = {
|
||||||
|
id: this.id,
|
||||||
|
patientId: this.patientId,
|
||||||
|
signStatus: "SEPARATE_SIGN",
|
||||||
|
separateReason: value,
|
||||||
|
serviceStatus: "SERVICE_END",
|
||||||
|
};
|
||||||
|
updateSignStatus(query).then((res) => {
|
||||||
|
this.infolist();
|
||||||
|
this.$modal.msgSuccess("取消签约成功");
|
||||||
|
this.$store
|
||||||
|
.dispatch("tagsView/delView", this.$route)
|
||||||
|
.then(({ visitedViews }) => {
|
||||||
|
this.$router.push({
|
||||||
|
path: "/patient/visitout",
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
goback() {
|
||||||
|
if (!this.$route.query.signPatientRecordId) {
|
||||||
|
this.$store
|
||||||
|
.dispatch("tagsView/delView", this.$route)
|
||||||
|
.then(({ visitedViews }) => {
|
||||||
|
this.$router.push({
|
||||||
|
path: "/patient/signRecord",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$store
|
||||||
|
.dispatch("tagsView/delView", this.$route)
|
||||||
|
.then(({ visitedViews }) => {
|
||||||
|
this.$router.push({
|
||||||
|
path: "/patient/visitout",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
noservicePackageId() {
|
noservicePackageId() {
|
||||||
this.$message.error("请先选择服务包!!");
|
this.$message.error("请先选择服务包!!");
|
||||||
|
|||||||
@ -463,8 +463,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SearchFilter from '../../components/SearchForm.vue'
|
import SearchFilter from '../../components/SearchForm.vue'
|
||||||
import { listPatientInfo, delPatientInfo } from "@/api/manage/patientInfo";
|
import { listPatientInfo, delPatientInfo,cancelIntentionalSign } from "@/api/manage/patientInfo";
|
||||||
import { addPatientInfo, updatePatientInfo, getPatientInfo, intentionalSign } from "@/api/manage/visit";
|
import { addPatientInfo, updatePatientInfo,getIntentionalSign, updateIntentionalSign,getPatientInfo, intentionalSign } from "@/api/manage/visit";
|
||||||
import { getAge } from "@/utils/age";
|
import { getAge } from "@/utils/age";
|
||||||
import { selectAgencyList, getDepartmentList, getAgencyList } from "@/api/manage/selectAgencyList";
|
import { selectAgencyList, getDepartmentList, getAgencyList } from "@/api/manage/selectAgencyList";
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
@ -634,6 +634,7 @@ export default {
|
|||||||
intentionalSource: '',
|
intentionalSource: '',
|
||||||
patientId: '',
|
patientId: '',
|
||||||
},
|
},
|
||||||
|
patientId:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -650,43 +651,109 @@ export default {
|
|||||||
this.queryParams.pageSize = size
|
this.queryParams.pageSize = size
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
cancelupload(){},
|
cancelupload(){
|
||||||
|
cancelIntentionalSign(this.patientId).then(response => {
|
||||||
|
console.log(response,'response')
|
||||||
|
if(response.code==200){
|
||||||
|
this.$modal.msgSuccess("撤销意向签约成功");
|
||||||
|
this.addsignopen = false
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 修改意向签约
|
||||||
addsignupload() {
|
addsignupload() {
|
||||||
if (this.addsignform.billingDoctorId && this.addsignattendingPhysicianlist?.length > 0) {
|
if (this.addsignform.billingDoctorId && this.addsignattendingPhysicianlist?.length > 0) {
|
||||||
this.addsignform.billingDoctorName = this.addsignattendingPhysicianlist.find(e => e.userId == this.addsignform.billingDoctorId)?.nickName
|
this.addsignform.billingDoctorName = this.addsignattendingPhysicianlist.find(e => e.userId == this.addsignform.billingDoctorId)?.nickName
|
||||||
}
|
}
|
||||||
intentionalSign(this.addsignform).then(res => {
|
|
||||||
this.$modal.msgSuccess("意向签约成功");
|
this.$refs["addsignform"].validate(valid => {
|
||||||
this.addsignopen = false
|
if (valid) {
|
||||||
})
|
// console.log(this.addsignform,'addsignform')
|
||||||
|
|
||||||
|
if (this.addsignform.id != null) {
|
||||||
|
// return
|
||||||
|
updateIntentionalSign(this.addsignform).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改意向成功");
|
||||||
|
this.addsignopen = false
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// return
|
||||||
|
|
||||||
|
intentionalSign(this.addsignform).then(response => {
|
||||||
|
this.$modal.msgSuccess("意向签约成功");
|
||||||
|
|
||||||
|
this.addsignopen = false
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// intentionalSign(this.addsignform).then(res => {
|
||||||
|
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
// 修改意向
|
// 修改意向
|
||||||
updatesign(item){
|
updatesign(item){
|
||||||
console.log(item,'row')
|
|
||||||
this.addsignform = {
|
this.addsignform = {
|
||||||
billingDoctorId: '',
|
billingDoctorId: '',
|
||||||
billingDoctorName: '',
|
billingDoctorName: '',
|
||||||
intentionalSource: '',
|
intentionalSource: '',
|
||||||
patientId: item.id,
|
patientId: item.id,
|
||||||
}
|
}
|
||||||
|
console.log(item,'row')
|
||||||
|
this.patientId=item.id
|
||||||
|
getIntentionalSign(item.signPatientRecordId).then(response => {
|
||||||
|
// console.log(response,'response')
|
||||||
|
this.addsignform=response.data
|
||||||
|
this.addsignopen = true
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
this.usergetListinfotwo(item.hospitalAgencyId)
|
this.usergetListinfotwo(item.hospitalAgencyId)
|
||||||
this.resetForm("addsignform");
|
this.resetForm("addsignform");
|
||||||
this.title='修改意向'
|
this.title='修改意向'
|
||||||
|
|
||||||
this.addsignopen = true
|
|
||||||
},
|
},
|
||||||
// 重新签约
|
// 重新签约
|
||||||
newsign(item){
|
newsign(row){
|
||||||
this.addsignform = {
|
console.log(row,'row')
|
||||||
billingDoctorId: '',
|
// return
|
||||||
billingDoctorName: '',
|
this.$router.push({
|
||||||
intentionalSource: '',
|
path: "/patient/newSigning",
|
||||||
patientId: item.id,
|
query: {
|
||||||
}
|
path: "/patient/visitout",
|
||||||
this.title='重新签约'
|
departmentId: row.departmentId,
|
||||||
this.usergetListinfotwo(item.hospitalAgencyId)
|
patientName: row.patientName,
|
||||||
this.resetForm("addsignform");
|
patientPhone: row.patientPhone,
|
||||||
this.addsignopen = true
|
visitMethod: row.visitMethod,
|
||||||
|
signDiagnosis: row.signDiagnosis,
|
||||||
|
signPatientRecordId:row.signPatientRecordId,
|
||||||
|
visitSerialNumber: row.visitSerialNumber,
|
||||||
|
hospitalAgencyName: row.hospitalAgencyName,
|
||||||
|
hospitalAgencyId: row.hospitalAgencyId,
|
||||||
|
inHospitalNumber: row.inHospitalNumber,
|
||||||
|
departmentName: row.departmentName,
|
||||||
|
paymentStatus: row.paymentStatus,
|
||||||
|
sex: row.sex,
|
||||||
|
age: row.birthDate ? getAge(row.birthDate) : "",
|
||||||
|
patientId: row.patientId,
|
||||||
|
createTime: row.createTime,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
// this.addsignform = {
|
||||||
|
// billingDoctorId: '',
|
||||||
|
// billingDoctorName: '',
|
||||||
|
// intentionalSource: '',
|
||||||
|
// patientId: item.id,
|
||||||
|
// }
|
||||||
|
// this.title='重新签约'
|
||||||
|
// this.usergetListinfotwo(item.hospitalAgencyId)
|
||||||
|
// this.resetForm("addsignform");
|
||||||
|
// this.addsignopen = true
|
||||||
},
|
},
|
||||||
addsign(item) {
|
addsign(item) {
|
||||||
this.addsignform = {
|
this.addsignform = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user