diff --git a/.env.development b/.env.development
index 3b872c5..a4749dc 100644
--- a/.env.development
+++ b/.env.development
@@ -1,14 +1,8 @@
# 页面标题
VITE_APP_TITLE = 华东计量综合系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-# VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
VITE_APP_API_BASEURL = http://111.198.10.15:21609
-# VITE_APP_API_BASEURL = http://192.168.83.30:5909
-
-# VITE_APP_API_BASEURL = http://192.168.2.96:8085
-# VITE_APP_API_BASEURL = http://192.168.83.213:8085
-# VITE_APP_API_BASEURL = http://192.168.83.30:5909
+# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/.env.development b/.env.development
index 3b872c5..a4749dc 100644
--- a/.env.development
+++ b/.env.development
@@ -1,14 +1,8 @@
# 页面标题
VITE_APP_TITLE = 华东计量综合系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-# VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
VITE_APP_API_BASEURL = http://111.198.10.15:21609
-# VITE_APP_API_BASEURL = http://192.168.83.30:5909
-
-# VITE_APP_API_BASEURL = http://192.168.2.96:8085
-# VITE_APP_API_BASEURL = http://192.168.83.213:8085
-# VITE_APP_API_BASEURL = http://192.168.83.30:5909
+# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/src/api/reader.ts b/src/api/reader.ts
new file mode 100644
index 0000000..d21d618
--- /dev/null
+++ b/src/api/reader.ts
@@ -0,0 +1,20 @@
+// 读写器或扫码枪相关接口
+import axios from 'axios'
+import request from './index'
+const readerType: { [key: string]: string } = {
+ readerWriter: '/proxy/business/readWriter/tId/readList', // 读写器
+}
+// 获取大读写器读写内容
+export function getReadList(type: string) {
+ return axios.get(readerType[type])
+}
+
+// 获取读写器识别的样品列表
+export function getReaderSampleList(data: Object) {
+ return request({
+ url: '/business/readWriter/sample/readList',
+ method: 'post',
+ data,
+ })
+}
+
diff --git a/.env.development b/.env.development
index 3b872c5..a4749dc 100644
--- a/.env.development
+++ b/.env.development
@@ -1,14 +1,8 @@
# 页面标题
VITE_APP_TITLE = 华东计量综合系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-# VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
VITE_APP_API_BASEURL = http://111.198.10.15:21609
-# VITE_APP_API_BASEURL = http://192.168.83.30:5909
-
-# VITE_APP_API_BASEURL = http://192.168.2.96:8085
-# VITE_APP_API_BASEURL = http://192.168.83.213:8085
-# VITE_APP_API_BASEURL = http://192.168.83.30:5909
+# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/src/api/reader.ts b/src/api/reader.ts
new file mode 100644
index 0000000..d21d618
--- /dev/null
+++ b/src/api/reader.ts
@@ -0,0 +1,20 @@
+// 读写器或扫码枪相关接口
+import axios from 'axios'
+import request from './index'
+const readerType: { [key: string]: string } = {
+ readerWriter: '/proxy/business/readWriter/tId/readList', // 读写器
+}
+// 获取大读写器读写内容
+export function getReadList(type: string) {
+ return axios.get(readerType[type])
+}
+
+// 获取读写器识别的样品列表
+export function getReaderSampleList(data: Object) {
+ return request({
+ url: '/business/readWriter/sample/readList',
+ method: 'post',
+ data,
+ })
+}
+
diff --git a/src/components/ScanSampleDialog/index.vue b/src/components/ScanSampleDialog/index.vue
index 4e160a5..23c89ad 100644
--- a/src/components/ScanSampleDialog/index.vue
+++ b/src/components/ScanSampleDialog/index.vue
@@ -1,9 +1,10 @@
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
+
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
+
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
+
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
+
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
+
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
+
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
+
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
+
diff --git a/.env.development b/.env.development
index 3b872c5..a4749dc 100644
--- a/.env.development
+++ b/.env.development
@@ -1,14 +1,8 @@
# 页面标题
VITE_APP_TITLE = 华东计量综合系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
-# VITE_APP_API_BASEURL = http://111.198.10.15:11309
-# VITE_APP_API_BASEURL = http://111.198.10.15:21409
VITE_APP_API_BASEURL = http://111.198.10.15:21609
-# VITE_APP_API_BASEURL = http://192.168.83.30:5909
-
-# VITE_APP_API_BASEURL = http://192.168.2.96:8085
-# VITE_APP_API_BASEURL = http://192.168.83.213:8085
-# VITE_APP_API_BASEURL = http://192.168.83.30:5909
+# VITE_APP_API_BASEURL = http://192.168.2.96:8085 // 徐州
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
VITE_APP_DEBUG_TOOL =
diff --git a/src/api/reader.ts b/src/api/reader.ts
new file mode 100644
index 0000000..d21d618
--- /dev/null
+++ b/src/api/reader.ts
@@ -0,0 +1,20 @@
+// 读写器或扫码枪相关接口
+import axios from 'axios'
+import request from './index'
+const readerType: { [key: string]: string } = {
+ readerWriter: '/proxy/business/readWriter/tId/readList', // 读写器
+}
+// 获取大读写器读写内容
+export function getReadList(type: string) {
+ return axios.get(readerType[type])
+}
+
+// 获取读写器识别的样品列表
+export function getReaderSampleList(data: Object) {
+ return request({
+ url: '/business/readWriter/sample/readList',
+ method: 'post',
+ data,
+ })
+}
+
diff --git a/src/components/ScanSampleDialog/index.vue b/src/components/ScanSampleDialog/index.vue
index 4e160a5..23c89ad 100644
--- a/src/components/ScanSampleDialog/index.vue
+++ b/src/components/ScanSampleDialog/index.vue
@@ -1,9 +1,10 @@
@@ -682,7 +737,7 @@
v-model.trim="formInline.businessEnvironmentRecord.temperature"
:placeholder="pageType === 'detail' ? '' : '请输入温度(℃)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -692,7 +747,7 @@
v-model.trim="formInline.businessEnvironmentRecord.humidity"
:placeholder="pageType === 'detail' ? '' : '请输入相对湿度(%)'"
class="full-width-input"
- disabled
+ :disabled="formInline.businessEnvironmentRecord.environmentCode !== ''"
/>
@@ -721,7 +776,7 @@
+
diff --git a/vite.config.ts b/vite.config.ts
index 6b1cb1e..4e82a69 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -28,7 +28,8 @@
port: 9000,
proxy: {
'/proxy': {
- target: env.VITE_APP_API_BASEURL,
+ // target: env.VITE_APP_API_BASEURL,
+ target: 'http://127.0.0.1:8083',
changeOrigin: command === 'serve' && env.VITE_OPEN_PROXY === 'true',
rewrite: path => path.replace(/\/proxy/, ''),
// headers: {