|
|
@@ -258,8 +258,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getCollectionShowHistory, getPhotoTypeList, getVisitsDetail } from '@/api/index';
|
|
|
+import { getCollectionShowHistory, getPhotoTypeList } from '@/api/index';
|
|
|
import deleteUploadImg from '@/components/deleteUploadImg';
|
|
|
+import { getVisitsDetail } from '@/api/home';
|
|
|
|
|
|
export default {
|
|
|
name: 'abnormalVisit',
|
|
|
@@ -289,7 +290,7 @@ export default {
|
|
|
storeGroupId: '',
|
|
|
taskId: '',
|
|
|
collectionId: '',
|
|
|
- storeId: '',
|
|
|
+ chainId: '',
|
|
|
collectionAnswerlisd: [],
|
|
|
tableData1: [],
|
|
|
taskType: 1,
|
|
|
@@ -298,21 +299,23 @@ export default {
|
|
|
checkShow: false,
|
|
|
infoData: {},
|
|
|
putInCode: '',
|
|
|
+ urlParameter: null,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ this.urlParameter = this.$route.query;
|
|
|
this.taskType = this.$route.query.taskType;
|
|
|
this.PhotoType = this.$route.query.photoType;
|
|
|
- this.visitId = this.$route.query.visitId + '';
|
|
|
+ this.visitId = this.$route.query.id + '';
|
|
|
this.taskId = this.$route.query.taskId + '';
|
|
|
- this.storeId = this.$route.query.storeId + '';
|
|
|
+ this.chainId = this.$route.query.chainId + '';
|
|
|
this.storeGroupId = this.$route.query.storeGroupId + '';
|
|
|
if (this.$route.query.photoType != null) {
|
|
|
this.indexselect = 0;
|
|
|
} else {
|
|
|
this.indexselect = 1;
|
|
|
}
|
|
|
- this.getPhotoTypeList();
|
|
|
+ // this.getPhotoTypeList();
|
|
|
this.info();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -337,7 +340,7 @@ export default {
|
|
|
// 历史回显
|
|
|
getCollectionShowHistory(id) {
|
|
|
getCollectionShowHistory({
|
|
|
- storeId: this.infoData.storeId,
|
|
|
+ chainId: this.infoData.chainId,
|
|
|
collectionId: id.collectionId,
|
|
|
visitsId: this.$route.query.visitId,
|
|
|
storeGroupId: this.$route.query.storeGroupId,
|
|
|
@@ -363,17 +366,16 @@ export default {
|
|
|
info() {
|
|
|
getVisitsDetail({ visitsId: this.visitId }).then((res) => {
|
|
|
this.infoData = res.data;
|
|
|
- var collectionItemLists = res.data.sfaTaskList[this.$route.query.ids].collectionItemList;
|
|
|
- if (res.data.sfaTaskList[this.$route.query.ids].checkUnManage == 'Y') {
|
|
|
+ var collectionItemLists =
|
|
|
+ res.data.sfaTaskList[this.$route.query.activatedIndex].collectionItemList;
|
|
|
+ if (res.data.sfaTaskList[this.$route.query.activatedIndex].checkUnManage == 'Y') {
|
|
|
this.checkShow = true;
|
|
|
} else {
|
|
|
this.checkShow = false;
|
|
|
}
|
|
|
- // this.deviceCode=res.data.deviceCode;
|
|
|
- // this.putInCode=res.data.putInCode;
|
|
|
- this.deviceCode = res.data.sfaTaskList[this.$route.query.ids].deviceCode || ''; // 设备编号
|
|
|
- this.putInCode = res.data.sfaTaskList[this.$route.query.ids].putInCode || ''; // 投放编号
|
|
|
- if (res.data.sfaTaskList[this.$route.query.ids].inspectionType == 'buy') {
|
|
|
+ this.deviceCode = res.data.sfaTaskList[this.$route.query.activatedIndex].deviceCode || ''; // 设备编号
|
|
|
+ this.putInCode = res.data.sfaTaskList[this.$route.query.activatedIndex].putInCode || ''; // 投放编号
|
|
|
+ if (res.data.sfaTaskList[this.$route.query.activatedIndex].inspectionType == 'buy') {
|
|
|
this.showCode = true;
|
|
|
} else {
|
|
|
this.showCode = false;
|