|
|
@@ -65,10 +65,10 @@
|
|
|
<view class="popup-row">
|
|
|
<view class="content" v-html="contentText" ><p></p></view>
|
|
|
<view class="button-row">
|
|
|
- <button class="mini-btn" type="default" style="font-size: 60rpx;" @click="productOkOrNg(0)" :loading="btnLoad" :disabled="btnLoad">AI误判</button>
|
|
|
+ <button class="mini-btn" type="default" style="font-size: 60rpx;" @click="productOkOrNg(0)" :loading="btnLoad" :disabled="btnLoad">{{aiStatus==0?'产品OK':'AI误判'}}</button>
|
|
|
</view>
|
|
|
<view class="button-row">
|
|
|
- <button class="mini-btn" type="primary" style="font-size: 60rpx;" @click="productOkOrNg(1)" :loading="btnLoad" :disabled="btnLoad">发起维修</button>
|
|
|
+ <button class="mini-btn" type="primary" style="font-size: 60rpx;" @click="productOkOrNg(1)" :loading="btnLoad" :disabled="btnLoad">{{aiStatus==0?'产品NG发起维修':'发起维修'}}</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
@@ -101,6 +101,7 @@
|
|
|
messageText:'',
|
|
|
contentText:'',
|
|
|
productId:'',
|
|
|
+ aiStatus:-1,
|
|
|
btnLoad:false,
|
|
|
webSocketStatus:0,
|
|
|
}
|
|
|
@@ -141,14 +142,15 @@
|
|
|
that.productInfoClean();
|
|
|
if(data.productId){
|
|
|
that.productId = data.productId
|
|
|
+ that.aiStatus = data.aiStatus
|
|
|
console.log("产品ID:"+that.productId)
|
|
|
}
|
|
|
that.imgUrl = data.productAiImage?data.productAiImage:data.productImage
|
|
|
that.msgType = data.status==1?'success':'error'
|
|
|
that.messageText = data.message
|
|
|
that.$refs.message.open()
|
|
|
- if(data.isNg==1){
|
|
|
- that.contentText = "产品\n"+data.qrCode+"\nAI检测为NG,请确认"
|
|
|
+ if(data.aiStatus==0 || data.aiStatus==1){
|
|
|
+ that.contentText = "产品\n"+data.qrCode+"\nAI"+(data.aiStatus==0?"识别失败":"检测为NG") +",请人工确认"
|
|
|
that.$refs.popup.open('right')
|
|
|
}else{
|
|
|
that.$refs.popup.close()
|
|
|
@@ -225,6 +227,7 @@
|
|
|
},
|
|
|
productInfoClean(){
|
|
|
this.productId='';
|
|
|
+ this.aiStatus=-1;
|
|
|
this.btnLoad = false;
|
|
|
},
|
|
|
}
|