diff --git a/src/utils/request.js b/src/utils/request.js index 73f262be..b77aa112 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -2,8 +2,8 @@ import axios from 'axios' import { wsuri_config, name_config, name1_config, name3_config, name4_config, readFile_config, readImg_config, upload_config, upload2_config, upload3_config, uploadInvoiceScan_config, uploadInvoiceScan1_config, download_config, uploadPerson_config, uploadOP_config, url_config, ExcelDownLoad_config, ServerIP_config, uploadFileMachine_config, downloadFileMachine_config, MESUploadFile_config, MESDownloadFile_config, request_config } from '../../static/config' -// import Cookies from 'js-cookie' -// import store from '@/store' +import Cookies from 'js-cookie' +import store from '@/store' export const wsuri = wsuri_config export const name = name_config @@ -36,16 +36,17 @@ const service = axios.create({ // && config.data.name !== '菜单系统模块_通知信息_查询数据' && config.data.name !== '菜单系统模块_首页信息_查询数据1' && config.data.name !== '菜单系统模块_首页信息_查询数据2' service.interceptors.request.use(config => { - // if (config.data.name !== '菜单系统模块_用户名密码_查询数据_new2' && config.data.name !== '菜单系统模块_获取角色模块_查询数据') { - // getSession_id().then(res => { - // if (res === 0) { - // store.dispatch('FedLogOut').then(() => { - // location.reload() // 为了重新实例化vue-router对象 避免bug - // alert('此账号已异地登录,请查重新登录') - // }) - // } - // }) - // } + if (config.data.name !== '菜单系统模块_用户名密码_查询数据_new2' && config.data.name !== '菜单系统模块_获取角色模块_查询数据') { + const id = Cookies.get('id') + if (id) { + console.log(id, 123) + } else { + store.dispatch('FedLogOut').then(() => { + location.reload() // 为了重新实例化vue-router对象 避免bug + alert('此账号登录失效,请重新登录') + }) + } + } return config }, error => { Promise.reject(error) diff --git a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue index 02bf0b95..13ffedf1 100644 --- a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue +++ b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue @@ -58,7 +58,7 @@ 查询 - 导出 + 导出 新增 diff --git a/src/views/Inventory/MaterialReturn/index.vue b/src/views/Inventory/MaterialReturn/index.vue index db1b8a0d..cf3dab2d 100644 --- a/src/views/Inventory/MaterialReturn/index.vue +++ b/src/views/Inventory/MaterialReturn/index.vue @@ -130,20 +130,20 @@ @current-change="handleCurrentChange1"/> - +
- - {{ nameOrNumber }} - - - 出库数量:{{ outNumber }} + + {{ nameOrNumber }} - - 领料人:{{ people }} + + 出库数量:{{ outNumber }} - - 出库时间:{{ time }} + + 领料人:{{ people }} + + + 出库时间:{{ time }}
diff --git a/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue b/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue index 834b1a50..876a432c 100644 --- a/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue +++ b/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue @@ -14,9 +14,9 @@ :key="item.value" :label="item.label" :value="item.value"/> - + 142 查询 - 导出 + 导出 diff --git a/src/views/ManufacturingCenter/DiscardedPartsInquiry/index.vue b/src/views/ManufacturingCenter/DiscardedPartsInquiry/index.vue index db30f6f8..d423a9e7 100644 --- a/src/views/ManufacturingCenter/DiscardedPartsInquiry/index.vue +++ b/src/views/ManufacturingCenter/DiscardedPartsInquiry/index.vue @@ -45,14 +45,14 @@ {{ scope.row.零件名称 }} - + - + diff --git a/src/views/ManufacturingCenter/MaterialAllocation/index.vue b/src/views/ManufacturingCenter/MaterialAllocation/index.vue index a5e69f64..159d5c98 100644 --- a/src/views/ManufacturingCenter/MaterialAllocation/index.vue +++ b/src/views/ManufacturingCenter/MaterialAllocation/index.vue @@ -63,6 +63,7 @@ label="机床图号" align="center" prop="机床图号" + show-overflow-tooltip="" min-width="100px"> @@ -74,13 +75,34 @@ - + prop="名称" + min-width="60px"> + + + + + + + + + + - - - - - - @@ -176,10 +176,10 @@ -
+
外购件 - 导出 + 导出
@@ -234,16 +234,6 @@ {{ scope.row.标记 }} - - - - - - + + + + + +