rev:木箱类型增加木箱结构字段

This commit is contained in:
2024-11-04 16:09:44 +08:00
parent 2e389000c4
commit 4c376ee70b
3 changed files with 35 additions and 4 deletions

View File

@@ -65,5 +65,8 @@ public class MdpbBoxtype implements Serializable {
*/
private String expend_width;
/**
* 箱体结构
*/
private String box_structure;
}

View File

@@ -371,7 +371,11 @@ public class LashManageServiceImpl implements LashManageService {
throw new BadRequestException("第一次捆扎数量不能为空!");
}
result.put("bundleTimes", boxTypeDao.getLash_num_one());
// 木箱结构
if (ObjectUtil.isEmpty(boxTypeDao.getBox_structure())) {
throw new BadRequestException("木箱结构不能为空!");
}
result.put("box_structure", boxTypeDao.getBox_structure());
return result;
}

View File

@@ -90,6 +90,26 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="箱体结构:" prop="box_structure">
<el-select
size="mini"
v-model="form.box_structure"
placeholder="全部"
class="filter-item"
@change="crud.toQuery"
>
<el-option
v-for="item in dict.BOX_STRUCTURE"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="是否一次捆扎:" prop="need_lash_one">
@@ -160,6 +180,7 @@
<el-table-column prop="need_lash_one" label="是否一次捆扎" width="150" :formatter="formatOne" />
<el-table-column prop="need_lash_two" label="是否二次捆扎" width="150" :formatter="formatTwo" />
<el-table-column prop="expend_width" label="叉车取货宽度" width="150" />
<el-table-column prop="box_structure" label="箱体结构" width="150" :formatter="boxType"/>
<el-table-column
v-permission="['admin','sectattr:edit','sectattr:del']"
label="操作"
@@ -197,11 +218,11 @@ const defaultForm = {
lash_num_tow: null,
need_lash_one: '0',
need_lash_two: '0',
expend_width: null
box_structure: null
}
export default {
name: 'BoxType',
dicts: ['IS_OR_NOT'],
dicts: ['IS_OR_NOT', 'BOX_STRUCTURE'],
components: { pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
@@ -245,6 +266,9 @@ export default {
formatTwo(row) {
return this.dict.label.IS_OR_NOT[row.need_lash_two]
},
boxType(row) {
return this.dict.label.BOX_STRUCTURE[row.box_structure]
},
updateOne() {
this.dialogVisible2 = true
},