组盘解绑
This commit is contained in:
@@ -206,3 +206,11 @@ export const pdaToGroup = (code, vcode, qty, weight, is) => post('api/pda/pdaToG
|
|||||||
weight: weight,
|
weight: weight,
|
||||||
is_full: is
|
is_full: is
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组盘解绑
|
||||||
|
*/
|
||||||
|
export const pdaToUntie = (vcode, type) => post('api/pda/pdaToUntie', {
|
||||||
|
vehicle_code: vcode,
|
||||||
|
vehicle_type: type
|
||||||
|
})
|
||||||
|
|||||||
BIN
src/images/xinrui/menu/FR14.png
Normal file
BIN
src/images/xinrui/menu/FR14.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@@ -70,7 +70,8 @@ export default {
|
|||||||
{sec_menu_id: 3, path: '/PointManage', title: '窑后货架', query: 'YHHJ'}
|
{sec_menu_id: 3, path: '/PointManage', title: '窑后货架', query: 'YHHJ'}
|
||||||
]},
|
]},
|
||||||
{menu_id: 12, path: '/CallCarry', title: '呼叫搬运', icon: 'FR12', sonTree: []},
|
{menu_id: 12, path: '/CallCarry', title: '呼叫搬运', icon: 'FR12', sonTree: []},
|
||||||
{menu_id: 13, path: '/ManualGroup', title: '人工组盘', icon: 'FR13', sonTree: []}
|
{menu_id: 13, path: '/ManualGroup', title: '人工组盘', icon: 'FR13', sonTree: []},
|
||||||
|
{menu_id: 14, path: '/GroupUnbind', title: '组盘解绑', icon: 'FR14', sonTree: []}
|
||||||
],
|
],
|
||||||
show: false,
|
show: false,
|
||||||
secM: []
|
secM: []
|
||||||
|
|||||||
95
src/pages/proj/GroupUnbind.vue
Normal file
95
src/pages/proj/GroupUnbind.vue
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
<template>
|
||||||
|
<section>
|
||||||
|
<nav-bar title="组盘解绑"></nav-bar>
|
||||||
|
<section class="content mgt186">
|
||||||
|
<div class="filter-wraper">
|
||||||
|
<search-box
|
||||||
|
label="载具"
|
||||||
|
v-model="val1"
|
||||||
|
:seaShow="false"
|
||||||
|
></search-box>
|
||||||
|
<div class="bottom-filter-tip">
|
||||||
|
<div class="filter-label txtjustify">压机下料位</div>
|
||||||
|
<div class="fxcol mgl20 visible" >
|
||||||
|
<dropdown-menu
|
||||||
|
:option="option"
|
||||||
|
:active="active"
|
||||||
|
:open="open"
|
||||||
|
@toggleItem="toggleItem"
|
||||||
|
@dropdownMenu="dropdownMenu">
|
||||||
|
</dropdown-menu>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="submit-bar">
|
||||||
|
<button class="btn submit-button" :class="{'btn-disabled' : active === '' || val1 === ''}" :disabled="disabled" @click="_pdaToUntie">确定</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 DropdownMenu from '@components/DropdownMenu.vue'
|
||||||
|
import {pdaToUntie} from '@config/getData2'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
DropdownMenu,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
option: [{value: '1', label: '料盅'}, {value: '2', label: '钢托盘'}],
|
||||||
|
active: '',
|
||||||
|
open: false,
|
||||||
|
val1: '',
|
||||||
|
val2: null,
|
||||||
|
val3: null,
|
||||||
|
val4: false,
|
||||||
|
disabled: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
toggleItem () {
|
||||||
|
if (!this.open) {
|
||||||
|
this.open = true
|
||||||
|
} else {
|
||||||
|
this.open = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dropdownMenu (i) {
|
||||||
|
this.active = i + ''
|
||||||
|
this.open = false
|
||||||
|
},
|
||||||
|
/** 确认 */
|
||||||
|
async _pdaToUntie () {
|
||||||
|
this.disabled = true
|
||||||
|
if (this.val1 === '' || this.active === '') {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await pdaToUntie(this.val1, this.option[this.active].value)
|
||||||
|
if (res.code === '1') {
|
||||||
|
this.toast(res.desc)
|
||||||
|
this.toCancle()
|
||||||
|
} else {
|
||||||
|
this.Dialog(res.desc)
|
||||||
|
}
|
||||||
|
this.disabled = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/** 取消 */
|
||||||
|
toCancle () {
|
||||||
|
this.active = ''
|
||||||
|
this.val1 = ''
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -22,6 +22,7 @@ const ManualUnstack = r => require.ensure([], () => r(require('../pages/proj/Man
|
|||||||
const PointManage = r => require.ensure([], () => r(require('../pages/proj/PointManage')), 'PointManage')
|
const PointManage = r => require.ensure([], () => r(require('../pages/proj/PointManage')), 'PointManage')
|
||||||
const CallCarry = r => require.ensure([], () => r(require('../pages/proj/CallCarry')), 'CallCarry')
|
const CallCarry = r => require.ensure([], () => r(require('../pages/proj/CallCarry')), 'CallCarry')
|
||||||
const ManualGroup = r => require.ensure([], () => r(require('../pages/proj/ManualGroup')), 'ManualGroup')
|
const ManualGroup = r => require.ensure([], () => r(require('../pages/proj/ManualGroup')), 'ManualGroup')
|
||||||
|
const GroupUnbind = r => require.ensure([], () => r(require('../pages/proj/GroupUnbind')), 'GroupUnbind')
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
@@ -117,6 +118,10 @@ export default new Router({
|
|||||||
{
|
{
|
||||||
path: '/ManualGroup', // 人工组盘
|
path: '/ManualGroup', // 人工组盘
|
||||||
component: ManualGroup
|
component: ManualGroup
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/GroupUnbind', // 组盘解绑
|
||||||
|
component: GroupUnbind
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
scrollBehavior (to, from, savedPosition) {
|
scrollBehavior (to, from, savedPosition) {
|
||||||
|
|||||||
Reference in New Issue
Block a user