浏览代码

写死生产类型

yusheng 1 年之前
父节点
当前提交
526efbfefb

+ 15 - 3
src/enum/dict.js

@@ -67,9 +67,9 @@ export default {
   架构分类: 'archit_type',
   业务模块: 'business_module',
   事项类型: 'matter_type',
-  贮藏:'layBy',
-  执行标准:'enforceStandards',
-  产地:'purchase_origin'
+  贮藏: 'layBy',
+  执行标准: 'enforceStandards',
+  产地: 'purchase_origin'
 };
 
 export const numberList = [
@@ -207,3 +207,15 @@ export const fineRule = [
   //   reg: '[A-Z0-9]'
   // }
 ];
+
+//
+export const produceTypeList = [
+  {
+    label: '加工',
+    value: 1
+  },
+  {
+    label: '装配',
+    value: 3
+  }
+];

+ 3 - 1
src/views/material/BOMmanage/components/attribute.vue

@@ -135,7 +135,7 @@
               class="ele-block"
             >
               <el-option
-                v-for="item in dictList"
+                v-for="item in produceTypeList"
                 :key="item.value"
                 :value="item.value"
                 :label="item.label"
@@ -302,12 +302,14 @@
 <script>
   import { getByCode } from '@/api/system/dictionary-data';
   import { bomCategoryUpdate } from '@/api/material/BOM';
+  import { produceTypeList } from '@/enum/dict.js';
 
   export default {
     components: {},
 
     data() {
       return {
+        produceTypeList,
         form: {},
         category: {
           name: ''

+ 3 - 1
src/views/material/BOMmanage/components/detailedList.vue

@@ -44,7 +44,7 @@
       <template v-slot:produceType="{ row }">
 
         <el-select v-model="row.produceType" filterable multiple disabled class="ele-block" size="mini">
-          <el-option v-for="item in dictList" :key="item.value" :value="item.value" :label="item.label"></el-option>
+          <el-option v-for="item in produceTypeList" :key="item.value" :value="item.value" :label="item.label"></el-option>
         </el-select>
       </template>
 
@@ -143,6 +143,7 @@ import clientDialog from "./clientDialog.vue"
 import { getByCode } from '@/api/system/dictionary-data';
 
 import bomTreeDialog from './bomTreeDialog.vue';
+import { produceTypeList } from '@/enum/dict.js';
 
 import standardOutput from './standardOutput.vue';
 export default {
@@ -151,6 +152,7 @@ export default {
 
   data() {
     return {
+      produceTypeList,
       pagination: {
         tableTotal: 0
       },

+ 3 - 1
src/views/material/BOMmanage/index.vue

@@ -54,7 +54,7 @@
 
           <template v-slot:produceType="{ row }">
             <el-select v-model="row.produceType" filterable multiple disabled class="ele-block" size="mini">
-            <el-option v-for="item in dictList" :key="item.value" :value="item.value" :label="item.label"></el-option>
+            <el-option v-for="item in produceTypeList" :key="item.value" :value="item.value" :label="item.label"></el-option>
             </el-select>
           </template>
 
@@ -94,6 +94,7 @@
 
 <script>
 import tabMixins from '@/mixins/tableColumnsMixin';
+import { produceTypeList } from '@/enum/dict.js';
 
 import BOMSearch from './components/BOM-search.vue';
 import {
@@ -113,6 +114,7 @@ export default {
   mixins: [tabMixins],
   data() {
     return {
+      produceTypeList,
       // 表格列配置
       columns: [
         {

+ 1 - 11
src/views/material/product/components/index-data.vue

@@ -289,7 +289,7 @@
   import { fieldModel } from '@/api/codeManagement';
   import DialogMoveTo from './DialogMoveTo.vue';
   import tabMixins from '@/mixins/tableColumnsMixin';
-
+  import { produceTypeList } from '@/enum/dict.js';
   const attributeList = [
     {
       label: '总装',
@@ -330,17 +330,7 @@
       value: 5
     }
   ];
-  const produceTypeList = [
-    {
-      label: '加工',
-      value: 1
-    },
 
-    {
-      label: '装配',
-      value: 3
-    }
-  ];
   export default {
     mixins: [dictMixins, tabMixins],
 

+ 3 - 1
src/views/material/product/detail.vue

@@ -60,7 +60,7 @@
                         }"
               >
                 <el-select style="width: 100%" v-model="form.produceType" filterable @change="produceTypeChange">
-                  <el-option v-for="item in dictList" :key="item.value" :value="item.value"
+                  <el-option v-for="item in produceTypeList" :key="item.value" :value="item.value"
                     :label="item.label"></el-option>
                 </el-select>
               </el-form-item>
@@ -271,6 +271,7 @@ import { getCode, rootCategoryCode, fieldModel, checkExist } from '@/api/codeMan
 import { addMaterial } from '@/api/material/list.js';
 import { deepClone } from '@/utils/index';
 import { finishPageTab, reloadPageTab } from '@/utils/page-tab-util';
+import { produceTypeList } from '@/enum/dict.js';
 
 export default {
   name: 'product',
@@ -297,6 +298,7 @@ export default {
   data() {
     return {
       isShow: true,
+      produceTypeList,
       packagingSpecificationList: [],
       loading: false,
       measureTypeList: [

+ 2 - 1
src/views/rulesManagement/matterRules/components/bomDetailList.vue

@@ -49,7 +49,7 @@
               size="mini"
             >
               <el-option
-                v-for="item in dictList"
+                v-for="item in produceTypeList"
                 :key="item.value"
                 :value="item.value"
                 :label="item.label"
@@ -118,6 +118,7 @@
     updateBatchBOM
   } from '@/api/material/BOM';
   import { getByCode } from '@/api/system/dictionary-data';
+  import { produceTypeList } from '@/enum/dict.js';
 
   export default {
     name: 'bomDetailList',