+
-
+
-
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
diff --git a/src/views/business/lab/components/orderDialog.vue b/src/views/business/lab/components/orderDialog.vue
deleted file mode 100644
index c605f22..0000000
--- a/src/views/business/lab/components/orderDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/primitiveLogDialog.vue b/src/views/business/lab/components/primitiveLogDialog.vue
deleted file mode 100644
index 0a883a8..0000000
--- a/src/views/business/lab/components/primitiveLogDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue
new file mode 100644
index 0000000..10df50e
--- /dev/null
+++ b/src/views/business/lab/components/selectFiles.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue
new file mode 100644
index 0000000..0b4fecf
--- /dev/null
+++ b/src/views/business/lab/components/selectMeasureDevice.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue
new file mode 100644
index 0000000..6ff117e
--- /dev/null
+++ b/src/views/business/lab/components/selectSample.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue
index 8745c27..985d230 100644
--- a/src/components/NormalTable/index.vue
+++ b/src/components/NormalTable/index.vue
@@ -148,6 +148,11 @@
}
// 单选选中
const radioChange = () => {
+ console.log('---------')
+
+ console.log(singleChecked.value)
+ console.log(props.data)
+
const checkValue = props.data.find((item: any) => item.id == singleChecked.value)
emit('multiSelect', [checkValue])
}
diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts
index 6c5dbf3..09e8b6d 100644
--- a/src/utils/scheduleDict.ts
+++ b/src/utils/scheduleDict.ts
@@ -20,4 +20,5 @@
DEVICE_FIX_APPROVAL = 'sbglsbjxsq', // 设备检修申请
DEVICE_FIX_ACCEPTANCE = 'sbglsbjxbyysd', // 设备检修保养验收单
BUSINESS_CERT_PRINT = 'ywglzsdy', // 证书打印
+ BUSINESS_REPORT_ON_CREDENTIALS = 'ywglzsbg', // 证书报告
}
diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue
index c009446..ff64af3 100644
--- a/src/views/business/lab/components/environmentalDialog.vue
+++ b/src/views/business/lab/components/environmentalDialog.vue
@@ -1,125 +1,132 @@
-
-
-
+
-
+
@@ -128,13 +135,20 @@
+
-
+
-
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
diff --git a/src/views/business/lab/components/orderDialog.vue b/src/views/business/lab/components/orderDialog.vue
deleted file mode 100644
index c605f22..0000000
--- a/src/views/business/lab/components/orderDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/primitiveLogDialog.vue b/src/views/business/lab/components/primitiveLogDialog.vue
deleted file mode 100644
index 0a883a8..0000000
--- a/src/views/business/lab/components/primitiveLogDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue
new file mode 100644
index 0000000..10df50e
--- /dev/null
+++ b/src/views/business/lab/components/selectFiles.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue
new file mode 100644
index 0000000..0b4fecf
--- /dev/null
+++ b/src/views/business/lab/components/selectMeasureDevice.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue
new file mode 100644
index 0000000..6ff117e
--- /dev/null
+++ b/src/views/business/lab/components/selectSample.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue
new file mode 100644
index 0000000..bb4b98e
--- /dev/null
+++ b/src/views/business/lab/components/selectTemplate.vue
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue
index 8745c27..985d230 100644
--- a/src/components/NormalTable/index.vue
+++ b/src/components/NormalTable/index.vue
@@ -148,6 +148,11 @@
}
// 单选选中
const radioChange = () => {
+ console.log('---------')
+
+ console.log(singleChecked.value)
+ console.log(props.data)
+
const checkValue = props.data.find((item: any) => item.id == singleChecked.value)
emit('multiSelect', [checkValue])
}
diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts
index 6c5dbf3..09e8b6d 100644
--- a/src/utils/scheduleDict.ts
+++ b/src/utils/scheduleDict.ts
@@ -20,4 +20,5 @@
DEVICE_FIX_APPROVAL = 'sbglsbjxsq', // 设备检修申请
DEVICE_FIX_ACCEPTANCE = 'sbglsbjxbyysd', // 设备检修保养验收单
BUSINESS_CERT_PRINT = 'ywglzsdy', // 证书打印
+ BUSINESS_REPORT_ON_CREDENTIALS = 'ywglzsbg', // 证书报告
}
diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue
index c009446..ff64af3 100644
--- a/src/views/business/lab/components/environmentalDialog.vue
+++ b/src/views/business/lab/components/environmentalDialog.vue
@@ -1,125 +1,132 @@
-
-
-
+
-
+
@@ -128,13 +135,20 @@
+
-
+
-
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
diff --git a/src/views/business/lab/components/orderDialog.vue b/src/views/business/lab/components/orderDialog.vue
deleted file mode 100644
index c605f22..0000000
--- a/src/views/business/lab/components/orderDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/primitiveLogDialog.vue b/src/views/business/lab/components/primitiveLogDialog.vue
deleted file mode 100644
index 0a883a8..0000000
--- a/src/views/business/lab/components/primitiveLogDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue
new file mode 100644
index 0000000..10df50e
--- /dev/null
+++ b/src/views/business/lab/components/selectFiles.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue
new file mode 100644
index 0000000..0b4fecf
--- /dev/null
+++ b/src/views/business/lab/components/selectMeasureDevice.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue
new file mode 100644
index 0000000..6ff117e
--- /dev/null
+++ b/src/views/business/lab/components/selectSample.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue
new file mode 100644
index 0000000..bb4b98e
--- /dev/null
+++ b/src/views/business/lab/components/selectTemplate.vue
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue
index 63a0849..79bb1a7 100644
--- a/src/views/business/lab/environmental/environmentalList.vue
+++ b/src/views/business/lab/environmental/environmentalList.vue
@@ -26,6 +26,17 @@
const loadingTable = ref(false) // 表格loading
const trainTime = ref('') // 记录时间数组
const roomNumberList = ref([]) // 房间号
+// 表头
+const columns = ref([
+ { text: '记录单号', value: 'environmentCode', align: 'center', width: '160' },
+ { text: '房间号', value: 'roomNumber', align: 'center' },
+ { text: '记录人', value: 'recorder', align: 'center' },
+ { text: '记录时间', value: 'recordTime', width: '180', align: 'center' },
+ { text: '温度(℃)', value: 'temperature', align: 'center' },
+ { text: '湿度(%)', value: 'humidity', align: 'center' },
+ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' },
+ { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' },
+])
// 查询列表
const fetchData = (isNowPage: boolean) => {
@@ -43,17 +54,7 @@
loadingTable.value = false
}
fetchData(true)
-// 表头
-const columns = ref([
- { text: '记录单号', value: 'environmentCode', align: 'center', width: '160' },
- { text: '房间号', value: 'roomNumber', align: 'center' },
- { text: '记录人', value: 'recorder', align: 'center' },
- { text: '记录时间', value: 'recordTime', width: '180', align: 'center' },
- { text: '温度(℃)', value: 'temperature', align: 'center' },
- { text: '湿度(%)', value: 'humidity', align: 'center' },
- { text: '输出电压(V)', value: 'outputVoltage', align: 'center' },
- { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' },
-])
+
// 搜索
const searchList = () => {
fetchData(true)
@@ -148,7 +149,7 @@
fetchData(true)
}
-// 获取下拉框数据
+// 获取房间号
getTypeSelect('roomNumber').then((res) => {
roomNumberList.value = res.data
})
diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue
index 8745c27..985d230 100644
--- a/src/components/NormalTable/index.vue
+++ b/src/components/NormalTable/index.vue
@@ -148,6 +148,11 @@
}
// 单选选中
const radioChange = () => {
+ console.log('---------')
+
+ console.log(singleChecked.value)
+ console.log(props.data)
+
const checkValue = props.data.find((item: any) => item.id == singleChecked.value)
emit('multiSelect', [checkValue])
}
diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts
index 6c5dbf3..09e8b6d 100644
--- a/src/utils/scheduleDict.ts
+++ b/src/utils/scheduleDict.ts
@@ -20,4 +20,5 @@
DEVICE_FIX_APPROVAL = 'sbglsbjxsq', // 设备检修申请
DEVICE_FIX_ACCEPTANCE = 'sbglsbjxbyysd', // 设备检修保养验收单
BUSINESS_CERT_PRINT = 'ywglzsdy', // 证书打印
+ BUSINESS_REPORT_ON_CREDENTIALS = 'ywglzsbg', // 证书报告
}
diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue
index c009446..ff64af3 100644
--- a/src/views/business/lab/components/environmentalDialog.vue
+++ b/src/views/business/lab/components/environmentalDialog.vue
@@ -1,125 +1,132 @@
-
-
-
+
-
+
@@ -128,13 +135,20 @@
+
-
+
-
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
diff --git a/src/views/business/lab/components/orderDialog.vue b/src/views/business/lab/components/orderDialog.vue
deleted file mode 100644
index c605f22..0000000
--- a/src/views/business/lab/components/orderDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/primitiveLogDialog.vue b/src/views/business/lab/components/primitiveLogDialog.vue
deleted file mode 100644
index 0a883a8..0000000
--- a/src/views/business/lab/components/primitiveLogDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue
new file mode 100644
index 0000000..10df50e
--- /dev/null
+++ b/src/views/business/lab/components/selectFiles.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue
new file mode 100644
index 0000000..0b4fecf
--- /dev/null
+++ b/src/views/business/lab/components/selectMeasureDevice.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue
new file mode 100644
index 0000000..6ff117e
--- /dev/null
+++ b/src/views/business/lab/components/selectSample.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue
new file mode 100644
index 0000000..bb4b98e
--- /dev/null
+++ b/src/views/business/lab/components/selectTemplate.vue
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue
index 63a0849..79bb1a7 100644
--- a/src/views/business/lab/environmental/environmentalList.vue
+++ b/src/views/business/lab/environmental/environmentalList.vue
@@ -26,6 +26,17 @@
const loadingTable = ref(false) // 表格loading
const trainTime = ref('') // 记录时间数组
const roomNumberList = ref([]) // 房间号
+// 表头
+const columns = ref([
+ { text: '记录单号', value: 'environmentCode', align: 'center', width: '160' },
+ { text: '房间号', value: 'roomNumber', align: 'center' },
+ { text: '记录人', value: 'recorder', align: 'center' },
+ { text: '记录时间', value: 'recordTime', width: '180', align: 'center' },
+ { text: '温度(℃)', value: 'temperature', align: 'center' },
+ { text: '湿度(%)', value: 'humidity', align: 'center' },
+ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' },
+ { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' },
+])
// 查询列表
const fetchData = (isNowPage: boolean) => {
@@ -43,17 +54,7 @@
loadingTable.value = false
}
fetchData(true)
-// 表头
-const columns = ref([
- { text: '记录单号', value: 'environmentCode', align: 'center', width: '160' },
- { text: '房间号', value: 'roomNumber', align: 'center' },
- { text: '记录人', value: 'recorder', align: 'center' },
- { text: '记录时间', value: 'recordTime', width: '180', align: 'center' },
- { text: '温度(℃)', value: 'temperature', align: 'center' },
- { text: '湿度(%)', value: 'humidity', align: 'center' },
- { text: '输出电压(V)', value: 'outputVoltage', align: 'center' },
- { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' },
-])
+
// 搜索
const searchList = () => {
fetchData(true)
@@ -148,7 +149,7 @@
fetchData(true)
}
-// 获取下拉框数据
+// 获取房间号
getTypeSelect('roomNumber').then((res) => {
roomNumberList.value = res.data
})
diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts
index ef91bfd..d8b58bf 100644
--- a/src/views/business/lab/primitiveLog/primitiveLogList.ts
+++ b/src/views/business/lab/primitiveLog/primitiveLogList.ts
@@ -1,6 +1,6 @@
// 列表查询接口
export interface IListQuery {
- calibrationCategory: string // 校验类别
+ measureCategory: string // 校验类别
createUser: string // 创建人
manufacturingNo: string // 出厂编号
originalRecordCode: string // 原始记录单编号
@@ -22,7 +22,7 @@
manufacturingNo: string // 出厂编号
sampleModel: string // 样品型号
}
- calibrationCategory: string // 校验类别
+ measureCategory: string // 校验类别
createUser: string // 创建人
createTime: string // 创建时间
remark: string // 备注
@@ -35,3 +35,14 @@
value: string
}
+// 所用设备表头
+export interface columnsType {
+ text: string // 文本
+ value: string // 列值
+ align: string // 是否居中、左、右
+ required: Boolean // 控制表格表头红色星号
+ choose: Boolean
+ time: Boolean
+ width?: string // 列宽
+}
+
diff --git a/src/components/NormalTable/index.vue b/src/components/NormalTable/index.vue
index 8745c27..985d230 100644
--- a/src/components/NormalTable/index.vue
+++ b/src/components/NormalTable/index.vue
@@ -148,6 +148,11 @@
}
// 单选选中
const radioChange = () => {
+ console.log('---------')
+
+ console.log(singleChecked.value)
+ console.log(props.data)
+
const checkValue = props.data.find((item: any) => item.id == singleChecked.value)
emit('multiSelect', [checkValue])
}
diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts
index 6c5dbf3..09e8b6d 100644
--- a/src/utils/scheduleDict.ts
+++ b/src/utils/scheduleDict.ts
@@ -20,4 +20,5 @@
DEVICE_FIX_APPROVAL = 'sbglsbjxsq', // 设备检修申请
DEVICE_FIX_ACCEPTANCE = 'sbglsbjxbyysd', // 设备检修保养验收单
BUSINESS_CERT_PRINT = 'ywglzsdy', // 证书打印
+ BUSINESS_REPORT_ON_CREDENTIALS = 'ywglzsbg', // 证书报告
}
diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue
index c009446..ff64af3 100644
--- a/src/views/business/lab/components/environmentalDialog.vue
+++ b/src/views/business/lab/components/environmentalDialog.vue
@@ -1,125 +1,132 @@
-
-
-
+
-
+
@@ -128,13 +135,20 @@
+
-
+
-
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
diff --git a/src/views/business/lab/components/orderDialog.vue b/src/views/business/lab/components/orderDialog.vue
deleted file mode 100644
index c605f22..0000000
--- a/src/views/business/lab/components/orderDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/primitiveLogDialog.vue b/src/views/business/lab/components/primitiveLogDialog.vue
deleted file mode 100644
index 0a883a8..0000000
--- a/src/views/business/lab/components/primitiveLogDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue
new file mode 100644
index 0000000..10df50e
--- /dev/null
+++ b/src/views/business/lab/components/selectFiles.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue
new file mode 100644
index 0000000..0b4fecf
--- /dev/null
+++ b/src/views/business/lab/components/selectMeasureDevice.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue
new file mode 100644
index 0000000..6ff117e
--- /dev/null
+++ b/src/views/business/lab/components/selectSample.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue
new file mode 100644
index 0000000..bb4b98e
--- /dev/null
+++ b/src/views/business/lab/components/selectTemplate.vue
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue
index 63a0849..79bb1a7 100644
--- a/src/views/business/lab/environmental/environmentalList.vue
+++ b/src/views/business/lab/environmental/environmentalList.vue
@@ -26,6 +26,17 @@
const loadingTable = ref(false) // 表格loading
const trainTime = ref('') // 记录时间数组
const roomNumberList = ref([]) // 房间号
+// 表头
+const columns = ref([
+ { text: '记录单号', value: 'environmentCode', align: 'center', width: '160' },
+ { text: '房间号', value: 'roomNumber', align: 'center' },
+ { text: '记录人', value: 'recorder', align: 'center' },
+ { text: '记录时间', value: 'recordTime', width: '180', align: 'center' },
+ { text: '温度(℃)', value: 'temperature', align: 'center' },
+ { text: '湿度(%)', value: 'humidity', align: 'center' },
+ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' },
+ { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' },
+])
// 查询列表
const fetchData = (isNowPage: boolean) => {
@@ -43,17 +54,7 @@
loadingTable.value = false
}
fetchData(true)
-// 表头
-const columns = ref([
- { text: '记录单号', value: 'environmentCode', align: 'center', width: '160' },
- { text: '房间号', value: 'roomNumber', align: 'center' },
- { text: '记录人', value: 'recorder', align: 'center' },
- { text: '记录时间', value: 'recordTime', width: '180', align: 'center' },
- { text: '温度(℃)', value: 'temperature', align: 'center' },
- { text: '湿度(%)', value: 'humidity', align: 'center' },
- { text: '输出电压(V)', value: 'outputVoltage', align: 'center' },
- { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' },
-])
+
// 搜索
const searchList = () => {
fetchData(true)
@@ -148,7 +149,7 @@
fetchData(true)
}
-// 获取下拉框数据
+// 获取房间号
getTypeSelect('roomNumber').then((res) => {
roomNumberList.value = res.data
})
diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts
index ef91bfd..d8b58bf 100644
--- a/src/views/business/lab/primitiveLog/primitiveLogList.ts
+++ b/src/views/business/lab/primitiveLog/primitiveLogList.ts
@@ -1,6 +1,6 @@
// 列表查询接口
export interface IListQuery {
- calibrationCategory: string // 校验类别
+ measureCategory: string // 校验类别
createUser: string // 创建人
manufacturingNo: string // 出厂编号
originalRecordCode: string // 原始记录单编号
@@ -22,7 +22,7 @@
manufacturingNo: string // 出厂编号
sampleModel: string // 样品型号
}
- calibrationCategory: string // 校验类别
+ measureCategory: string // 校验类别
createUser: string // 创建人
createTime: string // 创建时间
remark: string // 备注
@@ -35,3 +35,14 @@
value: string
}
+// 所用设备表头
+export interface columnsType {
+ text: string // 文本
+ value: string // 列值
+ align: string // 是否居中、左、右
+ required: Boolean // 控制表格表头红色星号
+ choose: Boolean
+ time: Boolean
+ width?: string // 列宽
+}
+
diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue
index 7994d21..d663752 100644
--- a/src/views/business/lab/primitiveLog/primitiveLogList.vue
+++ b/src/views/business/lab/primitiveLog/primitiveLogList.vue
@@ -13,7 +13,7 @@
const $router = useRouter() // 初始化路由
// 查询条件
const listQuery = ref({
- calibrationCategory: '', // 校验类别
+ measureCategory: '', // 校验类别
createUser: '', // 创建人
manufacturingNo: '', // 出厂编号
originalRecordCode: '', // 原始记录单编号
@@ -38,7 +38,7 @@
{ text: '样品名称', value: 'sampleName', align: 'center' },
{ text: '出厂编号', value: 'manufacturingNo', align: 'center' },
{ text: '型号', value: 'sampleModel', align: 'center' },
- { text: '检校类别', value: 'calibrationCategory', align: 'center' },
+ { text: '检校类别', value: 'measureCategory', align: 'center' },
{ text: '创建人', value: 'createUser', align: 'center' },
{ text: '创建时间', value: 'createTime', align: 'center', width: '180' },
{ text: '备注', value: 'remark', align: 'center' },
@@ -65,7 +65,7 @@
sampleName: item.customerSampleInfo.sampleName, // 样品名称
manufacturingNo: item.customerSampleInfo.manufacturingNo, // 出厂编号
sampleModel: item.customerSampleInfo.sampleModel, // 型号
- calibrationCategory: mesureCategoryList.value.find(i => i.value === item.calibrationCategory) ? mesureCategoryList.value.find(i => i.value === item.calibrationCategory)!.name : '', // 校检类别
+ measureCategory: mesureCategoryList.value.find(i => i.value === item.measureCategory) ? mesureCategoryList.value.find(i => i.value === item.measureCategory)!.name : '', // 校检类别
}
})
total.value = res.data.total
@@ -81,7 +81,7 @@
// 重置
const clearList = () => {
listQuery.value = {
- calibrationCategory: '', // 校验类别
+ measureCategory: '', // 校验类别
createUser: '', // 创建人
manufacturingNo: '', // 出厂编号
originalRecordCode: '', // 原始记录单编号
@@ -103,7 +103,7 @@
})
if (list.value.length > 0) {
const params = {
- calibrationCategory: '', // 校验类别
+ measureCategory: '', // 校验类别
createUser: '', // 创建人
manufacturingNo: '', // 出厂编号
originalRecordCode: '', // 原始记录单编号
@@ -239,7 +239,7 @@
{
+ console.log('---------')
+
+ console.log(singleChecked.value)
+ console.log(props.data)
+
const checkValue = props.data.find((item: any) => item.id == singleChecked.value)
emit('multiSelect', [checkValue])
}
diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts
index 6c5dbf3..09e8b6d 100644
--- a/src/utils/scheduleDict.ts
+++ b/src/utils/scheduleDict.ts
@@ -20,4 +20,5 @@
DEVICE_FIX_APPROVAL = 'sbglsbjxsq', // 设备检修申请
DEVICE_FIX_ACCEPTANCE = 'sbglsbjxbyysd', // 设备检修保养验收单
BUSINESS_CERT_PRINT = 'ywglzsdy', // 证书打印
+ BUSINESS_REPORT_ON_CREDENTIALS = 'ywglzsbg', // 证书报告
}
diff --git a/src/views/business/lab/components/environmentalDialog.vue b/src/views/business/lab/components/environmentalDialog.vue
index c009446..ff64af3 100644
--- a/src/views/business/lab/components/environmentalDialog.vue
+++ b/src/views/business/lab/components/environmentalDialog.vue
@@ -1,125 +1,132 @@
-
-
-
+
-
+
@@ -128,13 +135,20 @@
+
-
+
-
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
diff --git a/src/views/business/lab/components/orderDialog.vue b/src/views/business/lab/components/orderDialog.vue
deleted file mode 100644
index c605f22..0000000
--- a/src/views/business/lab/components/orderDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/primitiveLogDialog.vue b/src/views/business/lab/components/primitiveLogDialog.vue
deleted file mode 100644
index 0a883a8..0000000
--- a/src/views/business/lab/components/primitiveLogDialog.vue
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/business/lab/components/selectFiles.vue b/src/views/business/lab/components/selectFiles.vue
new file mode 100644
index 0000000..10df50e
--- /dev/null
+++ b/src/views/business/lab/components/selectFiles.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectMeasureDevice.vue b/src/views/business/lab/components/selectMeasureDevice.vue
new file mode 100644
index 0000000..0b4fecf
--- /dev/null
+++ b/src/views/business/lab/components/selectMeasureDevice.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectSample.vue b/src/views/business/lab/components/selectSample.vue
new file mode 100644
index 0000000..6ff117e
--- /dev/null
+++ b/src/views/business/lab/components/selectSample.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
diff --git a/src/views/business/lab/components/selectTemplate.vue b/src/views/business/lab/components/selectTemplate.vue
new file mode 100644
index 0000000..bb4b98e
--- /dev/null
+++ b/src/views/business/lab/components/selectTemplate.vue
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue
index 63a0849..79bb1a7 100644
--- a/src/views/business/lab/environmental/environmentalList.vue
+++ b/src/views/business/lab/environmental/environmentalList.vue
@@ -26,6 +26,17 @@
const loadingTable = ref(false) // 表格loading
const trainTime = ref('') // 记录时间数组
const roomNumberList = ref([]) // 房间号
+// 表头
+const columns = ref([
+ { text: '记录单号', value: 'environmentCode', align: 'center', width: '160' },
+ { text: '房间号', value: 'roomNumber', align: 'center' },
+ { text: '记录人', value: 'recorder', align: 'center' },
+ { text: '记录时间', value: 'recordTime', width: '180', align: 'center' },
+ { text: '温度(℃)', value: 'temperature', align: 'center' },
+ { text: '湿度(%)', value: 'humidity', align: 'center' },
+ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' },
+ { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' },
+])
// 查询列表
const fetchData = (isNowPage: boolean) => {
@@ -43,17 +54,7 @@
loadingTable.value = false
}
fetchData(true)
-// 表头
-const columns = ref([
- { text: '记录单号', value: 'environmentCode', align: 'center', width: '160' },
- { text: '房间号', value: 'roomNumber', align: 'center' },
- { text: '记录人', value: 'recorder', align: 'center' },
- { text: '记录时间', value: 'recordTime', width: '180', align: 'center' },
- { text: '温度(℃)', value: 'temperature', align: 'center' },
- { text: '湿度(%)', value: 'humidity', align: 'center' },
- { text: '输出电压(V)', value: 'outputVoltage', align: 'center' },
- { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' },
-])
+
// 搜索
const searchList = () => {
fetchData(true)
@@ -148,7 +149,7 @@
fetchData(true)
}
-// 获取下拉框数据
+// 获取房间号
getTypeSelect('roomNumber').then((res) => {
roomNumberList.value = res.data
})
diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.ts b/src/views/business/lab/primitiveLog/primitiveLogList.ts
index ef91bfd..d8b58bf 100644
--- a/src/views/business/lab/primitiveLog/primitiveLogList.ts
+++ b/src/views/business/lab/primitiveLog/primitiveLogList.ts
@@ -1,6 +1,6 @@
// 列表查询接口
export interface IListQuery {
- calibrationCategory: string // 校验类别
+ measureCategory: string // 校验类别
createUser: string // 创建人
manufacturingNo: string // 出厂编号
originalRecordCode: string // 原始记录单编号
@@ -22,7 +22,7 @@
manufacturingNo: string // 出厂编号
sampleModel: string // 样品型号
}
- calibrationCategory: string // 校验类别
+ measureCategory: string // 校验类别
createUser: string // 创建人
createTime: string // 创建时间
remark: string // 备注
@@ -35,3 +35,14 @@
value: string
}
+// 所用设备表头
+export interface columnsType {
+ text: string // 文本
+ value: string // 列值
+ align: string // 是否居中、左、右
+ required: Boolean // 控制表格表头红色星号
+ choose: Boolean
+ time: Boolean
+ width?: string // 列宽
+}
+
diff --git a/src/views/business/lab/primitiveLog/primitiveLogList.vue b/src/views/business/lab/primitiveLog/primitiveLogList.vue
index 7994d21..d663752 100644
--- a/src/views/business/lab/primitiveLog/primitiveLogList.vue
+++ b/src/views/business/lab/primitiveLog/primitiveLogList.vue
@@ -13,7 +13,7 @@
const $router = useRouter() // 初始化路由
// 查询条件
const listQuery = ref({
- calibrationCategory: '', // 校验类别
+ measureCategory: '', // 校验类别
createUser: '', // 创建人
manufacturingNo: '', // 出厂编号
originalRecordCode: '', // 原始记录单编号
@@ -38,7 +38,7 @@
{ text: '样品名称', value: 'sampleName', align: 'center' },
{ text: '出厂编号', value: 'manufacturingNo', align: 'center' },
{ text: '型号', value: 'sampleModel', align: 'center' },
- { text: '检校类别', value: 'calibrationCategory', align: 'center' },
+ { text: '检校类别', value: 'measureCategory', align: 'center' },
{ text: '创建人', value: 'createUser', align: 'center' },
{ text: '创建时间', value: 'createTime', align: 'center', width: '180' },
{ text: '备注', value: 'remark', align: 'center' },
@@ -65,7 +65,7 @@
sampleName: item.customerSampleInfo.sampleName, // 样品名称
manufacturingNo: item.customerSampleInfo.manufacturingNo, // 出厂编号
sampleModel: item.customerSampleInfo.sampleModel, // 型号
- calibrationCategory: mesureCategoryList.value.find(i => i.value === item.calibrationCategory) ? mesureCategoryList.value.find(i => i.value === item.calibrationCategory)!.name : '', // 校检类别
+ measureCategory: mesureCategoryList.value.find(i => i.value === item.measureCategory) ? mesureCategoryList.value.find(i => i.value === item.measureCategory)!.name : '', // 校检类别
}
})
total.value = res.data.total
@@ -81,7 +81,7 @@
// 重置
const clearList = () => {
listQuery.value = {
- calibrationCategory: '', // 校验类别
+ measureCategory: '', // 校验类别
createUser: '', // 创建人
manufacturingNo: '', // 出厂编号
originalRecordCode: '', // 原始记录单编号
@@ -103,7 +103,7 @@
})
if (list.value.length > 0) {
const params = {
- calibrationCategory: '', // 校验类别
+ measureCategory: '', // 校验类别
createUser: '', // 创建人
manufacturingNo: '', // 出厂编号
originalRecordCode: '', // 原始记录单编号
@@ -239,7 +239,7 @@
([]) // 顶部按钮数组
const pageType = ref('add') // 页面类型: add,edit, detail
const textMap: { [key: string]: string } = {
edit: '编辑',
add: '新建',
detail: '查看',
} // 字典
+const selectIndex = ref() // 所用设备表格-点击选择的index--点击第几行
+const mesureCategoryList = ref([]) // 校检类别
+const orderVisible = ref(false) // 控制委托书对话框显隐
+const sampleVisible = ref(false) // 控制选择样品对话框显隐
+const measureDeviceVisible = ref(false) // 控制选择测量设备对话框显隐
+const checkoutMeasureDeviceList = ref([]) // 所用设备多选
// 从路由中获取页面类型参数
const $route = useRoute()
const formId = ref('')
@@ -43,59 +57,79 @@
}
// 检验是否为空的ref
const ruleFormRef = ref()
-// 新建上传参数
+// 新建上传参数--用于调接口上传
const formInline = ref({
- originalRecordCode: '', // 原始记录编号
+ originalRecordCode: '', // 原始记录编号
originalRecordName: '', // 原始记录名称
- calibrationCategory: '', // 检校类别
+ measureCategory: '', // 检校类别
calibrationTime: '', // 检校时间
environmentId: '', // 环境记录单id
calibrationPlace: '', // 检校地点
orderId: '', // 委托书id
+ customerId: '', // 委托方id
sampleId: '', // 样品id
templateId: '', // 原始记录模板id
- originalRecordFile: '', // minio存储文件名
+ templateName: '', // 原始记录模板名称
+ originalRecordFile: '', // minio存储文件名--附件
remark: '', // 备注
createUser: '', // 创建人id
+ businessEnvironmentRecord: {
+ temperature: '', // 环境记录单温度
+ humidity: '', // 环境记录单相对湿度
+ environmentCode: '', // 环境记录单编号
+ }, // 环境记录单信息
+ businessOrder: { // 委托书
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
+ },
+ customerSampleInfo: { // 样品信息
+ sampleNo: '', // 样品编号
+ sampleName: '', // 样品名称
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
+ manufacturer: '', // 生产厂家
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ planDeliverTime: '', // 预计送达时间
+ requireOverTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ },
+ fixedAssetsList: [] as any, // 测量设备
})
-// 数据详情无需上传
+// 数据详情无需上传--用于显示详情
const fromListInfo = ref({
- environmentName: '', // 环境记录单名称
+ environmentCode: '', // 环境记录单编号
calibrationLocation: '', // 校验地点
temperature: '', // 环境记录单温度
- dampness: '', // 环境记录单相对湿度
- orderNo: '', // 委托方编号
- orderCode: '', // 委托方代码
- orderName: '', // 委托方名称
- orderPhone: '', // 委托方电话
- orderLocation: '', // 委托方地址
+ humidity: '', // 环境记录单相对湿度
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
sampleNo: '', // 样品编号
sampleName: '', // 样品名称
- factoryNo: '', // 出厂编号
- model: '', // 型号
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
manufacturer: '', // 生产厂家
- submissionUser: '', // 送检人
- submissionPhone: '', // 送检人联系方式
- submissionTime: '', // 送检时间
- inspectionTime: '', // 检完时间
- verificationItems: '', // 检定项目
- templateName: '', // 原始记录模板
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ submissionTime: '', // 预计送达时间
+ inspectionTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ templateId: '', // 原始记录模板id
+ originalRecordFile: '', // 原始记录附件
+ sampleId: '', // 样品id
+ orderId: '', // 委托书id
fixedAssetsList: [], // 底部设备数组
fileList: [], // 底部文件表格数组
applyEquipmentList: [], // 底部设备详情数组
+ businessEnvironmentRecord: {}, // 环境记录单信息
})
-// 下拉框数组类型
-interface IOptions {
- id: string
- name: string
-}
-// 模拟检测类型的下拉框数组
-const standardOwnerOptions = ref([
- { name: '检测', id: '1' },
- { name: '校准', id: '2' },
- { name: '检定', id: '3' },
- { name: '验收检定', id: '4' },
-])
+
// 数据
const list = ref
([]) // 顶部按钮数组
const pageType = ref('add') // 页面类型: add,edit, detail
const textMap: { [key: string]: string } = {
edit: '编辑',
add: '新建',
detail: '查看',
} // 字典
+const selectIndex = ref() // 所用设备表格-点击选择的index--点击第几行
+const mesureCategoryList = ref([]) // 校检类别
+const orderVisible = ref(false) // 控制委托书对话框显隐
+const sampleVisible = ref(false) // 控制选择样品对话框显隐
+const measureDeviceVisible = ref(false) // 控制选择测量设备对话框显隐
+const checkoutMeasureDeviceList = ref([]) // 所用设备多选
// 从路由中获取页面类型参数
const $route = useRoute()
const formId = ref('')
@@ -43,59 +57,79 @@
}
// 检验是否为空的ref
const ruleFormRef = ref()
-// 新建上传参数
+// 新建上传参数--用于调接口上传
const formInline = ref({
- originalRecordCode: '', // 原始记录编号
+ originalRecordCode: '', // 原始记录编号
originalRecordName: '', // 原始记录名称
- calibrationCategory: '', // 检校类别
+ measureCategory: '', // 检校类别
calibrationTime: '', // 检校时间
environmentId: '', // 环境记录单id
calibrationPlace: '', // 检校地点
orderId: '', // 委托书id
+ customerId: '', // 委托方id
sampleId: '', // 样品id
templateId: '', // 原始记录模板id
- originalRecordFile: '', // minio存储文件名
+ templateName: '', // 原始记录模板名称
+ originalRecordFile: '', // minio存储文件名--附件
remark: '', // 备注
createUser: '', // 创建人id
+ businessEnvironmentRecord: {
+ temperature: '', // 环境记录单温度
+ humidity: '', // 环境记录单相对湿度
+ environmentCode: '', // 环境记录单编号
+ }, // 环境记录单信息
+ businessOrder: { // 委托书
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
+ },
+ customerSampleInfo: { // 样品信息
+ sampleNo: '', // 样品编号
+ sampleName: '', // 样品名称
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
+ manufacturer: '', // 生产厂家
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ planDeliverTime: '', // 预计送达时间
+ requireOverTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ },
+ fixedAssetsList: [] as any, // 测量设备
})
-// 数据详情无需上传
+// 数据详情无需上传--用于显示详情
const fromListInfo = ref({
- environmentName: '', // 环境记录单名称
+ environmentCode: '', // 环境记录单编号
calibrationLocation: '', // 校验地点
temperature: '', // 环境记录单温度
- dampness: '', // 环境记录单相对湿度
- orderNo: '', // 委托方编号
- orderCode: '', // 委托方代码
- orderName: '', // 委托方名称
- orderPhone: '', // 委托方电话
- orderLocation: '', // 委托方地址
+ humidity: '', // 环境记录单相对湿度
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
sampleNo: '', // 样品编号
sampleName: '', // 样品名称
- factoryNo: '', // 出厂编号
- model: '', // 型号
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
manufacturer: '', // 生产厂家
- submissionUser: '', // 送检人
- submissionPhone: '', // 送检人联系方式
- submissionTime: '', // 送检时间
- inspectionTime: '', // 检完时间
- verificationItems: '', // 检定项目
- templateName: '', // 原始记录模板
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ submissionTime: '', // 预计送达时间
+ inspectionTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ templateId: '', // 原始记录模板id
+ originalRecordFile: '', // 原始记录附件
+ sampleId: '', // 样品id
+ orderId: '', // 委托书id
fixedAssetsList: [], // 底部设备数组
fileList: [], // 底部文件表格数组
applyEquipmentList: [], // 底部设备详情数组
+ businessEnvironmentRecord: {}, // 环境记录单信息
})
-// 下拉框数组类型
-interface IOptions {
- id: string
- name: string
-}
-// 模拟检测类型的下拉框数组
-const standardOwnerOptions = ref([
- { name: '检测', id: '1' },
- { name: '校准', id: '2' },
- { name: '检定', id: '3' },
- { name: '验收检定', id: '4' },
-])
+
// 数据
const list = ref
([]) // 顶部按钮数组
const pageType = ref('add') // 页面类型: add,edit, detail
const textMap: { [key: string]: string } = {
edit: '编辑',
add: '新建',
detail: '查看',
} // 字典
+const selectIndex = ref() // 所用设备表格-点击选择的index--点击第几行
+const mesureCategoryList = ref([]) // 校检类别
+const orderVisible = ref(false) // 控制委托书对话框显隐
+const sampleVisible = ref(false) // 控制选择样品对话框显隐
+const measureDeviceVisible = ref(false) // 控制选择测量设备对话框显隐
+const checkoutMeasureDeviceList = ref([]) // 所用设备多选
// 从路由中获取页面类型参数
const $route = useRoute()
const formId = ref('')
@@ -43,59 +57,79 @@
}
// 检验是否为空的ref
const ruleFormRef = ref()
-// 新建上传参数
+// 新建上传参数--用于调接口上传
const formInline = ref({
- originalRecordCode: '', // 原始记录编号
+ originalRecordCode: '', // 原始记录编号
originalRecordName: '', // 原始记录名称
- calibrationCategory: '', // 检校类别
+ measureCategory: '', // 检校类别
calibrationTime: '', // 检校时间
environmentId: '', // 环境记录单id
calibrationPlace: '', // 检校地点
orderId: '', // 委托书id
+ customerId: '', // 委托方id
sampleId: '', // 样品id
templateId: '', // 原始记录模板id
- originalRecordFile: '', // minio存储文件名
+ templateName: '', // 原始记录模板名称
+ originalRecordFile: '', // minio存储文件名--附件
remark: '', // 备注
createUser: '', // 创建人id
+ businessEnvironmentRecord: {
+ temperature: '', // 环境记录单温度
+ humidity: '', // 环境记录单相对湿度
+ environmentCode: '', // 环境记录单编号
+ }, // 环境记录单信息
+ businessOrder: { // 委托书
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
+ },
+ customerSampleInfo: { // 样品信息
+ sampleNo: '', // 样品编号
+ sampleName: '', // 样品名称
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
+ manufacturer: '', // 生产厂家
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ planDeliverTime: '', // 预计送达时间
+ requireOverTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ },
+ fixedAssetsList: [] as any, // 测量设备
})
-// 数据详情无需上传
+// 数据详情无需上传--用于显示详情
const fromListInfo = ref({
- environmentName: '', // 环境记录单名称
+ environmentCode: '', // 环境记录单编号
calibrationLocation: '', // 校验地点
temperature: '', // 环境记录单温度
- dampness: '', // 环境记录单相对湿度
- orderNo: '', // 委托方编号
- orderCode: '', // 委托方代码
- orderName: '', // 委托方名称
- orderPhone: '', // 委托方电话
- orderLocation: '', // 委托方地址
+ humidity: '', // 环境记录单相对湿度
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
sampleNo: '', // 样品编号
sampleName: '', // 样品名称
- factoryNo: '', // 出厂编号
- model: '', // 型号
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
manufacturer: '', // 生产厂家
- submissionUser: '', // 送检人
- submissionPhone: '', // 送检人联系方式
- submissionTime: '', // 送检时间
- inspectionTime: '', // 检完时间
- verificationItems: '', // 检定项目
- templateName: '', // 原始记录模板
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ submissionTime: '', // 预计送达时间
+ inspectionTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ templateId: '', // 原始记录模板id
+ originalRecordFile: '', // 原始记录附件
+ sampleId: '', // 样品id
+ orderId: '', // 委托书id
fixedAssetsList: [], // 底部设备数组
fileList: [], // 底部文件表格数组
applyEquipmentList: [], // 底部设备详情数组
+ businessEnvironmentRecord: {}, // 环境记录单信息
})
-// 下拉框数组类型
-interface IOptions {
- id: string
- name: string
-}
-// 模拟检测类型的下拉框数组
-const standardOwnerOptions = ref([
- { name: '检测', id: '1' },
- { name: '校准', id: '2' },
- { name: '检定', id: '3' },
- { name: '验收检定', id: '4' },
-])
+
// 数据
const list = ref
([]) // 顶部按钮数组
const pageType = ref('add') // 页面类型: add,edit, detail
const textMap: { [key: string]: string } = {
edit: '编辑',
add: '新建',
detail: '查看',
} // 字典
+const selectIndex = ref() // 所用设备表格-点击选择的index--点击第几行
+const mesureCategoryList = ref([]) // 校检类别
+const orderVisible = ref(false) // 控制委托书对话框显隐
+const sampleVisible = ref(false) // 控制选择样品对话框显隐
+const measureDeviceVisible = ref(false) // 控制选择测量设备对话框显隐
+const checkoutMeasureDeviceList = ref([]) // 所用设备多选
// 从路由中获取页面类型参数
const $route = useRoute()
const formId = ref('')
@@ -43,59 +57,79 @@
}
// 检验是否为空的ref
const ruleFormRef = ref()
-// 新建上传参数
+// 新建上传参数--用于调接口上传
const formInline = ref({
- originalRecordCode: '', // 原始记录编号
+ originalRecordCode: '', // 原始记录编号
originalRecordName: '', // 原始记录名称
- calibrationCategory: '', // 检校类别
+ measureCategory: '', // 检校类别
calibrationTime: '', // 检校时间
environmentId: '', // 环境记录单id
calibrationPlace: '', // 检校地点
orderId: '', // 委托书id
+ customerId: '', // 委托方id
sampleId: '', // 样品id
templateId: '', // 原始记录模板id
- originalRecordFile: '', // minio存储文件名
+ templateName: '', // 原始记录模板名称
+ originalRecordFile: '', // minio存储文件名--附件
remark: '', // 备注
createUser: '', // 创建人id
+ businessEnvironmentRecord: {
+ temperature: '', // 环境记录单温度
+ humidity: '', // 环境记录单相对湿度
+ environmentCode: '', // 环境记录单编号
+ }, // 环境记录单信息
+ businessOrder: { // 委托书
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
+ },
+ customerSampleInfo: { // 样品信息
+ sampleNo: '', // 样品编号
+ sampleName: '', // 样品名称
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
+ manufacturer: '', // 生产厂家
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ planDeliverTime: '', // 预计送达时间
+ requireOverTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ },
+ fixedAssetsList: [] as any, // 测量设备
})
-// 数据详情无需上传
+// 数据详情无需上传--用于显示详情
const fromListInfo = ref({
- environmentName: '', // 环境记录单名称
+ environmentCode: '', // 环境记录单编号
calibrationLocation: '', // 校验地点
temperature: '', // 环境记录单温度
- dampness: '', // 环境记录单相对湿度
- orderNo: '', // 委托方编号
- orderCode: '', // 委托方代码
- orderName: '', // 委托方名称
- orderPhone: '', // 委托方电话
- orderLocation: '', // 委托方地址
+ humidity: '', // 环境记录单相对湿度
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
sampleNo: '', // 样品编号
sampleName: '', // 样品名称
- factoryNo: '', // 出厂编号
- model: '', // 型号
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
manufacturer: '', // 生产厂家
- submissionUser: '', // 送检人
- submissionPhone: '', // 送检人联系方式
- submissionTime: '', // 送检时间
- inspectionTime: '', // 检完时间
- verificationItems: '', // 检定项目
- templateName: '', // 原始记录模板
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ submissionTime: '', // 预计送达时间
+ inspectionTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ templateId: '', // 原始记录模板id
+ originalRecordFile: '', // 原始记录附件
+ sampleId: '', // 样品id
+ orderId: '', // 委托书id
fixedAssetsList: [], // 底部设备数组
fileList: [], // 底部文件表格数组
applyEquipmentList: [], // 底部设备详情数组
+ businessEnvironmentRecord: {}, // 环境记录单信息
})
-// 下拉框数组类型
-interface IOptions {
- id: string
- name: string
-}
-// 模拟检测类型的下拉框数组
-const standardOwnerOptions = ref([
- { name: '检测', id: '1' },
- { name: '校准', id: '2' },
- { name: '检定', id: '3' },
- { name: '验收检定', id: '4' },
-])
+
// 数据
const list = ref
([]) // 顶部按钮数组
const pageType = ref('add') // 页面类型: add,edit, detail
const textMap: { [key: string]: string } = {
edit: '编辑',
add: '新建',
detail: '查看',
} // 字典
+const selectIndex = ref() // 所用设备表格-点击选择的index--点击第几行
+const mesureCategoryList = ref([]) // 校检类别
+const orderVisible = ref(false) // 控制委托书对话框显隐
+const sampleVisible = ref(false) // 控制选择样品对话框显隐
+const measureDeviceVisible = ref(false) // 控制选择测量设备对话框显隐
+const checkoutMeasureDeviceList = ref([]) // 所用设备多选
// 从路由中获取页面类型参数
const $route = useRoute()
const formId = ref('')
@@ -43,59 +57,79 @@
}
// 检验是否为空的ref
const ruleFormRef = ref()
-// 新建上传参数
+// 新建上传参数--用于调接口上传
const formInline = ref({
- originalRecordCode: '', // 原始记录编号
+ originalRecordCode: '', // 原始记录编号
originalRecordName: '', // 原始记录名称
- calibrationCategory: '', // 检校类别
+ measureCategory: '', // 检校类别
calibrationTime: '', // 检校时间
environmentId: '', // 环境记录单id
calibrationPlace: '', // 检校地点
orderId: '', // 委托书id
+ customerId: '', // 委托方id
sampleId: '', // 样品id
templateId: '', // 原始记录模板id
- originalRecordFile: '', // minio存储文件名
+ templateName: '', // 原始记录模板名称
+ originalRecordFile: '', // minio存储文件名--附件
remark: '', // 备注
createUser: '', // 创建人id
+ businessEnvironmentRecord: {
+ temperature: '', // 环境记录单温度
+ humidity: '', // 环境记录单相对湿度
+ environmentCode: '', // 环境记录单编号
+ }, // 环境记录单信息
+ businessOrder: { // 委托书
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
+ },
+ customerSampleInfo: { // 样品信息
+ sampleNo: '', // 样品编号
+ sampleName: '', // 样品名称
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
+ manufacturer: '', // 生产厂家
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ planDeliverTime: '', // 预计送达时间
+ requireOverTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ },
+ fixedAssetsList: [] as any, // 测量设备
})
-// 数据详情无需上传
+// 数据详情无需上传--用于显示详情
const fromListInfo = ref({
- environmentName: '', // 环境记录单名称
+ environmentCode: '', // 环境记录单编号
calibrationLocation: '', // 校验地点
temperature: '', // 环境记录单温度
- dampness: '', // 环境记录单相对湿度
- orderNo: '', // 委托方编号
- orderCode: '', // 委托方代码
- orderName: '', // 委托方名称
- orderPhone: '', // 委托方电话
- orderLocation: '', // 委托方地址
+ humidity: '', // 环境记录单相对湿度
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
sampleNo: '', // 样品编号
sampleName: '', // 样品名称
- factoryNo: '', // 出厂编号
- model: '', // 型号
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
manufacturer: '', // 生产厂家
- submissionUser: '', // 送检人
- submissionPhone: '', // 送检人联系方式
- submissionTime: '', // 送检时间
- inspectionTime: '', // 检完时间
- verificationItems: '', // 检定项目
- templateName: '', // 原始记录模板
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ submissionTime: '', // 预计送达时间
+ inspectionTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ templateId: '', // 原始记录模板id
+ originalRecordFile: '', // 原始记录附件
+ sampleId: '', // 样品id
+ orderId: '', // 委托书id
fixedAssetsList: [], // 底部设备数组
fileList: [], // 底部文件表格数组
applyEquipmentList: [], // 底部设备详情数组
+ businessEnvironmentRecord: {}, // 环境记录单信息
})
-// 下拉框数组类型
-interface IOptions {
- id: string
- name: string
-}
-// 模拟检测类型的下拉框数组
-const standardOwnerOptions = ref([
- { name: '检测', id: '1' },
- { name: '校准', id: '2' },
- { name: '检定', id: '3' },
- { name: '验收检定', id: '4' },
-])
+
// 数据
const list = ref
([]) // 顶部按钮数组
const pageType = ref('add') // 页面类型: add,edit, detail
const textMap: { [key: string]: string } = {
edit: '编辑',
add: '新建',
detail: '查看',
} // 字典
+const selectIndex = ref() // 所用设备表格-点击选择的index--点击第几行
+const mesureCategoryList = ref([]) // 校检类别
+const orderVisible = ref(false) // 控制委托书对话框显隐
+const sampleVisible = ref(false) // 控制选择样品对话框显隐
+const measureDeviceVisible = ref(false) // 控制选择测量设备对话框显隐
+const checkoutMeasureDeviceList = ref([]) // 所用设备多选
// 从路由中获取页面类型参数
const $route = useRoute()
const formId = ref('')
@@ -43,59 +57,79 @@
}
// 检验是否为空的ref
const ruleFormRef = ref()
-// 新建上传参数
+// 新建上传参数--用于调接口上传
const formInline = ref({
- originalRecordCode: '', // 原始记录编号
+ originalRecordCode: '', // 原始记录编号
originalRecordName: '', // 原始记录名称
- calibrationCategory: '', // 检校类别
+ measureCategory: '', // 检校类别
calibrationTime: '', // 检校时间
environmentId: '', // 环境记录单id
calibrationPlace: '', // 检校地点
orderId: '', // 委托书id
+ customerId: '', // 委托方id
sampleId: '', // 样品id
templateId: '', // 原始记录模板id
- originalRecordFile: '', // minio存储文件名
+ templateName: '', // 原始记录模板名称
+ originalRecordFile: '', // minio存储文件名--附件
remark: '', // 备注
createUser: '', // 创建人id
+ businessEnvironmentRecord: {
+ temperature: '', // 环境记录单温度
+ humidity: '', // 环境记录单相对湿度
+ environmentCode: '', // 环境记录单编号
+ }, // 环境记录单信息
+ businessOrder: { // 委托书
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
+ },
+ customerSampleInfo: { // 样品信息
+ sampleNo: '', // 样品编号
+ sampleName: '', // 样品名称
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
+ manufacturer: '', // 生产厂家
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ planDeliverTime: '', // 预计送达时间
+ requireOverTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ },
+ fixedAssetsList: [] as any, // 测量设备
})
-// 数据详情无需上传
+// 数据详情无需上传--用于显示详情
const fromListInfo = ref({
- environmentName: '', // 环境记录单名称
+ environmentCode: '', // 环境记录单编号
calibrationLocation: '', // 校验地点
temperature: '', // 环境记录单温度
- dampness: '', // 环境记录单相对湿度
- orderNo: '', // 委托方编号
- orderCode: '', // 委托方代码
- orderName: '', // 委托方名称
- orderPhone: '', // 委托方电话
- orderLocation: '', // 委托方地址
+ humidity: '', // 环境记录单相对湿度
+ orderCode: '', // 委托书编号
+ customerNo: '', // 委托方代码
+ customerName: '', // 委托方名称
+ customerPhone: '', // 委托方电话
+ customerAddress: '', // 委托方地址
sampleNo: '', // 样品编号
sampleName: '', // 样品名称
- factoryNo: '', // 出厂编号
- model: '', // 型号
+ manufacturingNo: '', // 出厂编号
+ sampleModel: '', // 型号
manufacturer: '', // 生产厂家
- submissionUser: '', // 送检人
- submissionPhone: '', // 送检人联系方式
- submissionTime: '', // 送检时间
- inspectionTime: '', // 检完时间
- verificationItems: '', // 检定项目
- templateName: '', // 原始记录模板
+ deliverer: '', // 送检人
+ delivererTel: '', // 送检人联系方式
+ submissionTime: '', // 预计送达时间
+ inspectionTime: '', // 要求检完时间
+ measureContent: '', // 检定项目
+ templateId: '', // 原始记录模板id
+ originalRecordFile: '', // 原始记录附件
+ sampleId: '', // 样品id
+ orderId: '', // 委托书id
fixedAssetsList: [], // 底部设备数组
fileList: [], // 底部文件表格数组
applyEquipmentList: [], // 底部设备详情数组
+ businessEnvironmentRecord: {}, // 环境记录单信息
})
-// 下拉框数组类型
-interface IOptions {
- id: string
- name: string
-}
-// 模拟检测类型的下拉框数组
-const standardOwnerOptions = ref([
- { name: '检测', id: '1' },
- { name: '校准', id: '2' },
- { name: '检定', id: '3' },
- { name: '验收检定', id: '4' },
-])
+
// 数据
const list = ref