|
|
@@ -26,7 +26,7 @@
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
<div class="label">拍摄类型:</div>
|
|
|
- <div class="value">{{ data.identifyType }}</div>
|
|
|
+ <div class="value">{{ data.identifyType | filterType }}</div>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
<div class="label">识别结果:</div>
|
|
|
@@ -50,7 +50,7 @@
|
|
|
</div>
|
|
|
<van-radio-group v-model="AIResult">
|
|
|
<van-radio name="1">正确</van-radio>
|
|
|
- <van-radio name="2">不正确</van-radio>
|
|
|
+ <van-radio name="0">不正确</van-radio>
|
|
|
</van-radio-group>
|
|
|
</div>
|
|
|
<div class="cause">
|
|
|
@@ -71,13 +71,13 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { ImagePreview } from 'vant';
|
|
|
-import { getPhotoApproveDetail } from '@/api/AIImage';
|
|
|
+import { getPhotoApproveDetail, savePhotoApprove } from '@/api/AIImage';
|
|
|
export default {
|
|
|
name: 'AIImageDetail',
|
|
|
data() {
|
|
|
return {
|
|
|
data: {},
|
|
|
- storeId: null,
|
|
|
+ photoApproveId: null,
|
|
|
AIResult: '1',
|
|
|
causeTitle: '',
|
|
|
causeMessage: '',
|
|
|
@@ -96,17 +96,41 @@ export default {
|
|
|
immediate: true,
|
|
|
},
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.storeId = this.$route.query.storeId;
|
|
|
+ filters: {
|
|
|
+ filterType(val) {
|
|
|
+ if (val == 1) {
|
|
|
+ return '店招内容识别';
|
|
|
+ } else if (val == 2) {
|
|
|
+ return '门店代码识别';
|
|
|
+ } else if (val == 3) {
|
|
|
+ return '调色机识别';
|
|
|
+ } else if (val == 4) {
|
|
|
+ return '更换店招';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ this.photoApproveId = this.$route.query.photoApproveId;
|
|
|
this.getDeytail();
|
|
|
},
|
|
|
+ mounted() {},
|
|
|
methods: {
|
|
|
getDeytail() {
|
|
|
this.toastLoading(0, '加载中...', true);
|
|
|
- getPhotoApproveDetail({ photoApproveId: this.storeId }).then((res) => {
|
|
|
+ getPhotoApproveDetail({ photoApproveId: this.photoApproveId }).then((res) => {
|
|
|
this.toastLoading().clear();
|
|
|
- if (res.coede == 200) {
|
|
|
+ if (res.code == 200) {
|
|
|
this.data = res.data;
|
|
|
+ this.$dialog
|
|
|
+ .confirm({
|
|
|
+ title: '系统提示',
|
|
|
+ message:
|
|
|
+ res.data.approveTime +
|
|
|
+ '时间已反馈该店拜访照异常原因及解决方案,此次拜访照仍异常,请及时跟进',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ showCancelButton: false,
|
|
|
+ })
|
|
|
+ .then(() => {});
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -119,11 +143,17 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
savePhotoApprove({
|
|
|
- photo_approve_id: this.storeId, // long 主键
|
|
|
+ photoApproveId: this.photoApproveId, // long 主键
|
|
|
resultCorrect: this.AIResult, // string AI识别是否正确: 1 正确 0不正确
|
|
|
reasonsSolutions: this.AIResult == '1' ? this.causeMessage : '', // string 原因及解决方案
|
|
|
feedbackError: this.AIResult == '2' ? this.causeMessage : '', // string 反馈AI识别不正确
|
|
|
- }).then((res) => {});
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$toast('提交成功');
|
|
|
+ } else {
|
|
|
+ this.$toast('提交失败');
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
};
|