|
|
@@ -174,6 +174,7 @@ import {
|
|
|
buryingPoint,
|
|
|
getMaterialHistory,
|
|
|
getVisitTasks,
|
|
|
+ getCljlaToDBLabel,
|
|
|
} from '@/api/index';
|
|
|
import axios from 'axios';
|
|
|
import sp from './../../assets/sp.png';
|
|
|
@@ -790,18 +791,23 @@ export default {
|
|
|
}, 2000);
|
|
|
localStorage.setItem('getRequestFlage', 'false');
|
|
|
if (val.taskType == '5') {
|
|
|
- debugger;
|
|
|
- this.$router.push({
|
|
|
- path: '/taskPhotoTaking',
|
|
|
- query: {
|
|
|
- storeCode: this.urlParameter.storeCode,
|
|
|
- visitsId: this.visitId,
|
|
|
- taskIds: val.taskIds.join(','),
|
|
|
- storeGroupId: this.storeGroupId,
|
|
|
- photoType: val.photoType,
|
|
|
- insert: true,
|
|
|
- storeId: this.storeId,
|
|
|
- },
|
|
|
+ getCljlaToDBLabel({ visitsId: this.visitId }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/taskPhotoTaking',
|
|
|
+ query: {
|
|
|
+ storeCode: this.urlParameter.storeCode,
|
|
|
+ visitsId: this.visitId,
|
|
|
+ taskIds: val.taskIds.join(','),
|
|
|
+ storeGroupId: this.storeGroupId,
|
|
|
+ photoType: val.photoType,
|
|
|
+ insert: true,
|
|
|
+ storeId: this.storeId,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$toast(res.msg);
|
|
|
+ }
|
|
|
});
|
|
|
} else {
|
|
|
this.$router.push({
|