1 <input @keyup="toUppercase(boJobtransportorder,'vesselVoyage')" v-model="boJobtransportorder.vesselVoyage" type="text" class="form-control input-sm" placeholder="Vessel/Voyage" value=""></div>
你在input框输入英文,它会自动转为大写
//把对象指定的属性值转换为大写
toUppercase: function (o, parName) {
if (o && o[parName]) {
o[parName] = o[parName].toUpperCase();
}
},