软废入库组盘 软废等级

This commit is contained in:
2023-12-11 17:37:21 +08:00
parent 96cc60fa9b
commit f037c313fe
2 changed files with 62 additions and 6 deletions

View File

@@ -120,13 +120,14 @@ export const getBillDtl = (page, size) => post('api/pda/st/in/getBillDtl', {
size: size size: size
}) })
// 1.4 确认组盘 // 1.4 确认组盘
export const confirmVehicle = (option, vehicle, rows, point, bill) => post('api/pda/st/in/confirmVehicle', { export const confirmVehicle = (option, vehicle, rows, point, bill, level) => post('api/pda/st/in/confirmVehicle', {
accountId: accountId, accountId: accountId,
option: option, option: option,
vehicle: vehicle, vehicle: vehicle,
bucket_rows: rows, bucket_rows: rows,
point: point, point: point,
bill: bill bill: bill,
ivt_level: level
}) })
/** 工序返工入库 */ /** 工序返工入库 */
// 1.1查询站点 // 1.1查询站点
@@ -182,6 +183,15 @@ export const getRecBillDtl = (page, size, mater, code) => post('api/pda/st/in/ge
material_search: mater, material_search: mater,
bill_code: code bill_code: code
}) })
// 1.9 获取软废等级下拉框(进页面查询)
export const inIetIvtLevel = () => post('api/pda/st/in/getIvtLevel', {})
// export const inIetIvtLevel = () => {
// let res = {
// code: '1',
// ivtLevel: [{value: 'r0', label: 'a'}, {value: 'b1', label: 'b'}]
// }
// return res
// }
/** 设备查询 */ /** 设备查询 */
// 1.2查询工序下拉框 // 1.2查询工序下拉框

View File

@@ -31,6 +31,18 @@
v-model="val3" v-model="val3"
@handleChange="handleChange3" @handleChange="handleChange3"
></search-box> ></search-box>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">软废等级</div>
<div class="fxcol mgl20 visible" >
<dropdown-menu
:option="option1"
:active="active1"
:open="open1"
@toggleItem="toggleItem1"
@dropdownMenu="dropdownMenu1">
</dropdown-menu>
</div>
</div>
</div> </div>
<div class="grid-wraper"> <div class="grid-wraper">
<div class="left_fixed"> <div class="left_fixed">
@@ -82,13 +94,15 @@
<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 {checkVehicle, checkBucket, confirmVehicle} from '@config/getData2.js' import DropdownMenu from '@components/DropdownMenu.vue'
import {checkVehicle, checkBucket, confirmVehicle, inIetIvtLevel} from '@config/getData2.js'
import {accAdd} from '@config/mUtils.js' import {accAdd} from '@config/mUtils.js'
export default { export default {
name: 'SoftWasteInStoreGroup', name: 'SoftWasteInStoreGroup',
components: { components: {
NavBar, NavBar,
SearchBox SearchBox,
DropdownMenu
}, },
data () { data () {
return { return {
@@ -100,7 +114,10 @@ export default {
dataList: [], dataList: [],
pkId: '', pkId: '',
disabled1: false, disabled1: false,
disabled2: false disabled2: false,
option1: [],
active1: '',
open1: false
} }
}, },
computed: { computed: {
@@ -122,6 +139,9 @@ export default {
activated () { activated () {
if (this.$store.getters.materObj !== '') this.val2 = this.$store.getters.materObj.source_bill_code if (this.$store.getters.materObj !== '') this.val2 = this.$store.getters.materObj.source_bill_code
}, },
created () {
this._inIetIvtLevel()
},
methods: { methods: {
handleChange1 (e, type) { handleChange1 (e, type) {
if (type) { if (type) {
@@ -177,6 +197,11 @@ export default {
this.disabled1 = false this.disabled1 = false
return return
} }
if (this.active1 === '') {
this.toast('请选择软废等级')
this.disabled1 = false
return
}
this._confirmVehicle() this._confirmVehicle()
}, },
/** 查询载具码 */ /** 查询载具码 */
@@ -225,10 +250,11 @@ export default {
}, },
async _confirmVehicle () { async _confirmVehicle () {
try { try {
let res = await confirmVehicle('5', this.vehicle, this.dataList) let res = await confirmVehicle('5', this.vehicle, this.dataList, null, null, this.option1[this.active1].value)
if (res.code === '1') { if (res.code === '1') {
this.toast(res.desc) this.toast(res.desc)
Object.assign(this.$data, this.$options.data()) Object.assign(this.$data, this.$options.data())
this._inIetIvtLevel()
} else { } else {
this.Dialog(res.desc) this.Dialog(res.desc)
} }
@@ -236,6 +262,26 @@ export default {
} catch (e) { } catch (e) {
this.disabled1 = false this.disabled1 = false
} }
},
/** 获取软废等级下拉框 */
async _inIetIvtLevel () {
let res = await inIetIvtLevel()
if (res.code === '1') {
this.option1 = [...res.ivtLevel]
} else {
this.Dialog(res.desc)
}
},
toggleItem1 () {
if (!this.open1) {
this.open1 = true
} else {
this.open1 = false
}
},
dropdownMenu1 (i) {
this.active1 = i + ''
this.open1 = false
} }
} }
} }