This commit is contained in:
2023-07-04 18:23:24 +08:00
parent ad28a80e82
commit b731f416ae

View File

@@ -49,7 +49,7 @@
</div>
<div class="search-item_2 flexend">
<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" @click="toSearch">作业查询</button>
</div>
@@ -142,7 +142,7 @@ export default {
this.toSure()
},
showDialog () {
if (this.value1 === '' || this.value2 === '' || this.value3 === '' || this.remark === '' || this.dataList === []) {
if (this.value1 === '' || this.value2 === '' || this.value3 === '' || this.dataList === []) {
// this.toast('请填写完整')
return
}
@@ -167,7 +167,7 @@ export default {
async toSure () {
this.$refs.child.disabled = 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
return
}