提交 728a8d23 编写于 作者: 张磊's avatar 张磊

quick detect

上级 196faf72
......@@ -114,6 +114,15 @@ export const detectionRecordInfo = (id) => {
});
};
// 获取检测人信息
export const detectionQuickRecordInfo = (id) => {
return request({
method: 'get',
url: `/trade/detection/record/queryFastDetectRecord/${id}`,
withCredentials: true,
});
};
// 绑定条码
export const bindingSampleCode = (data) => {
return request({
......
......@@ -93,11 +93,9 @@ export default {
getJumpPageStatus(data).then(res => {
console.log('getJumpPageStatus', res);
if (res.code == '000000') {
if (res.data.yunOrderNo && res.data.yunOrderNo != '') {
this.checkStatus(res);
} else {
// https://dev-sc.yunqueyi.com/tis/insurance/create/order
this.createOrder(data);
}
this.$loading.hide();
......
......@@ -78,7 +78,10 @@
</div>
</div>
<div v-if="insuranceInfo.detectionKind == 0" class="notification">
<div
v-if="insuranceInfo.detectionKind == 0"
class="notification"
>
<div class="sign-detection">
<img
v-if="isCheck"
......@@ -204,7 +207,7 @@
<script>
import { mapGetters } from 'vuex';
import { signDetection, getProtocolContent, getProtocolName, sampleCodeValidate, detectionRecordInfo, bindingSampleCode, bindingQuickSampleCode} from '@/api/detection.js';
import { signDetection, getProtocolContent, getProtocolName, sampleCodeValidate, detectionRecordInfo, bindingSampleCode, bindingQuickSampleCode, detectionQuickRecordInfo} from '@/api/detection.js';
import {getDetectionName} from '@/api/appoint';
export default {
data() {
......@@ -252,12 +255,16 @@ export default {
this.pprotocolType = pprotocolType || '';
this.detectionRecordId = detectionRecordId;
this.yunOrderNo = yunOrderNo;
this.getProtocolName();
this.getRecordInfo(detectionRecordId);
this.getDetectionName(yunOrderNo);
}else {
this.$toast('传递有误:', pprotocolType, detectionRecordId, yunOrderNo);
}
if(pprotocolType) {
this.getProtocolName();
}else{
this.isCheck = true;
}
},
methods: {
clearCode() {
......@@ -326,6 +333,7 @@ export default {
console.log('res', res);
if (res.code === '000000' && res.data) {
this.insuranceInfo = res.data[0];
this.getRecordInfo();
console.log('----', this.insuranceInfo);
}
......@@ -371,18 +379,33 @@ export default {
this.toggleBindingInfo();
});
},
getRecordInfo(id) {
detectionRecordInfo(id).then(res => {
if (res.code === '000000') {
this.recordInfo.name = res.data.patientName;
this.recordInfo.sex = res.data.sex === 1 ? '男' : '女';
this.recordInfo.date = res.data.birthday;
this.recordInfo.checkName = res.data.checkName;
this.recordInfo.projectId = res.data.projectId;
this.recordInfo.patientId = res.data.patientId;
this.recordInfo.hospitalId = res.data.hospitalId;
}
});
getRecordInfo() {
if(this.insuranceInfo.detectionKind == 1) {
detectionRecordInfo(this.detectionRecordId).then(res => {
if (res.code === '000000') {
this.recordInfo.name = res.data.patientName;
this.recordInfo.sex = res.data.sex === 1 ? '男' : '女';
this.recordInfo.date = res.data.birthday;
this.recordInfo.checkName = res.data.checkName;
this.recordInfo.projectId = res.data.projectId;
this.recordInfo.patientId = res.data.patientId;
this.recordInfo.hospitalId = res.data.hospitalId;
}
});
}
if(this.insuranceInfo.detectionKind == 0) {
detectionQuickRecordInfo(this.detectionRecordId).then(res => {
if (res.code === '000000') {
this.recordInfo.name = res.data.patientName;
this.recordInfo.sex = res.data.patientGender === 1 ? '男' : '女';
this.recordInfo.date = res.data.birthTime;
this.recordInfo.checkName = res.data.detectName;
this.recordInfo.projectId = res.data.projectId;
this.recordInfo.patientId = res.data.patientId;
this.recordInfo.hospitalId = res.data.hospitalId;
}
});
}
},
// 绑定条形码
bindingCode() {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册