包装输送线送货
This commit is contained in:
@@ -135,3 +135,19 @@ export const queryWorkerOrder = (code) => post('api/pda/workorder/queryWorkerOrd
|
|||||||
export const workorderExecutes = (id) => post('api/pda/workorder/executes', {
|
export const workorderExecutes = (id) => post('api/pda/workorder/executes', {
|
||||||
workorder_id: id
|
workorder_id: id
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 包装输送线送货
|
||||||
|
*/
|
||||||
|
// 物料
|
||||||
|
export const ssxqueryMaterial = () => post('api/pda/ssx/sendMaterial/queryMaterial', {
|
||||||
|
})
|
||||||
|
// 载具类型
|
||||||
|
export const ssxqueryVehicle = () => post('api/pda/ssx/sendMaterial/queryVehicle', {
|
||||||
|
})
|
||||||
|
// 提交
|
||||||
|
export const ssxconfirm = (id, value, qty) => post('api/pda/ssx/sendMaterial/confirm', {
|
||||||
|
material_id: id,
|
||||||
|
value: value,
|
||||||
|
qty: qty
|
||||||
|
})
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
<li @click="goInner('/GroupPallet')">组盘</li>
|
<li @click="goInner('/GroupPallet')">组盘</li>
|
||||||
<li @click="goInner('/FixedPointTask')">定点任务</li>
|
<li @click="goInner('/FixedPointTask')">定点任务</li>
|
||||||
<li @click="goInner('/WorkorderManage')">工单管理</li>
|
<li @click="goInner('/WorkorderManage')">工单管理</li>
|
||||||
|
<li @click="goInner('/PackLineDelivery')">包装输送线送货</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
135
src/pages/proj/PackLineDelivery.vue
Normal file
135
src/pages/proj/PackLineDelivery.vue
Normal file
@@ -0,0 +1,135 @@
|
|||||||
|
<template>
|
||||||
|
<section>
|
||||||
|
<nav-bar title="包装输送线送货"></nav-bar>
|
||||||
|
<section class="content mgb110">
|
||||||
|
<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">
|
||||||
|
<input type="number" class="filter-input filter-scan-input" v-model="qty">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="grid-wraper">
|
||||||
|
<div class="left_fixed">
|
||||||
|
<table class="layout-t left_layout_t">
|
||||||
|
<tr>
|
||||||
|
<th>物料名称</th>
|
||||||
|
</tr>
|
||||||
|
<tr v-for="e in dataList" :key="e.material_id" @click="toCheck(e)" :class="{'checked': e.material_id === pkId}">
|
||||||
|
<td>{{e.material_name}}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="slide">
|
||||||
|
<table class="layout-t">
|
||||||
|
<tr>
|
||||||
|
<th>物料编码</th>
|
||||||
|
</tr>
|
||||||
|
<tr v-for="e in dataList" :key="e.material_id" @click="toCheck(e)" :class="{'checked': e.material_id === pkId}">
|
||||||
|
<td>{{e.material_code}}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="submit-bar">
|
||||||
|
<button class="btn submit-button" :class="{'btn-disabled': pkId === '' || active1 === ''}" :disabled="disabled1" @click="_ssxconfirm">确定</button>
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@components/NavBar.vue'
|
||||||
|
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||||
|
import {ssxqueryMaterial, ssxqueryVehicle, ssxconfirm} from '@config/getData2.js'
|
||||||
|
export default {
|
||||||
|
name: 'WorkorderManage',
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
DropdownMenu
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
option1: [],
|
||||||
|
active1: '',
|
||||||
|
open1: false,
|
||||||
|
qty: '',
|
||||||
|
dataList: [],
|
||||||
|
pkId: '',
|
||||||
|
pkObj: {},
|
||||||
|
disabled1: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._ssxqueryMaterial()
|
||||||
|
this._ssxqueryVehicle()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 查询下拉框
|
||||||
|
async _ssxqueryVehicle () {
|
||||||
|
let res = await ssxqueryVehicle()
|
||||||
|
this.option1 = [...res.result]
|
||||||
|
},
|
||||||
|
toggleItem1 () {
|
||||||
|
if (!this.open1) {
|
||||||
|
this.open1 = true
|
||||||
|
} else {
|
||||||
|
this.open1 = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dropdownMenu1 (i) {
|
||||||
|
this.active1 = i + ''
|
||||||
|
this.open1 = false
|
||||||
|
},
|
||||||
|
// 查询grid
|
||||||
|
async _ssxqueryMaterial () {
|
||||||
|
let res = await ssxqueryMaterial()
|
||||||
|
if (res.code) {
|
||||||
|
this.dataList = [...res.result]
|
||||||
|
} else {
|
||||||
|
this.toast(res.desc)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toCheck (e) {
|
||||||
|
this.pkId = this.pkId !== e.material_id ? e.material_id : ''
|
||||||
|
this.pkObj = this.pkId === e.material_id ? e : {}
|
||||||
|
},
|
||||||
|
/** 确认 */
|
||||||
|
async _ssxconfirm () {
|
||||||
|
this.disabled1 = true
|
||||||
|
if (this.pkId === '' || this.active1 === '') {
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let value = this.active1 !== '' ? this.option1[this.active1].value : ''
|
||||||
|
let res = await ssxconfirm(this.pkId, value, this.qty)
|
||||||
|
this.toast(res.desc)
|
||||||
|
this._ssxqueryMaterial()
|
||||||
|
this.pkId = ''
|
||||||
|
this.active1 = ''
|
||||||
|
this.qty = ''
|
||||||
|
this.disabled1 = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled1 = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
</style>
|
||||||
@@ -17,6 +17,7 @@ const CallEmptyPallet = r => require.ensure([], () => r(require('../pages/proj/C
|
|||||||
const GroupPallet = r => require.ensure([], () => r(require('../pages/proj/GroupPallet')), 'GroupPallet')
|
const GroupPallet = r => require.ensure([], () => r(require('../pages/proj/GroupPallet')), 'GroupPallet')
|
||||||
const FixedPointTask = r => require.ensure([], () => r(require('../pages/proj/FixedPointTask')), 'FixedPointTask')
|
const FixedPointTask = r => require.ensure([], () => r(require('../pages/proj/FixedPointTask')), 'FixedPointTask')
|
||||||
const WorkorderManage = r => require.ensure([], () => r(require('../pages/proj/WorkorderManage')), 'WorkorderManage')
|
const WorkorderManage = r => require.ensure([], () => r(require('../pages/proj/WorkorderManage')), 'WorkorderManage')
|
||||||
|
const PackLineDelivery = r => require.ensure([], () => r(require('../pages/proj/PackLineDelivery')), 'PackLineDelivery')
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
@@ -88,6 +89,10 @@ export default new Router({
|
|||||||
{
|
{
|
||||||
path: '/WorkorderManage', // 工单管理
|
path: '/WorkorderManage', // 工单管理
|
||||||
component: WorkorderManage
|
component: WorkorderManage
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/PackLineDelivery', // 包装输送线送货
|
||||||
|
component: PackLineDelivery
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
scrollBehavior (to, from, savedPosition) {
|
scrollBehavior (to, from, savedPosition) {
|
||||||
|
|||||||
Reference in New Issue
Block a user