diff --git a/src/api/mes/vulcAlarmStandard/types.ts b/src/api/mes/vulcAlarmStandard/types.ts
index 734c544..48ea867 100644
--- a/src/api/mes/vulcAlarmStandard/types.ts
+++ b/src/api/mes/vulcAlarmStandard/types.ts
@@ -1,6 +1,6 @@
export interface VulcAlarmStandardVO {
/**
- * 报警项目ID
+ * 报警标准ID
*/
alarmStandardId: string | number;
@@ -54,11 +54,26 @@ export interface VulcAlarmStandardVO {
*/
remark: string;
+ /**
+ * 数据类型
+ */
+ dataType: string;
+
+ /**
+ * 地址
+ */
+ pointAddress: string;
+
+ /**
+ * 频率(毫秒)
+ */
+ stepTime: number;
+
}
export interface VulcAlarmStandardForm extends BaseEntity {
/**
- * 报警项目ID
+ * 报警标准ID
*/
alarmStandardId?: string | number;
@@ -112,12 +127,29 @@ export interface VulcAlarmStandardForm extends BaseEntity {
*/
remark?: string;
+ /**
+ * 数据类型
+ */
+ dataType?: string;
+
+ /**
+ * 地址
+ */
+ pointAddress?: string;
+
+ /**
+ * 频率(毫秒)
+ */
+ stepTime?: number;
+
+ technologyId?: string | number;
+
}
export interface VulcAlarmStandardQuery extends PageQuery {
/**
- * 报警项目ID
+ * 报警标准ID
*/
alarmStandardId?: string | number;
@@ -166,10 +198,27 @@ export interface VulcAlarmStandardQuery extends PageQuery {
*/
activeFlag?: string;
- /**
- * 日期范围参数
- */
- params?: any;
+ /**
+ * 数据类型
+ */
+ dataType?: string;
+
+ /**
+ * 地址
+ */
+ pointAddress?: string;
+
+ /**
+ * 频率(毫秒)
+ */
+ stepTime?: number;
+
+ /**
+ * 日期范围参数
+ */
+ params?: any;
+
+ technologyId?: string | number;
}
diff --git a/src/views/mes/vulcAlarmStandard/index.vue b/src/views/mes/vulcAlarmStandard/index.vue
index 5443141..194bf74 100644
--- a/src/views/mes/vulcAlarmStandard/index.vue
+++ b/src/views/mes/vulcAlarmStandard/index.vue
@@ -4,13 +4,13 @@
:leave-active-class='proxy?.animate.searchAnimate.leave'>
-
+
+ @keyup.enter='handleQuery'>
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -88,6 +99,13 @@
width='120' />
+
+
+
+
+
+
+
@@ -124,12 +142,22 @@
/>
-
+
+
+
+
+
+
@@ -152,6 +180,22 @@
+
+
+
+
+
+
+
+
+
+
+
(proxy?.useDict('active_flag'));
+const { active_flag, machine_data_type } = toRefs(proxy?.useDict('active_flag', 'machine_data_type'));
const vulcAlarmStandardList = ref([]);
const buttonLoading = ref(false);
@@ -209,6 +253,7 @@ const dialog = reactive({
title: ''
});
+
/** 查询报警项目下拉框结构 */
const alarmItemsList = ref([]);
const getSelectVulcAlarmItemsList = async () => {
@@ -217,9 +262,17 @@ const getSelectVulcAlarmItemsList = async () => {
};
/** 查询硫化工艺下拉框结构 */
+const technologyInfoList = ref([]);
+const getSelectProdTechnologyInfoList = async () => {
+ let res = await getProdTechnologyInfoList({ processId: 18 });
+ technologyInfoList.value = res.data;
+};
+
+
+/** 查询硫化工艺步序下拉框结构 */
const technologyStepList = ref([]);
-const getSelectTechnologyStepInfoList = async () => {
- let res = await getProdTechnologyStepInfoList({ processId: 18 });
+const getSelectTechnologyStepInfoList = async (technologyId: number) => {
+ let res = await getProdTechnologyStepInfoList({ processId: 18, technologyId: technologyId });
technologyStepList.value = res.data;
};
@@ -243,7 +296,10 @@ const columns = ref([
{ key: 15, label: `更新人`, visible: false },
{ key: 16, label: `更新时间`, visible: false },
{ key: 17, label: `删除标志`, visible: false },
- { key: 18, label: `工艺名称`, visible: true }
+ { key: 18, label: `工艺名称`, visible: true },
+ { key: 19, label: `数据类型`, visible: true },
+ { key: 20, label: `地址`, visible: true },
+ { key: 21, label: `频率(毫秒)`, visible: true }
]);
const initFormData: VulcAlarmStandardForm = {
@@ -280,6 +336,9 @@ const data = reactive>({
alarmItemsId: [
{ required: true, message: '报警项目不能为空', trigger: 'blur' }
],
+ technologyId: [
+ { required: true, message: '硫化工艺不能为空', trigger: 'blur' }
+ ],
stepId: [
{ required: true, message: '工艺步序不能为空', trigger: 'blur' }
]
@@ -288,6 +347,13 @@ const data = reactive>({
const { queryParams, form, rules } = toRefs(data);
+watch(
+ () => form.value.technologyId,
+ (newVal: number, oldVal: number) => {
+ getSelectTechnologyStepInfoList(newVal);
+ }
+);
+
/** 查询报警标准信息列表 */
const getList = async () => {
loading.value = true;
@@ -380,7 +446,7 @@ const handleExport = () => {
onMounted(() => {
getSelectVulcAlarmItemsList();
- getSelectTechnologyStepInfoList();
+ getSelectProdTechnologyInfoList();
getList();
});
diff --git a/src/views/qms/qcInspectionItem/index.vue b/src/views/qms/qcInspectionItem/index.vue
index ce84485..d0a5125 100644
--- a/src/views/qms/qcInspectionItem/index.vue
+++ b/src/views/qms/qcInspectionItem/index.vue
@@ -94,7 +94,10 @@
导出
- 导入
+ 导出模板
+
+
+ 导入
@@ -289,6 +292,7 @@
+
@@ -497,6 +501,13 @@ const handleExport = () => {
}, `qcInspectionItem_${new Date().getTime()}.xlsx`)
}
+/** 导出模板按钮操作 */
+const handleExportTemplate = () => {
+ proxy?.download('qms/qcInspectionItem/exportTemplate', {
+
+ }, `qcInspectionItem_template_${new Date().getTime()}.xlsx`)
+}
+
/** 查询检测项类别列表 */
let qcInspectionItemCategoryList = ref([]);
const getCategoryList = async () => {
diff --git a/src/views/qms/qcInspectionTemplate/index.vue b/src/views/qms/qcInspectionTemplate/index.vue
index b8e291c..b284e7b 100644
--- a/src/views/qms/qcInspectionTemplate/index.vue
+++ b/src/views/qms/qcInspectionTemplate/index.vue
@@ -34,6 +34,12 @@
导出
+
+ 导出模板
+
+
+ 导入
+
@@ -309,11 +315,12 @@
+