废箔下卷
This commit is contained in:
@@ -81,6 +81,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !index1 || checkArr.length > 0}" :disabled="disabled3" @tap="_disuseConfirm">废箔下卷</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !index1 || !checkArr.length}" :disabled="disabled1" @tap="_outConfirm">子卷出站</button>
|
||||
<button class="submit-button" @tap="showModal">出站配送</button>
|
||||
<button class="submit-button" @tap="_queryMaterialInfo">查询</button>
|
||||
@@ -113,7 +114,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {devicePointQuery, queryProductArea, queryDeviceByarea, queryMaterialInfo4, outConfirm, conveyPointQuery, conveyConfirm} from '@/utils/getData2.js'
|
||||
import {devicePointQuery, queryProductArea, queryDeviceByarea, queryMaterialInfo4, outConfirm, conveyPointQuery, conveyConfirm, disuseConfirm} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -135,6 +136,7 @@
|
||||
dataList: [],
|
||||
disabled1: false,
|
||||
disabled2: false,
|
||||
disabled3: false,
|
||||
checkArr: [],
|
||||
active: false
|
||||
};
|
||||
@@ -228,6 +230,34 @@
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 废箔下卷 */
|
||||
async _disuseConfirm () {
|
||||
this.disabled3 = true
|
||||
if (!this.index1) {
|
||||
uni.showToast({
|
||||
title: '点位不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled3 = false
|
||||
return
|
||||
}
|
||||
if (this.checkArr.length > 0) {
|
||||
this.disabled3 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await disuseConfirm(this.index1)
|
||||
this.disabled3 = false
|
||||
this.checkArr = []
|
||||
this._queryMaterialInfo()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled3 = false
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
e.checked = !e.checked
|
||||
this.checkArr = this.dataList.filter(i => { return i.checked === true })
|
||||
|
||||
Reference in New Issue
Block a user