出窑货架人工出库

This commit is contained in:
2022-08-25 09:44:11 +08:00
parent 76eae90606
commit 5a284ae2a6
3 changed files with 116 additions and 0 deletions

View File

@@ -94,3 +94,11 @@ export const bindingMaterialConfirm = (id, code, mname, pcsn, qty, vcode) => pos
qty: qty,
vehicle_code: vcode
})
/** 出窑货架人工出库 */
// 1.1根据托盘查询信息
export const queryInfoBycode = (code) => post('api/pda/outStruct/queryInfoBycode', {
vehicle_code: code
})
// 1.2确定
export const outStructConfirm = (obj) => post('api/pda/outStruct/confirm', obj)

View File

@@ -0,0 +1,103 @@
<template>
<section>
<nav-bar title="出窑货架人工出库"></nav-bar>
<section class="content mgt186 mgb110">
<div class="filter-wraper">
<search-box
label="托盘条码"
v-model="val1"
@handleChange="handleChange1"
></search-box>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">当前仓位</div>
<div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" v-model="val2" disabled>
</div>
</div>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">数量</div>
<div class="fxcol mgl20">
<input type="number" class="filter-input filter-scan-input" v-model="val3" disabled>
</div>
</div>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">排产单号</div>
<div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" v-model="val4" disabled>
</div>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button" :class="{'btn-disabled' : val1 === ''}" :disabled="disabled" @click="toSure">确定</button>
<button class="btn submit-button" @click="toCancle">取消</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox.vue'
import {queryInfoBycode, outStructConfirm} from '@config/getData2.js'
export default {
name: 'CYoutstore',
components: {
NavBar,
SearchBox
},
data () {
return {
val1: '',
val2: '',
val3: '',
val4: '',
result: {},
disabled: false
}
},
methods: {
handleChange1 (e, type) {
if (type) {
this._queryInfoBycode(e)
}
},
/** 查询托盘条码 */
async _queryInfoBycode (e) {
let res = await queryInfoBycode(e)
if (res.code === '1') {
this.result = res.result
this.val1 = res.result.vehicle_code
this.val2 = res.result.point_name
this.val3 = `${parseFloat(res.result.canuse_qty).toFixed(3)}`
this.val4 = res.result.producetask_code
} else {
this.Dialog(res.desc)
}
},
/** 确认 */
async toSure () {
this.disabled = true
if (this.val1 === '') {
this.disabled = false
return
}
try {
let res = await outStructConfirm(this.result)
if (res.code === '1') {
this.toast(res.desc)
this.toCancle()
} else {
this.Dialog(res.desc)
}
this.disabled = false
} catch (e) {
this.disabled = false
}
},
/** 取消 */
toCancle () {
Object.assign(this.$data, this.$options.data())
}
}
}
</script>

View File

@@ -19,6 +19,7 @@ const CheckManage = r => require.ensure([], () => r(require('../pages/proj/Check
const SearchMater = r => require.ensure([], () => r(require('../pages/proj/SearchMater')), 'SearchMater')
const ConveyorLine = r => require.ensure([], () => r(require('../pages/proj/ConveyorLine')), 'ConveyorLine')
const BindMaterPoint = r => require.ensure([], () => r(require('../pages/proj/BindMaterPoint')), 'BindMaterPoint')
const CYoutstore = r => require.ensure([], () => r(require('../pages/proj/CYoutstore')), 'CYoutstore')
Vue.use(Router)
@@ -98,6 +99,10 @@ export default new Router({
{
path: '/BindMaterPoint', // 托盘物料绑定
component: BindMaterPoint
},
{
path: '/CYoutstore', // 出窑货架人工出库
component: CYoutstore
}
],
scrollBehavior (to, from, savedPosition) {