添加组盘
This commit is contained in:
@@ -3,33 +3,33 @@ import {post, post2} from '@config/http.js'
|
|||||||
|
|
||||||
// 指令管理
|
// 指令管理
|
||||||
// 1.1 查询未完成指令
|
// 1.1 查询未完成指令
|
||||||
export const queryInstraction = (keyword, scode, ncode) => post2('api/ash/hand/insts', {
|
export const queryInstraction = (keyword, scode, ncode) => post2('api/hand/insts', {
|
||||||
keyword: keyword,
|
keyword: keyword,
|
||||||
start_devicecode: scode,
|
start_devicecode: scode,
|
||||||
next_devicecode: ncode
|
next_devicecode: ncode
|
||||||
})
|
})
|
||||||
// 1.2 指令操作
|
// 1.2 指令操作
|
||||||
export const instOperation = (uuid, type) => post2('api/ash/hand/inst', {
|
export const instOperation = (uuid, type) => post2('api/hand/inst', {
|
||||||
inst_uuid: uuid,
|
inst_uuid: uuid,
|
||||||
type: type
|
type: type
|
||||||
})
|
})
|
||||||
|
|
||||||
// 任务管理
|
// 任务管理
|
||||||
// 1.1 查询未完成指令
|
// 1.1 查询未完成指令
|
||||||
export const queryTask = (keyword, scode, ncode) => post2('api/ash/hand/tasks', {
|
export const queryTask = (keyword, scode, ncode) => post2('api/hand/tasks', {
|
||||||
keyword: keyword,
|
keyword: keyword,
|
||||||
start_devicecode: scode,
|
start_devicecode: scode,
|
||||||
next_devicecode: ncode
|
next_devicecode: ncode
|
||||||
})
|
})
|
||||||
// 1.2 指令操作
|
// 1.2 指令操作
|
||||||
export const taskOperation = (uuid, type) => post2('api/ash/hand/taskoperation', {
|
export const taskOperation = (uuid, type) => post2('api/hand/taskoperation', {
|
||||||
inst_uuid: uuid,
|
inst_uuid: uuid,
|
||||||
type: type
|
type: type
|
||||||
})
|
})
|
||||||
|
|
||||||
// 送料
|
// 送料
|
||||||
// 1.1查询工序设备点位
|
// 1.1查询工序设备点位
|
||||||
export const sendMaterialqueryDevice = () => post('api/pda/sendMaterial/queryDevice', {})
|
export const sendMaterialqueryPoint = () => post('api/pda/sendMaterial/queryPoint', {})
|
||||||
// 1.2压制叫料确定
|
// 1.2压制叫料确定
|
||||||
export const sendMaterialconfirm = (wid, did, pid, pcode, qty, vcode, isfull) => post('api/pda/sendMaterial/confirm', {
|
export const sendMaterialconfirm = (wid, did, pid, pcode, qty, vcode, isfull) => post('api/pda/sendMaterial/confirm', {
|
||||||
workprocedure_id: wid,
|
workprocedure_id: wid,
|
||||||
@@ -66,3 +66,10 @@ export const sendEmptyconfirm = (pid, pcode, pname, vcode) => post('api/pda/send
|
|||||||
point_name: pname,
|
point_name: pname,
|
||||||
vehicle_code: vcode
|
vehicle_code: vcode
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 组盘-托盘数量绑定
|
||||||
|
// 1.1托盘数量绑定确认
|
||||||
|
export const emptyAndQtyconfirm = (vcode, qty) => post('api/pda/emptyAndQty/confirm', {
|
||||||
|
vehicle_code: vcode,
|
||||||
|
qty: qty
|
||||||
|
})
|
||||||
|
|||||||
@@ -15,7 +15,15 @@
|
|||||||
</section>
|
</section>
|
||||||
<div class="con">
|
<div class="con">
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="e in menuList" :key="e.menu_id" @click="toPage(e)">{{e.name}}</li>
|
<!-- <li v-for="e in menuList" :key="e.menu_id" @click="toPage(e)">{{e.name}}</li> -->
|
||||||
|
<li @click="goInner('/TaskManage')">任务管理</li>
|
||||||
|
<li @click="goInner('/ZlManage')">指令管理</li>
|
||||||
|
<li @click="goInner('/Password')">修改密码</li>
|
||||||
|
<li @click="goInner('/SendMater')">送料</li>
|
||||||
|
<li @click="goInner('/EquipCallMater')">叫料</li>
|
||||||
|
<li @click="goInner('/SendEmptyPallet')">送空托盘</li>
|
||||||
|
<li @click="goInner('/CallEmptyPallet')">呼叫空托盘</li>
|
||||||
|
<li @click="goInner('/GroupPallet')">组盘</li>
|
||||||
<!-- <li @click="goInner('/TaskManage')">任务管理</li>
|
<!-- <li @click="goInner('/TaskManage')">任务管理</li>
|
||||||
<li @click="goInner('/ZlManage')">指令管理</li>
|
<li @click="goInner('/ZlManage')">指令管理</li>
|
||||||
<li @click="goInner('/Password')">修改密码</li>
|
<li @click="goInner('/Password')">修改密码</li>
|
||||||
|
|||||||
72
src/pages/proj/GroupPallet.vue
Normal file
72
src/pages/proj/GroupPallet.vue
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
<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">
|
||||||
|
<input type="number" class="filter-input filter-scan-input" v-model="val2">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="submit-bar">
|
||||||
|
<button class="btn submit-button" :class="{'btn-disabled' : val1 === '' || val2 === ''}" :disabled="disabled1" @click="_emptyAndQtyconfirm">确定</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 {emptyAndQtyconfirm} from '@config/getData1'
|
||||||
|
export default {
|
||||||
|
name: 'GroupPallet',
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
disabled1: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 确认 */
|
||||||
|
async _emptyAndQtyconfirm () {
|
||||||
|
this.disabled1 = true
|
||||||
|
if (this.val1 === '' || this.val2 === '') {
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await emptyAndQtyconfirm(this.val1, this.val2)
|
||||||
|
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.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.disabled1 = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -3,18 +3,6 @@
|
|||||||
<nav-bar title="送料"></nav-bar>
|
<nav-bar title="送料"></nav-bar>
|
||||||
<section class="content mgt186">
|
<section class="content mgt186">
|
||||||
<div class="filter-wraper">
|
<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="bottom-filter-tip">
|
||||||
<div class="filter-label txtjustify">设备</div>
|
<div class="filter-label txtjustify">设备</div>
|
||||||
<div class="fxcol mgl20 visible" >
|
<div class="fxcol mgl20 visible" >
|
||||||
@@ -39,29 +27,6 @@
|
|||||||
</dropdown-menu>
|
</dropdown-menu>
|
||||||
</div>
|
</div>
|
||||||
</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="val3">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<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="option4"
|
|
||||||
:active="active4"
|
|
||||||
:open="open4"
|
|
||||||
@toggleItem="toggleItem4"
|
|
||||||
@dropdownMenu="dropdownMenu4">
|
|
||||||
</dropdown-menu>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="bottom-filter-tip">
|
<div class="bottom-filter-tip">
|
||||||
<div class="filter-label txtjustify">数量</div>
|
<div class="filter-label txtjustify">数量</div>
|
||||||
<div class="fxcol mgl20">
|
<div class="fxcol mgl20">
|
||||||
@@ -71,7 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="submit-bar">
|
<section class="submit-bar">
|
||||||
<button class="btn submit-button" :class="{'btn-disabled' : val1 === '' || val2 === '' || active1 === '' || active2 === '' || active3 === '' || active4 === ''}" :disabled="disabled1" @click="_sendMaterialconfirm">确定</button>
|
<button class="btn submit-button" :class="{'btn-disabled' :val2 === '' || active1 === '' || active2 === '' || active3 === '' || active4 === ''}" :disabled="disabled1" @click="_sendMaterialconfirm">确定</button>
|
||||||
<button class="btn submit-button" @click="toCancle">取消</button>
|
<button class="btn submit-button" @click="toCancle">取消</button>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@@ -81,7 +46,7 @@
|
|||||||
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 DropdownMenu from '@components/DropdownMenu.vue'
|
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||||
import {sendMaterialqueryDevice, sendMaterialconfirm} from '@config/getData1'
|
import {sendMaterialqueryPoint, sendMaterialconfirm} from '@config/getData1'
|
||||||
export default {
|
export default {
|
||||||
name: 'BindPalletPoint',
|
name: 'BindPalletPoint',
|
||||||
components: {
|
components: {
|
||||||
@@ -91,42 +56,34 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
val1: '',
|
|
||||||
val2: '',
|
val2: '',
|
||||||
val3: '',
|
|
||||||
option1: [],
|
|
||||||
active1: '',
|
|
||||||
open1: false,
|
|
||||||
option2: [],
|
option2: [],
|
||||||
active2: '',
|
active2: '',
|
||||||
open2: false,
|
open2: false,
|
||||||
option3: [],
|
option3: [],
|
||||||
active3: '',
|
active3: '',
|
||||||
open3: false,
|
open3: false,
|
||||||
option4: [{value: '1', label: '是'}, {value: '2', label: '否'}],
|
|
||||||
active4: '',
|
|
||||||
open4: false,
|
|
||||||
disabled1: false
|
disabled1: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this._sendMaterialqueryDevice()
|
this._sendMaterialqueryPoint()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询点位 */
|
/** 查询点位 */
|
||||||
async _sendMaterialqueryDevice () {
|
async _sendMaterialqueryPoint () {
|
||||||
let res = await sendMaterialqueryDevice()
|
let res = await sendMaterialqueryPoint()
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.option1 = [...res.result.workprocedureja]
|
// this.option1 = [...res.result.workprocedureja]
|
||||||
this.option1.map(el => {
|
// this.option1.map(el => {
|
||||||
this.$set(el, 'value', el.workprocedure_id)
|
// this.$set(el, 'value', el.workprocedure_id)
|
||||||
this.$set(el, 'label', el.workprocedure_name)
|
// this.$set(el, 'label', el.workprocedure_name)
|
||||||
})
|
|
||||||
// this.option2 = [...res.result.workprocedureja.deviceja]
|
|
||||||
// this.option2.map(el => {
|
|
||||||
// this.$set(el, 'value', el.device_id)
|
|
||||||
// this.$set(el, 'label', el.device_name)
|
|
||||||
// })
|
// })
|
||||||
|
this.option2 = [...res.result.workprocedureja.deviceja]
|
||||||
|
this.option2.map(el => {
|
||||||
|
this.$set(el, 'value', el.device_id)
|
||||||
|
this.$set(el, 'label', el.device_name)
|
||||||
|
})
|
||||||
// this.option3 = [...res.result.workprocedureja.deviceja.pointArr]
|
// this.option3 = [...res.result.workprocedureja.deviceja.pointArr]
|
||||||
// this.option3.map(el => {
|
// this.option3.map(el => {
|
||||||
// this.$set(el, 'value', el.point_id)
|
// this.$set(el, 'value', el.point_id)
|
||||||
@@ -139,12 +96,12 @@ export default {
|
|||||||
/** 确认 */
|
/** 确认 */
|
||||||
async _sendMaterialconfirm () {
|
async _sendMaterialconfirm () {
|
||||||
this.disabled1 = true
|
this.disabled1 = true
|
||||||
if (this.val1 === '' || this.val2 === '' || this.active1 === '' || this.active2 === '' || this.active3 === '' || this.active4 === '') {
|
if (this.val2 === '' || this.active2 === '' || this.active3 === '') {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await sendMaterialconfirm(this.option1[this.active1].value, this.option2[this.active2].value, this.option3[this.active3].value, this.option3[this.active3].point_code, this.val2, this.val1, this.option4[this.active4].value)
|
let res = await sendMaterialconfirm(this.option2[this.active2].value, this.option3[this.active3].value, this.option3[this.active3].point_code, this.val2)
|
||||||
if (res.code === '1') {
|
if (res.code === '1') {
|
||||||
this.toast(res.desc)
|
this.toast(res.desc)
|
||||||
this.toCancle()
|
this.toCancle()
|
||||||
@@ -158,30 +115,11 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 取消 */
|
/** 取消 */
|
||||||
toCancle () {
|
toCancle () {
|
||||||
this.val1 = ''
|
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
this.active1 = ''
|
|
||||||
this.active2 = ''
|
this.active2 = ''
|
||||||
this.active3 = ''
|
this.active3 = ''
|
||||||
this.active4 = ''
|
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
},
|
},
|
||||||
toggleItem1 () {
|
|
||||||
if (!this.open1) {
|
|
||||||
this.open1 = true
|
|
||||||
} else {
|
|
||||||
this.open1 = false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
dropdownMenu1 (i) {
|
|
||||||
this.active1 = i + ''
|
|
||||||
this.open1 = false
|
|
||||||
this.option2 = this.option1[this.active1].deviceja
|
|
||||||
this.option2.map(el => {
|
|
||||||
this.$set(el, 'value', el.device_id)
|
|
||||||
this.$set(el, 'label', el.device_name)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
toggleItem2 () {
|
toggleItem2 () {
|
||||||
if (!this.open2) {
|
if (!this.open2) {
|
||||||
this.open2 = true
|
this.open2 = true
|
||||||
@@ -208,17 +146,6 @@ export default {
|
|||||||
dropdownMenu3 (i) {
|
dropdownMenu3 (i) {
|
||||||
this.active3 = i + ''
|
this.active3 = i + ''
|
||||||
this.open3 = false
|
this.open3 = false
|
||||||
},
|
|
||||||
toggleItem4 () {
|
|
||||||
if (!this.open4) {
|
|
||||||
this.open4 = true
|
|
||||||
} else {
|
|
||||||
this.open4 = false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
dropdownMenu4 (i) {
|
|
||||||
this.active4 = i + ''
|
|
||||||
this.open4 = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,11 +14,13 @@ const SendMater = r => require.ensure([], () => r(require('../pages/proj/SendMat
|
|||||||
const EquipCallMater = r => require.ensure([], () => r(require('../pages/proj/EquipCallMater')), 'EquipCallMater')
|
const EquipCallMater = r => require.ensure([], () => r(require('../pages/proj/EquipCallMater')), 'EquipCallMater')
|
||||||
const SendEmptyPallet = r => require.ensure([], () => r(require('../pages/proj/SendEmptyPallet')), 'SendEmptyPallet')
|
const SendEmptyPallet = r => require.ensure([], () => r(require('../pages/proj/SendEmptyPallet')), 'SendEmptyPallet')
|
||||||
const CallEmptyPallet = r => require.ensure([], () => r(require('../pages/proj/CallEmptyPallet')), 'CallEmptyPallet')
|
const CallEmptyPallet = r => require.ensure([], () => r(require('../pages/proj/CallEmptyPallet')), 'CallEmptyPallet')
|
||||||
const BindPalletPoint = r => require.ensure([], () => r(require('../pages/proj/BindPalletPoint')), 'BindPalletPoint')
|
const GroupPallet = r => require.ensure([], () => r(require('../pages/proj/GroupPallet')), 'GroupPallet')
|
||||||
const CheckManage = r => require.ensure([], () => r(require('../pages/proj/CheckManage')), 'CheckManage')
|
|
||||||
const SearchMater = r => require.ensure([], () => r(require('../pages/proj/SearchMater')), 'SearchMater')
|
// const BindPalletPoint = r => require.ensure([], () => r(require('../pages/proj/BindPalletPoint')), 'BindPalletPoint')
|
||||||
const ConveyorLine = r => require.ensure([], () => r(require('../pages/proj/ConveyorLine')), 'ConveyorLine')
|
// const CheckManage = r => require.ensure([], () => r(require('../pages/proj/CheckManage')), 'CheckManage')
|
||||||
const BindMaterPoint = r => require.ensure([], () => r(require('../pages/proj/BindMaterPoint')), 'BindMaterPoint')
|
// 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')
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
@@ -80,25 +82,29 @@ export default new Router({
|
|||||||
component: CallEmptyPallet
|
component: CallEmptyPallet
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/BindPalletPoint', // 托盘点位绑定
|
path: '/GroupPallet', // 组盘
|
||||||
component: BindPalletPoint
|
component: GroupPallet
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/CheckManage', // 盘点管理
|
|
||||||
component: CheckManage
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/SearchMater', // 查找物料
|
|
||||||
component: SearchMater
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/ConveyorLine', // 入窑输送线规则
|
|
||||||
component: ConveyorLine
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/BindMaterPoint', // 托盘物料绑定
|
|
||||||
component: BindMaterPoint
|
|
||||||
}
|
}
|
||||||
|
// {
|
||||||
|
// path: '/BindPalletPoint', // 托盘点位绑定
|
||||||
|
// component: BindPalletPoint
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/CheckManage', // 盘点管理
|
||||||
|
// component: CheckManage
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/SearchMater', // 查找物料
|
||||||
|
// component: SearchMater
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/ConveyorLine', // 入窑输送线规则
|
||||||
|
// component: ConveyorLine
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: '/BindMaterPoint', // 托盘物料绑定
|
||||||
|
// component: BindMaterPoint
|
||||||
|
// }
|
||||||
],
|
],
|
||||||
scrollBehavior (to, from, savedPosition) {
|
scrollBehavior (to, from, savedPosition) {
|
||||||
return { x: 0, y: 0 }
|
return { x: 0, y: 0 }
|
||||||
|
|||||||
Reference in New Issue
Block a user