|
|
@ -31,7 +31,7 @@ |
|
|
|
<view class=""> |
|
|
|
</view> |
|
|
|
<view class=" uni-flex uni-row"> |
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="autoCommit()">提交</button> |
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="submit()">提交</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -269,6 +269,10 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
submitJob() { |
|
|
|
uni.showLoading({ |
|
|
|
title: "提交中....", |
|
|
|
mask: true |
|
|
|
}); |
|
|
|
// var params = this.setParams() |
|
|
|
issueJobEopSubmit(this.detailSource).then(res => { |
|
|
|
uni.hideLoading() |
|
|
@ -372,6 +376,10 @@ |
|
|
|
afterScan() { |
|
|
|
// this.autoCommit() |
|
|
|
}, |
|
|
|
submit(){ |
|
|
|
//防止重复点击 |
|
|
|
this.$throttle(this.autoCommit, 2000, this)() |
|
|
|
}, |
|
|
|
async autoCommit(){ |
|
|
|
const array = this.detailSource.subList.filter(detail=>detail.scaned) |
|
|
|
if(array.length < this.detailSource.subList.length){ |
|
|
|