rev:木箱类型增加木箱结构字段
This commit is contained in:
@@ -65,5 +65,8 @@ public class MdpbBoxtype implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String expend_width;
|
private String expend_width;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 箱体结构
|
||||||
|
*/
|
||||||
|
private String box_structure;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -371,7 +371,11 @@ public class LashManageServiceImpl implements LashManageService {
|
|||||||
throw new BadRequestException("第一次捆扎数量不能为空!");
|
throw new BadRequestException("第一次捆扎数量不能为空!");
|
||||||
}
|
}
|
||||||
result.put("bundleTimes", boxTypeDao.getLash_num_one());
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,26 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</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-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="是否一次捆扎:" prop="need_lash_one">
|
<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_one" label="是否一次捆扎" width="150" :formatter="formatOne" />
|
||||||
<el-table-column prop="need_lash_two" label="是否二次捆扎" width="150" :formatter="formatTwo" />
|
<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="expend_width" label="叉车取货宽度" width="150" />
|
||||||
|
<el-table-column prop="box_structure" label="箱体结构" width="150" :formatter="boxType"/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-permission="['admin','sectattr:edit','sectattr:del']"
|
v-permission="['admin','sectattr:edit','sectattr:del']"
|
||||||
label="操作"
|
label="操作"
|
||||||
@@ -197,11 +218,11 @@ const defaultForm = {
|
|||||||
lash_num_tow: null,
|
lash_num_tow: null,
|
||||||
need_lash_one: '0',
|
need_lash_one: '0',
|
||||||
need_lash_two: '0',
|
need_lash_two: '0',
|
||||||
expend_width: null
|
box_structure: null
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
name: 'BoxType',
|
name: 'BoxType',
|
||||||
dicts: ['IS_OR_NOT'],
|
dicts: ['IS_OR_NOT', 'BOX_STRUCTURE'],
|
||||||
components: { pagination, crudOperation, rrOperation, udOperation },
|
components: { pagination, crudOperation, rrOperation, udOperation },
|
||||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||||
cruds() {
|
cruds() {
|
||||||
@@ -245,6 +266,9 @@ export default {
|
|||||||
formatTwo(row) {
|
formatTwo(row) {
|
||||||
return this.dict.label.IS_OR_NOT[row.need_lash_two]
|
return this.dict.label.IS_OR_NOT[row.need_lash_two]
|
||||||
},
|
},
|
||||||
|
boxType(row) {
|
||||||
|
return this.dict.label.BOX_STRUCTURE[row.box_structure]
|
||||||
|
},
|
||||||
updateOne() {
|
updateOne() {
|
||||||
this.dialogVisible2 = true
|
this.dialogVisible2 = true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user