This commit is contained in:
2025-12-11 17:39:37 +08:00
parent 3f3fb15293
commit f351d6e02f
3 changed files with 32 additions and 33 deletions

View File

@@ -514,7 +514,7 @@
} }
} }
,{ ,{
"path" : "pages/zw/ltzp", "path" : "pages/zw/wlrk",
"style" : "style" :
{ {
"navigationStyle": "custom" "navigationStyle": "custom"

View File

@@ -43,7 +43,7 @@
menuList: [ menuList: [
{title: '原料管理', path: 'RF04', sonTree: [{title: '来料入库', path: '/pages/zw/ll-instore'}, {title: '空载具入库', path: '/pages/zw/kzj-instore'}, {title: '空载具出库', path: '/pages/zw/kzj-outstore'}, {title: '点位属性设置', path: '/pages/zw/point-attrset'}, {title: '物料组盘', path: '/pages/zw/wl-groupplate'}, {title: '点位更新', path: '/pages/zw/confirm-quhuo'}]}, {title: '原料管理', path: 'RF04', sonTree: [{title: '来料入库', path: '/pages/zw/ll-instore'}, {title: '空载具入库', path: '/pages/zw/kzj-instore'}, {title: '空载具出库', path: '/pages/zw/kzj-outstore'}, {title: '点位属性设置', path: '/pages/zw/point-attrset'}, {title: '物料组盘', path: '/pages/zw/wl-groupplate'}, {title: '点位更新', path: '/pages/zw/confirm-quhuo'}]},
{title: '解包管理', path: 'RF03', sonTree: [{title: '解包上料', path: '/pages/zw/jb-up-mater'}, {title: '解包出桶', path: '/pages/zw/jb-lower-mater'}, {title: '解包退料', path: '/pages/zw/jb-return-mater'}, {title: '人车安全', path: '/pages/zw/mancar-safe'}]}, {title: '解包管理', path: 'RF03', sonTree: [{title: '解包上料', path: '/pages/zw/jb-up-mater'}, {title: '解包出桶', path: '/pages/zw/jb-lower-mater'}, {title: '解包退料', path: '/pages/zw/jb-return-mater'}, {title: '人车安全', path: '/pages/zw/mancar-safe'}]},
{title: '缓存管理', path: 'RF06', sonTree: [{title: '料桶盘点', path: '/pages/zw/materbox-instore'}, {title: '物料入库', path: '/pages/zw/ltzp'}]}, {title: '缓存管理', path: 'RF06', sonTree: [{title: '料桶盘点', path: '/pages/zw/materbox-instore'}, {title: '物料入库', path: '/pages/zw/wlrk'}]},
{title: '产线管理', path: 'RF02', sonTree: [{title: '手工叫料', path: '/pages/zw/manual-callmater'}, {title: '手工退料', path: '/pages/zw/manual-returnmater'}]}, {title: '产线管理', path: 'RF02', sonTree: [{title: '手工叫料', path: '/pages/zw/manual-callmater'}, {title: '手工退料', path: '/pages/zw/manual-returnmater'}]},
{title: '作业管理', path: 'RF07', sonTree: [{title: '作业管理', path: '/pages/zw/zygl'}]}, {title: '作业管理', path: 'RF07', sonTree: [{title: '作业管理', path: '/pages/zw/zygl'}]},
// {title: '入库管理', path: 'RF01', sonTree: [{title: '物料组盘入库', path: '/pages/entry/mater-group-to-store'}, {title: '合格证入库', path: '/pages/entry/qualified-to-store'}, {title: '单据入库', path: '/pages/entry/bill-to-store'}, {title: '盘点入库', path: '/pages/entry/check-to-store'}, {title: '空托盘入库', path: '/pages/entry/empty-tray-to-store'}]}, // {title: '入库管理', path: 'RF01', sonTree: [{title: '物料组盘入库', path: '/pages/entry/mater-group-to-store'}, {title: '合格证入库', path: '/pages/entry/qualified-to-store'}, {title: '单据入库', path: '/pages/entry/bill-to-store'}, {title: '盘点入库', path: '/pages/entry/check-to-store'}, {title: '空托盘入库', path: '/pages/entry/empty-tray-to-store'}]},

View File

@@ -9,7 +9,7 @@
<span class="filter_label">物料编码</span> <span class="filter_label">物料编码</span>
</view> </view>
<view class="zd-col-17"> <view class="zd-col-17">
<input type="text" class="filter_input" v-model="currentData.material_code" @tap="toJump"> <input type="text" class="filter_input" v-model="materCode" @tap="toJump">
</view> </view>
</view> </view>
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
@@ -17,7 +17,7 @@
<span class="filter_label filter_input_disabled">物料名称</span> <span class="filter_label filter_input_disabled">物料名称</span>
</view> </view>
<view class="zd-col-17"> <view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled> <input type="text" class="filter_input filter_input_disabled" v-model="materName" disabled>
</view> </view>
</view> </view>
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
@@ -25,7 +25,7 @@
<span class="filter_label filter_input_disabled">物料规格</span> <span class="filter_label filter_input_disabled">物料规格</span>
</view> </view>
<view class="zd-col-17"> <view class="zd-col-17">
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_spec" disabled> <input type="text" class="filter_input filter_input_disabled" v-model="materSpec" disabled>
</view> </view>
</view> </view>
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
@@ -33,7 +33,7 @@
<span class="filter_label">物料单重</span> <span class="filter_label">物料单重</span>
</view> </view>
<view class="zd-col-16"> <view class="zd-col-16">
<NumberInput v-model="currentData.single_weight"/> <NumberInput v-model="singleWeight"/>
</view> </view>
<view class="zd-col-2"><span class="filter_unit">KG</span></view> <view class="zd-col-2"><span class="filter_unit">KG</span></view>
</view> </view>
@@ -42,7 +42,7 @@
<span class="filter_label">物料批次</span> <span class="filter_label">物料批次</span>
</view> </view>
<view class="zd-col-17"> <view class="zd-col-17">
<input type="text" class="filter_input" v-model="currentData.pcsn"> <input type="text" class="filter_input" v-model="materPcsn">
</view> </view>
</view> </view>
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
@@ -53,14 +53,6 @@
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select> <uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
</view> </view>
</view> </view>
<!-- <view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">料桶编码</span>
</view>
<view class="zd-col-17">
<search-box v-model="currentData.vehicle_code" @handleChange="handleChange" @handleDel="handleDel" />
</view>
</view> -->
<view class="zd-row border-bottom"> <view class="zd-row border-bottom">
<view class="zd-col-7"> <view class="zd-col-7">
<span class="filter_label">料桶编码</span> <span class="filter_label">料桶编码</span>
@@ -124,6 +116,12 @@
return { return {
title: '', title: '',
currentData: {}, currentData: {},
materId: '',
materCode: '',
materName: '',
materSpec: '',
singleWeight: '',
materPcsn: '',
options: [], options: [],
index: '', index: '',
options2: [], options2: [],
@@ -155,6 +153,13 @@
onShow () { onShow () {
if (this.$store.getters.publicObj !== '') { if (this.$store.getters.publicObj !== '') {
this.currentData = this.$store.getters.publicObj this.currentData = this.$store.getters.publicObj
//
this.materCode = this.currentData.material_code
this.materName = this.currentData.material_name
this.materSpec = this.currentData.material_spec
this.singleWeight = this.currentData.single_weight
this.materPcsn = this.currentData.pcsn
this.materId = this.currentData.material_id
this.$store.dispatch('setPublicObj', '') this.$store.dispatch('setPublicObj', '')
} }
}, },
@@ -218,19 +223,13 @@
url: '/pages/common/mater-list?title=查询物料' url: '/pages/common/mater-list?title=查询物料'
}) })
}, },
handleChange (e) {
if (e) {
if (e.charAt(0).toUpperCase() === 'T') {
this.index ='FStockPallet'
} else {
this.index ='FStockId'
}
}
},
handleDel () {
this.index = ''
},
toEmpty () { toEmpty () {
this.materCode = ''
this.materName = ''
this.materSpec = ''
this.singleWeight = ''
this.materPcsn = ''
this.materId = ''
this.currentData = {} this.currentData = {}
this.index = '' this.index = ''
this.vehicleCode = '' this.vehicleCode = ''
@@ -245,10 +244,10 @@
this.disabled = false this.disabled = false
return return
} }
if (Number(this.currentData.single_weight) > 2000) { if (Number(this.singleWeight) > 2000) {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: '输入的重量'+ Number(this.currentData.single_weight) +'过大,是否继续?', content: '输入的重量'+ Number(this.singleWeight) +'过大,是否继续?',
confirmColor: '#ff6a00', confirmColor: '#ff6a00',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
@@ -265,7 +264,7 @@
async _combination () { async _combination () {
try { try {
let selobj = this.options.find(item => item.value === this.index) let selobj = this.options.find(item => item.value === this.index)
let res = await combination(this.vehicleCode, this.currentData.pcsn, this.currentData.material_id, selobj.value, selobj.text, this.currentData.single_weight) let res = await combination(this.vehicleCode, this.materPcsn, this.materId, selobj.value, selobj.text, this.singleWeight)
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none' icon: 'none'
@@ -282,10 +281,10 @@
this.disabled = false this.disabled = false
return return
} }
if (Number(this.currentData.single_weight) > 2000) { if (Number(this.singleWeight) > 2000) {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: '输入的重量'+ Number(this.currentData.single_weight) +'过大,是否继续?', content: '输入的重量'+ Number(this.singleWeight) +'过大,是否继续?',
confirmColor: '#ff6a00', confirmColor: '#ff6a00',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
@@ -302,7 +301,7 @@
async _groupAndBind () { async _groupAndBind () {
try { try {
let selobj = this.options.find(item => item.value === this.index) let selobj = this.options.find(item => item.value === this.index)
let res = await groupAndBind(this.vehicleCode, this.currentData.pcsn, this.currentData.material_id, selobj.value, selobj.text, this.currentData.single_weight, this.index2) let res = await groupAndBind(this.vehicleCode, this.materPcsn, this.materId, selobj.value, selobj.text, this.singleWeight, this.index2)
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none' icon: 'none'