add 出库分拣

This commit is contained in:
2025-11-10 18:59:16 +08:00
parent 5a4f83bfd9
commit 84df82529d
13 changed files with 192 additions and 12 deletions

View File

@@ -506,4 +506,7 @@ uni-button[disabled]:not([type]), uni-button[disabled][type=default] {
width 70%
height 4rpx
background-color #fff
}
uni-button[size=mini] {
white-space: nowrap;
}

View File

@@ -32,7 +32,8 @@
"ManualWarehouseTransfer": "Manual Warehouse Transfer",
"OperationManagement": "Operation Management",
"PointUpdate": "Point Update",
"QueryMaterials": "Query Materials"
"QueryMaterials": "Query Materials",
"Outboundsorting": "Outbound sorting"
},
"utils": {
"loading": "Loading...",
@@ -75,7 +76,12 @@
"Pointlocationcarrier": "Point - location carrier",
"Unitmeasurement": "Unit of measurement",
"WarehousingType": "Warehousing Type",
"MaterialQRCode": "Material QR Code"
"MaterialQRCode": "Material QR Code",
"ReturnwarehousePalletCode": "Return - to - warehouse Pallet Code",
"OutboundPalletCode": "Outbound Pallet Code",
"OutboundPalletStorageLocation": "Outbound Pallet Storage Location",
"QtyReturnedWarehouse": "Quantity Returned to Warehouse",
"OutboundQty": "Outbound Quantity"
},
"th": {
"MaterialBoxNumber": "Material Box Number",
@@ -91,5 +97,8 @@
"toast": {
"boxnotduplicated": "The material box number cannot be repeated.",
"quantitynonnegative": "The quantity must be a non - negative number"
},
"modal": {
"checkSorting": "The outbound pallet location is【{location}】, return quantity【{returnNum}】, outbound quantity【{outNum}】. Please check if the sorting is correct?"
}
}

View File

@@ -32,7 +32,8 @@
"ManualWarehouseTransfer": "Chuyển kho thủ công",
"OperationManagement": "Quản lý hoạt động",
"PointUpdate": "Cập nhật điểm",
"QueryMaterials": "Tra cứu vật liệu"
"QueryMaterials": "Tra cứu vật liệu",
"Outboundsorting": "Phân loại xuất kho"
},
"utils": {
"loading": "Đang tải...",
@@ -75,7 +76,12 @@
"Pointlocationcarrier": "Vật chở tại điểm",
"Unitmeasurement": "Đơn vị đo",
"WarehousingType": "Loại nhập kho",
"MaterialQRCode": "Mã QR vật liệu"
"MaterialQRCode": "Mã QR vật liệu",
"ReturnwarehousePalletCode": "Mã thùng đựng trả về kho",
"OutboundPalletCode": "Mã thùng đựng xuất kho",
"OutboundPalletStorageLocation": "Vị trí lưu trữ thùng đựng xuất kho",
"QtyReturnedWarehouse": "Số lượng trả về kho",
"OutboundQty": "Số lượng xuất kho"
},
"th": {
"MaterialBoxNumber": "Số hộp vật liệu",
@@ -91,5 +97,8 @@
"toast": {
"boxnotduplicated": "Số hộp vật liệu không được trùng nhau",
"quantitynonnegative": "Số lượng phải là số không âm"
}
},
"modal": {
"checkSorting": "Vị trí lưu trữ thùng đựng xuất kho là【{location}】, số lượng trả lại【{returnNum}】, số lượng xuất kho【{outNum}】. Vui lòng kiểm tra xem phân loại có chính xác không?"
}
}

View File

@@ -32,7 +32,8 @@
"ManualWarehouseTransfer": "手工移库",
"OperationManagement": "作业管理",
"PointUpdate": "点位更新",
"QueryMaterials": "查询物料"
"QueryMaterials": "查询物料",
"Outboundsorting": "出库分拣"
},
"utils": {
"loading": "加载中...",
@@ -75,7 +76,12 @@
"Pointlocationcarrier": "点位载具",
"Unitmeasurement": "计量单位",
"WarehousingType": "入库类型",
"MaterialQRCode": "物料二维码"
"MaterialQRCode": "物料二维码",
"ReturnwarehousePalletCode": "回库托盘码",
"OutboundPalletCode": "出库托盘码",
"OutboundPalletStorageLocation": "出库托盘库位",
"QtyReturnedWarehouse": "回库数量",
"OutboundQty": "出库数量"
},
"th": {
"MaterialBoxNumber": "料框号",
@@ -91,5 +97,8 @@
"toast": {
"boxnotduplicated": "料框号不能重复",
"quantitynonnegative": "数量必须为非负数"
},
"modal": {
"checkSorting": "出库托盘库位为【{location}】,回库数量【{returnNum}】个,出库数量【{outNum}】个,请核对分拣是否正确?"
}
}

View File

@@ -95,6 +95,13 @@
"navigationStyle": "custom"
}
},
{
"path" : "pages/manage/ckfj",
"style" :
{
"navigationStyle": "custom"
}
}
],
"globalStyle": {

View File

@@ -38,7 +38,8 @@
{title: this.$t('home.ManualMaterialRequest'), icon: 'RF04', path: '/pages/manage/rgjl'},
{title: this.$t('home.ManualWarehouseTransfer'), icon: 'RF05', path: '/pages/manage/sgyk'},
{title: this.$t('home.OperationManagement'), icon: 'RF06', path: '/pages/manage/zygl'},
{title: this.$t('home.PointUpdate'), icon: 'RF07', path: '/pages/manage/dwgx'}
{title: this.$t('home.PointUpdate'), icon: 'RF07', path: '/pages/manage/dwgx'},
{title: this.$t('home.Outboundsorting'), icon: 'RF08', path: '/pages/manage/ckfj'}
],
show: false,
secM: []

134
pages/manage/ckfj.vue Normal file
View File

@@ -0,0 +1,134 @@
<template>
<view class="zd_container">
<!-- 出库分拣 -->
<nav-bar :title="title"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="is-required">
<view class="filter_label">{{$t('label.ReturnwarehousePalletCode')}}</view>
</view>
<view class="zd-row">
<view class="zd-col-18">
<search-box
v-model="val1"
@handleChange="handleChange"
/>
</view>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0;margin-left: 10rpx;" @tap="_getOutAndReturnNumByReturnVehicleCode(val1)">{{$t('button.search')}}</button>
</view>
<view>
<view class="filter_label">{{$t('label.OutboundPalletCode')}}</view>
<search-box
v-model="val2"
/>
</view>
<view>
<view class="filter_label">{{$t('label.OutboundPalletStorageLocation')}}</view>
<search-box
v-model="val3"
/>
</view>
<view>
<view class="filter_label">{{$t('label.QtyReturnedWarehouse')}}</view>
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.return_num" disabled>
</view>
<view>
<view class="filter_label">{{$t('label.OutboundQty')}}</view>
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.out_num" disabled>
</view>
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-6 button-default" @tap="clearUp">{{$t('button.clear')}}</button>
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !val3 || JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="toSure">{{$t('button.confirm')}}</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {getOutAndReturnNumByReturnVehicleCode, outSortingSubmit} from '@/utils/getData.js'
export default {
components: {
NavBar,
SearchBox
},
data() {
return {
title: '',
val1: '',
val2: '',
val3: '',
currentData: {},
disabled: false
};
},
onLoad (options) {
this.title = options.title
},
methods: {
handleChange (e) {
if (e) {
this._getOutAndReturnNumByReturnVehicleCode(e)
}
},
async _getOutAndReturnNumByReturnVehicleCode (e) {
try {
let res = await getOutAndReturnNumByReturnVehicleCode(e)
if (res && res.status === '200') {
this.currentData = res.data
} else {
this.currentData = {}
}
} catch (e) {
this.currentData = {}
}
},
clearUp () {
this.val1 = ''
this.val2 = ''
this.val3 = ''
this.currentData = {}
this.disabled = false
},
toSure () {
this.disabled = true
if (!this.val1 || !this.val2 || !this.val3 || JSON.stringify(this.currentData) === '{}') {
this.disabled = false
return
}
uni.showModal({
title: this.$t('common.tip'),
content: this.$t('modal.checkSorting', {
location: this.val3,
returnNum: this.currentData.return_num,
outNum: this.currentData.out_num
}),
success: (res) => {
if (res.confirm) {
this._outSortingSubmit()
} else if (res.cancel) {
this.disabled = false
}
}
});
},
async _outSortingSubmit () {
try {
let res = await outSortingSubmit(this.val1, this.val2, this.val3)
if (res.status === '200') {
this.clearUp()
}
this.disabled = false
uni.showToast({
title: res.message,
icon: 'none'
})
} catch (e) {
this.disabled = false
}
}
}
}
</script>

View File

@@ -14,7 +14,7 @@
<view class="zd-col-18">
<search-box v-model="val2"/>
</view>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0" @tap="_schPointGetPoint">{{$t('button.search')}}</button>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0;margin-left: 10rpx;" @tap="_schPointGetPoint">{{$t('button.search')}}</button>
</view>
</view>
</view>

View File

@@ -16,7 +16,7 @@
<view class="zd-col-18">
<input type="text" class="filter_input" v-model="val2">
</view>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0" @tap="_linegetMaterialDtl">{{$t('button.search')}}</button>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0;margin-left: 10rpx;" @tap="_linegetMaterialDtl">{{$t('button.search')}}</button>
</view>
</view>
<view class="is-required">

View File

@@ -14,7 +14,7 @@
<view class="zd-col-18">
<search-box v-model="val2"/>
</view>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0" @tap="_movestorQuerydtl">{{$t('button.search')}}</button>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0;margin-left: 10rpx;" @tap="_movestorQuerydtl">{{$t('button.search')}}</button>
</view>
</view>
<view class="is-required">

View File

@@ -21,7 +21,7 @@
@handleChange="handleChange"
/>
</view>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0" @tap="_getVehicleMaterial(val1)">{{$t('button.search')}}</button>
<button class="mini-btn" type="primary" size="mini" style="margin-right: 0;margin-left: 10rpx;" @tap="_getVehicleMaterial(val1)">{{$t('button.search')}}</button>
</view>
<view class="is-required">
<view class="filter_label">{{$t('label.WarehouseArea')}}</view>

BIN
static/image/menu/RF08.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -136,4 +136,12 @@ export const addTaskV2 = (Value, point1, point2) => request({
export const dictDetail = (code) => request({
url:'api/dict/dictDetail?code=' + code + '&page=0&size=9999',
method: 'GET'
})
export const getOutAndReturnNumByReturnVehicleCode = (code) => request({
url:'api/pda/iosOut/getOutAndReturnNumByReturnVehicleCode',
data: {return_vehicle_code: code}
})
export const outSortingSubmit = (code, vcode, ost) => request({
url:'api/pda/iosOut/outSortingSubmit',
data: {return_vehicle_code: code, out_vehicle_code: vcode, out_struct_code: ost}
})