|
@@ -19,7 +19,7 @@
|
|
|
<span>
|
|
<span>
|
|
|
<i>*</i>型号:
|
|
<i>*</i>型号:
|
|
|
</span>
|
|
</span>
|
|
|
- <input type="text" class="form-control" :class="{'error': !validObj.code}" v-model="applyObj.code" @blur="checkCode" @input="onCodeChange" />
|
|
|
|
|
|
|
+ <input type="text" class="form-control" :class="{'error': !validObj.code}" v-model="applyObj.code" @blur="checkCode" @input="onCodeChange" placeholder="请勿填中文符号"/>
|
|
|
<ul v-show="showSimilarCodeList">
|
|
<ul v-show="showSimilarCodeList">
|
|
|
<li v-for="sCode in similarCode" @click="setCode(sCode.code)">{{sCode.code}}</li>
|
|
<li v-for="sCode in similarCode" @click="setCode(sCode.code)">{{sCode.code}}</li>
|
|
|
</ul>
|
|
</ul>
|
|
@@ -28,7 +28,7 @@
|
|
|
<span>
|
|
<span>
|
|
|
<i>*</i>品牌:
|
|
<i>*</i>品牌:
|
|
|
</span>
|
|
</span>
|
|
|
- <input type="text" class="form-control" :class="{'error': !validObj.brand}" v-model="applyObj.brand" @blur="checkBrand" @input="onBrandChange" />
|
|
|
|
|
|
|
+ <input type="text" class="form-control" :class="{'error': !validObj.brand}" v-model="applyObj.brand" @blur="checkBrand" @input="onBrandChange" placeholder="请勿填中文符号" />
|
|
|
<ul class="brand-similar-list" v-show="showSimilarBrandList">
|
|
<ul class="brand-similar-list" v-show="showSimilarBrandList">
|
|
|
<li v-for="sBrand in similarBrand" @click="setBrand(sBrand.nameEn)">{{sBrand.nameEn}}</li>
|
|
<li v-for="sBrand in similarBrand" @click="setBrand(sBrand.nameEn)">{{sBrand.nameEn}}</li>
|
|
|
</ul>
|
|
</ul>
|
|
@@ -270,10 +270,16 @@
|
|
|
},
|
|
},
|
|
|
checkCode: function () {
|
|
checkCode: function () {
|
|
|
this.validObj.code = this.applyObj.code && this.applyObj.code !== ''
|
|
this.validObj.code = this.applyObj.code && this.applyObj.code !== ''
|
|
|
|
|
+ if (!this.validObj.code) {
|
|
|
|
|
+ this.$message.error('型号不能为空')
|
|
|
|
|
+ }
|
|
|
return this.validObj.code
|
|
return this.validObj.code
|
|
|
},
|
|
},
|
|
|
checkBrand: function () {
|
|
checkBrand: function () {
|
|
|
this.validObj.brand = this.applyObj.brand && this.applyObj.brand !== ''
|
|
this.validObj.brand = this.applyObj.brand && this.applyObj.brand !== ''
|
|
|
|
|
+ if (!this.validObj.brand) {
|
|
|
|
|
+ this.$message.error('品牌不能为空')
|
|
|
|
|
+ }
|
|
|
return this.validObj.brand
|
|
return this.validObj.brand
|
|
|
},
|
|
},
|
|
|
checkUnitPrice: function () {
|
|
checkUnitPrice: function () {
|
|
@@ -522,6 +528,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
input {
|
|
input {
|
|
|
|
|
+ font-size: 12px;
|
|
|
width: 111px;
|
|
width: 111px;
|
|
|
height: 20px;
|
|
height: 20px;
|
|
|
line-height: 20px;
|
|
line-height: 20px;
|