料盅比对
This commit is contained in:
@@ -196,3 +196,11 @@ export const samplingCountNum = (code, number) => post('api/pda/manual/samplingC
|
||||
vehicle_code: code,
|
||||
number: number
|
||||
})
|
||||
/**
|
||||
* 料盅比对
|
||||
*/
|
||||
export const loamCompareList = () => post('api/pda/manual/loamCompare/list', {})
|
||||
export const loamCompareDoCheck = (pcode, code) => post('api/pda/manual/loamCompare/doCheck', {
|
||||
point_code: pcode,
|
||||
vehicle_code: code
|
||||
})
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable */
|
||||
export const loginApi = (user, password) => {
|
||||
let res = {
|
||||
'result': {
|
||||
@@ -149,3 +150,11 @@ export const kilnMoveCreateTask = () => {
|
||||
let res = {code: '1', desc: 'ok'}
|
||||
return res
|
||||
}
|
||||
export const loamCompareList = () => {
|
||||
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 loamCompareDoCheck = () => {
|
||||
let res = {code: '1', desc: 'ok'}
|
||||
return res
|
||||
}
|
||||
|
||||
89
src/pages/manual/LzCompare.vue
Normal file
89
src/pages/manual/LzCompare.vue
Normal file
@@ -0,0 +1,89 @@
|
||||
<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="val1" 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>
|
||||
<search-box
|
||||
label="载具"
|
||||
v-model="val2"
|
||||
:seaShow="false"
|
||||
></search-box>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" @click="clearUp">清空</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled' : !val1 || !val2}" :disabled="disabled" @click="_loamCompareDoCheck">确认</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import SearchBox from '@components/SearchBox.vue'
|
||||
import {loamCompareList, loamCompareDoCheck} from '@config/getData2'
|
||||
export default {
|
||||
name: 'BindPalletPoint',
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
val1: '',
|
||||
options: [],
|
||||
val2: '',
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._loamCompareList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询起点下拉框 */
|
||||
async _loamCompareList () {
|
||||
let res = await loamCompareList()
|
||||
if (res.code === '1') {
|
||||
this.options = [...res.result]
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
},
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
},
|
||||
/** 确认 */
|
||||
async _loamCompareDoCheck () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await loamCompareDoCheck(this.val1, this.val2)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user