优化页面使用

This commit is contained in:
liuhanqing
2026-01-18 10:09:52 +08:00
parent 39654c4d3b
commit 93c3019eb1
38 changed files with 1038 additions and 604 deletions

View File

@@ -255,9 +255,8 @@ export default {
},
// 出口选项
exitOptions: [
{ exitId: '1', exitName: '1'},
{ exitId: '2', exitName: '2'},
{ exitId: '1', exitName: '入库端'},
{ exitId: '2', exitName: '出库端'},
],
// 选中的库存数据
@@ -393,11 +392,16 @@ export default {
const selectedData = this.managementList.filter(item => this.ids.includes(item.stockId));
this.selectedStockData = selectedData;
// 显示出口选择弹窗
this.exitDialogVisible = true;
this.exitForm.exitId = null;
const codes = selectedData.map(item => String(item.warehouseId || '').padStart(2, '0'))
const all02 = codes.length > 0 && codes.every(c => c === '02')
if (all02) {
this.exitDialogVisible = false
this.exitForm.exitId = '1'
this.doPointOut('1')
return
}
this.exitDialogVisible = true
this.exitForm.exitId = null
},
@@ -405,17 +409,18 @@ export default {
submitPointOut() {
this.$refs["exitForm"].validate(valid => {
if (valid) {
const stockIds = this.ids;
// 调用API将stockIds数组和出口信息传给后端
console.log("指定货位出库:", stockIds, this.exitForm.exitId)
pointOut(stockIds, this.exitForm.exitId).then(response => {
this.$modal.msgSuccess(response.msg);
this.getList();
this.exitDialogVisible = false;
});
this.doPointOut(this.exitForm.exitId)
}
})
},
doPointOut(exitId) {
const stockIds = this.ids
pointOut(stockIds, exitId).then(response => {
this.$modal.msgSuccess(response.msg);
this.getList();
this.exitDialogVisible = false;
});
},
/** 取消出口选择 */
cancelExit() {