From c8342c83c638a13fc67d151b6db7a346c30f7c4b Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Thu, 26 Feb 2026 16:59:03 +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/BaseInfoFormPackage.vue | 305 ++++++++++++--------- src/components/Template/SelectTable.vue | 2 +- .../business/comps/template/comps/yp/YP002.vue | 9 +- .../template/dialog/SelectMixReagentDialog.vue | 9 +- .../comps/template/formConfig/formConfig.js | 13 +- 5 files changed, 200 insertions(+), 138 deletions(-) diff --git a/src/components/Template/BaseInfoFormPackage.vue b/src/components/Template/BaseInfoFormPackage.vue index 8f36a41..2598ff2 100644 --- a/src/components/Template/BaseInfoFormPackage.vue +++ b/src/components/Template/BaseInfoFormPackage.vue @@ -7,15 +7,16 @@
@@ -299,7 +324,7 @@ export default { default: "", }, //循环组件的情况下需要用这个来区分字段 - prefixKey:{ + prefixKey: { type: String, default: "", } @@ -317,7 +342,18 @@ export default { }, methods: { onBeforeReagentSubmit(data, callback, key) { - this.$emit('beforeReagentSubmit',{selectData:data, callback, key,formFields:this.formFields}) + this.$emit('beforeReagentSubmit', { selectData: data, callback, key, formFields: this.formFields }) + }, + // 点击按钮 + handleClickButton(e, item) { + this.$emit("clickButton", e, item) + }, + // 获取按钮项 + getButtonItem(sItem) { + return { + ...sItem, + fillType: sItem.subFillType || sItem.fillType + } }, } } @@ -329,7 +365,7 @@ export default { grid-template-columns: repeat(2, 1fr); /* 默认2列 */ gap: 0 20px; - /* 防止网格容器被分割到不同页面 */ + /* 防止网格容器被分割到不同页面 */ page-break-inside: avoid; break-inside: avoid; } @@ -456,23 +492,28 @@ export default { .ml-10 { margin-left: 10px; } -.item-span{ + +.item-span { color: #606266; font-size: 14px; } -.item-center{ + +.item-center { display: flex; align-items: center; } -.ml-5{ + +.ml-5 { margin-left: 5px; } -.sub-text{ + +.sub-text { color: #606266; font-size: 14px; margin-left: 5px; } -.mr-20{ + +.mr-20 { margin-right: 20px; } \ No newline at end of file diff --git a/src/components/Template/SelectTable.vue b/src/components/Template/SelectTable.vue index 105b1b3..2ec60b9 100644 --- a/src/components/Template/SelectTable.vue +++ b/src/components/Template/SelectTable.vue @@ -20,7 +20,7 @@ - +
diff --git a/src/views/business/comps/template/comps/yp/YP002.vue b/src/views/business/comps/template/comps/yp/YP002.vue index 876f8dc..3c88ec2 100644 --- a/src/views/business/comps/template/comps/yp/YP002.vue +++ b/src/views/business/comps/template/comps/yp/YP002.vue @@ -15,6 +15,7 @@ /> { } } // 前序表单列表表格列 -export const getQxbdColumns = () => { +export const getQxbdColumns = ($this) => { + const locale = $this.$i18n.locale; + const configObj = { + "zh_CN":{5:'已填写',6:'未填写'}, + "en_US":{5:'Filled',6:'Unfilled'}, + } + const o = configObj[locale]; return [ { prop: 'bdbh', @@ -223,7 +229,10 @@ export const getQxbdColumns = () => { }, { prop: 'bdzt', - label: 'template.yp.yp002.bdzt' + label: 'template.yp.yp002.bdzt', + formatter: (row) => { + return o[row.bdzt] + } } ] }