人工混碾搬运
This commit is contained in:
@@ -162,7 +162,7 @@ export const callDefective = (code) => post('api/pda/callDefective', {
|
||||
export const ExceptionHandlingRegionList = () => post('api/pda/manual/ExceptionHandlingTask/regionList', {})
|
||||
// 点位下拉框
|
||||
export const ExceptionHandlingTaskList = () => post('api/pda/manual/ExceptionHandlingTask/list', {})
|
||||
// 任务信息
|
||||
// 任务信息列表
|
||||
export const ExceptionHandlingTaskShow = (code) => post('api/pda/manual/ExceptionHandlingTask/show', {
|
||||
region_code: code
|
||||
})
|
||||
@@ -171,3 +171,16 @@ export const ExceptionHandlingTask = (id, point) => post('api/pda/manual/Excepti
|
||||
task_id: id,
|
||||
end_point: point
|
||||
})
|
||||
/**
|
||||
* 人工混碾搬运
|
||||
*/
|
||||
// 混碾位置下拉框
|
||||
export const getMixingPointList = () => post('api/pda/manual/getMixingPointList', {})
|
||||
// 混碾人工任务列表
|
||||
export const getMixingTaskList = () => post('/api/pda/manual/getMixingTaskList', {})
|
||||
// 确认
|
||||
export const mixingMoveTask = (point, code, weight) => post('api/pda/manual/mixingMoveTask', {
|
||||
point_code: point,
|
||||
vehicle_code: code,
|
||||
weight: weight
|
||||
})
|
||||
|
||||
@@ -14,3 +14,15 @@ export const ExceptionHandlingTask = () => {
|
||||
let res = {code: '1', desc: 'ok'}
|
||||
return res
|
||||
}
|
||||
export const getMixingPointList = () => {
|
||||
let res = {'result': [{'point_name': '混料机1下料位', 'point_code': 'HLJ01XL01'}, {'point_name': '混料机2下料位', 'point_code': 'HLJ02XL01'}, {'point_name': '混料机3下料位', 'point_code': 'HLJ03XL01'}, {'point_name': '混料机4下料位', 'point_code': 'HLJ04XL01'}, {'point_name': '混料机5下料位', 'point_code': 'HLJ05XL01'}, {'point_name': '混料机6下料位', 'point_code': 'HLJ06XL01'}, {'point_name': '混料机7下料位', 'point_code': 'HLJ07XL01'}, {'point_name': '混料机8下料位', 'point_code': 'HLJ08XL01'}, {'point_name': '混料机9下料位', 'point_code': 'HLJ09XL01'}, {'point_name': '混料机10下料位', 'point_code': 'HLJ10XL01'}, {'point_name': '混料机11下料位', 'point_code': 'HLJ11XL01'}, {'point_name': '混料机12下料位', 'point_code': 'HLJ12XL01'}, {'point_name': '混料机13下料位', 'point_code': 'HLJ13XL01'}, {'point_name': '混料机14下料位', 'point_code': 'HLJ14XL01'}, {'point_name': '混料机15下料位', 'point_code': 'HLJ15XL01'}, {'point_name': '混料机16下料位', 'point_code': 'HLJ16XL01'}], 'code': '1', 'desc': '操作成功!'}
|
||||
return res
|
||||
}
|
||||
export const getMixingTaskList = () => {
|
||||
let res = {'result': [{'task_name': '混料区人工送料', 'task_status': '7', 'start_point': '混料机1下料位', 'end_point': '困料虚拟库', 'task_code': '20240515000003', 'vehicle_type': '1', 'task_id': '1790570199137189888', 'vehicle_code': '1222'}], 'code': '1', 'desc': '操作成功!'}
|
||||
return res
|
||||
}
|
||||
export const mixingMoveTask = () => {
|
||||
let res = {code: '1', desc: 'ok'}
|
||||
return res
|
||||
}
|
||||
|
||||
136
src/pages/manual/MixMove.vue
Normal file
136
src/pages/manual/MixMove.vue
Normal file
@@ -0,0 +1,136 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="人工混碾搬运"></nav-bar>
|
||||
<section class="content mgt86">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">起点位置</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<el-select v-model="value1" filterable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options1"
|
||||
:key="item.point_code"
|
||||
:label="item.point_name"
|
||||
:value="item.point_code">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">托盘编码</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<input class="filter-input" type="text" v-model="code">
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">泥料重量</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<input class="filter-input" type="number" v-model="weight">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="zd-row grid_wraper">
|
||||
<div class="left_fixed">
|
||||
<table class="layout-t left_layout_t">
|
||||
<tr>
|
||||
<th>任务号</th>
|
||||
</tr>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td>{{e.task_code}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="slide">
|
||||
<table class="layout-t">
|
||||
<tr>
|
||||
<th>任务名</th>
|
||||
<th>状态</th>
|
||||
<th>起点</th>
|
||||
<th>终点</th>
|
||||
<th>载具类型</th>
|
||||
<th>载具号</th>
|
||||
</tr>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td>{{ e.task_name }}</td>
|
||||
<td>{{e.task_status}}</td>
|
||||
<td>{{e.start_point}}</td>
|
||||
<td>{{e.end_point}}</td>
|
||||
<td>{{e.vehicle_type}}</td>
|
||||
<td>{{e.vehicle_code}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" @click="_getMixingTaskList">查询</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled' : !value1 || !code || !weight}" :disabled="disabled" @click="_mixingMoveTask">确认</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import {getMixingPointList, getMixingTaskList, mixingMoveTask} from '@config/getData2'
|
||||
export default {
|
||||
name: 'BindPalletPoint',
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
value1: '',
|
||||
options1: [],
|
||||
code: '',
|
||||
weight: '',
|
||||
dataList: [],
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._getMixingPointList()
|
||||
this._getMixingTaskList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询下拉框 */
|
||||
async _getMixingPointList () {
|
||||
let res = await getMixingPointList()
|
||||
if (res.code === '1') {
|
||||
this.options1 = [...res.result]
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
},
|
||||
/** grid */
|
||||
async _getMixingTaskList () {
|
||||
let res = await getMixingTaskList()
|
||||
if (res.code === '1') {
|
||||
this.dataList = [...res.result]
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
},
|
||||
/** 确认 */
|
||||
async _mixingMoveTask () {
|
||||
this.disabled = true
|
||||
if (this.value === '' || this.code === '' || this.weight === '') {
|
||||
debugger
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await mixingMoveTask(this.value1, this.code, this.weight)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
this._getMixingTaskList()
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user