Z 1 سال پیش
والد
کامیت
474a07ed56

+ 3 - 2
src/enum/dict.js

@@ -56,8 +56,9 @@ export default {
   质检类型: 'inspection_type',
   不良品处理类型: 'unqualified_products_type',
   质检计划类型: 'inspection_plan_type',
-  预警类型: 'warning_type'
-
+  预警类型: 'warning_type',
+  包装强度: 'packagingStrength',
+  包装密度: 'packagingDensity'
 };
 
 export const numberList = [

+ 1 - 1
src/views/material/product/components/ProductionInfo.vue

@@ -41,7 +41,7 @@
           </el-form-item>
         </el-col>
         <el-col :span="8">
-          <el-form-item label="生产周期" prop="productionDays">
+          <el-form-item label="生产周期">
             <el-input style="width: 100%" type="number" v-model="form.productionDays">
               <span slot="append">天</span>
             </el-input>

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

@@ -334,7 +334,7 @@
             align: 'center',
             showOverflowTooltip: true
           },
-     
+
         ],
 
         newColumns: [],
@@ -420,7 +420,7 @@
       },
 
       getFieldModel() {
-        fieldModel({ fieldModel: 't_main_category' }).then((res) => {
+        fieldModel({ relevance: 't_main_category' }).then((res) => {
           const privateColumn = [
           {
             columnKey: 'action',

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

@@ -193,21 +193,6 @@
             <el-form-item :label="f.label">
               <template>
                 <div class="form-line">
-                  <!--                  <div-->
-                  <!--                    style="width: 100%"-->
-                  <!--                    v-if="f.prop === 'packingSpecification'"-->
-                  <!--                  >-->
-                  <!--                    <template v-if="form.extField.packingSpecification">-->
-                  <!--                      <el-tag-->
-                  <!--                        v-for="item in form.extField.packingSpecification.split(-->
-                  <!--                          ','-->
-                  <!--                        )"-->
-                  <!--                        >{{ item }}</el-tag-->
-                  <!--                      >-->
-                  <!--                    </template>-->
-                  <!--                    <el-input v-else disabled v-model="form.extField[f.prop]" />-->
-                  <!--                  </div>-->
-                  <!--                  <[f.tagType] v-model="form.extField[f.prop]" />-->
                   <component :is="f.tagType" v-model="form.extField[f.prop]" :disabled="f.extAttribute?.disabled"
                              clearable :isProhibit="f.modelType=='dict'?f.extAttribute?.disabled:false"
                              :dictName="f.modelType=='dict'?f.label:''"></component>
@@ -489,7 +474,7 @@ export default {
     },
 
     getFieldModel() {
-      fieldModel({fieldModel: 't_main_category'}).then((res) => {
+      fieldModel({relevance: 't_main_category'}).then((res) => {
         this.fileList = res;
 
         this.fileList.forEach((f) => {