From f6a575c99513f6e9c17360f8f73d70138e6d06e7 Mon Sep 17 00:00:00 2001 From: zhangyanan Date: Mon, 10 Nov 2025 10:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/scrproduction/addForm.vue | 23 ++++++++++++++++------- src/views/main/scrproduction/editForm.vue | 13 +++++++++++-- src/views/main/scrproduction/index.vue | 15 ++++++++++++--- 3 files changed, 39 insertions(+), 12 deletions(-) diff --git a/src/views/main/scrproduction/addForm.vue b/src/views/main/scrproduction/addForm.vue index effd6c8..6c1fbc3 100644 --- a/src/views/main/scrproduction/addForm.vue +++ b/src/views/main/scrproduction/addForm.vue @@ -23,7 +23,9 @@ :wrapperCol="wrapperCol" has-feedback > - + + {{ item.name }} + - + + {{ item.name }} + - + - + - + - + - + @@ -110,6 +114,8 @@ productionDayDateString: '', visible: false, confirmLoading: false, + furnaceNumberData: [], + productData: [], form: this.$form.createForm(this) } }, @@ -117,6 +123,9 @@ // 初始化方法 add (record) { this.visible = true + const nameOption = this.$options + this.furnaceNumberData = nameOption.filters['dictData']('furnaceNumber') + this.productData = nameOption.filters[ 'dictData' ]('productcode') }, /** * 提交表单 diff --git a/src/views/main/scrproduction/editForm.vue b/src/views/main/scrproduction/editForm.vue index 67f983a..c49f2a0 100644 --- a/src/views/main/scrproduction/editForm.vue +++ b/src/views/main/scrproduction/editForm.vue @@ -24,7 +24,9 @@ :wrapperCol="wrapperCol" has-feedback > - + + {{ item.name }} + - + + {{ item.name }} + { this.form.setFieldsValue( { diff --git a/src/views/main/scrproduction/index.vue b/src/views/main/scrproduction/index.vue index 0fe8f99..d8b851a 100644 --- a/src/views/main/scrproduction/index.vue +++ b/src/views/main/scrproduction/index.vue @@ -11,13 +11,17 @@ - + + {{ item.name }} + @@ -155,10 +159,15 @@ selectedRowKeys: this.selectedRowKeys, onChange: this.onSelectChange } - } + }, + furnaceNumberData: [], + productData: [] } }, created () { + const nameOption = this.$options + this.furnaceNumberData = nameOption.filters['dictData']('furnaceNumber') + this.productData = nameOption.filters['dictData']('productcode') if (this.hasPerm('scrProduction:edit') || this.hasPerm('scrProduction:delete')) { this.columns.push({ title: '操作',