chris 3 years ago
parent
commit
9d0d1acc8d

+ 1 - 0
src/views/modules/common/material-type-component.vue

@@ -111,6 +111,7 @@
         this.$emit('typeSelected', item)
       },
       checkItem (code) {
+        console.log('code = ' + code)
         if (!code || !this.options) return
         let i = this.options.findIndex(item => item.value === code)
         if (i > -1) return

+ 1 - 1
src/views/modules/warehouse/stock-order-inbound.vue

@@ -33,7 +33,7 @@
               <el-col :span="8" style="padding-left: 20px">
                 <el-form-item label="类别" prop="materialTypeId" :rules="{required: false, message: '类别不能为空', trigger: 'blur'}">
                   <el-input v-if="!item.buttonType || item.buttonType === '0'" v-model="item.categoryName" :disabled="true" style="width: 200px"></el-input>
-                  <material-type-component v-else v-model="item.materialTypeId" :type-id="item.materialTypeId"></material-type-component>
+                  <material-type-component v-else v-model="item.materialTypeId" :type-id.sync="item.materialTypeId"></material-type-component>
                 </el-form-item>
               </el-col>
               <el-col :span="8" style="padding-left: 20px">