From 6490919117a07022a506420d001d2c6cc84d44e5 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Wed, 28 Jan 2026 16:56:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][upd?= =?UTF-8?q?ate]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/CustomTable.vue | 4 +- src/components/Template/Step.vue | 42 +++++++- src/components/Template/StepComponents/ry/bdtj.vue | 4 +- src/components/Template/StepComponents/ry/bdzl.vue | 4 +- src/components/Template/StepComponents/ry/clcz.vue | 6 +- .../Template/StepComponents/ry/clfcz.vue | 4 +- src/components/Template/StepComponents/ry/cs.vue | 99 +++++++++++++++++ src/components/Template/StepComponents/ry/czdd.vue | 2 +- src/components/Template/StepComponents/ry/czhj.vue | 6 +- src/components/Template/StepComponents/ry/dc.vue | 58 ++++++++++ src/components/Template/StepComponents/ry/ddhy.vue | 50 +++++++++ src/components/Template/StepComponents/ry/hwhy.vue | 120 +++++++++++++++++++++ src/components/Template/StepComponents/ry/jb.vue | 82 ++++++++++++++ src/components/Template/StepComponents/ry/jrjb.vue | 100 +++++++++++++++++ src/components/Template/StepComponents/ry/jrry.vue | 4 +- src/components/Template/StepComponents/ry/lx.vue | 16 ++- src/components/Template/StepComponents/ry/qywz.vue | 2 +- src/components/Template/StepComponents/ry/sy.vue | 70 ++++++++++++ .../Template/StepComponents/ry/tjphcz.vue | 2 +- .../Template/StepComponents/ry/tjphfcz.vue | 2 +- .../Template/StepComponents/ry/tpjydd.vue | 2 +- .../Template/StepComponents/ry/tpjysd.vue | 2 +- src/components/Template/StepComponents/ry/wxhy.vue | 40 +++++++ src/components/Template/StepComponents/ry/xzrq.vue | 2 +- src/components/Template/StepComponents/ry/ym.vue | 4 +- src/components/Template/StepComponents/ry/zy.vue | 40 +++++++ src/components/Template/StepComponents/ry/zyhy.vue | 106 ++++++++++++++++++ src/components/Template/mixins/stepMixins.js | 3 + .../Template/operation/TableOpertaion.vue | 12 +++ 29 files changed, 863 insertions(+), 25 deletions(-) create mode 100644 src/components/Template/StepComponents/ry/cs.vue create mode 100644 src/components/Template/StepComponents/ry/dc.vue create mode 100644 src/components/Template/StepComponents/ry/ddhy.vue create mode 100644 src/components/Template/StepComponents/ry/hwhy.vue create mode 100644 src/components/Template/StepComponents/ry/jb.vue create mode 100644 src/components/Template/StepComponents/ry/jrjb.vue create mode 100644 src/components/Template/StepComponents/ry/sy.vue create mode 100644 src/components/Template/StepComponents/ry/wxhy.vue create mode 100644 src/components/Template/StepComponents/ry/zy.vue create mode 100644 src/components/Template/StepComponents/ry/zyhy.vue diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index f3bbf45..c2b189a 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -226,7 +226,7 @@ export default { const { stepTableFormData = [], headerSelectFields = {} } = newData; this.updateDataSource(stepTableFormData); this.headerSelectFields = JSON.parse(JSON.stringify(headerSelectFields)); - + console.log(stepTableFormData,"stepTableFormData") // 在数据加载后检查 compareTo 逻辑 this.checkCompareToOnDataLoad(); } @@ -577,7 +577,7 @@ export default { options: col.bodySubOptions, maxlength: col.bodySubMaxlength || 10, label: "", - placeholder: col.bodySubPlaceholder || "请输入", + placeholder: col.bodySubPlaceholder || (col.bodySubType === 'select' ? '请选择' : '请输入'), precision: col.subPrecision, compareTo: col.bodySubCompareTo, // 添加 compareTo 字段 type: col.bodySubType || "input", diff --git a/src/components/Template/Step.vue b/src/components/Template/Step.vue index d1fed3b..ed5865d 100644 --- a/src/components/Template/Step.vue +++ b/src/components/Template/Step.vue @@ -47,8 +47,16 @@ import Bdzl from './StepComponents/ry/bdzl.vue';//标定(质量) import Tjphcz from './StepComponents/ry/tjphcz.vue';//调节PH(传值) import Tjphfcz from './StepComponents/ry/tjphfcz.vue';//调节PH(非传值) import Lx from './StepComponents/ry/lx.vue';//离心 - - +import Hwhy from './StepComponents/ry/hwhy.vue';//溶液-恒温混匀 +import Zyhy from './StepComponents/ry/zyhy.vue';//溶液-振摇混匀 +import Wxhy from "./StepComponents/ry/wxhy.vue";//溶液-涡旋混匀 +import Ddhy from "./StepComponents/ry/ddhy.vue";//溶液-颠倒混匀 +import Ym from "./StepComponents/ry/ym.vue";//溶液-研磨 +import Jb from "./StepComponents/ry/jb.vue";//溶液-搅拌 +import Jrjb from "./StepComponents/ry/jrjb.vue";//溶液-加热搅拌 +import Cs from "./StepComponents/ry/cs.vue";//溶液-超声 +import Sy from "./StepComponents/ry/sy.vue";//溶液-水浴 +import Dc from "./StepComponents/ry/dc.vue";//溶液-氮吹 @@ -67,6 +75,16 @@ const stepTypes = [ { label: '调节PH(传值)', value: 'tjphcz' }, { label: '调节PH(非传值)', value: 'tjphfcz' }, { label: '离心', value: 'lx' }, + { label: '恒温混匀', value: 'hwhy' }, + { label: '振摇混匀', value: 'zyhy' }, + { label: '涡旋混匀', value: 'wxhy' }, + { label: '颠倒混匀', value: 'ddhy' }, + { label: '研磨', value: 'ym' }, + { label: '搅拌', value: 'jb' }, + { label: '加热搅拌', value: 'jrjb' }, + { label: '超声', value: 'cs' }, + { label: '水浴', value: 'sy' }, + { label: '氮吹', value: 'dc' }, ]; @@ -107,6 +125,16 @@ export default { Tjphcz, Tjphfcz, Lx, + Hwhy, + Zyhy, + Wxhy, + Ddhy, + Ym, + Jb, + Jrjb, + Cs, + Sy, + Dc, }, computed: { stepComponentMap() { @@ -126,6 +154,16 @@ export default { 'tjphcz': 'Tjphcz', 'tjphfcz': 'Tjphfcz', 'lx': 'Lx', + 'hwhy': 'Hwhy', + 'zyhy': 'Zyhy', + 'wxhy': 'Wxhy', + 'ddhy': 'Ddhy', + 'ym': 'Ym', + 'jb': 'Jb', + 'jrjb': 'Jrjb', + 'sy': 'Sy', + 'cs': 'Cs', + 'dc': 'Dc', } } return this.componentMap diff --git a/src/components/Template/StepComponents/ry/bdtj.vue b/src/components/Template/StepComponents/ry/bdtj.vue index 69886ea..2c53c56 100644 --- a/src/components/Template/StepComponents/ry/bdtj.vue +++ b/src/components/Template/StepComponents/ry/bdtj.vue @@ -1,6 +1,6 @@ + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ry/czdd.vue b/src/components/Template/StepComponents/ry/czdd.vue index 92a190f..eeff93c 100644 --- a/src/components/Template/StepComponents/ry/czdd.vue +++ b/src/components/Template/StepComponents/ry/czdd.vue @@ -1,6 +1,6 @@ + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ry/ddhy.vue b/src/components/Template/StepComponents/ry/ddhy.vue new file mode 100644 index 0000000..1a8d496 --- /dev/null +++ b/src/components/Template/StepComponents/ry/ddhy.vue @@ -0,0 +1,50 @@ + + + + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ry/hwhy.vue b/src/components/Template/StepComponents/ry/hwhy.vue new file mode 100644 index 0000000..5eaa366 --- /dev/null +++ b/src/components/Template/StepComponents/ry/hwhy.vue @@ -0,0 +1,120 @@ + + + + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ry/jb.vue b/src/components/Template/StepComponents/ry/jb.vue new file mode 100644 index 0000000..1af9a33 --- /dev/null +++ b/src/components/Template/StepComponents/ry/jb.vue @@ -0,0 +1,82 @@ + + + + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ry/jrjb.vue b/src/components/Template/StepComponents/ry/jrjb.vue new file mode 100644 index 0000000..e8212b1 --- /dev/null +++ b/src/components/Template/StepComponents/ry/jrjb.vue @@ -0,0 +1,100 @@ + + + + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ry/jrry.vue b/src/components/Template/StepComponents/ry/jrry.vue index 291db60..57136e1 100644 --- a/src/components/Template/StepComponents/ry/jrry.vue +++ b/src/components/Template/StepComponents/ry/jrry.vue @@ -1,6 +1,6 @@ + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ry/tjphcz.vue b/src/components/Template/StepComponents/ry/tjphcz.vue index db74b52..402da1a 100644 --- a/src/components/Template/StepComponents/ry/tjphcz.vue +++ b/src/components/Template/StepComponents/ry/tjphcz.vue @@ -1,6 +1,6 @@ + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ry/xzrq.vue b/src/components/Template/StepComponents/ry/xzrq.vue index 1641544..5c1b1ac 100644 --- a/src/components/Template/StepComponents/ry/xzrq.vue +++ b/src/components/Template/StepComponents/ry/xzrq.vue @@ -1,6 +1,6 @@ + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ry/zyhy.vue b/src/components/Template/StepComponents/ry/zyhy.vue new file mode 100644 index 0000000..8574815 --- /dev/null +++ b/src/components/Template/StepComponents/ry/zyhy.vue @@ -0,0 +1,106 @@ + + + + + + \ No newline at end of file diff --git a/src/components/Template/mixins/stepMixins.js b/src/components/Template/mixins/stepMixins.js index 09194fb..9ba48da 100644 --- a/src/components/Template/mixins/stepMixins.js +++ b/src/components/Template/mixins/stepMixins.js @@ -17,5 +17,8 @@ export default { getDictOptions(dictType) { return this.dict.type[dictType] || [] }, + resetRecord() { + this.$refs.stepFormPackageRef.resetRecord(); + } }, } \ No newline at end of file diff --git a/src/components/Template/operation/TableOpertaion.vue b/src/components/Template/operation/TableOpertaion.vue index 1491a75..3e036cb 100644 --- a/src/components/Template/operation/TableOpertaion.vue +++ b/src/components/Template/operation/TableOpertaion.vue @@ -76,6 +76,18 @@ export default { }, // 配置完成 onConfigComplete() { + // const isComplete = Object.values(this.innerRow).every((val)=>{ + // // 0 算有值 + // if (val === 0) return true; + // if (val === "0") return true; + // // 其他情况:非 null、非 undefined、非空字符串 + // return val != null && val != undefined && val != ""; + // }); + // if(!isComplete){ + // this.$message.error("表单内容未填完,请填写完成后才能配制完成") + // return + // } + console.log(this.columns,"columns") this.$emit("configComplete", { rowData: this.innerRow, rowIndex: this.rowIndex, headerSelectFields: this.columns.headerSelectFields }) }, // 打印标签