废箔下卷

This commit is contained in:
2023-02-21 14:58:33 +08:00
parent 15bdbd6257
commit f6f615e69b
2 changed files with 38 additions and 1 deletions

View File

@@ -81,6 +81,7 @@
</view> </view>
</view> </view>
<view class="submit-bar"> <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" :class="{'btn-disabled': !index1 || !checkArr.length}" :disabled="disabled1" @tap="_outConfirm">子卷出站</button>
<button class="submit-button" @tap="showModal">出站配送</button> <button class="submit-button" @tap="showModal">出站配送</button>
<button class="submit-button" @tap="_queryMaterialInfo">查询</button> <button class="submit-button" @tap="_queryMaterialInfo">查询</button>
@@ -113,7 +114,7 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.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 { export default {
components: { components: {
NavBar, NavBar,
@@ -135,6 +136,7 @@
dataList: [], dataList: [],
disabled1: false, disabled1: false,
disabled2: false, disabled2: false,
disabled3: false,
checkArr: [], checkArr: [],
active: false active: false
}; };
@@ -228,6 +230,34 @@
this.disabled1 = false 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) { toCheck (e) {
e.checked = !e.checked e.checked = !e.checked
this.checkArr = this.dataList.filter(i => { return i.checked === true }) this.checkArr = this.dataList.filter(i => { return i.checked === true })

View File

@@ -294,6 +294,13 @@ export const conveyConfirm = (code) => request({
point_code: code point_code: code
} }
}) })
// 1.5废箔下卷
export const disuseConfirm = (code) => request({
url:'api/pda/out/disuseConfirm',
data: {
point_code: code
}
})
/** /**
* 半成品入库 * 半成品入库