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

change jump page

上级 c09a28d5
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
ref="PageModel" ref="PageModel"
:header-info="headerInfo" :header-info="headerInfo"
/> />
<div class="code-container"> <div class="code-container" :class="picaWechat == 'wechat' && 'mt20'">
<div class="code-content"> <div class="code-content">
<div class="code-input-item-l detection-container"> <div class="code-input-item-l detection-container">
<div class="input-title"> <div class="input-title">
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
show-cancel-button="true" show-cancel-button="true"
confirm-button-text="确认提交" confirm-button-text="确认提交"
cancel-button-text="返回修改" cancel-button-text="返回修改"
@confirm="toBindSuccess" @confirm="bindingCode"
> >
<div class="binding-code-showInfo"> <div class="binding-code-showInfo">
<div class="title"> <div class="title">
...@@ -375,7 +375,7 @@ export default { ...@@ -375,7 +375,7 @@ export default {
// 绑定条形码 // 绑定条形码
bindingCode() { bindingCode() {
const obj = { const obj = {
barCode: this.barCode, barCode: String(this.barCode).toUpperCase(),
id: this.detectionRecordId, id: this.detectionRecordId,
prototypeId: this.pprotocolType, prototypeId: this.pprotocolType,
prototypeLogId: this.prototypeLogId, prototypeLogId: this.prototypeLogId,
...@@ -383,13 +383,6 @@ export default { ...@@ -383,13 +383,6 @@ export default {
console.log('--obj--', obj); 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);
} else {
this.$toast('提交成功');
}
});
},
toBindSuccess() {
this.$router.push( this.$router.push(
{ {
path: '/insuranceBindCodeSuccess', path: '/insuranceBindCodeSuccess',
...@@ -399,7 +392,12 @@ export default { ...@@ -399,7 +392,12 @@ export default {
}, },
} }
); );
return this.$toast(res.message);
} else {
this.$toast('提交成功');
} }
});
},
} }
}; };
...@@ -724,6 +722,7 @@ export default { ...@@ -724,6 +722,7 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
} }
.mt20{margin-top: 20px}
} }
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册