diff --git a/src/axios.js b/src/axios.js index 148d03f5..9cc06217 100644 --- a/src/axios.js +++ b/src/axios.js @@ -140,10 +140,9 @@ axios.interceptors.response.use( } setTimeout(() => { msg.value = ''; - }, 0); + }, 50); msg.value=message - - return Promise.reject(new Error(message)); + return Promise.reject(new Error(message)); } // 正常状态返回responseData return res; diff --git a/src/store/modules/tags.js b/src/store/modules/tags.js index fceef25f..b9ddf2b9 100644 --- a/src/store/modules/tags.js +++ b/src/store/modules/tags.js @@ -1,41 +1,43 @@ -import { setStore, getStore } from 'utils/store'; -import website from '@/config/website'; +import { setStore, getStore } from 'utils/store';// 从 'utils/store' 导入 setStore 和 getStore 方法 +import website from '@/config/website';// 从项目的配置文件中导入 website 对象 -const tagWel = website.fistPage; +const tagWel = website.fistPage;// 从 website 配置中获取第一个页面的配置 const navs = { state: { - tagList: getStore({ name: 'tagList' }) || [], - tag: getStore({ name: 'tag' }) || {}, - tagWel: tagWel, + tagList: getStore({ name: 'tagList' }) || [], // 尝试从本地存储获取标签列表,如果没有则设为空数组 + tag: getStore({ name: 'tag' }) || {}, // 尝试从本地存储获取当前标签,如果没有则设为空对象 + tagWel: tagWel, // 设置第一个页面的配置为 tagWel }, mutations: { + // 添加新的标签 ADD_TAG: (state, action) => { if (typeof action.name == 'function') action.name = action.name(action.query); - state.tag = action; - setStore({ name: 'tag', content: state.tag }); - if (state.tagList.some(ele => ele.fullPath == action.fullPath)) return; - state.tagList.push(action); - setStore({ name: 'tagList', content: state.tagList }); + state.tag = action;// 设置当前的标签 + setStore({ name: 'tag', content: state.tag });// 在本地存储中保存当前标签 + if (state.tagList.some(ele => ele.fullPath == action.fullPath)) return; // 如果列表中已经有了这个标签则不添加 + state.tagList.push(action);// 将新标签添加到列表中 + setStore({ name: 'tagList', content: state.tagList }); // 在本地存储中保存标签列表 }, // 关闭指定标签 DEL_TAG: (state, action) => { state.tagList = state.tagList.filter(item => { - return item.fullPath !== action.fullPath; + return item.fullPath !== action.fullPath;// 保留列表中不是指定路径的标签 }); - setStore({ name: 'tagList', content: state.tagList }); + setStore({ name: 'tagList', content: state.tagList });// 更新本地存储中的标签列表 }, + // 关闭所有标签 DEL_ALL_TAG: (state, tagList = []) => { - state.tagList = tagList; - setStore({ name: 'tagList', content: state.tagList }); + state.tagList = tagList;// 清空标签列表 + setStore({ name: 'tagList', content: state.tagList });// 更新本地存储 }, // 关闭除了当前页面的所有页面 DEL_TAG_OTHER: state => { state.tagList = state.tagList.filter(item => { console.log("关闭其他111state.tag.fullPath, website.fistPage.path",state.tag.fullPath, website.fistPage.path,item); - return [state.tag.fullPath, website.fistPage.path].includes(item.fullPath); + return [state.tag.fullPath, website.fistPage.path].includes(item.fullPath);// 保留当前路径和第一个页面的路径 }); console.log("2222state.tagList",state.tagList); - setStore({ name: 'tagList', content: state.tagList }); + setStore({ name: 'tagList', content: state.tagList });// 更新本地存储 }, // 关闭当前页面 DEL_TAG_CURRENT: state => { @@ -45,10 +47,10 @@ const navs = { // this.demoData = this.demoData.filter((o) => { // return state.tag.fullPath !== del // }) - return state.tag.fullPath !== item.fullPath; + return state.tag.fullPath !== item.fullPath;// 保留不是当前路径的标签 }); // console.log("state.tagList",state.tagList); - setStore({ name: 'tagList', content: state.tagList }); + setStore({ name: 'tagList', content: state.tagList });// 更新本地存储 }, }, }; diff --git a/src/views/aftersales/aftersalesWorkOrder.vue b/src/views/aftersales/aftersalesWorkOrder.vue index 2a180f22..f87f6b9f 100644 --- a/src/views/aftersales/aftersalesWorkOrder.vue +++ b/src/views/aftersales/aftersalesWorkOrder.vue @@ -1800,18 +1800,21 @@ const IndexTable = (val,Refresh) => { console.log(res, '初始化返回值'); details.loadingObj.list = false; //关闭动画加载 if (res.data.data) { + console.log(res.data.data, '初始化返回值===>'); + console.log(res.data.data.records.length,'res.data.data.records'); + console.log(TabList.value,'TabList.value===>'); // page.value.total = res.data.data.total; //总页数 if (res.data.data.records.length) { - Statusprocessing(res.data.data.records); - + console.log(res.data.data.records,'res.data.data.records有值'); TabList.value.find(res=>res.name == TabPermissions.value).DataList = res.data.data.records TabList.value.find(res=>res.name == TabPermissions.value).total = res.data.data.total TabList.value.find(res=>res.name == TabPermissions.value).request=false - console.log(TabList.value,'当前存储的值'); // details.data = res.data.data.records; details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList page.value.total = TabList.value.find(res=>res.name == TabPermissions.value).total + console.log(TabList.value,'TabList.value===>'); + Statusprocessing(res.data.data.records); } else { // details.data = res.data.data.records; details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList; @@ -2314,6 +2317,9 @@ const appeal = (val, state) => { }; // 确定理赔金额 const DetermineClaims = val => { + + + console.log(val.row); let data = { id: val.row.lawoId, @@ -2324,14 +2330,13 @@ const DetermineClaims = val => { $_settlementUpdate(data) .then(res => { console.log(res); - details.loadingObj.list = false; //关闭动画加载 if (res.data.code == 200) { - tabChenge(TabPermissions.value); + tabChenge(TabPermissions.value,{},true); } }) .catch(res => { details.loadingObj.list = false; //关闭动画加载 - }); + }) }; // 理赔金额未出编辑操作 const Resultediting = val => { @@ -2349,6 +2354,7 @@ const Resultediting = val => { workOrderNumber: val.row.workOrderNumber, RouterState: 'Kfend', Processingresults: true, //理赔编辑 + Resultediting:true,//编辑理赔金额 index: '1', }, }); @@ -2913,7 +2919,7 @@ const AppealTab = val => { let data = { ...details.query, }; - IndexTable(data); + IndexTable(data,true); } else { AppealListFn(); //申诉列表函数 } @@ -3478,7 +3484,7 @@ const DetermineStorage = val => { }); } console.log(res, '处理完毕确定'); - tabChenge(TabPermissions.value); + tabChenge(TabPermissions.value,{},true); }) .catch(res => { console.log(res, '错误信息'); @@ -3616,7 +3622,7 @@ const ResultConfirmation = val => { type: 'success', }); } - tabChenge(TabPermissions.value); + tabChenge(TabPermissions.value,{},true); }) .catch(res => { console.log(res, '错误信息'); @@ -3692,7 +3698,7 @@ const ResultConfirmation = val => { }); } console.log(res, '处理完毕确定'); - tabChenge(TabPermissions.value); + tabChenge(TabPermissions.value,{},true); }) .catch(res => { console.log(res, '错误信息'); diff --git a/src/views/aftersales/aftersalesWorkOrderInfo.vue b/src/views/aftersales/aftersalesWorkOrderInfo.vue index 2bbe2cfd..7704117f 100644 --- a/src/views/aftersales/aftersalesWorkOrderInfo.vue +++ b/src/views/aftersales/aftersalesWorkOrderInfo.vue @@ -1522,6 +1522,7 @@ const CustomerServiceCompleted = () => { RouterState: 'Kfend', workOrderStatus: $route.query.workOrderStatus, //当前单子状态 CompletedEditing: 'true', //可以编辑完结信息编辑 + CustomerServiceCompleted: 'true', //客服仲裁完结 index: '1', }, }); @@ -1538,6 +1539,7 @@ const EditInformation = () => { warehouseId: $route.query.warehouseId, workOrderNumber: $route.query.workOrderNumber, RouterState: 'Infoedit', + EditInformation:true, //可以编辑完结信息编辑 ProcessType: $route.query.ProcessType, //类型 1 待处理 2 已处理 ProcessingresultsState:UserPermissions.value !='仓库客服'?true:false, // workOrderStatus: $route.query.workOrderStatus, //当前单子状态 @@ -1558,7 +1560,7 @@ const AppealEstablished = () => { workOrderStatus: $route.query.workOrderStatus, //当前单子状态 Appealeditor: 'appeal', //申诉编辑 appealID: $route.query.appealID, //申诉ID - AppealEstablished: 'true', //申诉成立 + AppealEstablished: true, //申诉成立 }, }); }; diff --git a/src/views/aftersales/aftersalesWorkOrdermodify.vue b/src/views/aftersales/aftersalesWorkOrdermodify.vue index c30e058b..8e809fad 100644 --- a/src/views/aftersales/aftersalesWorkOrdermodify.vue +++ b/src/views/aftersales/aftersalesWorkOrdermodify.vue @@ -425,7 +425,7 @@ :reserve-keyword="false" placeholder="请选择处理结果" @change="changeProcessingResults" - :disabled="Appealeditor == 'appeal'" + :disabled="ProcessingProhibited" > @@ -468,7 +468,7 @@ @@ -479,7 +479,7 @@ format="YYYY-MM-DD" value-format="YYYY-MM-DD HH:mm:ss" placeholder="支付时间" - :disabled="Appealeditor == 'appeal' && CompletedEditing" + :disabled="ProcessingProhibited" class="el_Claimpaymenttime" /> @@ -499,13 +499,13 @@ clearable :autosize="{ minRows: 3, maxRows: 4 }" type="textarea" - :disabled="Appealeditor == 'appeal'" + :disabled="ProcessingProhibited" /> - +