料盅退料
This commit is contained in:
@@ -183,3 +183,9 @@ export const kilnMoveCreateTask = (sp, code) => post('api/pda/manual/kiln/move/c
|
||||
start_point: sp,
|
||||
vehicle_code: code
|
||||
})
|
||||
/**
|
||||
* 料盅退料
|
||||
*/
|
||||
export const materialReturn = (code) => post('api/pda/manual/materialReturn', {
|
||||
vehicle_code: code
|
||||
})
|
||||
|
||||
58
src/pages/manual/MaterReturn.vue
Normal file
58
src/pages/manual/MaterReturn.vue
Normal file
@@ -0,0 +1,58 @@
|
||||
<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" >
|
||||
<input class="filter-input" type="text" v-model="code" placeholder="请输入料盅编码">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" @click="code = ''">清空</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled' : !code}" :disabled="disabled" @click="_materialReturn">确认</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import {materialReturn} from '@config/getData2'
|
||||
export default {
|
||||
name: 'BindPalletPoint',
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
code: '',
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 确认 */
|
||||
async _materialReturn () {
|
||||
this.disabled = true
|
||||
if (!this.code) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await materialReturn(this.code)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
this.code = ''
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user