diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/src/views/tested/MeasurementPlan/task/index.vue b/src/views/tested/MeasurementPlan/task/index.vue
index 0c6e779..4ab62d9 100644
--- a/src/views/tested/MeasurementPlan/task/index.vue
+++ b/src/views/tested/MeasurementPlan/task/index.vue
@@ -17,9 +17,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createStartTime = newVal[0]
- listQuery.createEndTime = newVal[1]
+ if (newVal) {
+ listQuery.createStartTime = `${newVal[0]} 00:00:00`
+ listQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
listQuery.createStartTime = ''
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/src/views/tested/MeasurementPlan/task/index.vue b/src/views/tested/MeasurementPlan/task/index.vue
index 0c6e779..4ab62d9 100644
--- a/src/views/tested/MeasurementPlan/task/index.vue
+++ b/src/views/tested/MeasurementPlan/task/index.vue
@@ -17,9 +17,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createStartTime = newVal[0]
- listQuery.createEndTime = newVal[1]
+ if (newVal) {
+ listQuery.createStartTime = `${newVal[0]} 00:00:00`
+ listQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
listQuery.createStartTime = ''
diff --git a/src/views/tested/device/certificate/index.vue b/src/views/tested/device/certificate/index.vue
index 437b148..c7d63b8 100644
--- a/src/views/tested/device/certificate/index.vue
+++ b/src/views/tested/device/certificate/index.vue
@@ -99,9 +99,9 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -148,7 +148,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/src/views/tested/MeasurementPlan/task/index.vue b/src/views/tested/MeasurementPlan/task/index.vue
index 0c6e779..4ab62d9 100644
--- a/src/views/tested/MeasurementPlan/task/index.vue
+++ b/src/views/tested/MeasurementPlan/task/index.vue
@@ -17,9 +17,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createStartTime = newVal[0]
- listQuery.createEndTime = newVal[1]
+ if (newVal) {
+ listQuery.createStartTime = `${newVal[0]} 00:00:00`
+ listQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
listQuery.createStartTime = ''
diff --git a/src/views/tested/device/certificate/index.vue b/src/views/tested/device/certificate/index.vue
index 437b148..c7d63b8 100644
--- a/src/views/tested/device/certificate/index.vue
+++ b/src/views/tested/device/certificate/index.vue
@@ -99,9 +99,9 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -148,7 +148,7 @@
diff --git a/src/views/tested/device/group/components/selectDevice.vue b/src/views/tested/device/group/components/selectDevice.vue
index 9bd4cdb..5d8d328 100644
--- a/src/views/tested/device/group/components/selectDevice.vue
+++ b/src/views/tested/device/group/components/selectDevice.vue
@@ -41,9 +41,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -232,7 +232,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/src/views/tested/MeasurementPlan/task/index.vue b/src/views/tested/MeasurementPlan/task/index.vue
index 0c6e779..4ab62d9 100644
--- a/src/views/tested/MeasurementPlan/task/index.vue
+++ b/src/views/tested/MeasurementPlan/task/index.vue
@@ -17,9 +17,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createStartTime = newVal[0]
- listQuery.createEndTime = newVal[1]
+ if (newVal) {
+ listQuery.createStartTime = `${newVal[0]} 00:00:00`
+ listQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
listQuery.createStartTime = ''
diff --git a/src/views/tested/device/certificate/index.vue b/src/views/tested/device/certificate/index.vue
index 437b148..c7d63b8 100644
--- a/src/views/tested/device/certificate/index.vue
+++ b/src/views/tested/device/certificate/index.vue
@@ -99,9 +99,9 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -148,7 +148,7 @@
diff --git a/src/views/tested/device/group/components/selectDevice.vue b/src/views/tested/device/group/components/selectDevice.vue
index 9bd4cdb..5d8d328 100644
--- a/src/views/tested/device/group/components/selectDevice.vue
+++ b/src/views/tested/device/group/components/selectDevice.vue
@@ -41,9 +41,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -232,7 +232,7 @@
diff --git a/src/views/tested/device/info/components/list.vue b/src/views/tested/device/info/components/list.vue
index 2aa96c9..f419e99 100644
--- a/src/views/tested/device/info/components/list.vue
+++ b/src/views/tested/device/info/components/list.vue
@@ -156,9 +156,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -478,7 +478,7 @@
-->
-
+
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/src/views/tested/MeasurementPlan/task/index.vue b/src/views/tested/MeasurementPlan/task/index.vue
index 0c6e779..4ab62d9 100644
--- a/src/views/tested/MeasurementPlan/task/index.vue
+++ b/src/views/tested/MeasurementPlan/task/index.vue
@@ -17,9 +17,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createStartTime = newVal[0]
- listQuery.createEndTime = newVal[1]
+ if (newVal) {
+ listQuery.createStartTime = `${newVal[0]} 00:00:00`
+ listQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
listQuery.createStartTime = ''
diff --git a/src/views/tested/device/certificate/index.vue b/src/views/tested/device/certificate/index.vue
index 437b148..c7d63b8 100644
--- a/src/views/tested/device/certificate/index.vue
+++ b/src/views/tested/device/certificate/index.vue
@@ -99,9 +99,9 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -148,7 +148,7 @@
diff --git a/src/views/tested/device/group/components/selectDevice.vue b/src/views/tested/device/group/components/selectDevice.vue
index 9bd4cdb..5d8d328 100644
--- a/src/views/tested/device/group/components/selectDevice.vue
+++ b/src/views/tested/device/group/components/selectDevice.vue
@@ -41,9 +41,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -232,7 +232,7 @@
diff --git a/src/views/tested/device/info/components/list.vue b/src/views/tested/device/info/components/list.vue
index 2aa96c9..f419e99 100644
--- a/src/views/tested/device/info/components/list.vue
+++ b/src/views/tested/device/info/components/list.vue
@@ -156,9 +156,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -478,7 +478,7 @@
-->
-
+
diff --git a/src/views/tested/device/remind/index.vue b/src/views/tested/device/remind/index.vue
index 2d2ec88..e29c9e7 100644
--- a/src/views/tested/device/remind/index.vue
+++ b/src/views/tested/device/remind/index.vue
@@ -44,7 +44,7 @@
},
{
text: '计量标识',
- value: 'meterIdentify',
+ value: 'meterIdentifyName',
align: 'center',
},
{
@@ -92,13 +92,13 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidStart = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
- listQuery.certificateValidStart = ''
+ listQuery.certificateValidEnd = ''
}
}, {
deep: true,
@@ -212,7 +212,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/src/views/tested/MeasurementPlan/task/index.vue b/src/views/tested/MeasurementPlan/task/index.vue
index 0c6e779..4ab62d9 100644
--- a/src/views/tested/MeasurementPlan/task/index.vue
+++ b/src/views/tested/MeasurementPlan/task/index.vue
@@ -17,9 +17,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createStartTime = newVal[0]
- listQuery.createEndTime = newVal[1]
+ if (newVal) {
+ listQuery.createStartTime = `${newVal[0]} 00:00:00`
+ listQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
listQuery.createStartTime = ''
diff --git a/src/views/tested/device/certificate/index.vue b/src/views/tested/device/certificate/index.vue
index 437b148..c7d63b8 100644
--- a/src/views/tested/device/certificate/index.vue
+++ b/src/views/tested/device/certificate/index.vue
@@ -99,9 +99,9 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -148,7 +148,7 @@
diff --git a/src/views/tested/device/group/components/selectDevice.vue b/src/views/tested/device/group/components/selectDevice.vue
index 9bd4cdb..5d8d328 100644
--- a/src/views/tested/device/group/components/selectDevice.vue
+++ b/src/views/tested/device/group/components/selectDevice.vue
@@ -41,9 +41,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -232,7 +232,7 @@
diff --git a/src/views/tested/device/info/components/list.vue b/src/views/tested/device/info/components/list.vue
index 2aa96c9..f419e99 100644
--- a/src/views/tested/device/info/components/list.vue
+++ b/src/views/tested/device/info/components/list.vue
@@ -156,9 +156,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -478,7 +478,7 @@
-->
-
+
diff --git a/src/views/tested/device/remind/index.vue b/src/views/tested/device/remind/index.vue
index 2d2ec88..e29c9e7 100644
--- a/src/views/tested/device/remind/index.vue
+++ b/src/views/tested/device/remind/index.vue
@@ -44,7 +44,7 @@
},
{
text: '计量标识',
- value: 'meterIdentify',
+ value: 'meterIdentifyName',
align: 'center',
},
{
@@ -92,13 +92,13 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidStart = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
- listQuery.certificateValidStart = ''
+ listQuery.certificateValidEnd = ''
}
}, {
deep: true,
@@ -212,7 +212,7 @@
diff --git a/src/views/tested/subpackage/certificate/index.vue b/src/views/tested/subpackage/certificate/index.vue
index 44dfd3a..0620ef5 100644
--- a/src/views/tested/subpackage/certificate/index.vue
+++ b/src/views/tested/subpackage/certificate/index.vue
@@ -19,9 +19,9 @@
})
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -227,7 +227,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/src/views/tested/MeasurementPlan/task/index.vue b/src/views/tested/MeasurementPlan/task/index.vue
index 0c6e779..4ab62d9 100644
--- a/src/views/tested/MeasurementPlan/task/index.vue
+++ b/src/views/tested/MeasurementPlan/task/index.vue
@@ -17,9 +17,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createStartTime = newVal[0]
- listQuery.createEndTime = newVal[1]
+ if (newVal) {
+ listQuery.createStartTime = `${newVal[0]} 00:00:00`
+ listQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
listQuery.createStartTime = ''
diff --git a/src/views/tested/device/certificate/index.vue b/src/views/tested/device/certificate/index.vue
index 437b148..c7d63b8 100644
--- a/src/views/tested/device/certificate/index.vue
+++ b/src/views/tested/device/certificate/index.vue
@@ -99,9 +99,9 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -148,7 +148,7 @@
diff --git a/src/views/tested/device/group/components/selectDevice.vue b/src/views/tested/device/group/components/selectDevice.vue
index 9bd4cdb..5d8d328 100644
--- a/src/views/tested/device/group/components/selectDevice.vue
+++ b/src/views/tested/device/group/components/selectDevice.vue
@@ -41,9 +41,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -232,7 +232,7 @@
diff --git a/src/views/tested/device/info/components/list.vue b/src/views/tested/device/info/components/list.vue
index 2aa96c9..f419e99 100644
--- a/src/views/tested/device/info/components/list.vue
+++ b/src/views/tested/device/info/components/list.vue
@@ -156,9 +156,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -478,7 +478,7 @@
-->
-
+
diff --git a/src/views/tested/device/remind/index.vue b/src/views/tested/device/remind/index.vue
index 2d2ec88..e29c9e7 100644
--- a/src/views/tested/device/remind/index.vue
+++ b/src/views/tested/device/remind/index.vue
@@ -44,7 +44,7 @@
},
{
text: '计量标识',
- value: 'meterIdentify',
+ value: 'meterIdentifyName',
align: 'center',
},
{
@@ -92,13 +92,13 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidStart = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
- listQuery.certificateValidStart = ''
+ listQuery.certificateValidEnd = ''
}
}, {
deep: true,
@@ -212,7 +212,7 @@
diff --git a/src/views/tested/subpackage/certificate/index.vue b/src/views/tested/subpackage/certificate/index.vue
index 44dfd3a..0620ef5 100644
--- a/src/views/tested/subpackage/certificate/index.vue
+++ b/src/views/tested/subpackage/certificate/index.vue
@@ -19,9 +19,9 @@
})
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -227,7 +227,7 @@
diff --git a/src/views/tested/subpackage/directory/components/list.vue b/src/views/tested/subpackage/directory/components/list.vue
index 5eee17a..17aff60 100644
--- a/src/views/tested/subpackage/directory/components/list.vue
+++ b/src/views/tested/subpackage/directory/components/list.vue
@@ -98,9 +98,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -285,7 +285,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/src/views/tested/MeasurementPlan/task/index.vue b/src/views/tested/MeasurementPlan/task/index.vue
index 0c6e779..4ab62d9 100644
--- a/src/views/tested/MeasurementPlan/task/index.vue
+++ b/src/views/tested/MeasurementPlan/task/index.vue
@@ -17,9 +17,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createStartTime = newVal[0]
- listQuery.createEndTime = newVal[1]
+ if (newVal) {
+ listQuery.createStartTime = `${newVal[0]} 00:00:00`
+ listQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
listQuery.createStartTime = ''
diff --git a/src/views/tested/device/certificate/index.vue b/src/views/tested/device/certificate/index.vue
index 437b148..c7d63b8 100644
--- a/src/views/tested/device/certificate/index.vue
+++ b/src/views/tested/device/certificate/index.vue
@@ -99,9 +99,9 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -148,7 +148,7 @@
diff --git a/src/views/tested/device/group/components/selectDevice.vue b/src/views/tested/device/group/components/selectDevice.vue
index 9bd4cdb..5d8d328 100644
--- a/src/views/tested/device/group/components/selectDevice.vue
+++ b/src/views/tested/device/group/components/selectDevice.vue
@@ -41,9 +41,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -232,7 +232,7 @@
diff --git a/src/views/tested/device/info/components/list.vue b/src/views/tested/device/info/components/list.vue
index 2aa96c9..f419e99 100644
--- a/src/views/tested/device/info/components/list.vue
+++ b/src/views/tested/device/info/components/list.vue
@@ -156,9 +156,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -478,7 +478,7 @@
-->
-
+
diff --git a/src/views/tested/device/remind/index.vue b/src/views/tested/device/remind/index.vue
index 2d2ec88..e29c9e7 100644
--- a/src/views/tested/device/remind/index.vue
+++ b/src/views/tested/device/remind/index.vue
@@ -44,7 +44,7 @@
},
{
text: '计量标识',
- value: 'meterIdentify',
+ value: 'meterIdentifyName',
align: 'center',
},
{
@@ -92,13 +92,13 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidStart = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
- listQuery.certificateValidStart = ''
+ listQuery.certificateValidEnd = ''
}
}, {
deep: true,
@@ -212,7 +212,7 @@
diff --git a/src/views/tested/subpackage/certificate/index.vue b/src/views/tested/subpackage/certificate/index.vue
index 44dfd3a..0620ef5 100644
--- a/src/views/tested/subpackage/certificate/index.vue
+++ b/src/views/tested/subpackage/certificate/index.vue
@@ -19,9 +19,9 @@
})
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -227,7 +227,7 @@
diff --git a/src/views/tested/subpackage/directory/components/list.vue b/src/views/tested/subpackage/directory/components/list.vue
index 5eee17a..17aff60 100644
--- a/src/views/tested/subpackage/directory/components/list.vue
+++ b/src/views/tested/subpackage/directory/components/list.vue
@@ -98,9 +98,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -285,7 +285,7 @@
diff --git a/src/views/tested/subpackage/review/components/list.vue b/src/views/tested/subpackage/review/components/list.vue
index b0b62a4..2787693 100644
--- a/src/views/tested/subpackage/review/components/list.vue
+++ b/src/views/tested/subpackage/review/components/list.vue
@@ -92,9 +92,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -279,7 +279,7 @@
diff --git a/.env.development b/.env.development
index ac18d5c..6971c8b 100644
--- a/.env.development
+++ b/.env.development
@@ -2,8 +2,8 @@
VITE_APP_TITLE = 计量信息系统
# 接口请求地址,会设置到 axios 的 baseURL 参数上
# VITE_APP_API_BASEURL = http://139.198.29.133:8089
-VITE_APP_API_BASEURL = http://111.198.10.15:21611
-# VITE_APP_API_BASEURL = http://192.168.8.107:5909
+# VITE_APP_API_BASEURL = http://111.198.10.15:21611
+VITE_APP_API_BASEURL = http://192.168.8.107:5909
# VITE_APP_API_BASEURL = http://111.198.10.15:21710
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
diff --git a/public/config/config.json b/public/config/config.json
index 3bd0a89..0127d2f 100644
--- a/public/config/config.json
+++ b/public/config/config.json
@@ -1,4 +1,4 @@
{
"title":"计量业务系统",
- "baseUrl": "http://111.198.10.15:21611"
+ "baseUrl": "http://192.168.8.107:5909"
}
diff --git a/src/api/eqpt/measurementPlan/early.ts b/src/api/eqpt/measurementPlan/early.ts
index 4e41650..af01f0e 100644
--- a/src/api/eqpt/measurementPlan/early.ts
+++ b/src/api/eqpt/measurementPlan/early.ts
@@ -91,10 +91,10 @@
})
}
// 删除
-export function delApply(data: object) {
+export function delApply(data: any) {
return request({
- url: '/inspection/approval/delete',
+ url: `/inspection/approval/delete?id=${data.id}`,
method: 'post',
- data,
+ // data,
})
}
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index 39e1eed..60d55d6 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -26,8 +26,8 @@
}) // 查询参数
watch(() => noticeTime.value, (newVal) => {
if (newVal) {
- searchQuery.noticeStartTime = newVal[0]
- searchQuery.noticeEndTime = newVal[1]
+ searchQuery.noticeStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.noticeEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.noticeStartTime = ''
diff --git a/src/views/system/signature/autograph.vue b/src/views/system/signature/autograph.vue
index 409fda4..e5a32c8 100644
--- a/src/views/system/signature/autograph.vue
+++ b/src/views/system/signature/autograph.vue
@@ -24,8 +24,8 @@
}) // 查询参数
watch(() => createTime.value, (newVal) => {
if (newVal) {
- searchQuery.createStartTime = newVal[0]
- searchQuery.createEndTime = newVal[1]
+ searchQuery.createStartTime = `${newVal[0]} 00:00:00`
+ searchQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
searchQuery.createStartTime = ''
diff --git a/src/views/tested/MeasurementBusiness/detection/components/detection.vue b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
index 80c917c..a58a7e2 100644
--- a/src/views/tested/MeasurementBusiness/detection/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/detection/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.labCodeName }}单位:
+ {{ $props.data.customerName }}单位:
由于我站工作失误,贵单位 {{ $props.data.submitDate }} 送来的 {{ $props.data.deviceName }} {{ $props.data.deviceModel }} {{ $props.data.deviceNo }} 测量结果可能有误,需重新进行测试、校准或检定。请贵单位于 {{ $props.data.returnDate }} 前将此设备以及证书或报告一同送(寄)回本站,谢谢合作。
diff --git a/src/views/tested/MeasurementBusiness/detection/index.vue b/src/views/tested/MeasurementBusiness/detection/index.vue
index 23d95aa..5f57089 100644
--- a/src/views/tested/MeasurementBusiness/detection/index.vue
+++ b/src/views/tested/MeasurementBusiness/detection/index.vue
@@ -16,9 +16,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -58,35 +58,35 @@
// 是否显示当前页,否则跳转第一页
listQuery.offset = 1
}
- // getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
- // total.value = parseInt(response.data.total)
- // listLoading.value = false
- // })
- list.value = [
- {
- createTime: '2023-09-05', // 创建时间
- createUserId: '123', // 创建人id
- createUserName: '张三', // 创建人名字
- customerId: '123', // 委托方id
- customerName: '李四', // 委托方名称
- deviceModel: 'SQ001', // 送检设备型号
- deviceName: '测试设备', // 送检设备名称
- deviceNo: '112233', // 送检设备编号
- id: '123', // id
- labCode: '1', // 实验室代码
- labCodeName: '海口实验室', // 实验室代码
- noticeDate: '2023-09-05', // 通知日期
- noticeName: '海口计量站', // 通知单名称
- noticeNo: '12345', // 通知单编号
- noticeUserId: '1', // 通知委托方用户id
- noticeUserName: '王五', // 通知委托方用户名字
- returnDate: '2023-09-05', // 寄回日期
- submitDate: '2023-09-05', // 送检日期
- updateTime: '2023-09-05', // 更新时间
- },
- ]
- listLoading.value = false
+ getListPage(listQuery).then((response) => {
+ list.value = response.data.rows
+ total.value = parseInt(response.data.total)
+ listLoading.value = false
+ })
+ // list.value = [
+ // {
+ // createTime: '2023-09-05', // 创建时间
+ // createUserId: '123', // 创建人id
+ // createUserName: '张三', // 创建人名字
+ // customerId: '123', // 委托方id
+ // customerName: '李四', // 委托方名称
+ // deviceModel: 'SQ001', // 送检设备型号
+ // deviceName: '测试设备', // 送检设备名称
+ // deviceNo: '112233', // 送检设备编号
+ // id: '123', // id
+ // labCode: '1', // 实验室代码
+ // labCodeName: '海口实验室', // 实验室代码
+ // noticeDate: '2023-09-05', // 通知日期
+ // noticeName: '海口计量站', // 通知单名称
+ // noticeNo: '12345', // 通知单编号
+ // noticeUserId: '1', // 通知委托方用户id
+ // noticeUserName: '王五', // 通知委托方用户名字
+ // returnDate: '2023-09-05', // 寄回日期
+ // submitDate: '2023-09-05', // 送检日期
+ // updateTime: '2023-09-05', // 更新时间
+ // },
+ // ]
+ // listLoading.value = false
}
fetchData()
// 查询数据
@@ -155,8 +155,8 @@
@@ -166,8 +166,7 @@
diff --git a/src/views/tested/MeasurementBusiness/notice/components/detection.vue b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
index acce687..27d23c6 100644
--- a/src/views/tested/MeasurementBusiness/notice/components/detection.vue
+++ b/src/views/tested/MeasurementBusiness/notice/components/detection.vue
@@ -15,7 +15,7 @@
- {{ $props.data.noticeUserName }}:
+ {{ $props.data.customerName }}:
贵单位送到本站测试、校准或检定的 {{ $props.data.deviceName }} ,因能力所限,现决定将 {{ $props.data.deviceName }} 这部分测试内容分包给 {{ $props.data.outsourcerName }} 。 本站已对分包方的能力进行过评审,符合要求。贵单位是否同意本站的分包意向,请尽快回复。 联系人:{{ $props.data.contacts }}, 电话:{{ $props.data.mobile }}
@@ -24,7 +24,7 @@
西昌卫星发射中心计量测试站
- {{ $props.data.noticeDate }}
+ {{ $props.data.createTime }}
diff --git a/src/views/tested/MeasurementBusiness/notice/index.vue b/src/views/tested/MeasurementBusiness/notice/index.vue
index 3510b46..8f31905 100644
--- a/src/views/tested/MeasurementBusiness/notice/index.vue
+++ b/src/views/tested/MeasurementBusiness/notice/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.applicantTimeStart = newVal[0]
- listQuery.applicantTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.applicantTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.applicantTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.applicantTimeStart = ''
@@ -73,37 +73,37 @@
listQuery.offset = 1
}
getListPage(listQuery).then((response) => {
- // list.value = response.data.rows
+ list.value = response.data.rows
total.value = parseInt(response.data.total)
listLoading.value = false
- list.value = [
- {
- approvalStatus: '',
- approvalStatusName: '',
- contacts: '张三',
- createTime: '2023-09-08',
- createUserId: 0,
- createUserName: '创建人',
- customerId: 0,
- customerName: '受检单位',
- decisionItem: 0,
- deviceName: '测试设备',
- groupCode: '',
- groupCodeName: '分组1',
- id: 0,
- labCode: '',
- labCodeName: '',
- mobile: '110',
- noticeDate: '',
- noticeName: '通知书1',
- noticeNo: '123',
- noticeUserId: '',
- noticeUserName: '受检单位',
- outsourcerName: '分包方1',
- processId: '',
- taskId: '',
- },
- ]
+ // list.value = [
+ // {
+ // approvalStatus: '',
+ // approvalStatusName: '',
+ // contacts: '张三',
+ // createTime: '2023-09-08',
+ // createUserId: 0,
+ // createUserName: '创建人',
+ // customerId: 0,
+ // customerName: '受检单位',
+ // decisionItem: 0,
+ // deviceName: '测试设备',
+ // groupCode: '',
+ // groupCodeName: '分组1',
+ // id: 0,
+ // labCode: '',
+ // labCodeName: '',
+ // mobile: '110',
+ // noticeDate: '',
+ // noticeName: '通知书1',
+ // noticeNo: '123',
+ // noticeUserId: '',
+ // noticeUserName: '受检单位',
+ // outsourcerName: '分包方1',
+ // processId: '',
+ // taskId: '',
+ // },
+ // ]
})
}
fetchData()
@@ -168,7 +168,7 @@
diff --git a/src/views/tested/MeasurementBusiness/opinion/index.vue b/src/views/tested/MeasurementBusiness/opinion/index.vue
index c3013da..6c7e13c 100644
--- a/src/views/tested/MeasurementBusiness/opinion/index.vue
+++ b/src/views/tested/MeasurementBusiness/opinion/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -140,7 +140,7 @@
diff --git a/src/views/tested/MeasurementBusiness/review/index.vue b/src/views/tested/MeasurementBusiness/review/index.vue
index 61ebe49..b15f27b 100644
--- a/src/views/tested/MeasurementBusiness/review/index.vue
+++ b/src/views/tested/MeasurementBusiness/review/index.vue
@@ -19,9 +19,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -77,9 +77,9 @@
listQuery.offset = 1
}
// getListPage(listQuery).then((response) => {
- // // list.value = response.data.rows
- // // total.value = parseInt(response.data.total)
- // // listLoading.value = false
+ // list.value = response.data.rows
+ // total.value = parseInt(response.data.total)
+ // listLoading.value = false
// })
list.value = [{
formNo: '12345',
@@ -153,7 +153,7 @@
diff --git a/src/views/tested/MeasurementBusiness/satisfaction/index.vue b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
index 8292c04..0e2fd1c 100644
--- a/src/views/tested/MeasurementBusiness/satisfaction/index.vue
+++ b/src/views/tested/MeasurementBusiness/satisfaction/index.vue
@@ -14,9 +14,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.sendTimeStart = newVal[0]
- listQuery.sendTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.sendTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.sendTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.sendTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/dept/components/list.vue b/src/views/tested/MeasurementPlan/dept/components/list.vue
index 1db2528..e117705 100644
--- a/src/views/tested/MeasurementPlan/dept/components/list.vue
+++ b/src/views/tested/MeasurementPlan/dept/components/list.vue
@@ -30,9 +30,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/list.vue b/src/views/tested/MeasurementPlan/early/components/list.vue
index 4d28bbc..3cdecdc 100644
--- a/src/views/tested/MeasurementPlan/early/components/list.vue
+++ b/src/views/tested/MeasurementPlan/early/components/list.vue
@@ -53,9 +53,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
index 3749947..f599508 100644
--- a/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
+++ b/src/views/tested/MeasurementPlan/early/components/selelectPlan.vue
@@ -24,9 +24,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue
index bfa7fff..6af790b 100644
--- a/src/views/tested/MeasurementPlan/plan/components/list.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/list.vue
@@ -39,9 +39,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -318,7 +318,7 @@
diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
index de42e04..6fa4355 100644
--- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
+++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -219,6 +219,7 @@
diff --git a/src/views/tested/MeasurementPlan/task/index.vue b/src/views/tested/MeasurementPlan/task/index.vue
index 0c6e779..4ab62d9 100644
--- a/src/views/tested/MeasurementPlan/task/index.vue
+++ b/src/views/tested/MeasurementPlan/task/index.vue
@@ -17,9 +17,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createStartTime = newVal[0]
- listQuery.createEndTime = newVal[1]
+ if (newVal) {
+ listQuery.createStartTime = `${newVal[0]} 00:00:00`
+ listQuery.createEndTime = `${newVal[1]} 23:59:59`
}
else {
listQuery.createStartTime = ''
diff --git a/src/views/tested/device/certificate/index.vue b/src/views/tested/device/certificate/index.vue
index 437b148..c7d63b8 100644
--- a/src/views/tested/device/certificate/index.vue
+++ b/src/views/tested/device/certificate/index.vue
@@ -99,9 +99,9 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -148,7 +148,7 @@
diff --git a/src/views/tested/device/group/components/selectDevice.vue b/src/views/tested/device/group/components/selectDevice.vue
index 9bd4cdb..5d8d328 100644
--- a/src/views/tested/device/group/components/selectDevice.vue
+++ b/src/views/tested/device/group/components/selectDevice.vue
@@ -41,9 +41,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.certificateValidStart = newVal[0]
- listQuery.value.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.value.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.certificateValidStart = ''
@@ -232,7 +232,7 @@
diff --git a/src/views/tested/device/info/components/list.vue b/src/views/tested/device/info/components/list.vue
index 2aa96c9..f419e99 100644
--- a/src/views/tested/device/info/components/list.vue
+++ b/src/views/tested/device/info/components/list.vue
@@ -156,9 +156,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidEnd = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
@@ -478,7 +478,7 @@
-->
-
+
diff --git a/src/views/tested/device/remind/index.vue b/src/views/tested/device/remind/index.vue
index 2d2ec88..e29c9e7 100644
--- a/src/views/tested/device/remind/index.vue
+++ b/src/views/tested/device/remind/index.vue
@@ -44,7 +44,7 @@
},
{
text: '计量标识',
- value: 'meterIdentify',
+ value: 'meterIdentifyName',
align: 'center',
},
{
@@ -92,13 +92,13 @@
}
const range = ref()
watch(() => range.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.certificateValidStart = newVal[0]
- listQuery.certificateValidStart = newVal[1]
+ if (newVal) {
+ listQuery.certificateValidStart = `${newVal[0]} 00:00:00`
+ listQuery.certificateValidEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.certificateValidStart = ''
- listQuery.certificateValidStart = ''
+ listQuery.certificateValidEnd = ''
}
}, {
deep: true,
@@ -212,7 +212,7 @@
diff --git a/src/views/tested/subpackage/certificate/index.vue b/src/views/tested/subpackage/certificate/index.vue
index 44dfd3a..0620ef5 100644
--- a/src/views/tested/subpackage/certificate/index.vue
+++ b/src/views/tested/subpackage/certificate/index.vue
@@ -19,9 +19,9 @@
})
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -227,7 +227,7 @@
diff --git a/src/views/tested/subpackage/directory/components/list.vue b/src/views/tested/subpackage/directory/components/list.vue
index 5eee17a..17aff60 100644
--- a/src/views/tested/subpackage/directory/components/list.vue
+++ b/src/views/tested/subpackage/directory/components/list.vue
@@ -98,9 +98,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -285,7 +285,7 @@
diff --git a/src/views/tested/subpackage/review/components/list.vue b/src/views/tested/subpackage/review/components/list.vue
index b0b62a4..2787693 100644
--- a/src/views/tested/subpackage/review/components/list.vue
+++ b/src/views/tested/subpackage/review/components/list.vue
@@ -92,9 +92,9 @@
// 开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.createTimeStart = newVal[0]
- listQuery.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.createTimeStart = ''
@@ -279,7 +279,7 @@
diff --git a/src/views/tested/subpackage/review/components/subpackageDialog.vue b/src/views/tested/subpackage/review/components/subpackageDialog.vue
index f2fbd02..832251e 100644
--- a/src/views/tested/subpackage/review/components/subpackageDialog.vue
+++ b/src/views/tested/subpackage/review/components/subpackageDialog.vue
@@ -27,9 +27,9 @@
// 证书有效期开始结束时间
const datetimerange = ref()
watch(() => datetimerange.value, (newVal) => {
- if (newVal.length === 2) {
- listQuery.value.createTimeStart = newVal[0]
- listQuery.value.createTimeEnd = newVal[1]
+ if (newVal) {
+ listQuery.value.createTimeStart = `${newVal[0]} 00:00:00`
+ listQuery.value.createTimeEnd = `${newVal[1]} 23:59:59`
}
else {
listQuery.value.createTimeStart = ''