设备叫料送料

This commit is contained in:
2022-07-20 14:36:18 +08:00
parent c0e7de76fd
commit 850353c464
3 changed files with 140 additions and 6 deletions

View File

@@ -0,0 +1,127 @@
<template>
<section>
<nav-bar title="设备叫料"></nav-bar>
<section class="content mgt186">
<div class="filter-wraper">
<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 class="bottom-filter-tip">
<div class="filter-label txtjustify">是否满托</div>
<div class="fxcol mgl20 visible" >
<dropdown-menu
:option="option2"
:active="active2"
:open="open2"
@toggleItem="toggleItem2"
@dropdownMenu="dropdownMenu2">
</dropdown-menu>
</div>
</div>
</div>
</section>
<section class="submit-bar">
<button class="btn submit-button" :class="{'btn-disabled' : active1 === '' || active2 === ''}" :disabled="disabled1" @click="_callMaterialconfirm">确定</button>
<button class="btn submit-button" @click="toCancle">取消</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import DropdownMenu from '@components/DropdownMenu.vue'
import {callMaterialqueryPoint, callMaterialconfirm} from '@config/getData1'
export default {
name: 'PressCallMater',
components: {
NavBar,
DropdownMenu
},
data () {
return {
option1: [],
active1: '',
open1: false,
option2: [{value: '1', label: '是'}, {value: '2', label: '否'}],
active2: '',
open2: false,
disabled1: false
}
},
created () {
this._callMaterialqueryPoint()
},
methods: {
/** 1.1查询点位 */
async _callMaterialqueryPoint () {
let res = await callMaterialqueryPoint()
if (res.code === '1') {
this.option1 = [...res.result]
this.option1.map(el => {
this.$set(el, 'value', el.point_code)
this.$set(el, 'label', el.point_name)
})
} else {
this.Dialog(res.desc)
}
},
/** 确定 */
async _callMaterialconfirm () {
this.disabled1 = true
if (this.active1 === '' || this.active2 === '') {
this.disabled1 = false
return
}
try {
let res = await callMaterialconfirm(this.option1[this.active1].point_id, this.option1[this.active1].point_code, this.option1[this.active1].point_name, this.option2[this.active2].value)
if (res.code === '1') {
this.toast(res.desc)
this.toCancle()
} else {
this.Dialog(res.desc)
}
this.disabled1 = false
} catch (e) {
this.disabled1 = false
}
},
/** 取消 */
toCancle () {
this.active1 = ''
this.active2 = ''
this.disabled1 = false
},
toggleItem1 () {
if (!this.open1) {
this.open1 = true
} else {
this.open1 = false
}
},
dropdownMenu1 (i) {
this.active1 = i + ''
this.open1 = false
},
toggleItem2 () {
if (!this.open2) {
this.open2 = true
} else {
this.open2 = false
}
},
dropdownMenu2 (i) {
this.active2 = i + ''
this.open2 = false
}
}
}
</script>

View File

@@ -40,9 +40,9 @@
</div>
</div>
<div class="bottom-filter-tip">
<div class="filter-label txtjustify">数量</div>
<div class="filter-label txtjustify">物料编码</div>
<div class="fxcol mgl20">
<input type="number" class="filter-input filter-scan-input" v-model="val2">
<input type="text" class="filter-input filter-scan-input" v-model="val3">
</div>
</div>
<search-box
@@ -62,6 +62,12 @@
</dropdown-menu>
</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="val2">
</div>
</div>
</div>
</section>
<section class="submit-bar">
@@ -87,6 +93,7 @@ export default {
return {
val1: '',
val2: '',
val3: '',
option1: [],
active1: '',
open1: false,

View File

@@ -11,7 +11,7 @@ const Password = r => require.ensure([], () => r(require('../pages/proj/Password
const TaskManage = r => require.ensure([], () => r(require('../pages/proj/TaskManage')), 'TaskManage')
const ZlManage = r => require.ensure([], () => r(require('../pages/proj/ZlManage')), 'ZlManage')
const SendMater = r => require.ensure([], () => r(require('../pages/proj/SendMater')), 'SendMater')
const PressCallMater = r => require.ensure([], () => r(require('../pages/proj/PressCallMater')), 'PressCallMater')
const EquipCallMater = r => require.ensure([], () => r(require('../pages/proj/EquipCallMater')), 'EquipCallMater')
const SendEmptyPallet = r => require.ensure([], () => r(require('../pages/proj/SendEmptyPallet')), 'SendEmptyPallet')
const CallEmptyPallet = r => require.ensure([], () => r(require('../pages/proj/CallEmptyPallet')), 'CallEmptyPallet')
const BindPalletPoint = r => require.ensure([], () => r(require('../pages/proj/BindPalletPoint')), 'BindPalletPoint')
@@ -50,7 +50,7 @@ export default new Router({
component: PreLoad
},
{
path: '/Password', // 盘点管理
path: '/Password', // 密码
component: Password
},
{
@@ -66,8 +66,8 @@ export default new Router({
component: SendMater
},
{
path: '/PressCallMater', // 压制叫料
component: PressCallMater
path: '/EquipCallMater', // 设备叫料
component: EquipCallMater
},
{
path: '/SendEmptyPallet', // 送空托盘