取样计数
This commit is contained in:
@@ -189,3 +189,10 @@ export const kilnMoveCreateTask = (sp, code) => post('api/pda/manual/kiln/move/c
|
||||
export const materialReturn = (code) => post('api/pda/manual/materialReturn', {
|
||||
vehicle_code: code
|
||||
})
|
||||
/**
|
||||
* 取样计数
|
||||
*/
|
||||
export const samplingCountNum = (code, number) => post('api/pda/manual/samplingCountNum', {
|
||||
vehicle_code: code,
|
||||
number: number
|
||||
})
|
||||
|
||||
65
src/pages/manual/SamplingCount.vue
Normal file
65
src/pages/manual/SamplingCount.vue
Normal file
@@ -0,0 +1,65 @@
|
||||
<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 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>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" @click="code = '', qty = ''">清空</button>
|
||||
<button class="btn submit-button" :class="{'btn-disabled' : !code}" :disabled="disabled" @click="_samplingCountNum">确认</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import {samplingCountNum} from '@config/getData2'
|
||||
export default {
|
||||
name: 'BindPalletPoint',
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
code: '',
|
||||
qty: '',
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 确认 */
|
||||
async _samplingCountNum () {
|
||||
this.disabled = true
|
||||
if (!this.code || !this.qty) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await samplingCountNum(this.code, this.qty)
|
||||
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