add:库存查看功能

This commit is contained in:
zhangzq
2024-12-07 09:46:29 +08:00
parent 5eed6ea383
commit 520d5ff283
3 changed files with 45 additions and 18 deletions

View File

@@ -133,6 +133,13 @@
and (struct.struct_code LIKE '%${query.search}%' and (struct.struct_code LIKE '%${query.search}%'
or struct.struct_name LIKE '%${query.search}%') or struct.struct_name LIKE '%${query.search}%')
</if> </if>
<if test="query.material != null and query.material != ''">
and (material.material_code LIKE '%${query.material}%'
or material.material_name LIKE '%${query.material}%')
</if>
<if test="query.pcsn != null and query.pcsn != ''">
and vm.pcsn = #{query.pcsn}
</if>
<if test="query.vehicle_code != null and query.vehicle_code != ''"> <if test="query.vehicle_code != null and query.vehicle_code != ''">
and struct.vehicle_code LIKE '%${query.vehicle_code}%' and struct.vehicle_code LIKE '%${query.vehicle_code}%'
</if> </if>

View File

@@ -22,7 +22,7 @@ public class StructattrQuery extends BaseQuery<StIvtStructattr> {
private Boolean has_vehicle = Boolean.FALSE; private Boolean has_vehicle = Boolean.FALSE;
private String material; private String material;
private Boolean has; private Boolean has;
private Boolean assign; private String pcsn;
@Override @Override
public void paramMapping() { public void paramMapping() {
super.doP.put("search", QParam.builder().k(new String[]{"struct_code"}).type(QueryTEnum.LK).build()); super.doP.put("search", QParam.builder().k(new String[]{"struct_code"}).type(QueryTEnum.LK).build());

View File

@@ -35,6 +35,26 @@
class="filter-item" class="filter-item"
/> />
</el-form-item> </el-form-item>
<el-form-item label="物料信息">
<el-input
v-model="query.material"
clearable
size="mini"
placeholder="请输入物料信息"
prefix-icon="el-icon-search"
class="filter-item"
/>
</el-form-item>
<el-form-item label="批号">
<el-input
v-model="query.pcsn"
clearable
size="mini"
placeholder="请输入批号"
prefix-icon="el-icon-search"
class="filter-item"
/>
</el-form-item>
<el-form-item label="载具编码"> <el-form-item label="载具编码">
<el-input <el-input
v-model="query.vehicle_code" v-model="query.vehicle_code"
@@ -45,10 +65,10 @@
class="filter-item" class="filter-item"
/> />
</el-form-item> </el-form-item>
<rrOperation/> <rrOperation />
</el-form> </el-form>
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'--> <!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<crudOperation :permission="permission"/> <crudOperation :permission="permission" />
<!--表单组件--> <!--表单组件-->
<!-- <el-dialog--> <!-- <el-dialog-->
<!-- :close-on-click-modal="false"--> <!-- :close-on-click-modal="false"-->
@@ -110,22 +130,22 @@
style="width: 100%;" style="width: 100%;"
@selection-change="crud.selectionChangeHandler" @selection-change="crud.selectionChangeHandler"
> >
<el-table-column type="selection" width="55"/> <el-table-column type="selection" width="55" />
<el-table-column prop="struct_code" label="仓位编码" width="150" show-tooltip-when-overflow/> <el-table-column prop="struct_code" label="仓位编码" width="150" show-tooltip-when-overflow />
<el-table-column prop="material_code" label="物料编码" width="150" show-tooltip-when-overflow/> <el-table-column prop="material_code" label="物料编码" width="150" show-tooltip-when-overflow />
<el-table-column prop="material_name" label="物料名称" width="150" show-tooltip-when-overflow/> <el-table-column prop="material_name" label="物料名称" width="150" show-tooltip-when-overflow />
<el-table-column prop="vehicle_code" label="载具编码" width="150" show-tooltip-when-overflow/> <el-table-column prop="vehicle_code" label="载具编码" width="150" show-tooltip-when-overflow />
<el-table-column prop="parent_vehicle_code" label="父载具编码" width="150" show-tooltip-when-overflow/> <el-table-column prop="parent_vehicle_code" label="父载具编码" width="150" show-tooltip-when-overflow />
<el-table-column prop="pcsn" label="批次" min-width="150" show-tooltip-when-overflow/> <el-table-column prop="pcsn" label="批次" min-width="150" show-tooltip-when-overflow />
<el-table-column prop="qty" label="总库存" min-width="150" show-tooltip-when-overflow/> <el-table-column prop="qty" label="总库存" min-width="150" show-tooltip-when-overflow />
<el-table-column prop="frozen_qty" label="冻结库存" show-tooltip-when-overflow/> <el-table-column prop="frozen_qty" label="冻结库存" show-tooltip-when-overflow />
<el-table-column prop="unit_id" label="单位" show-tooltip-when-overflow> <el-table-column prop="unit_id" label="单位" show-tooltip-when-overflow>
<template slot-scope="scope">{{ tableEnum.label.bm_measure_unit[scope.row.unit_id] }}</template> <template slot-scope="scope">{{ tableEnum.label.bm_measure_unit[scope.row.unit_id] }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="lock_type" label="库存锁定" show-tooltip-when-overflow> <el-table-column prop="lock_type" label="库存锁定" show-tooltip-when-overflow>
<template slot-scope="scope">{{ statusEnum.label.LOCK[scope.row.lock_type] }}</template> <template slot-scope="scope">{{ statusEnum.label.LOCK[scope.row.lock_type] }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="update_time" label="修改时间" width="120" show-tooltip-when-overflow/> <el-table-column prop="update_time" label="修改时间" width="120" show-tooltip-when-overflow />
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- label="操作"--> <!-- label="操作"-->
<!-- fixed="right"--> <!-- fixed="right"-->
@@ -139,13 +159,13 @@
<!-- </el-table-column>--> <!-- </el-table-column>-->
</el-table> </el-table>
<!--分页组件--> <!--分页组件-->
<pagination/> <pagination />
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import CRUD, {presenter, header, form, crud} from '@crud/crud' import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation' import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation' import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation' import udOperation from '@crud/UD.operation'
@@ -170,9 +190,9 @@ const defaultForm = {
export default { export default {
dicts: [], dicts: [],
name: 'StructIvtInfo', name: 'StructIvtInfo',
components: {pagination, crudOperation, rrOperation, udOperation}, components: { pagination, crudOperation, rrOperation, udOperation },
tableEnums: [ 'bm_measure_unit#unit_name#unit_id', 'st_ivt_bsrealstorattr#stor_name#stor_code' ], tableEnums: ['bm_measure_unit#unit_name#unit_id', 'st_ivt_bsrealstorattr#stor_name#stor_code'],
statusEnums: [ 'LOCK' ], statusEnums: ['LOCK'],
mixins: [presenter(), header(), form(defaultForm), crud()], mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() { cruds() {
return CRUD({ return CRUD({