|
|
@@ -50,7 +50,7 @@
|
|
|
<span style="color: red">*</span>
|
|
|
<span>AI识别是否正确</span>
|
|
|
</div>
|
|
|
- <van-radio-group v-model="AIResult">
|
|
|
+ <van-radio-group v-model="AIResult" :disabled="approveState == '1'">
|
|
|
<van-radio name="1">正确</van-radio>
|
|
|
<van-radio name="0">不正确</van-radio>
|
|
|
</van-radio-group>
|
|
|
@@ -62,13 +62,16 @@
|
|
|
</div>
|
|
|
<van-field
|
|
|
v-model="causeMessage"
|
|
|
+ :disabled="approveState == '1'"
|
|
|
rows="1"
|
|
|
autosize
|
|
|
type="textarea"
|
|
|
:placeholder="'请输入' + causeTitle" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="confirmBtn"><van-button type="info" @click="confirm">提交</van-button></div>
|
|
|
+ <div class="confirmBtn" v-if="approveState == '0'">
|
|
|
+ <van-button type="info" @click="confirm">提交</van-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -83,6 +86,7 @@ export default {
|
|
|
AIResult: '1',
|
|
|
causeTitle: '',
|
|
|
causeMessage: '',
|
|
|
+ approveState: '0',
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -123,16 +127,28 @@ export default {
|
|
|
this.toastLoading().clear();
|
|
|
if (res.code == 200) {
|
|
|
this.data = res.data;
|
|
|
- this.$dialog
|
|
|
- .confirm({
|
|
|
- title: '系统提示',
|
|
|
- message:
|
|
|
- res.data.approveTime +
|
|
|
- '时间已反馈该店拜访照异常原因及解决方案,此次拜访照仍异常,请及时跟进',
|
|
|
- confirmButtonText: '确定',
|
|
|
- showCancelButton: false,
|
|
|
- })
|
|
|
- .then(() => {});
|
|
|
+ this.approveState = res.data.approveState;
|
|
|
+ if (this.approveState == '0') {
|
|
|
+ this.$dialog
|
|
|
+ .confirm({
|
|
|
+ title: '系统提示',
|
|
|
+ message:
|
|
|
+ res.data.approveTime +
|
|
|
+ '时间已反馈该店拜访照异常原因及解决方案,此次拜访照仍异常,请及时跟进',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ showCancelButton: false,
|
|
|
+ })
|
|
|
+ .then(() => {});
|
|
|
+ let latestPhotoApprove = res.data.latestPhotoApprove;
|
|
|
+ if (latestPhotoApprove) {
|
|
|
+ this.AIResult = latestPhotoApprove.resultCorrect || '1';
|
|
|
+ this.causeMessage =
|
|
|
+ latestPhotoApprove.reasonsSolutions || latestPhotoApprove.feedbackError;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.AIResult = res.data.resultCorrect || '1';
|
|
|
+ this.causeMessage = res.data.reasonsSolutions || res.data.feedbackError;
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -152,13 +168,16 @@ export default {
|
|
|
}).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$toast('提交成功');
|
|
|
+ this.onClickLeft();
|
|
|
} else {
|
|
|
this.$toast('提交失败');
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
onClickLeft() {
|
|
|
- this.$router.go(-1);
|
|
|
+ this.$router.replace({
|
|
|
+ path: '/AIImage',
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
};
|