|
|
@@ -1,6 +1,13 @@
|
|
|
<template>
|
|
|
<div class="publish_seek_mobile">
|
|
|
<div class="publish-seek">
|
|
|
+ <div class="content-line">
|
|
|
+ <span><i>*</i>型号:</span>
|
|
|
+ <input type="text" v-model="applyObj.code" @blur="checkCode" @input="onCodeChange" placeholder="请勿填中文符号">
|
|
|
+ <ul class="similar" v-show="showSimilarCodeList && applyObj.code">
|
|
|
+ <li v-for="sCode in similarCode" @click.stop="setCode(sCode.code)">{{sCode.code}}</li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
<div class="content-line">
|
|
|
<span><i>*</i>品牌:</span>
|
|
|
<input type="text" v-model="applyObj.brand" @blur="checkBrand" @input="onBrandChange" placeholder="请勿填中文符号">
|
|
|
@@ -12,13 +19,6 @@
|
|
|
<span><i>*</i>物料名称:</span>
|
|
|
<input type="text" v-model="applyObj.prodTitle" @blur="checkProdTitle" @input="onProdTitleInput">
|
|
|
</div>
|
|
|
- <div class="content-line">
|
|
|
- <span><i>*</i>型号:</span>
|
|
|
- <input type="text" v-model="applyObj.code" @blur="checkCode" @input="onCodeChange" placeholder="请勿填中文符号">
|
|
|
- <ul class="similar" v-show="showSimilarCodeList && applyObj.code">
|
|
|
- <li v-for="sCode in similarCode" @click.stop="setCode(sCode.code)">{{sCode.code}}</li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
<div class="content-line">
|
|
|
<span>规格:</span>
|
|
|
<input type="text" v-model="applyObj.spec" @blur="checkSpec" @input="onSpecInput">
|
|
|
@@ -210,9 +210,9 @@
|
|
|
},
|
|
|
checkAll: function () {
|
|
|
if (this.isNumberReg) {
|
|
|
- return this.checkBrand() && this.checkProdTitle() && this.checkCode() && this.checkDeadline() && this.checkSpec()
|
|
|
+ return this.checkCode() && this.checkBrand() && this.checkProdTitle() && this.checkDeadline() && this.checkSpec()
|
|
|
} else {
|
|
|
- return this.checkBrand() && this.checkProdTitle() && this.checkCode() && this.checkDeadline() && this.checkSpec() && this.checkAmount()
|
|
|
+ return this.checkCode() && this.checkBrand() && this.checkProdTitle() && this.checkDeadline() && this.checkSpec() && this.checkAmount()
|
|
|
}
|
|
|
},
|
|
|
checkCode: function () {
|