出入库限制条件修改

This commit is contained in:
2024-04-25 17:34:44 +08:00
parent d91714fc27
commit da4c27fa95

View File

@@ -10,7 +10,8 @@
<button class="confirm-button" @tap="toSearch">查询</button>
</view>
<view class="zd-col-11 zd-row jcflexend">
<button class="confirm-button" :class="{'confirm-button_disabled': checkArr1.length === 0 || btnActive1}" :disabled="disabled1" @tap="toSure">单据审核</button>
<!-- <button class="confirm-button" :class="{'confirm-button_disabled': checkArr1.length === 0 || btnActive1}" :disabled="disabled1" @tap="toSure">单据审核</button> -->
<button class="confirm-button" :class="{'confirm-button_disabled': checkArr1.length === 0}" :disabled="disabled1" @tap="toSure">单据审核</button>
</view>
</view>
</view>
@@ -280,18 +281,22 @@
e.checked = !e.checked
let arr = this.dataList1.filter(el => el.checked === true)
this.checkArr1 = arr.map(el => {return el.djid})
if (arr.length === 1) {
this.btnActive1 = arr[0].djzt === '提交' ? true : false
} else {
this.btnActive1 = false
}
// if (arr.length === 1) {
// this.btnActive1 = arr[0].djzt === '提交' ? true : false
// } else {
// this.btnActive1 = false
// }
},
async toSure () {
this.disabled1 = true
if (this.checkArr1.length === 0 || this.btnActive1) {
this.disabled1 = false
return
}
// if (this.checkArr1.length === 0 || this.btnActive1) {
// this.disabled1 = false
// return
// }
if (this.checkArr1.length === 0) {
this.disabled1 = false
return
}
try {
let res = await easOutInBillUpdate(this.checkArr1)
if (res.code === 1) {