提交 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 @@ ...@@ -30,20 +30,20 @@
<script src="<%= VUE_APP_OSS_URL %>static/js/lodash-4.17.15.js"></script> <script src="<%= VUE_APP_OSS_URL %>static/js/lodash-4.17.15.js"></script>
<script> <script>
!(function(c,b,d,a){c[a]||(c[a]={});c[a].config= // !(function(c,b,d,a){c[a]||(c[a]={});c[a].config=
{ // {
pid:"bj53rb58f5@29641a9002f6545", // pid:"bj53rb58f5@29641a9002f6545",
appType:"web", // appType:"web",
imgUrl:"https://arms-retcode.aliyuncs.com/r.png?", // imgUrl:"https://arms-retcode.aliyuncs.com/r.png?",
sendResource:true, // sendResource:true,
enableLinkTrace:true, // enableLinkTrace:true,
behavior:true, // behavior:true,
useFmp:true, // useFmp:true,
enableSPA:true, // enableSPA:true,
enableConsole:true // enableConsole:true
}; // };
with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d) // with(b)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("crossorigin","",src=d)
})(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl"); // })(window,document,"https://retcode.alicdn.com/retcode/bl.js","__bl");
</script> </script>
</body> </body>
</html> </html>
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
受检人 受检人
</div> </div>
<div class="user-info"> <div class="user-info">
<span> {{ recordInfo.name }}</span> <span class="space max"> {{ recordInfo.name }}</span>
<span class="space"> <span class="space">
{{ recordInfo.sex }} {{ recordInfo.sex }}
</span> </span>
...@@ -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
}, },
} }
...@@ -674,14 +689,15 @@ export default { ...@@ -674,14 +689,15 @@ export default {
font-weight: 700; font-weight: 700;
font-size: 15px; font-size: 15px;
} }
.check-name{ .space{
max-width: 180px; margin-right: 10px;
max-width: 100px;
display: inline-block;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap;
} }
.space{ .max{
margin-left: 10px; max-width: 70px;
} }
} }
.tips{ .tips{
...@@ -699,7 +715,12 @@ export default { ...@@ -699,7 +715,12 @@ export default {
top:2px; top:2px;
} }
} }
.check-name{
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
} }
} }
</style> </style>
......
...@@ -80,6 +80,10 @@ ...@@ -80,6 +80,10 @@
span { span {
display: inline-block; display: inline-block;
padding-left: 15px; padding-left: 15px;
max-width: 50px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
} }
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册