|
|
@@ -103,8 +103,8 @@
|
|
103
|
103
|
<el-input
|
|
104
|
104
|
v-model="form.mainDrugName"
|
|
105
|
105
|
:placeholder="stdT('phMainDrug')"
|
|
106
|
|
- maxlength="20"
|
|
107
|
106
|
show-word-limit
|
|
|
107
|
+ maxlength="20"
|
|
108
|
108
|
@blur="touchCompanionsValidate"
|
|
109
|
109
|
/>
|
|
110
|
110
|
</el-form-item>
|
|
|
@@ -113,7 +113,7 @@
|
|
113
|
113
|
<el-input
|
|
114
|
114
|
v-model="form.compatResult"
|
|
115
|
115
|
:placeholder="stdT('phCompatResult')"
|
|
116
|
|
- maxlength="20"
|
|
|
116
|
+ maxlength="50"
|
|
117
|
117
|
show-word-limit
|
|
118
|
118
|
/>
|
|
119
|
119
|
</el-form-item>
|
|
|
@@ -228,9 +228,8 @@ export default {
|
|
228
|
228
|
return {
|
|
229
|
229
|
mainDrugName: [
|
|
230
|
230
|
{ required: true, message: this.stdT("ruleMainRequired"), trigger: "blur" },
|
|
231
|
|
- { min: 1, max: 20, message: this.stdT("ruleMainLen"), trigger: "blur" }
|
|
232
|
231
|
],
|
|
233
|
|
- compatResult: [{ max: 20, message: this.stdT("ruleCompatLen"), trigger: "blur" }],
|
|
|
232
|
+ compatResult: [{ max: 50, message: this.stdT("ruleCompatLen"), trigger: "blur" }],
|
|
234
|
233
|
companions: [{ validator: this.validateCompanionsField, trigger: ["change", "blur"] }]
|
|
235
|
234
|
}
|
|
236
|
235
|
}
|