695593266@qq.com 11 ay önce
ebeveyn
işleme
0f8a98c636
1 değiştirilmiş dosya ile 8 ekleme ve 8 silme
  1. 8 8
      src/views/material/product/detail.vue

+ 8 - 8
src/views/material/product/detail.vue

@@ -45,13 +45,13 @@
 
           <el-col :span="8">
             <el-form-item label="存货类型:" prop="attributeType">
-              <DictSelection
+              <!-- <DictSelection
                 dictName="存货类型"
                 clearable
                 v-model="form.attributeType"
               >
-              </DictSelection>
-              <!-- <el-select
+              </DictSelection> -->
+              <el-select
                 v-model="form.attributeType"
                 filterable
                 class="ele-block"
@@ -62,7 +62,7 @@
                   :value="item.value"
                   :label="item.label"
                 ></el-option>
-              </el-select> -->
+              </el-select>
             </el-form-item>
           </el-col>
 
@@ -520,7 +520,7 @@
           isEnabled: 1,
           measuringUnit: '',
           netWeight: '',
-          attributeType: '',
+          attributeType: 1,
           weightUnit: '',
           packingUnit: '',
 
@@ -640,10 +640,10 @@
 
             let arrId = '';
             if (lyType == 'wp') {
-              arrId = '3';
+              arrId = 3;
             }
             if (lyType == 'cp') {
-              arrId = '1';
+              arrId = 1;
             }
 
             this.form = {
@@ -1056,7 +1056,7 @@
 
         let list = res.data.map((item) => {
           let key = Object.keys(item)[0];
-          return { value: key, label: item[key] };
+          return { value: Number(key), label: item[key] };
         });
         this.attributeList = list;