|
|
@@ -160,6 +160,7 @@ import {
|
|
|
buryingPoint,
|
|
|
getMaterialHistory,
|
|
|
getVisitTasks,
|
|
|
+ getCljlaToDBLabel,
|
|
|
} from '@/api/index';
|
|
|
import axios from 'axios';
|
|
|
import { saveVisitsParams, getOrderUrlByStoreId } from '@/api/inventory';
|
|
|
@@ -629,17 +630,23 @@ export default {
|
|
|
localStorage.setItem('getRequestFlage', 'false');
|
|
|
console.log(this.visitId);
|
|
|
if (val.taskType == '5') {
|
|
|
- this.$router.push({
|
|
|
- path: '/taskPhotoTaking',
|
|
|
- query: {
|
|
|
- storeCode: this.urlParameter.storeCode,
|
|
|
- visitsId: this.visitId,
|
|
|
- taskIds: val.taskIds.join(','),
|
|
|
- storeGroupId: this.storeGroupId,
|
|
|
- photoType: val.photoType,
|
|
|
- insert: 1,
|
|
|
- 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: 1,
|
|
|
+ storeId: this.storeId,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$toast(res.msg);
|
|
|
+ }
|
|
|
});
|
|
|
} else {
|
|
|
this.$router.push({
|