add 软废直接入库
This commit is contained in:
@@ -589,6 +589,17 @@ export const insideInConfirm = (vcode, code) => post('api/pda/st/in/insideInConf
|
||||
point_code: code
|
||||
})
|
||||
|
||||
/**
|
||||
* 软废直接入库
|
||||
*/
|
||||
export const directIn = (code) => post('api/pda/st/in/directIn', {
|
||||
vehicle_code: code
|
||||
})
|
||||
export const directInConfirm = (vcode, code) => post('api/pda/st/in/directInConfirm', {
|
||||
vehicle_code: vcode,
|
||||
point_code: code
|
||||
})
|
||||
|
||||
/** 原料粉直接出库 */
|
||||
// 1.1扫描站点码
|
||||
export const pfoutScanpoint = (val1, val2) => post('api/pda/st/out/pfout/scanpoint2', {
|
||||
|
||||
@@ -172,6 +172,14 @@ export const authority = () => {
|
||||
"name": "内部软废入库",
|
||||
"menu_id": "451",
|
||||
"username": "admin"
|
||||
},
|
||||
{
|
||||
"accountid": "1",
|
||||
"path": "RFSoftWasteInStore",
|
||||
"component": "2",
|
||||
"name": "软废直接入库",
|
||||
"menu_id": "451",
|
||||
"username": "admin"
|
||||
}
|
||||
],
|
||||
"menu_id": "213",
|
||||
|
||||
133
src/pages/xinrui/storage/instorage/SoftWasteInStore.vue
Normal file
133
src/pages/xinrui/storage/instorage/SoftWasteInStore.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 {directIn, directInConfirm} from '@config/getData2.js'
|
||||
import {accAdd} from '@config/mUtils.js'
|
||||
export default {
|
||||
name: 'SoftWasteInStore',
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
dataList: [],
|
||||
disabled: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleChange1 (e, type) {
|
||||
if (type) {
|
||||
this._directIn(e)
|
||||
}
|
||||
},
|
||||
async _directIn (e) {
|
||||
let res = await directIn(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._directInConfirm()
|
||||
},
|
||||
async _directInConfirm () {
|
||||
try {
|
||||
let res = await directInConfirm(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>
|
||||
@@ -30,6 +30,7 @@ const SearchPallet = r => require.ensure([], () => r(require('../pages/xinrui/st
|
||||
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 SoftWasteInStore = r => require.ensure([], () => r(require('../pages/xinrui/storage/instorage/SoftWasteInStore')), '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')
|
||||
@@ -554,6 +555,10 @@ export default new Router({
|
||||
path: '/InsideSoftWasteInStore', // 内部软废入库
|
||||
component: InsideSoftWasteInStore
|
||||
},
|
||||
{
|
||||
path: '/SoftWasteInStore', // 软废直接入库
|
||||
component: SoftWasteInStore
|
||||
},
|
||||
{
|
||||
path: '/PowderMaterMoveStore', // 粉料移库
|
||||
component: PowderMaterMoveStore
|
||||
|
||||
Reference in New Issue
Block a user