一键设置
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
<view class="zd-checkbox" :class="{'zd-checkbox_active': checkArrActive}" @tap="selectAll"></view>
|
||||
</view>
|
||||
<button class="confirm-button" :class="{'confirm-button_disabled': checkArr2.length === 0}" @tap="kuwConfirm">{{crType === 'IN' ? '入库' : '出库'}}</button>
|
||||
<button v-if="crType === 'IN'" class="confirm-button" @tap="onekeyUpdate">一键设置</button>
|
||||
<button v-if="crType === 'IN'" :class="{'confirm-button_disabled': checkArr2.length === 0}" class="confirm-button" @tap="onekeyUpdate">一键设置</button>
|
||||
<view class="zd-col-10">
|
||||
<!-- <view class="zd-col-12 zd-row jcflexend">
|
||||
<pagination :total="totalCount2" :page-size="queryParams2.pageSize" :current-page="currentPage2" @page-change="handlePageChange2" />
|
||||
@@ -572,9 +572,11 @@
|
||||
},
|
||||
// 一键设置
|
||||
onekeyUpdate () {
|
||||
this.type = '3'
|
||||
this.val3 = ''
|
||||
this.show = true
|
||||
if (this.checkArr2.length > 0) {
|
||||
this.type = '3'
|
||||
this.val3 = ''
|
||||
this.show = true
|
||||
}
|
||||
},
|
||||
async _updateBillDetail (e) {
|
||||
try {
|
||||
@@ -584,6 +586,11 @@
|
||||
title: res.desc,
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.desc,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
this.disabled2 = false
|
||||
} catch (e) {
|
||||
@@ -604,10 +611,12 @@
|
||||
}
|
||||
let arr = []
|
||||
this.dataList2.map(e => {
|
||||
e.kwbm = this.val3
|
||||
let {djid, flid, kwbm} = {...e}
|
||||
let obj = {djid, flid, kwbm}
|
||||
arr.push(obj)
|
||||
if (e.checked) {
|
||||
e.kwbm = this.val3
|
||||
let {djid, flid, kwbm} = {...e}
|
||||
let obj = {djid, flid, kwbm}
|
||||
arr.push(obj)
|
||||
}
|
||||
})
|
||||
this.show = false
|
||||
this._updateBillDetail(arr)
|
||||
|
||||
Reference in New Issue
Block a user