|
@@ -112,7 +112,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div class="md-content" :key="basicData.value.id">
|
|
|
<el-form :inline="true" label-position="right" :model="basicData.value">
|
|
@@ -240,8 +240,9 @@
|
|
|
<el-input size="mini"
|
|
|
v-model="basicData.value[f.prop]"
|
|
|
:type="f.attribute || 'text'"
|
|
|
- :readonly="handleJudge(f)">
|
|
|
- </el-input>
|
|
|
+ :readonly="handleJudge(f)"
|
|
|
+ :maxlength="judgeMaxLength(f.prop)"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
</template>
|
|
@@ -881,6 +882,13 @@
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ judgeMaxLength(prop){
|
|
|
+ // 规格
|
|
|
+ if(prop === 'specification'){
|
|
|
+ return 150;
|
|
|
+ }
|
|
|
+ return Infinity;
|
|
|
+ },
|
|
|
// 判断效期管理
|
|
|
handleJudge(attribute) {
|
|
|
// 维护新版本才能修改:批号及库存状态管理(isInventoryStatus)、
|