现场问题修改..................

This commit is contained in:
liuhanqing
2026-03-19 08:46:24 +08:00
parent de868075e9
commit 7638eedd1b
24 changed files with 379 additions and 116 deletions

View File

@@ -66,6 +66,20 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="托盘列表" prop="trayCodeList">
<el-select
v-model="queryParams.trayCodeList"
multiple
filterable
allow-create
default-first-option
placeholder="输入条码后回车"
style="width: 240px"
@change="handleQuery"
>
<el-option v-for="item in []" :key="item" :label="item" :value="item" />
</el-select>
</el-form-item>
<el-form-item label="物料名称" prop="productName"><!-- 物料描述 -->
<el-input
v-model="queryParams.productName"
@@ -81,7 +95,7 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<!-- <el-col :span="1.5">
<el-button
type="warning"
plain
@@ -89,7 +103,17 @@
size="mini"
@click="pointOut"
v-hasPermi="['job:outmydoJob:pointOut']"
>指定货位出库 <!-- 指定货位出库 --></el-button>
>指定货位出库</el-button>
</el-col>-->
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-download"
size="mini"
@click="handleNormalOut"
v-hasPermi="['job:outmydoJob:pointOut']"
>出来看看</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@@ -97,9 +121,19 @@
plain
icon="el-icon-download"
size="mini"
@click="pointOut1"
v-hasPermi="['job:outmydoJob:pointOut']"
>出来看看 <!-- 指定货位出库 --></el-button>
@click="handleSouthOut"
v-hasPermi="['job:outmydoJob:pointOut1']"
>出库端出库</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-download"
size="mini"
@click="handleNorthOut"
v-hasPermi="['job:outmydoJob:pointOut2']"
>入库端出库</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@@ -112,7 +146,7 @@
</template>
</el-table-column>
<el-table-column label="库存编码" align="center" prop="stockId" width="140"/>
<el-table-column label="货位名称" align="center" prop="cargoSpaceName" width="120"/>
<el-table-column label="货位名称" align="center" prop="cargoSpaceName" width="140"/>
<el-table-column label="巷道" align="center" prop="roadwayId" width="80"/>
<el-table-column label="排" align="center" prop="thePlatoon" />
<el-table-column label="列" align="center" prop="theColumn" />
@@ -268,6 +302,7 @@ export default {
quantity: null,
jobId: null,
trayCode: null,
trayCodeList: [],
outQuantity: null,
stockinDetailId: null,
stockinId: null,
@@ -319,8 +354,9 @@ export default {
}
},
created() {
this.getList()
this.getWarehouseList();
//this.getList()
//this.getWarehouseList();
this.loading = false
},
methods: {
/** 获取仓库列表 */
@@ -332,11 +368,12 @@ export default {
/** 查询库存信息列表 */
getList() {
this.loading = true
listManagement(this.queryParams).then(response => {
this.managementList = response.rows
this.total = response.total
this.loading = false
})
// 直接传递 queryParams,axios 会将 trayCodeList 数组正确序列化
listManagement(this.queryParams).then(response => {
this.managementList = response.rows
this.total = response.total
this.loading = false
})
},
// 取消按钮
cancel() {
@@ -382,7 +419,10 @@ export default {
resetQuery() {
this.resetForm("queryForm")
this.queryParams.inDate = null
this.handleQuery()
this.queryParams.trayCodeList = []
this.managementList = []
this.total = 0
//this.handleQuery()
},
// 多选框选中数据
handleSelectionChange(selection) {
@@ -436,14 +476,34 @@ export default {
this.$modal.msgSuccess("删除成功")
}).catch(() => {})
},
/** 出库端出库按钮操作 */
handleSouthOut() {
if (this.ids.length === 0) {
this.$modal.msgError("请至少选择一行数据");
return;
}
this.doPointOut('2', '2'); // 出库端出库 exitId: '2', type: '2'
},
/*二联合出库按钮*/
handleNormalOut() {
if (this.ids.length === 0) {
this.$modal.msgError("请至少选择一行数据");
return;
}
this.doPointOut('1', '2');
},
/** 入库端出库按钮操作 */
handleNorthOut() {
if (this.ids.length === 0) {
this.$modal.msgError("请至少选择一行数据");
return;
}
this.doPointOut('1', '2'); // 入库端出库 exitId: '1', type: '2'
},
/** 指定货位出库按钮操作 */
pointOut() {
this.handlePointOutOperation('1');
},
/** 出来看看按钮操作 */
pointOut1() {
this.handlePointOutOperation('2');
},
handlePointOutOperation(type) {
this.currentOperationType = type;