半成品入库
This commit is contained in:
@@ -87,6 +87,12 @@
|
|||||||
"enablePullDownRefresh": true,
|
"enablePullDownRefresh": true,
|
||||||
"onReachBottomDistance": 50
|
"onReachBottomDistance": 50
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/management/HalfFinishedInStore",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
|
|||||||
@@ -91,8 +91,10 @@
|
|||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@import '../../common/style/mixin.styl';
|
@import '../../common/style/mixin.styl';
|
||||||
.filter-confirm-wrap
|
.filter-confirm-wrap
|
||||||
_wh(100%, calc(100% - 72px))
|
_wh(calc(100% - 30px), calc(100% - 72px))
|
||||||
background-color #f5f5f5
|
background-color #fff
|
||||||
|
border-radius 12px
|
||||||
|
margin 15px auto
|
||||||
_fj()
|
_fj()
|
||||||
.filter-confirm-wrap-inner
|
.filter-confirm-wrap-inner
|
||||||
width 50%
|
width 50%
|
||||||
|
|||||||
@@ -68,11 +68,14 @@
|
|||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onShow() {
|
||||||
if (this.$store.getters.publicArr) {
|
if (this.$store.getters.publicArr) {
|
||||||
this.dataList = this.$store.getters.publicArr
|
this.dataList = this.$store.getters.publicArr
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
destroyed () {
|
||||||
|
this.$store.dispatch('setPublicArr', '')
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 选择器1 */
|
/** 选择器1 */
|
||||||
selectChange1(e) {
|
selectChange1(e) {
|
||||||
|
|||||||
188
pages/management/HalfFinishedInStore.vue
Normal file
188
pages/management/HalfFinishedInStore.vue
Normal file
@@ -0,0 +1,188 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<nav-bar title="半成品入库"></nav-bar>
|
||||||
|
<view class="filter-confirm-wrap">
|
||||||
|
<view class="filter-confirm-wrap-inner">
|
||||||
|
<view class="filter-wrap">
|
||||||
|
<view class="search-item filter-item">
|
||||||
|
<label class="search-label">订单号</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="text" class="search-input-l" v-model="val1">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item filter-item">
|
||||||
|
<label class="search-label">物料</label>
|
||||||
|
<view class="filter_input_wraper" @tap="toSearch">
|
||||||
|
<input type="text" class="search-input-l" v-model="val2">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item filter-item">
|
||||||
|
<label class="search-label">名称</label>
|
||||||
|
<view class="filter_input_wraper" @tap="toSearch">
|
||||||
|
<input type="text" class="search-input-l" v-model="val3">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item filter-item">
|
||||||
|
<label class="search-label">规格</label>
|
||||||
|
<view class="filter_input_wraper" @tap="toSearch">
|
||||||
|
<input type="text" class="search-input-l" v-model="val4">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item filter-item">
|
||||||
|
<label class="search-label">数量</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<input type="number" class="search-input-l" v-model="val5">
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="search-item filter-item">
|
||||||
|
<label class="search-label">载具号</label>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<search-box
|
||||||
|
v-model="val6"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="confirm-button-wrap confirm-button-wrap-c">
|
||||||
|
<button class="confirm-button" @tap="toCancle">清空</button>
|
||||||
|
<button class="confirm-button" :class="{'confirm-button_disabled': !val1 || !val2 || !val5 || !val6 }" :disabled="disabled" @tap="toSure">确定</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {releasepoint} from '@/utils/getData2.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
val1: '',
|
||||||
|
val2: '',
|
||||||
|
val3: '',
|
||||||
|
val4: '',
|
||||||
|
val5: '',
|
||||||
|
val6: '',
|
||||||
|
val7: '',
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onShow () {
|
||||||
|
if (this.$store.getters.publicObj !== '') {
|
||||||
|
this.val2 = this.$store.getters.publicObj.material_code
|
||||||
|
this.val3 = this.$store.getters.publicObj.material_name
|
||||||
|
this.val4 = this.$store.getters.publicObj.material_spec
|
||||||
|
this.val7 = this.$store.getters.publicObj.material_uuid
|
||||||
|
}
|
||||||
|
},
|
||||||
|
destroyed () {
|
||||||
|
this.$store.dispatch('setPublicObj', '')
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
toCancle () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.val3 = ''
|
||||||
|
this.val4 = ''
|
||||||
|
this.val5 = ''
|
||||||
|
this.val6 = ''
|
||||||
|
this.val7 = ''
|
||||||
|
this.$store.dispatch('setPublicObj', '')
|
||||||
|
},
|
||||||
|
toSearch () {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/management/searchMater?page=p2'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
toSure () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '订单号不能为空',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.val2) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '物料不能为空',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.val5) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '数量不能为空',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (Number(this.val5) < 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '数量不能小于零',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.val6) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '载具号不能为空',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this._releasepoint()
|
||||||
|
},
|
||||||
|
async _releasepoint () {
|
||||||
|
try {
|
||||||
|
let res = await inOutExceptionInstConfirm(this.index1, this.val1)
|
||||||
|
this.disabled = false
|
||||||
|
this.toCancle()
|
||||||
|
this.$store.dispatch('setPublicObj', '')
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
@import '../../common/style/mixin.styl';
|
||||||
|
.filter-confirm-wrap
|
||||||
|
_wh(calc(100% - 30px), calc(100% - 72px))
|
||||||
|
background-color #fff
|
||||||
|
border-radius 12px
|
||||||
|
margin 15px auto
|
||||||
|
_fj()
|
||||||
|
.filter-confirm-wrap-inner
|
||||||
|
width 50%
|
||||||
|
background-color #fff
|
||||||
|
border-radius 12px
|
||||||
|
padding-bottom 15px
|
||||||
|
margin 0 auto
|
||||||
|
.filter-wrap
|
||||||
|
width 100%
|
||||||
|
padding 0 15px
|
||||||
|
_fj(center,,column,)
|
||||||
|
.filter-item
|
||||||
|
width 100%
|
||||||
|
.confirm-button-wrap-c
|
||||||
|
justify-content center
|
||||||
|
margin-top 50px
|
||||||
|
</style>
|
||||||
@@ -92,8 +92,10 @@
|
|||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@import '../../common/style/mixin.styl';
|
@import '../../common/style/mixin.styl';
|
||||||
.filter-confirm-wrap
|
.filter-confirm-wrap
|
||||||
_wh(100%, calc(100% - 72px))
|
_wh(calc(100% - 30px), calc(100% - 72px))
|
||||||
background-color #f5f5f5
|
background-color #fff
|
||||||
|
border-radius 12px
|
||||||
|
margin 15px auto
|
||||||
_fj()
|
_fj()
|
||||||
.filter-confirm-wrap-inner
|
.filter-confirm-wrap-inner
|
||||||
width 50%
|
width 50%
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<view class="search-confirm-wrap">
|
<view class="search-confirm-wrap">
|
||||||
<view class="search-wrap">
|
<view class="search-wrap">
|
||||||
<view class="search-item">
|
<view class="search-item">
|
||||||
<label class="search-label">订单</label>
|
<label class="search-label">订单号</label>
|
||||||
<view class="filter_input_wraper">
|
<view class="filter_input_wraper">
|
||||||
<input type="text" class="search-input-l" v-model="val1">
|
<input type="text" class="search-input-l" v-model="val1">
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -237,7 +237,7 @@
|
|||||||
},
|
},
|
||||||
searchMater () {
|
searchMater () {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/management/searchMater'
|
url: '/pages/management/searchMater?page=p1'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
closePop () {
|
closePop () {
|
||||||
|
|||||||
@@ -54,14 +54,25 @@
|
|||||||
val1: '',
|
val1: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
pkId: '',
|
pkId: '',
|
||||||
pkObj: {}
|
pkObj: {},
|
||||||
|
page: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
onLoad (options) {
|
||||||
|
this.page = options.page
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goIn () {
|
goIn () {
|
||||||
uni.navigateTo({
|
if (this.page === 'p1') {
|
||||||
url: `/pages/management/hcxcheck`
|
uni.redirectTo({
|
||||||
})
|
url: '/pages/management/hcxcheck'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (this.page === 'p2') {
|
||||||
|
uni.redirectTo({
|
||||||
|
url: '/pages/management/HalfFinishedInStore'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async _materialQuery () {
|
async _materialQuery () {
|
||||||
let res = await materialQuery(this.val1)
|
let res = await materialQuery(this.val1)
|
||||||
@@ -76,7 +87,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||||
uni.navigateBack()
|
this.goIn()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,17 +29,17 @@ export const authority = () => {
|
|||||||
{menu_id: '1', name: '扫码异常', path: '/pages/management/inscanerror'},
|
{menu_id: '1', name: '扫码异常', path: '/pages/management/inscanerror'},
|
||||||
{menu_id: '2', name: '缓存线盘点', path: '/pages/management/hcxcheck'},
|
{menu_id: '2', name: '缓存线盘点', path: '/pages/management/hcxcheck'},
|
||||||
{menu_id: '3', name: '缓存线出箱异常', path: '/pages/management/HcxOutError'},
|
{menu_id: '3', name: '缓存线出箱异常', path: '/pages/management/HcxOutError'},
|
||||||
{menu_id: '4', name: '任务操作', path: '/pages/management/ZlOperate'},
|
{menu_id: '4', name: '缓存线异常处理', path: '/pages/management/HcxErrorHandle'}
|
||||||
{menu_id: '5', name: '缓存线异常处理', path: '/pages/management/HcxErrorHandle'}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{menu_id: '2', path: 'RF02', name: '生产管理', sonTree: [
|
{menu_id: '2', path: 'RF02', name: '生产管理', sonTree: [
|
||||||
{menu_id: '1', name: '任务管理', path: '/pages/management/TaskManage'}
|
{menu_id: '1', name: '任务管理', path: '/pages/management/ZlOperate'},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{menu_id: '3', path: 'RF03', name: '出入库管理', sonTree: [
|
{menu_id: '3', path: 'RF03', name: '出入库管理', sonTree: [
|
||||||
{menu_id: '1', name: '成品入库', path: '/pages/management/FinishedInStore'},
|
{menu_id: '1', name: '半成品入库', path: '/pages/management/HalfFinishedInStore'},
|
||||||
{menu_id: '2', name: '发货确认', path: '/pages/management/DeliveryConfirm'}
|
{menu_id: '2', name: '成品入库', path: '/pages/management/FinishedInStore'},
|
||||||
|
{menu_id: '3', name: '发货确认', path: '/pages/management/DeliveryConfirm'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user