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

Merge branch 'feature/zl2' into 'develop'

add all entrance for insurance

See merge request !35
...@@ -217,23 +217,29 @@ export default { ...@@ -217,23 +217,29 @@ export default {
name: '', name: '',
sex: '', sex: '',
date: '', date: '',
checkName: '' checkName: '',
projectId: '',
patientId:'',
hospitalId: ''
}, },
insuranceInfo: {}, insuranceInfo: {},
pprotocolType: '' pprotocolType: '',
}; };
}, },
computed: { computed: {
...mapGetters(['orderInfo']), ...mapGetters(['orderInfo']),
}, },
created() { created() {
console.log('--window._picaWechat', window._picaWechat);
const { pprotocolType, detectionRecordId, yunOrderNo } = this.$route.query; const { pprotocolType, detectionRecordId, yunOrderNo } = this.$route.query;
this.pprotocolType = pprotocolType || 31; if(pprotocolType && detectionRecordId && yunOrderNo) {
this.detectionRecordId = detectionRecordId; this.pprotocolType = pprotocolType;
this.getProtocolName(); this.detectionRecordId = detectionRecordId;
this.getRecordInfo(detectionRecordId || 11077); this.getProtocolName();
this.getDetectionName(yunOrderNo); this.getRecordInfo(detectionRecordId);
this.getDetectionName(yunOrderNo);
}else {
this.$toast('传递有误:', pprotocolType, detectionRecordId, yunOrderNo);
}
}, },
methods: { methods: {
clearCode() { clearCode() {
...@@ -261,9 +267,9 @@ export default { ...@@ -261,9 +267,9 @@ export default {
}else{ }else{
if(this.isCheck && this.barCode) { if(this.isCheck && this.barCode) {
const o = { const o = {
projectId: this.insuranceInfo.projectId, projectId: this.recordInfo.projectId,
sampleCode: this.barCode, sampleCode: this.barCode,
hospitalId:this.insuranceInfo.hospitalId hospitalId:this.recordInfo.hospitalId
}; };
this.$loading.show(); this.$loading.show();
sampleCodeValidate(o).then(res => { sampleCodeValidate(o).then(res => {
...@@ -277,6 +283,9 @@ export default { ...@@ -277,6 +283,9 @@ export default {
}).finally(() => { }).finally(() => {
this.$loading.hide(); this.$loading.hide();
}); });
}else{
this.$toast('请输入条形码');
return false;
} }
} }
}, },
...@@ -284,7 +293,7 @@ export default { ...@@ -284,7 +293,7 @@ export default {
// const {beneficiaryPatientId } = this.orderInfo; // const {beneficiaryPatientId } = this.orderInfo;
const obj = { const obj = {
protocolType: this.pprotocolType, protocolType: this.pprotocolType,
patientId: 212773027 patientId: this.recordInfo.patientId
}; };
signDetection(obj).then(res => { signDetection(obj).then(res => {
if (res.code !== '000000') { if (res.code !== '000000') {
...@@ -352,6 +361,11 @@ export default { ...@@ -352,6 +361,11 @@ export default {
this.recordInfo.sex = res.data.sex === 1 ? '男' : '女'; this.recordInfo.sex = res.data.sex === 1 ? '男' : '女';
this.recordInfo.date = res.data.birthday; this.recordInfo.date = res.data.birthday;
this.recordInfo.checkName = res.data.checkName; this.recordInfo.checkName = res.data.checkName;
this.recordInfo.projectId = res.data.projectId;
this.recordInfo.patientId = res.data.patientId;
this.recordInfo.hospitalId = res.data.hospitalId;
// patientId
} }
}); });
...@@ -360,10 +374,11 @@ export default { ...@@ -360,10 +374,11 @@ export default {
bindingCode() { bindingCode() {
const obj = { const obj = {
barCode: this.barCode, barCode: this.barCode,
id: this.recordID, id: this.detectionRecordId,
prototypeId: this.pprotocolType ? this.pprotocolType : 0, prototypeId: this.pprotocolType,
prototypeLogId: this.prototypeLogId ? this.prototypeLogId : 0, prototypeLogId: this.prototypeLogId,
}; };
console.log('--obj--', obj);
bindingSampleCode(obj).then(res => { bindingSampleCode(obj).then(res => {
if (res.code !== '000000') { if (res.code !== '000000') {
return this.$toast(res.message); return this.$toast(res.message);
...@@ -377,7 +392,7 @@ export default { ...@@ -377,7 +392,7 @@ export default {
{ {
path: '/insuranceBindCodeSuccess', path: '/insuranceBindCodeSuccess',
query: { query: {
projectId: this.projectId || 9, projectId: this.projectId,
detectionRecordId: this.detectionRecordId detectionRecordId: this.detectionRecordId
}, },
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册