提交 3b0c240c 编写于 作者: 张敬贤's avatar 张敬贤

Merge branch 'develop' of...

Merge branch 'develop' of http://192.168.110.53/com.pica.cloud.frontend/pica-insurance into feature/zjx
......@@ -30,20 +30,20 @@
<script src="<%= VUE_APP_OSS_URL %>static/js/lodash-4.17.15.js"></script>
<script>
!(function(c,b,d,a){c[a]||(c[a]={});c[a].config=
{
pid:"bj53rb58f5@29641a9002f6545",
appType:"web",
imgUrl:"https://arms-retcode.aliyuncs.com/r.png?",
sendResource:true,
enableLinkTrace:true,
behavior:true,
useFmp:true,
enableSPA:true,
enableConsole:true
};
with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d)
})(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl");
// !(function(c,b,d,a){c[a]||(c[a]={});c[a].config=
// {
// pid:"bj53rb58f5@29641a9002f6545",
// appType:"web",
// imgUrl:"https://arms-retcode.aliyuncs.com/r.png?",
// sendResource:true,
// enableLinkTrace:true,
// behavior:true,
// useFmp:true,
// enableSPA:true,
// enableConsole:true
// };
// with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d)
// })(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl");
</script>
</body>
</html>
......@@ -163,7 +163,7 @@
受检人
</div>
<div class="user-info">
<span> {{ recordInfo.name }}</span>
<span class="space max"> {{ recordInfo.name }}</span>
<span class="space">
{{ recordInfo.sex }}
</span>
......@@ -217,23 +217,29 @@ export default {
name: '',
sex: '',
date: '',
checkName: ''
checkName: '',
projectId: '',
patientId:'',
hospitalId: ''
},
insuranceInfo: {},
pprotocolType: ''
pprotocolType: '',
};
},
computed: {
...mapGetters(['orderInfo']),
},
created() {
console.log('--window._picaWechat', window._picaWechat);
const { pprotocolType, detectionRecordId, yunOrderNo } = this.$route.query;
this.pprotocolType = pprotocolType || 31;
if(pprotocolType && detectionRecordId && yunOrderNo) {
this.pprotocolType = pprotocolType;
this.detectionRecordId = detectionRecordId;
this.getProtocolName();
this.getRecordInfo(detectionRecordId || 11077);
this.getRecordInfo(detectionRecordId);
this.getDetectionName(yunOrderNo);
}else {
this.$toast('传递有误:', pprotocolType, detectionRecordId, yunOrderNo);
}
},
methods: {
clearCode() {
......@@ -261,9 +267,9 @@ export default {
}else{
if(this.isCheck && this.barCode) {
const o = {
projectId: this.insuranceInfo.projectId,
projectId: this.recordInfo.projectId,
sampleCode: this.barCode,
hospitalId:this.insuranceInfo.hospitalId
hospitalId:this.recordInfo.hospitalId
};
this.$loading.show();
sampleCodeValidate(o).then(res => {
......@@ -277,6 +283,9 @@ export default {
}).finally(() => {
this.$loading.hide();
});
}else{
this.$toast('请输入条形码');
return false;
}
}
},
......@@ -284,7 +293,7 @@ export default {
// const {beneficiaryPatientId } = this.orderInfo;
const obj = {
protocolType: this.pprotocolType,
patientId: 212773027
patientId: this.recordInfo.patientId
};
signDetection(obj).then(res => {
if (res.code !== '000000') {
......@@ -352,6 +361,11 @@ export default {
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;
// patientId
}
});
......@@ -360,10 +374,11 @@ export default {
bindingCode() {
const obj = {
barCode: this.barCode,
id: this.recordID,
prototypeId: this.pprotocolType ? this.pprotocolType : 0,
prototypeLogId: this.prototypeLogId ? this.prototypeLogId : 0,
id: this.detectionRecordId,
prototypeId: this.pprotocolType,
prototypeLogId: this.prototypeLogId,
};
console.log('--obj--', obj);
bindingSampleCode(obj).then(res => {
if (res.code !== '000000') {
return this.$toast(res.message);
......@@ -377,7 +392,7 @@ export default {
{
path: '/insuranceBindCodeSuccess',
query: {
projectId: this.projectId || 9,
projectId: this.projectId,
detectionRecordId: this.detectionRecordId
},
}
......@@ -674,14 +689,15 @@ export default {
font-weight: 700;
font-size: 15px;
}
.check-name{
max-width: 180px;
.space{
margin-right: 10px;
max-width: 100px;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.space{
margin-left: 10px;
.max{
max-width: 70px;
}
}
.tips{
......@@ -699,7 +715,12 @@ export default {
top:2px;
}
}
.check-name{
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
</style>
......
......@@ -80,6 +80,10 @@
span {
display: inline-block;
padding-left: 15px;
max-width: 50px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册