diff --git a/.env.development b/.env.development index a4749dc..2d64f2f 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,10 @@ # 页面标题 VITE_APP_TITLE = 华东计量综合系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州 +#房可鑫测试 +VITE_APP_API_BASEURL = http://111.198.10.15:21710 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.development b/.env.development index a4749dc..2d64f2f 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,10 @@ # 页面标题 VITE_APP_TITLE = 华东计量综合系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州 +#房可鑫测试 +VITE_APP_API_BASEURL = http://111.198.10.15:21710 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 0fca4ad..2b0d060 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,16 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 +#// 测试环境 # VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -VITE_APP_API_BASEURL = http://192.168.2.96:8085 +# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 生产环境 +# VITE_APP_API_BASEURL = http://111.198.10.15:21710 +# ------------------ 内网 -------------------------- +# VITE_APP_API_BASEURL = http://192.168.2.96:8088 +# ------------------ 外网 -------------------------- +VITE_APP_API_BASEURL = http://222.187.140.114:8896 + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.development b/.env.development index a4749dc..2d64f2f 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,10 @@ # 页面标题 VITE_APP_TITLE = 华东计量综合系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州 +#房可鑫测试 +VITE_APP_API_BASEURL = http://111.198.10.15:21710 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 0fca4ad..2b0d060 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,16 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 +#// 测试环境 # VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -VITE_APP_API_BASEURL = http://192.168.2.96:8085 +# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 生产环境 +# VITE_APP_API_BASEURL = http://111.198.10.15:21710 +# ------------------ 内网 -------------------------- +# VITE_APP_API_BASEURL = http://192.168.2.96:8088 +# ------------------ 外网 -------------------------- +VITE_APP_API_BASEURL = http://222.187.140.114:8896 + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/20230626.zip b/20230626.zip deleted file mode 100644 index 1eb27ab..0000000 --- a/20230626.zip +++ /dev/null Binary files differ diff --git a/.env.development b/.env.development index a4749dc..2d64f2f 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,10 @@ # 页面标题 VITE_APP_TITLE = 华东计量综合系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州 +#房可鑫测试 +VITE_APP_API_BASEURL = http://111.198.10.15:21710 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 0fca4ad..2b0d060 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,16 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 +#// 测试环境 # VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -VITE_APP_API_BASEURL = http://192.168.2.96:8085 +# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 生产环境 +# VITE_APP_API_BASEURL = http://111.198.10.15:21710 +# ------------------ 内网 -------------------------- +# VITE_APP_API_BASEURL = http://192.168.2.96:8088 +# ------------------ 外网 -------------------------- +VITE_APP_API_BASEURL = http://222.187.140.114:8896 + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/20230626.zip b/20230626.zip deleted file mode 100644 index 1eb27ab..0000000 --- a/20230626.zip +++ /dev/null Binary files differ diff --git a/src/api/index.ts b/src/api/index.ts index 87d5969..a368449 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -24,6 +24,7 @@ } const request = axios.create({ + // baseURL: import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL, baseURL: import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL, timeout: 1000 * 60, responseType: 'json', diff --git a/.env.development b/.env.development index a4749dc..2d64f2f 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,10 @@ # 页面标题 VITE_APP_TITLE = 华东计量综合系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州 +#房可鑫测试 +VITE_APP_API_BASEURL = http://111.198.10.15:21710 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 0fca4ad..2b0d060 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,16 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 +#// 测试环境 # VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -VITE_APP_API_BASEURL = http://192.168.2.96:8085 +# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 生产环境 +# VITE_APP_API_BASEURL = http://111.198.10.15:21710 +# ------------------ 内网 -------------------------- +# VITE_APP_API_BASEURL = http://192.168.2.96:8088 +# ------------------ 外网 -------------------------- +VITE_APP_API_BASEURL = http://222.187.140.114:8896 + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/20230626.zip b/20230626.zip deleted file mode 100644 index 1eb27ab..0000000 --- a/20230626.zip +++ /dev/null Binary files differ diff --git a/src/api/index.ts b/src/api/index.ts index 87d5969..a368449 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -24,6 +24,7 @@ } const request = axios.create({ + // baseURL: import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL, baseURL: import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL, timeout: 1000 * 60, responseType: 'json', diff --git a/src/api/reader.ts b/src/api/reader.ts index 8fdd4e4..638ad44 100644 --- a/src/api/reader.ts +++ b/src/api/reader.ts @@ -2,7 +2,7 @@ import axios from 'axios' import request from './index' const readerType: { [key: string]: string } = { - readerWriter: '/proxy/business/readWriter/gunAndTId/readList', // 有线扫码枪和大读写器 + readerWriter: 'http://127.0.0.1:8083/business/readWriter/gunAndTId/readList', // 有线扫码枪和大读写器 // readerWriter: '/proxy/business/readWriter/tId/readList', // 读写器 } // 获取大读写器读写内容 diff --git a/.env.development b/.env.development index a4749dc..2d64f2f 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,10 @@ # 页面标题 VITE_APP_TITLE = 华东计量综合系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州 +#房可鑫测试 +VITE_APP_API_BASEURL = http://111.198.10.15:21710 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 0fca4ad..2b0d060 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,16 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 +#// 测试环境 # VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -VITE_APP_API_BASEURL = http://192.168.2.96:8085 +# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 生产环境 +# VITE_APP_API_BASEURL = http://111.198.10.15:21710 +# ------------------ 内网 -------------------------- +# VITE_APP_API_BASEURL = http://192.168.2.96:8088 +# ------------------ 外网 -------------------------- +VITE_APP_API_BASEURL = http://222.187.140.114:8896 + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/20230626.zip b/20230626.zip deleted file mode 100644 index 1eb27ab..0000000 --- a/20230626.zip +++ /dev/null Binary files differ diff --git a/src/api/index.ts b/src/api/index.ts index 87d5969..a368449 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -24,6 +24,7 @@ } const request = axios.create({ + // baseURL: import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL, baseURL: import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL, timeout: 1000 * 60, responseType: 'json', diff --git a/src/api/reader.ts b/src/api/reader.ts index 8fdd4e4..638ad44 100644 --- a/src/api/reader.ts +++ b/src/api/reader.ts @@ -2,7 +2,7 @@ import axios from 'axios' import request from './index' const readerType: { [key: string]: string } = { - readerWriter: '/proxy/business/readWriter/gunAndTId/readList', // 有线扫码枪和大读写器 + readerWriter: 'http://127.0.0.1:8083/business/readWriter/gunAndTId/readList', // 有线扫码枪和大读写器 // readerWriter: '/proxy/business/readWriter/tId/readList', // 读写器 } // 获取大读写器读写内容 diff --git a/src/components.d.ts b/src/components.d.ts index 37eb524..5920e51 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -63,7 +63,6 @@ SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] - TagBingding: typeof import('./components/tagBingding/index.vue')['default'] Trend: typeof import('./components/Trend/index.vue')['default'] } } diff --git a/.env.development b/.env.development index a4749dc..2d64f2f 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,10 @@ # 页面标题 VITE_APP_TITLE = 华东计量综合系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 -VITE_APP_API_BASEURL = http://111.198.10.15:21609 +# VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州 +#房可鑫测试 +VITE_APP_API_BASEURL = http://111.198.10.15:21710 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 0fca4ad..2b0d060 100644 --- a/.env.production +++ b/.env.production @@ -3,9 +3,16 @@ # 页面标题 VITE_APP_TITLE = 计量业务系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 +#// 测试环境 # VITE_APP_API_BASEURL = http://111.198.10.15:21609 # VITE_APP_API_BASEURL = http://192.168.83.213:8085 -VITE_APP_API_BASEURL = http://192.168.2.96:8085 +# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 生产环境 +# VITE_APP_API_BASEURL = http://111.198.10.15:21710 +# ------------------ 内网 -------------------------- +# VITE_APP_API_BASEURL = http://192.168.2.96:8088 +# ------------------ 外网 -------------------------- +VITE_APP_API_BASEURL = http://222.187.140.114:8896 + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/20230626.zip b/20230626.zip deleted file mode 100644 index 1eb27ab..0000000 --- a/20230626.zip +++ /dev/null Binary files differ diff --git a/src/api/index.ts b/src/api/index.ts index 87d5969..a368449 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -24,6 +24,7 @@ } const request = axios.create({ + // baseURL: import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL, baseURL: import.meta.env.DEV && import.meta.env.VITE_OPEN_PROXY === 'true' ? '/proxy/' : import.meta.env.VITE_APP_API_BASEURL, timeout: 1000 * 60, responseType: 'json', diff --git a/src/api/reader.ts b/src/api/reader.ts index 8fdd4e4..638ad44 100644 --- a/src/api/reader.ts +++ b/src/api/reader.ts @@ -2,7 +2,7 @@ import axios from 'axios' import request from './index' const readerType: { [key: string]: string } = { - readerWriter: '/proxy/business/readWriter/gunAndTId/readList', // 有线扫码枪和大读写器 + readerWriter: 'http://127.0.0.1:8083/business/readWriter/gunAndTId/readList', // 有线扫码枪和大读写器 // readerWriter: '/proxy/business/readWriter/tId/readList', // 读写器 } // 获取大读写器读写内容 diff --git a/src/components.d.ts b/src/components.d.ts index 37eb524..5920e51 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -63,7 +63,6 @@ SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] - TagBingding: typeof import('./components/tagBingding/index.vue')['default'] Trend: typeof import('./components/Trend/index.vue')['default'] } } diff --git a/src/components/ScanSampleDialog/index.vue b/src/components/ScanSampleDialog/index.vue index a4e6df7..780b339 100644 --- a/src/components/ScanSampleDialog/index.vue +++ b/src/components/ScanSampleDialog/index.vue @@ -22,7 +22,7 @@ const businessType = ref('') // 业务场景--1:设备收发场景,2:委托书场景,3:我的检测场景,4:部门检测场景 const businessStatus = ref('') // 场景状态--场景1(1:待收入状态,2:已收入状态,3:待归还状态,4:已超期状态);场景3(1:待检测状态,2:检测中状态);场景4(1:检测中状态) const singleChecked = ref('') // 单选选中id - +const customerId = ref('') // 委托方id // 扫描到的标签列表 const list = ref([]) @@ -79,6 +79,7 @@ } else { const param = { + customerId: customerId.value, // 委托方id sceneNo: businessType.value, // 业务场景 status: businessStatus.value, // 场景状态 strSet: response.data, // 扫码集合 @@ -104,15 +105,17 @@ /** * 打开弹窗 - * @param sampleid 样品id, 需要在弹窗内完成绑定操作的传, 不需要传空字符串 - * @param businessType 业务场景,1:设备收发场景,2:委托书场景,3:我的检测场景,4:部门检测场景 - * @param businessStatus 场景状态,场景1(1:待收入状态,2:已收入状态,3:待归还状态,4:已超期状态);场景3(1:待检测状态,2:检测中状态);场景4(1:检测中状态) + * @param isBindingValue 是否是标签绑定 + * @param businessTypeParam 业务场景,1:设备收发场景,2:委托书场景,3:我的检测场景,4:部门检测场景 + * @param businessStatusParam 场景状态,场景1(1:待收入状态,2:已收入状态,3:待归还状态,4:已超期状态);场景3(1:待检测状态,2:检测中状态);场景4(1:检测中状态) * @param pageTypeParam 页面类型 list需要提醒是否绑定、detail不需要提醒 + * @param customerIdParam 委托方id */ -const initDialog = (isBindingValue = false, businessTypeParam: string, businessStatusParam: string, pageTypeParam = 'list') => { +const initDialog = (isBindingValue = false, businessTypeParam: string, businessStatusParam: string, pageTypeParam = 'list', customerIdParam = '') => { isBinding.value = isBindingValue businessType.value = businessTypeParam businessStatus.value = businessStatusParam + customerId.value = customerIdParam pageType.value = pageTypeParam scanStatus.value = '1' scan() @@ -148,9 +151,9 @@ - - - + + +