内部软废入库
This commit is contained in:
133
src/pages/xinrui/storage/instorage/InsideSoftWasteInStore.vue
Normal file
133
src/pages/xinrui/storage/instorage/InsideSoftWasteInStore.vue
Normal file
@@ -0,0 +1,133 @@
|
||||
<template>
|
||||
<section>
|
||||
<nav-bar title="内部软废入库"></nav-bar>
|
||||
<section class="content mgt186 mgb70">
|
||||
<div class="filter-wraper">
|
||||
<search-box
|
||||
label="载具码"
|
||||
v-model="val1"
|
||||
@handleChange="handleChange1"
|
||||
></search-box>
|
||||
<search-box
|
||||
label="站点"
|
||||
:focused="true"
|
||||
:seaShow="false"
|
||||
v-model="val2"
|
||||
></search-box>
|
||||
</div>
|
||||
<div class="grid-wraper">
|
||||
<div class="left_fixed">
|
||||
<table class="layout-t left_layout_t">
|
||||
<tr>
|
||||
<th>桶码</th>
|
||||
</tr>
|
||||
<tr v-for="e in dataList" :key="e.bucketunique">
|
||||
<td>{{e.bucketunique}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="slide">
|
||||
<table class="layout-t">
|
||||
<tr>
|
||||
<th>产品编码</th>
|
||||
<th>批次</th>
|
||||
<th>重量kg</th>
|
||||
</tr>
|
||||
<tr v-for="e in dataList" :key="e.bucketunique">
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.pcsn}}</td>
|
||||
<td>{{e.storage_qty | numeric(3)}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="calc_value_wraper">
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">总重量</div>
|
||||
<div class="fxcol mgl20">
|
||||
<input type="text" class="filter-input filter-scan-input" v-model="val3">
|
||||
</div>
|
||||
<div class="mgl20">KG</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="submit-bar">
|
||||
<button class="btn submit-button" :disabled="disabled" :class="{'btn-disabled': !val1 || !val2}" @click="toSure">入库确认</button>
|
||||
</section>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import SearchBox from '@components/SearchBox.vue'
|
||||
import {insideIn, insideInConfirm} from '@config/getData2.js'
|
||||
import {accAdd} from '@config/mUtils.js'
|
||||
export default {
|
||||
name: 'InsideSoftWasteInStore',
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
dataList: [],
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleChange1 (e, type) {
|
||||
if (type) {
|
||||
this._insideIn(e)
|
||||
}
|
||||
},
|
||||
async _insideIn (e) {
|
||||
let res = await insideIn(e)
|
||||
if (res.code === '1') {
|
||||
this.dataList = [...res.content]
|
||||
this.val3 = '0.000'
|
||||
this.dataList.map(el => {
|
||||
this.val3 = accAdd(this.val3, el.storage_qty)
|
||||
})
|
||||
this.val3 = Number(this.val3).toFixed(3) + ''
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
},
|
||||
/** 确认 */
|
||||
toSure () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
this._insideInConfirm()
|
||||
},
|
||||
async _insideInConfirm () {
|
||||
try {
|
||||
let res = await insideInConfirm(this.val1, this.val2)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
Object.assign(this.$data, this.$options.data())
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.pad
|
||||
padding-top 0
|
||||
.btn1
|
||||
max-width auto
|
||||
font-size .2rem
|
||||
padding 0 .1rem
|
||||
</style>
|
||||
@@ -27,6 +27,7 @@ const SoftWasteInStoreGroup = r => require.ensure([], () => r(require('../pages/
|
||||
const SearchPallet = r => require.ensure([], () => r(require('../pages/xinrui/storage/instorage/SearchPallet')), 'instorage')
|
||||
const SearchSoftWasteBill = r => require.ensure([], () => r(require('../pages/xinrui/storage/instorage/SearchSoftWasteBill')), 'instorage')
|
||||
const RemnantInStoreGroup = r => require.ensure([], () => r(require('../pages/xinrui/storage/instorage/RemnantInStoreGroup')), 'instorage')
|
||||
const InsideSoftWasteInStore = r => require.ensure([], () => r(require('../pages/xinrui/storage/instorage/InsideSoftWasteInStore')), 'instorage')
|
||||
// 出库
|
||||
const ReturnScanBarrelOutStore = r => require.ensure([], () => r(require('../pages/xinrui/storage/outstorage/ReturnScanBarrelOutStore')), 'outstorage')
|
||||
const OtherScanBarrelOutStore = r => require.ensure([], () => r(require('../pages/xinrui/storage/outstorage/OtherScanBarrelOutStore')), 'outstorage')
|
||||
@@ -529,6 +530,10 @@ export default new Router({
|
||||
{
|
||||
path: '/SelectGongling', // 生产管理 - 查找外协工令
|
||||
component: SelectGongling
|
||||
},
|
||||
{
|
||||
path: '/InsideSoftWasteInStore', // 内部软废入库
|
||||
component: InsideSoftWasteInStore
|
||||
}
|
||||
],
|
||||
scrollBehavior (to, from, savedPosition) {
|
||||
|
||||
Reference in New Issue
Block a user