载具转移
This commit is contained in:
@@ -171,3 +171,15 @@ export const kilnOutCreateTaskShow = () => post('api/pda/manual/kiln/out/createT
|
||||
export const kilnOutCreateTask = (code) => post('api/pda/manual/kiln/out/createTask', {
|
||||
vehicle_code: code
|
||||
})
|
||||
/**
|
||||
* 载具转移
|
||||
*/
|
||||
// 下料起点下拉框
|
||||
export const kilnMovePointList = () => post('api/pda/manual/kiln/move/pointList', {})
|
||||
// 任务列表
|
||||
export const kilnMoveCreateTaskShow = () => post('api/pda/manual/kiln/move/createTaskShow', {})
|
||||
// 确认
|
||||
export const kilnMoveCreateTask = (sp, code) => post('api/pda/manual/kiln/move/createTask', {
|
||||
start_point: sp,
|
||||
vehicle_code: code
|
||||
})
|
||||
|
||||
@@ -137,3 +137,15 @@ export const kilnOutCreateTask = () => {
|
||||
let res = {code: '1', desc: 'ok'}
|
||||
return res
|
||||
}
|
||||
export const kilnMovePointList = () => {
|
||||
let res = {'result': [{'point_name': '压机3上料位', 'point_code': 'YJ03SL01'}, {'point_name': '压机4上料位', 'point_code': 'YJ04SL01'}, {'point_name': '压机5上料位', 'point_code': 'YJ05SL01'}, {'point_name': '压机6上料位', 'point_code': 'YJ06SL01'}, {'point_name': '压机7上料位', 'point_code': 'YJ07SL01'}, {'point_name': '压机8上料位', 'point_code': 'YJ08SL01'}, {'point_name': '压机9上料位', 'point_code': 'YJ09SL01'}, {'point_name': '压机10上料位', 'point_code': 'YJ10SL01'}, {'point_name': '次品料对接位1', 'point_code': 'CPLDJ01'}, {'point_name': '次品料对接位2', 'point_code': 'CPLDJ02'}, {'point_name': '次品料对接位3', 'point_code': 'CPLDJ03'}, {'point_name': '次品料对接位4', 'point_code': 'CPLDJ04'}], 'code': '1', 'desc': '操作成功!'}
|
||||
return res
|
||||
}
|
||||
export const kilnMoveCreateTaskShow = () => {
|
||||
let res = {'result': [{'task_name': '人工布料机上料', 'task_status': '7', 'start_point': '困料虚拟库', 'end_point': '压机3上料位', 'task_code': '20240515000006', 'vehicle_type': '1', 'task_id': '1790612954789974016', 'vehicle_code': '1222'}, {'task_name': '人工压机下料', 'task_status': '7', 'start_point': '压机3上料位', 'end_point': '窑前虚拟库', 'task_code': '20240515000007', 'vehicle_type': '1', 'task_id': '1790619293327052800', 'vehicle_code': '8522'}], 'code': '1', 'desc': '操作成功!'}
|
||||
return res
|
||||
}
|
||||
export const kilnMoveCreateTask = () => {
|
||||
let res = {code: '1', desc: 'ok'}
|
||||
return res
|
||||
}
|
||||
|
||||
128
src/pages/manual/KilnMove.vue
Normal file
128
src/pages/manual/KilnMove.vue
Normal file
@@ -0,0 +1,128 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="载具转移"></nav-bar>
|
||||
<section class="content mgt86 mgb110">
|
||||
<div class="filter-wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label">搬运起点</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<el-select v-model="value1" filterable clearable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
: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">载具编码</div>
|
||||
<div class="fxcol mgl20 visible" >
|
||||
<input class="filter-input" type="text" v-model="code" placeholder="请输入料盅编码">
|
||||
</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="_kilnMoveCreateTaskShow">查询</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled' : !value1 || !code}" :disabled="disabled" @click="_kilnMoveCreateTask">确认</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import {kilnMovePointList, kilnMoveCreateTaskShow, kilnMoveCreateTask} from '@config/getData2'
|
||||
export default {
|
||||
name: 'BindPalletPoint',
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
value1: '',
|
||||
options: [],
|
||||
code: '',
|
||||
dataList: [],
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._kilnMovePointList()
|
||||
this._kilnMoveCreateTaskShow()
|
||||
},
|
||||
methods: {
|
||||
/** 查询起点下拉框 */
|
||||
async _kilnMovePointList () {
|
||||
let res = await kilnMovePointList()
|
||||
if (res.code === '1') {
|
||||
this.options = [...res.result]
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
},
|
||||
/** grid */
|
||||
async _kilnMoveCreateTaskShow () {
|
||||
let res = await kilnMoveCreateTaskShow()
|
||||
if (res.code === '1') {
|
||||
this.dataList = [...res.result]
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
},
|
||||
/** 确认 */
|
||||
async _kilnMoveCreateTask () {
|
||||
this.disabled = true
|
||||
if (!this.value1 || !this.code) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await kilnMoveCreateTask(this.value1, this.code)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
this._kilnMoveCreateTaskShow()
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import {kilnOutCreateTaskShow, kilnOutCreateTask} from '@config/mork2'
|
||||
import {kilnOutCreateTaskShow, kilnOutCreateTask} from '@config/getData2'
|
||||
export default {
|
||||
name: 'BindPalletPoint',
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user