工单下发
This commit is contained in:
@@ -113,3 +113,11 @@ export const vehicleStatusConfirm = (code, is) => post('api/pda/vehicleStatus/co
|
||||
vehicle_code: code,
|
||||
is_full: is
|
||||
})
|
||||
|
||||
/** 工单下发 */
|
||||
// 1.1根据工单信息查询信息
|
||||
export const produceTaskQueryInfo = () => post('api/pda/produceTask/queryInfo', {})
|
||||
// 1.2确定
|
||||
export const produceTaskConfirm = (obj) => post('api/pda/produceTask/confirm', obj)
|
||||
// 1.3查询设备下拉框
|
||||
export const produceTaskQuerydevice = () => post('api/pda/produceTask/querydevice', {})
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="托盘物料绑定"></nav-bar>
|
||||
<section class="content mgt186 mgb110">
|
||||
<section class="content mgb110">
|
||||
<div class="filter-wraper">
|
||||
<search-box
|
||||
label="托盘条码"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="托盘点位绑定"></nav-bar>
|
||||
<section class="content mgt186 mgb110">
|
||||
<section class="content mgb110">
|
||||
<div class="filter-wraper">
|
||||
<search-box
|
||||
label="托盘条码"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="呼叫空托盘"></nav-bar>
|
||||
<section class="content mgt186 mgb110">
|
||||
<section class="content mgb110">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">区域</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="盘点管理"></nav-bar>
|
||||
<section class="content mgt186 mgb110" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="0" infinite-scroll-immediate-check="false">
|
||||
<section class="content mgb110" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy" infinite-scroll-distance="0" infinite-scroll-immediate-check="false">
|
||||
<div class="filter-wraper">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="设备叫料"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<section class="content mgb110">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">点位</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="送空托盘"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<section class="content mgb110">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">区域</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="送料"></nav-bar>
|
||||
<section class="content mgt186">
|
||||
<section class="content mgb110">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">工序</div>
|
||||
|
||||
150
src/pages/proj/WorkorderDistribute.vue
Normal file
150
src/pages/proj/WorkorderDistribute.vue
Normal file
@@ -0,0 +1,150 @@
|
||||
<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>
|
||||
<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.producetask_id" @click="toCheck(e)" :class="{'checked': e.producetask_id === pkId && e.producetask_status === '01'}">
|
||||
<td>{{e.producetask_code}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="slide">
|
||||
<table class="layout-t">
|
||||
<tr>
|
||||
<th>mes工单号</th>
|
||||
<th>物料编码</th>
|
||||
<th>物料名称</th>
|
||||
<th>设备编码</th>
|
||||
<th>状态</th>
|
||||
<th>生产数量</th>
|
||||
</tr>
|
||||
<tr v-for="e in dataList" :key="e.producetask_id" @click="toCheck(e)" :class="{'checked': e.producetask_id === pkId && e.producetask_status === '01'}">
|
||||
<td>{{e.ext_shoporder_no}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.device_code}}</td>
|
||||
<td>{{e.producetask_status_name}}</td>
|
||||
<td>{{e.plan_qty}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" :class="{'btn-disabled': pkId === ''}" :disabled="disabled1" @click="_produceTaskConfirm">下发</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||
import {produceTaskQueryInfo, produceTaskConfirm, produceTaskQuerydevice} from '@config/getData2.js'
|
||||
export default {
|
||||
name: 'WorkorderDistribute',
|
||||
components: {
|
||||
NavBar,
|
||||
DropdownMenu
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
option1: [],
|
||||
active1: '',
|
||||
open1: false,
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
disabled1: false,
|
||||
deviceId: ''
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._produceTaskQuerydevice()
|
||||
},
|
||||
methods: {
|
||||
// 查询下拉框
|
||||
async _produceTaskQuerydevice () {
|
||||
let res = await produceTaskQuerydevice()
|
||||
if (res.code === '1') {
|
||||
this.option1 = [...res.result]
|
||||
this.option1.map(el => {
|
||||
this.$set(el, 'value', el.device_id)
|
||||
this.$set(el, 'label', el.device_name)
|
||||
})
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
},
|
||||
toggleItem1 () {
|
||||
if (!this.open1) {
|
||||
this.open1 = true
|
||||
} else {
|
||||
this.open1 = false
|
||||
}
|
||||
},
|
||||
dropdownMenu1 (i) {
|
||||
this.active1 = i + ''
|
||||
this.open1 = false
|
||||
this.deviceId = this.option1[i].device_id
|
||||
this._produceTaskQueryInfo(this.deviceId)
|
||||
},
|
||||
// 查询grid
|
||||
async _produceTaskQueryInfo (id) {
|
||||
let res = await produceTaskQueryInfo(id)
|
||||
if (res.code === '1') {
|
||||
this.dataList = [...res.result]
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
if (e.producetask_status === '01') {
|
||||
this.pkId = this.pkId !== e.producetask_id ? e.producetask_id : ''
|
||||
this.pkObj = this.pkId === e.producetask_id ? e : {}
|
||||
}
|
||||
},
|
||||
/** 确认 */
|
||||
async _produceTaskConfirm () {
|
||||
this.disabled1 = true
|
||||
if (this.pkId === '') {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await produceTaskConfirm(this.pkObj)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
this._produceTaskQueryInfo(this.deviceId)
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
this.disabled1 = false
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
</style>
|
||||
@@ -21,6 +21,7 @@ const ConveyorLine = r => require.ensure([], () => r(require('../pages/proj/Conv
|
||||
const BindMaterPoint = r => require.ensure([], () => r(require('../pages/proj/BindMaterPoint')), 'BindMaterPoint')
|
||||
const CYoutstore = r => require.ensure([], () => r(require('../pages/proj/CYoutstore')), 'CYoutstore')
|
||||
const PalletStatus = r => require.ensure([], () => r(require('../pages/proj/PalletStatus')), 'PalletStatus')
|
||||
const WorkorderDistribute = r => require.ensure([], () => r(require('../pages/proj/WorkorderDistribute')), 'WorkorderDistribute')
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
@@ -108,6 +109,10 @@ export default new Router({
|
||||
{
|
||||
path: '/PalletStatus', // 修改托盘状态
|
||||
component: PalletStatus
|
||||
},
|
||||
{
|
||||
path: '/WorkorderDistribute', // 工单下发
|
||||
component: WorkorderDistribute
|
||||
}
|
||||
],
|
||||
scrollBehavior (to, from, savedPosition) {
|
||||
|
||||
Reference in New Issue
Block a user