add:添加编号查询

This commit is contained in:
zhangzq
2024-12-10 00:07:58 +08:00
parent 82bf7a2060
commit d4c1f85f8c
2 changed files with 15 additions and 4 deletions

View File

@@ -195,9 +195,11 @@ public class PmFormDataServiceImpl extends ServiceImpl<PmFormDataMapper, PmFormD
String productArea = dataDto.getForm_data().getString("product_area"); String productArea = dataDto.getForm_data().getString("product_area");
dataDto.setProduct_area(productArea); dataDto.setProduct_area(productArea);
List<PmFormDataDto> children = childMap.get(dataDto.getId()); List<PmFormDataDto> children = childMap.get(dataDto.getId());
for (PmFormDataDto child : children) { if (children!=null){
String childProductArea = child.getForm_data().getString("product_area"); for (PmFormDataDto child : children) {
child.setProduct_area(childProductArea); String childProductArea = child.getForm_data().getString("product_area");
child.setProduct_area(childProductArea);
}
} }
dataDto.setChildren(children); dataDto.setChildren(children);
} }

View File

@@ -28,6 +28,15 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="单据编码">
<el-input
v-model="query.code"
clearable
size="mini"
placeholder="编码"
@keyup.enter.native="crud.toQuery"
/>
</el-form-item>
<el-form-item label="单据状态"> <el-form-item label="单据状态">
<el-select <el-select
v-model="query.status" v-model="query.status"
@@ -198,7 +207,7 @@ export default {
dicts: ['base_data'], dicts: ['base_data'],
components: { pagination, crudOperation, rrOperation, udOperation, ViewDialog }, components: { pagination, crudOperation, rrOperation, udOperation, ViewDialog },
mixins: [presenter(), header(), form(defaultForm), crud()], mixins: [presenter(), header(), form(defaultForm), crud()],
statusEnums: [ 'FORM_STATUS' ], statusEnums: ['FORM_STATUS'],
cruds() { cruds() {
return CRUD({ return CRUD({
title: '表单数据', title: '表单数据',