|
|
@@ -7,7 +7,7 @@
|
|
|
<span style="color: red">*</span>
|
|
|
<span>请核查并确认店招异常原因:</span>
|
|
|
</div>
|
|
|
- <van-radio-group v-model="abnormalReason" :disabled="approveState == '1'">
|
|
|
+ <van-radio-group v-model="resultCorrect" :disabled="approveState == '1'">
|
|
|
<van-radio :name="item.dictValue" v-for="item in AIResultOption">{{
|
|
|
item.dictLabel
|
|
|
}}</van-radio>
|
|
|
@@ -84,21 +84,25 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
causeMessageData: '',
|
|
|
+ resultCorrect: '1',
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.resultCorrect = this.abnormalReason == '0' ? '1' : this.abnormalReason;
|
|
|
+ },
|
|
|
methods: {
|
|
|
previewImgs(val) {
|
|
|
ImagePreview([val]);
|
|
|
},
|
|
|
confirm() {
|
|
|
- if (!this.abnormalReason) {
|
|
|
+ if (!this.resultCorrect || this.resultCorrect == '0') {
|
|
|
this.$toast('请选择招异常原因');
|
|
|
return;
|
|
|
}
|
|
|
this.toastLoading(0, '加载中...', true);
|
|
|
savePhotoApprove({
|
|
|
photoApproveId: this.photoApproveId, // long 主键
|
|
|
- resultCorrect: this.abnormalReason, // string AI识别是否正确: 1 正确 0不正确
|
|
|
+ resultCorrect: this.resultCorrect, // string AI识别是否正确: 1 正确 0不正确
|
|
|
reasonsSolutions: '',
|
|
|
feedbackError: this.causeMessageData, // string 反馈AI识别不正确
|
|
|
}).then((res) => {
|