校验
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="search-item_2 flexend">
|
<div class="search-item_2 flexend">
|
||||||
<button class="button button--primary" @click="toAddBillMater">添加单据物料</button>
|
<button class="button button--primary" @click="toAddBillMater">添加单据物料</button>
|
||||||
<button class="button button--primary" :disabled="disabled2" :class="{'button--defalut': this.value1 === '' || this.value2 === '' || this.value3 === '' || this.remark === '' || this.dataList === []}" @click="showDialog">确认入库</button>
|
<button class="button button--primary" :disabled="disabled2" :class="{'button--defalut': this.value1 === '' || this.value2 === '' || this.value3 === '' || this.dataList === []}" @click="showDialog">确认入库</button>
|
||||||
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" @click="delRow">删除一行</button>
|
<button class="button button--primary" :class="{'button--defalut': pkId === ''}" @click="delRow">删除一行</button>
|
||||||
<button class="button button--primary" @click="toSearch">作业查询</button>
|
<button class="button button--primary" @click="toSearch">作业查询</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -142,7 +142,7 @@ export default {
|
|||||||
this.toSure()
|
this.toSure()
|
||||||
},
|
},
|
||||||
showDialog () {
|
showDialog () {
|
||||||
if (this.value1 === '' || this.value2 === '' || this.value3 === '' || this.remark === '' || this.dataList === []) {
|
if (this.value1 === '' || this.value2 === '' || this.value3 === '' || this.dataList === []) {
|
||||||
// this.toast('请填写完整')
|
// this.toast('请填写完整')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -167,7 +167,7 @@ export default {
|
|||||||
async toSure () {
|
async toSure () {
|
||||||
this.$refs.child.disabled = true
|
this.$refs.child.disabled = true
|
||||||
this.disabled2 = true
|
this.disabled2 = true
|
||||||
if (this.value1 === '' || this.value2 === '' || this.value3 === '' || this.remark === '' || this.dataList === []) {
|
if (this.value1 === '' || this.value2 === '' || this.value3 === '' || this.dataList === []) {
|
||||||
this.disabled2 = false
|
this.disabled2 = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user