出入库限制条件修改
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
<button class="confirm-button" @tap="toSearch">查询</button>
|
<button class="confirm-button" @tap="toSearch">查询</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-11 zd-row jcflexend">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -280,18 +281,22 @@
|
|||||||
e.checked = !e.checked
|
e.checked = !e.checked
|
||||||
let arr = this.dataList1.filter(el => el.checked === true)
|
let arr = this.dataList1.filter(el => el.checked === true)
|
||||||
this.checkArr1 = arr.map(el => {return el.djid})
|
this.checkArr1 = arr.map(el => {return el.djid})
|
||||||
if (arr.length === 1) {
|
// if (arr.length === 1) {
|
||||||
this.btnActive1 = arr[0].djzt === '提交' ? true : false
|
// this.btnActive1 = arr[0].djzt === '提交' ? true : false
|
||||||
} else {
|
// } else {
|
||||||
this.btnActive1 = false
|
// this.btnActive1 = false
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
async toSure () {
|
async toSure () {
|
||||||
this.disabled1 = true
|
this.disabled1 = true
|
||||||
if (this.checkArr1.length === 0 || this.btnActive1) {
|
// if (this.checkArr1.length === 0 || this.btnActive1) {
|
||||||
this.disabled1 = false
|
// this.disabled1 = false
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
|
if (this.checkArr1.length === 0) {
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
let res = await easOutInBillUpdate(this.checkArr1)
|
let res = await easOutInBillUpdate(this.checkArr1)
|
||||||
if (res.code === 1) {
|
if (res.code === 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user