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

quick detect

上级 809bf732
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
class="detail-btn-bottom-tips" class="detail-btn-bottom-tips"
> >
<van-icon name="warning-o" /> <van-icon name="warning-o" />
请在预约日前往预约地{{ isUnderLine ? '领取产品' : '完成采样' }},并点击按钮绑定采样码 请在预约日前往预约地{{ isUnderLine ? '领取产品' : '完成采样' }},并点击按钮绑定{{insuranceInfo && insuranceInfo.detectionKind == 0 ? '采样码' : '条形码'}}
</div> </div>
<div <div
class="detail-btn btn-empty reAppoint" class="detail-btn btn-empty reAppoint"
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
class="detail-btn" class="detail-btn"
@click="bindingCode" @click="bindingCode"
> >
绑定采样码 绑定{{insuranceInfo && insuranceInfo.detectionKind == 0 ? '采样码' : '条形码'}}
</div> </div>
</div> </div>
<div <div
...@@ -206,7 +206,6 @@ ...@@ -206,7 +206,6 @@
:actions="actions" :actions="actions"
cancel-text="取消" cancel-text="取消"
close-on-click-action close-on-click-action
@cancel="onCancel"
@select="selectItem" @select="selectItem"
/> />
</div> </div>
......
...@@ -119,6 +119,7 @@ export default { ...@@ -119,6 +119,7 @@ export default {
this.query = query; this.query = query;
this.needDetect = !(query.needDetect == '1'); this.needDetect = !(query.needDetect == '1');
console.log('query', this.needDetect); console.log('query', this.needDetect);
this.yunOrderNo = query.yunOrderNo;
this.getButtonStatus(query.yunOrderNo); this.getButtonStatus(query.yunOrderNo);
this.getDetectionName(query.yunOrderNo); this.getDetectionName(query.yunOrderNo);
this.$loading.hide(); this.$loading.hide();
...@@ -156,6 +157,8 @@ export default { ...@@ -156,6 +157,8 @@ export default {
path: '/appoint', path: '/appoint',
query: {projectEquityNo, externalOrderNo, yunOrderNo}, query: {projectEquityNo, externalOrderNo, yunOrderNo},
}); });
}else{
this.getButtonStatus(this.yunOrderNo);
} }
}, },
// 获取按钮状态 // 获取按钮状态
...@@ -165,6 +168,10 @@ export default { ...@@ -165,6 +168,10 @@ export default {
this.buttonStatus = res.data.buttonStatus; this.buttonStatus = res.data.buttonStatus;
this.buttonText = res.data.statusDesc; this.buttonText = res.data.statusDesc;
this.$loading.hide(); this.$loading.hide();
!this.buttonStatus && this.$dialog.alert({
message: this.buttonText,
confirmButtonColor:'#00bda5'
});
}); });
} }
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册