人工压制下料

This commit is contained in:
2024-05-22 15:22:07 +08:00
parent b6699bbd08
commit b3a564b516
5 changed files with 194 additions and 4 deletions

View File

@@ -148,3 +148,26 @@ export const suppressCreateTask = (sp, ep, code) => post('api/pda/manual/suppres
end_point: ep,
vehicle_code: code
})
/**
* 人工压制下料
*/
// 下料起点下拉框
export const suppressDownPointList = () => post('api/pda/manual/suppress/down/pointList', {})
// 压制送料任务列表
export const suppressDownShow = () => post('api/pda/manual/suppress/down/show', {})
// 确认
export const suppressDownCreateTask = (sp, code, qty, is) => post('api/pda/manual/suppress/down/createTask', {
start_point: sp,
vehicle_code: code,
qty: qty,
is_full: is
})
/**
* 人工出窑
*/
// 出窑任务列表
export const kilnOutCreateTaskShow = () => post('api/pda/manual/kiln/out/createTaskShow', {})
// 确认
export const kilnOutCreateTask = (code) => post('api/pda/manual/kiln/out/createTask', {
vehicle_code: code
})

View File

@@ -117,3 +117,23 @@ export const suppressCreateTask = () => {
let res = {code: '1', desc: 'ok'}
return res
}
export const suppressDownPointList = () => {
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 suppressDownShow = () => {
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 suppressDownCreateTask = () => {
let res = {code: '1', desc: 'ok'}
return res
}
export const kilnOutCreateTaskShow = () => {
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 kilnOutCreateTask = () => {
let res = {code: '1', desc: 'ok'}
return res
}

View File

@@ -19,13 +19,13 @@
<div class="bottom-filter-tip">
<div class="filter-label">托盘编码</div>
<div class="fxcol mgl20 visible" >
<input class="filter-input" type="text" v-model="code">
<input class="filter-input" type="text" v-model="code" placeholder="请输入载具编码">
</div>
</div>
<div class="bottom-filter-tip">
<div class="filter-label">泥料重量</div>
<div class="fxcol mgl20 visible" >
<input class="filter-input" type="number" v-model="weight">
<input class="filter-input" type="number" v-model="weight" placeholder="请输入泥料重量">
</div>
</div>
</div>

View File

@@ -32,7 +32,7 @@
<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="请输入编码">
<input class="filter-input" type="text" v-model="code" placeholder="请输入料盅编码">
</div>
</div>
</div>
@@ -78,7 +78,7 @@
<script>
import NavBar from '@components/NavBar.vue'
import {suppressStartPointList, transferPositionList, suppressTaskShow, suppressCreateTask} from '@config/mork2'
import {suppressStartPointList, transferPositionList, suppressTaskShow, suppressCreateTask} from '@config/getData2'
export default {
name: 'BindPalletPoint',
components: {

View File

@@ -0,0 +1,147 @@
<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 class="bottom-filter-tip">
<div class="filter-label">砖块数量</div>
<div class="fxcol mgl20 visible" >
<input class="filter-input" type="number" v-model="qty" placeholder="请输入砖块数量">
</div>
</div>
<div class="bottom-filter-tip">
<div class="filter-label">是否满垛</div>
<div class="fxcol mgl20 visible">
<el-switch
v-model="isFull"
active-color="#ffcb4b"
inactive-color="#DCDFE6">
</el-switch>
</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="_suppressDownShow">查询</button>
<button class="btn submit-button" :class="{'btn-disabled' : !value1 || !code || !qty}" :disabled="disabled" @click="_suppressDownCreateTask">确认</button>
</section>
</section>
</template>
<script>
import NavBar from '@components/NavBar.vue'
import {suppressDownPointList, suppressDownShow, suppressDownCreateTask} from '@config/getData2'
export default {
name: 'BindPalletPoint',
components: {
NavBar
},
data () {
return {
value1: '',
options: [],
code: '',
qty: '',
isFull: false,
dataList: [],
disabled: false
}
},
created () {
this._suppressDownPointList()
this._suppressDownShow()
},
methods: {
/** 查询起点下拉框 */
async _suppressDownPointList () {
let res = await suppressDownPointList()
if (res.code === '1') {
this.options = [...res.result]
} else {
this.Dialog(res.desc)
}
},
/** grid */
async _suppressDownShow () {
let res = await suppressDownShow()
if (res.code === '1') {
this.dataList = [...res.result]
} else {
this.Dialog(res.desc)
}
},
/** 确认 */
async _suppressDownCreateTask () {
this.disabled = true
if (!this.value1 || !this.code || !this.qty) {
this.disabled = false
return
}
try {
let isFull = this.isFull ? '1' : '0'
let res = await suppressDownCreateTask(this.value1, this.code, this.qty, isFull)
if (res.code === '1') {
this.toast(res.desc)
this._suppressDownShow()
} else {
this.Dialog(res.desc)
}
this.disabled = false
} catch (e) {
this.disabled = false
}
}
}
}
</script>