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 }}
+
-
+
+ {{ 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: '操作',