|
|
@@ -164,6 +164,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
|
+ if (this.formData && this.formData.collectionItemList && this.formData.collectionItemList[0]) {
|
|
|
+ this.formData.collectionItemList[0].fileInfoList = [];
|
|
|
+ }
|
|
|
this.taskIds = this.$route.query.taskIds || [];
|
|
|
this.visitsId = this.$route.query.visitsId || '';
|
|
|
this.storeGroupId = this.$route.query.storeGroupId || '';
|
|
|
@@ -171,6 +174,7 @@ export default {
|
|
|
this.insert = this.$route.query.insert;
|
|
|
// 授权
|
|
|
// getTicketFun(['uploadImage']).then(() => {});
|
|
|
+ this.toastLoading(0, '加载中...', true);
|
|
|
if (this.$route.query.source == 'historicalDetails') {
|
|
|
this.getVisitsDetailFun();
|
|
|
} else {
|
|
|
@@ -250,7 +254,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getVisitsDetailFun() {
|
|
|
- this.toastLoading(0, '加载中...', true);
|
|
|
getVisitsDetail({ visitsId: this.visitsId }).then((res) => {
|
|
|
this.toastLoading().clear();
|
|
|
if (res.data.sfaTaskList) {
|
|
|
@@ -270,6 +273,7 @@ export default {
|
|
|
id: this.visitsId,
|
|
|
taskIds: this.taskIds.split(','),
|
|
|
}).then((res) => {
|
|
|
+ this.toastLoading().clear();
|
|
|
if (res.data && res.data.length) {
|
|
|
this.dataList = res.data;
|
|
|
this.formData = res.data[0];
|
|
|
@@ -280,7 +284,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
isEditFun() {
|
|
|
- this.getTicketFunfun();
|
|
|
+ // this.getTicketFunfun();
|
|
|
},
|
|
|
openDialog(item) {
|
|
|
this.vanPopup = true;
|