增加货位信息手动盘点出库功能

This commit is contained in:
FT577-Server
2026-10-28 09:53:48 +08:00
parent 5a4b5a2bab
commit f1a94c8707
8 changed files with 228 additions and 21 deletions

View File

@@ -57,7 +57,16 @@ export function stockoutByManual(cargoSpaceId) {
return request({
url: '/api/wmsService/wcs/stockoutByManual',
method: 'post',
data: { cargoSpaceId: cargoSpaceId }
data: { cargoSpaceId: cargoSpaceId }
})
}
// 指定货位出库
export function inventoryOutByManual(cargoSpaceId) {
return request({
url: '/api/wmsService/wcs/inventoryOutByManual',
method: 'post',
data: { cargoSpaceId: cargoSpaceId }
})
}

View File

@@ -109,6 +109,16 @@
>指定货位出库</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="inventoryOutByManualHandle"
:disabled="multiple"
>货位盘点出库</el-button>
</el-col>
<!-- <el-col :span="1.5">
<el-button
type="primary"
plain
@@ -117,7 +127,7 @@
@click="handleAdd"
v-hasPermi="['bas:cargospace:add']"
>新增</el-button>
</el-col>
</el-col> -->
<el-col :span="1.5">
<el-button
type="success"
@@ -325,7 +335,7 @@
</template>
<script>
import { listCargospace, getCargospace, delCargospace, addCargospace, updateCargospace, stockoutByManual } from "@/api/bas/cargospace"
import { listCargospace, getCargospace, delCargospace, addCargospace, updateCargospace, stockoutByManual, inventoryOutByManual } from "@/api/bas/cargospace"
export default {
name: "Cargospace",
@@ -467,6 +477,7 @@ export default {
this.multiple = !selection.length
},
//指定货位出库
stockoutByManualHandle() {
if (!this.cargoSpaces || this.cargoSpaces.length === 0) {
this.$modal.msgWarning("请至少选择一个货位执行手动出库操作");
@@ -485,6 +496,25 @@ export default {
}).catch(() => {})
},
//货位盘点出库
inventoryOutByManualHandle() {
if (!this.cargoSpaces || this.cargoSpaces.length === 0) {
this.$modal.msgWarning("请至少选择一个货位执行盘点出库操作");
return;
}
const cargoSpaceId = this.ids[0]
var data ={
cargoSpaceId: cargoSpaceId
}
this.$modal.confirm('是否确认将货位编号为"' + cargoSpaceId + '"货位的托盘进行出库盘点?').then(() => {
return stockoutByManual(cargoSpaceId)
}).then(() => {
this.getList()
this.$modal.msgSuccess("操作成功")
}).catch(() => {})
},
/** 新增按钮操作 */
handleAdd() {
this.reset()