From cc4e00f02a78c6ec3583388ba03658df29c4f149 Mon Sep 17 00:00:00 2001 From: wangmingwei Date: Tue, 19 May 2026 09:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=BB=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=B7=A5=E7=A7=8D=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/mdm/WorkTypeMapper.xml | 7 + .../yunzhupaas/mdm/mapper/AssetMapper.java | 2 +- .../yunzhupaas/mdm/mapper/WorkTypeMapper.java | 17 + .../mdm/service/WorkTypeService.java | 31 + .../mdm/service/impl/WorkTypeServiceImpl.java | 306 ++++++++ .../mdm/controller/WorkTypeController.java | 655 ++++++++++++++++++ .../yunzhupaas/mdm/entity/WorkTypeEntity.java | 77 ++ .../mdm/model/worktype/WorkTypeConstant.java | 42 ++ .../model/worktype/WorkTypeExcelErrorVO.java | 22 + .../mdm/model/worktype/WorkTypeExcelVO.java | 75 ++ .../mdm/model/worktype/WorkTypeForm.java | 82 +++ .../model/worktype/WorkTypePagination.java | 55 ++ 12 files changed, 1370 insertions(+), 1 deletion(-) create mode 100644 yunzhupaas-admin/src/main/resources/mapper/mdm/WorkTypeMapper.xml create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/mapper/WorkTypeMapper.java create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/service/WorkTypeService.java create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/service/impl/WorkTypeServiceImpl.java create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-controller/src/main/java/com/yunzhupaas/mdm/controller/WorkTypeController.java create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/entity/WorkTypeEntity.java create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeConstant.java create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeExcelErrorVO.java create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeExcelVO.java create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeForm.java create mode 100644 yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypePagination.java diff --git a/yunzhupaas-admin/src/main/resources/mapper/mdm/WorkTypeMapper.xml b/yunzhupaas-admin/src/main/resources/mapper/mdm/WorkTypeMapper.xml new file mode 100644 index 0000000..f4ed294 --- /dev/null +++ b/yunzhupaas-admin/src/main/resources/mapper/mdm/WorkTypeMapper.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/mapper/AssetMapper.java b/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/mapper/AssetMapper.java index 34da6ee..f34fb3f 100644 --- a/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/mapper/AssetMapper.java +++ b/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/mapper/AssetMapper.java @@ -14,5 +14,5 @@ import com.yunzhupaas.base.mapper.SuperMapper; */ public interface AssetMapper extends SuperMapper { - + } diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/mapper/WorkTypeMapper.java b/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/mapper/WorkTypeMapper.java new file mode 100644 index 0000000..da55223 --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/mapper/WorkTypeMapper.java @@ -0,0 +1,17 @@ +package com.yunzhupaas.mdm.mapper; + + +import com.yunzhupaas.mdm.entity.WorkTypeEntity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.yunzhupaas.base.mapper.SuperMapper; + +/** + * 工种信息 + * 版本: V5.2.7 + * 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * 作者: 深圳市乐程软件有限公司 + * 日期: 2026-05-18 + */ +public interface WorkTypeMapper extends SuperMapper { + +} diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/service/WorkTypeService.java b/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/service/WorkTypeService.java new file mode 100644 index 0000000..d678872 --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/service/WorkTypeService.java @@ -0,0 +1,31 @@ +package com.yunzhupaas.mdm.service; + +import com.yunzhupaas.mdm.entity.*; +import com.yunzhupaas.base.service.SuperService; +import com.yunzhupaas.mdm.model.worktype.*; +import java.util.*; + +/** + * 工种信息 + * 版本: V5.2.7 + * 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * 作者: 深圳市乐程软件有限公司 + * 日期: 2026-05-18 + */ +public interface WorkTypeService extends SuperService { + List getList(WorkTypePagination workTypePagination); + + List getTypeList(WorkTypePagination workTypePagination,String dataType); + + WorkTypeEntity getInfo(String worktypeid); + + void delete(WorkTypeEntity entity); + + void create(WorkTypeEntity entity); + + boolean update(String worktypeid, WorkTypeEntity entity); + + String checkForm(WorkTypeForm form,int i); + + void saveOrUpdate(WorkTypeForm workTypeForm,String id, boolean isSave) throws Exception; +} diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/service/impl/WorkTypeServiceImpl.java b/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/service/impl/WorkTypeServiceImpl.java new file mode 100644 index 0000000..dd7c1b6 --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-biz/src/main/java/com/yunzhupaas/mdm/service/impl/WorkTypeServiceImpl.java @@ -0,0 +1,306 @@ + +package com.yunzhupaas.mdm.service.impl; + +import com.yunzhupaas.mdm.entity.*; +import com.yunzhupaas.mdm.mapper.WorkTypeMapper; +import com.yunzhupaas.mdm.service.*; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.yunzhupaas.mdm.model.worktype.*; +import org.springframework.stereotype.Service; +import com.yunzhupaas.base.service.SuperServiceImpl; +import org.springframework.beans.factory.annotation.Autowired; +import com.yunzhupaas.util.GeneraterSwapUtil; +import java.sql.Connection; +import java.sql.SQLException; +import lombok.Cleanup; +import com.yunzhupaas.database.plugins.DynamicSourceGeneratorInterface; +import com.yunzhupaas.database.util.DynamicDataSourceUtil; +import org.apache.commons.collections4.CollectionUtils; +import com.yunzhupaas.i18n.util.I18nUtil; +import com.yunzhupaas.exception.DataException; +import com.yunzhupaas.constant.MsgCode; +import java.math.BigDecimal; +import cn.hutool.core.util.ObjectUtil; +import java.lang.reflect.Field; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import java.util.regex.Pattern; +import java.util.stream.Collectors; +import com.yunzhupaas.base.model.ColumnDataModel; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.springframework.transaction.annotation.Transactional; +import com.baomidou.dynamic.datasource.annotation.DSTransactional; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.github.yulichang.toolkit.JoinWrappers; +import com.github.yulichang.wrapper.MPJLambdaWrapper; +import com.yunzhupaas.model.QueryAllModel; +import java.text.SimpleDateFormat; +import com.yunzhupaas.util.*; +import java.util.*; +import com.yunzhupaas.base.UserInfo; +import com.yunzhupaas.permission.entity.UserEntity; +import com.github.pagehelper.PageHelper; +/** + * + * 工种信息 + * 版本: V5.2.7 + * 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * 作者: 深圳市乐程软件有限公司 + * 日期: 2026-05-18 + */ +@Service +public class WorkTypeServiceImpl extends SuperServiceImpl implements WorkTypeService{ + @Autowired + private GeneraterSwapUtil generaterSwapUtil; + @Autowired + private UserProvider userProvider; + @Override + public List getList(WorkTypePagination workTypePagination){ + return getTypeList(workTypePagination,workTypePagination.getDataType()); + } + /** 列表查询 */ + @Override + public List getTypeList(WorkTypePagination workTypePagination,String dataType){ + String userId=userProvider.get().getUserId(); + Map tableClassMap=new HashMap<>(); + tableClassMap.put("mdm_work_type",WorkTypeEntity.class); + + MPJLambdaWrapper wrapper = JoinWrappers + .lambda("mdm_work_type",WorkTypeEntity.class) + .selectAll(WorkTypeEntity.class); + MPJLambdaWrapper wrapper2 = JoinWrappers + .lambda("mdm_work_type",WorkTypeEntity.class) + .distinct().select(WorkTypeEntity::getWorkTypeId); + + QueryAllModel queryAllModel = new QueryAllModel(); + queryAllModel.setWrapper(wrapper); + queryAllModel.setClassMap(tableClassMap); + queryAllModel.setDbLink(WorkTypeConstant.DBLINKID); + //数据过滤 + boolean isPc = ServletUtil.getHeader("yunzhupaas-origin").equals("pc"); + String columnData = !isPc ? WorkTypeConstant.getAppColumnData() : WorkTypeConstant.getColumnData(); + ColumnDataModel columnDataModel = JsonUtil.getJsonToBean(columnData, ColumnDataModel.class); + String ruleJson = !isPc ? JsonUtil.getObjectToString(columnDataModel.getRuleListApp()) : JsonUtil.getObjectToString(columnDataModel.getRuleList()); + queryAllModel.setRuleJson(ruleJson); + //高级查询 + boolean hasSuperQuery = true; + if (hasSuperQuery) { + queryAllModel.setSuperJson(workTypePagination.getSuperQueryJson()); + } + //数据权限 + boolean pcPermission = true; + boolean appPermission = false; + if (isPc && pcPermission) { + queryAllModel.setModuleId(workTypePagination.getMenuId()); + } + if (!isPc && appPermission) { + queryAllModel.setModuleId(workTypePagination.getMenuId()); + } + //拼接复杂条件 + wrapper = generaterSwapUtil.getConditionAllTable(queryAllModel); + if(wrapper == null) return new ArrayList<>(); + queryAllModel.setWrapper(wrapper2); + wrapper2 = generaterSwapUtil.getConditionAllTable(queryAllModel); + //其他条件拼接 + otherConditions(workTypePagination, wrapper, isPc); + otherConditions(workTypePagination, wrapper2, isPc); + + if("0".equals(dataType)){ + com.github.pagehelper.Page objects = PageHelper.startPage((int) workTypePagination.getCurrentPage(), (int) workTypePagination.getPageSize(), true); + List userIPage = this.selectJoinList(WorkTypeEntity.class, wrapper2); + List collect = userIPage.stream().map(t -> t.getWorkTypeId()).collect(Collectors.toList()); + if(CollectionUtils.isNotEmpty(collect)){ + wrapper.in(WorkTypeEntity::getWorkTypeId,collect); + } + List result = this.selectJoinList(WorkTypeEntity.class, wrapper); + return workTypePagination.setData(result,objects.getTotal()); + }else{ + List list = this.selectJoinList(WorkTypeEntity.class, wrapper); + if("2".equals(dataType)){ + List selectIds = Arrays.asList(workTypePagination.getSelectIds()); + return list.stream().filter(t -> selectIds.contains(t.getWorkTypeId())).collect(Collectors.toList()); + }else{ + return list; + } + } + + } + + /** + * 其他条件拼接 + */ + private void otherConditions(WorkTypePagination workTypePagination, MPJLambdaWrapper wrapper, boolean isPc) { + String databaseName; + try { + @Cleanup Connection cnn = DynamicDataSourceUtil.getCurrentConnection(); + databaseName = cnn.getMetaData().getDatabaseProductName().trim(); + } catch (SQLException e) { + throw new DataException(e.getMessage()); + } + //假删除标志 + wrapper.isNull(WorkTypeEntity::getDeleteMark); + + wrapper.isNull(WorkTypeEntity::getFlowId); + //关键词 + if(ObjectUtil.isNotEmpty(workTypePagination.getYunzhupaasKeyword())){ + } + //普通查询 + if(isPc){ + if(ObjectUtil.isNotEmpty(workTypePagination.getWorkTypeName())){ + String value = workTypePagination.getWorkTypeName() instanceof List ? + JsonUtil.getObjectToString(workTypePagination.getWorkTypeName()) : + String.valueOf(workTypePagination.getWorkTypeName()); + wrapper.like(WorkTypeEntity::getWorkTypeName,value); + } + + if(ObjectUtil.isNotEmpty(workTypePagination.getWorkCategoryId())){ + List idList = new ArrayList<>(); + try { + String[][] workCategoryId = JsonUtil.getJsonToBean(workTypePagination.getWorkCategoryId(),String[][].class); + for(int i=0;i0){ + idList.add(JsonUtil.getObjectToString(Arrays.asList(workCategoryId[i]))); + } + } + }catch (Exception e1){ + try { + List workCategoryId = JsonUtil.getJsonToList(workTypePagination.getWorkCategoryId(),String.class); + if(workCategoryId.size()>0){ + idList.addAll(workCategoryId); + } + }catch (Exception e2){ + idList.add(String.valueOf(workTypePagination.getWorkCategoryId())); + } + } + wrapper.and(t->{ + idList.forEach(tt->{ + if(StringUtil.isNotEmpty(tt) && "Microsoft SQL Server".equalsIgnoreCase(databaseName)){ + tt = tt.replaceFirst("\\[","[[]"); + } + t.like(WorkTypeEntity::getWorkCategoryId, tt).or(); + }); + }); + } + + } + //排序 + if(StringUtil.isEmpty(workTypePagination.getSidx())){ + wrapper.orderByDesc(WorkTypeEntity::getWorkTypeId); + }else{ + try { + String[] split = workTypePagination.getSidx().split(","); + for(String sidx:split){ + WorkTypeEntity workTypeEntity = new WorkTypeEntity(); + String oderTableField = workTypeEntity.getClass().getAnnotation(TableName.class).value(); + boolean descFlag = sidx.startsWith("-"); + String sidxField = descFlag ? sidx.substring(1) : sidx; + try{ + Field declaredField = workTypeEntity.getClass().getDeclaredField(sidxField); + declaredField.setAccessible(true); + sidxField = declaredField.getAnnotation(TableField.class).value(); + }catch (Exception e){ + } + String finalOderTableField = oderTableField; + String finalSidxField = sidxField; + Object select = wrapper.getSelectColumns().stream().filter(t -> Objects.equals(finalOderTableField, t.getTableAlias()) + && Objects.equals(finalSidxField, t.getColumn())).findFirst().orElse(null); + oderTableField = oderTableField + "." + sidxField; + if (select == null) { + wrapper.select(oderTableField); + } + if (descFlag) { + wrapper.orderByDesc(oderTableField); + } else { + wrapper.orderByAsc(oderTableField); + } + } + } catch (Exception e) { + e.printStackTrace(); + } + } + } + @Override + public WorkTypeEntity getInfo(String worktypeid){ + MPJLambdaWrapper wrapper = JoinWrappers + .lambda("mdm_work_type",WorkTypeEntity.class) + .selectAll(WorkTypeEntity.class); + wrapper.and( + t->t.eq(WorkTypeEntity::getWorkTypeId, worktypeid ) + .or().eq(WorkTypeEntity::getFlowTaskId, worktypeid) + ); + return this.selectJoinOne(WorkTypeEntity.class,wrapper); + } + @Override + public void create(WorkTypeEntity entity){ + this.save(entity); + } + @Override + public boolean update(String worktypeid, WorkTypeEntity entity){ + return this.updateById(entity); + } + @Override + public void delete(WorkTypeEntity entity){ + if(entity!=null){ + this.removeById(entity.getWorkTypeId()); + } + } + /** 验证表单唯一字段,正则,非空 i-0新增-1修改*/ + @Override + public String checkForm(WorkTypeForm form,int i) { + boolean isUp =StringUtil.isNotEmpty(form.getWorkTypeId()) && !form.getWorkTypeId().equals("0"); + Object id= null; + String countRecover = ""; + String fieldTipName = ""; + String canNotNull = I18nUtil.getMessageStr("sys.validate.textRequiredSuffix", "不能为空"); + String canNotRepeated = I18nUtil.getMessageStr("EXIST103", "不能重复"); + if (isUp){ + id = form.getWorkTypeId(); + } + //主表字段验证 + fieldTipName = "工种编码"; + fieldTipName = "工种名称"; + if(StringUtil.isEmpty(form.getWorkTypeName())){ + return fieldTipName + canNotNull; + } + fieldTipName = "工种分类"; + fieldTipName = "技能等级"; + fieldTipName = "计价单位"; + fieldTipName = "参考单价"; + fieldTipName = "单价下限"; + fieldTipName = "单价上限"; + fieldTipName = "排序号"; + fieldTipName = "工种描述"; + fieldTipName = "备注"; + return countRecover; + } + /** + * 新增修改数据(事务回滚) + * @param id + * @param workTypeForm + * @return + */ + @Override + @Transactional + public void saveOrUpdate(WorkTypeForm workTypeForm,String id, boolean isSave) throws Exception{ + UserInfo userInfo=userProvider.get(); + UserEntity userEntity = generaterSwapUtil.getUser(userInfo.getUserId()); + workTypeForm = JsonUtil.getJsonToBean( + generaterSwapUtil.swapDatetime(WorkTypeConstant.getFormData(),workTypeForm,WorkTypeConstant.TABLERENAMES),WorkTypeForm.class); + WorkTypeEntity entity = JsonUtil.getJsonToBean(workTypeForm, WorkTypeEntity.class); + String mainUuid = StringUtil.isEmpty(id) ? RandomUtil.uuId() : id; + if(isSave){ + entity.setFlowTaskId(mainUuid); + entity.setWorkTypeCode(generaterSwapUtil.getBillNumber("workTypeCode", false)); + entity.setWorkTypeId(mainUuid); + } else { + if(StringUtil.isEmpty(entity.getWorkTypeCode()) ){ + entity.setWorkTypeCode(generaterSwapUtil.getBillNumber("workTypeCode", false)); + } + } + boolean b = this.saveOrUpdate(entity); + WorkTypeEntity info = this.getInfo(mainUuid); + if (info == null) throw new RuntimeException(MsgCode.FA001.get()); + + } +} diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-controller/src/main/java/com/yunzhupaas/mdm/controller/WorkTypeController.java b/yunzhupaas-mdm/yunzhupaas-mdm-controller/src/main/java/com/yunzhupaas/mdm/controller/WorkTypeController.java new file mode 100644 index 0000000..f825420 --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-controller/src/main/java/com/yunzhupaas/mdm/controller/WorkTypeController.java @@ -0,0 +1,655 @@ +package com.yunzhupaas.mdm.controller; + + +import cn.hutool.core.util.ObjectUtil; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import com.yunzhupaas.base.ActionResult; +import com.yunzhupaas.base.UserInfo; +import com.yunzhupaas.exception.DataException; +import com.yunzhupaas.permission.entity.UserEntity; +import com.yunzhupaas.constant.MsgCode; +import com.yunzhupaas.mdm.service.*; +import com.yunzhupaas.mdm.entity.*; +import com.yunzhupaas.util.*; +import com.yunzhupaas.mdm.model.worktype.*; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import com.yunzhupaas.flowable.entity.TaskEntity; +import jakarta.validation.Valid; +import java.util.*; +import com.yunzhupaas.model.ExcelModel; +import com.yunzhupaas.excel.ExcelExportStyler; +import com.yunzhupaas.excel.ExcelHelper; +import com.yunzhupaas.annotation.YunzhupaasField; +import com.yunzhupaas.base.vo.PageListVO; +import com.yunzhupaas.base.vo.PaginationVO; +import com.yunzhupaas.base.vo.DownloadVO; +import com.yunzhupaas.config.ConfigValueUtil; +import com.yunzhupaas.base.entity.ProvinceEntity; +import java.io.IOException; +import java.util.stream.Collectors; +import com.yunzhupaas.flowable.entity.TaskEntity; +import com.yunzhupaas.exception.WorkFlowException; +import com.yunzhupaas.model.visualJson.UploaderTemplateModel; +import com.yunzhupaas.base.util.FormExecelUtils; +import org.springframework.web.multipart.MultipartFile; +import cn.afterturn.easypoi.excel.ExcelExportUtil; +import cn.afterturn.easypoi.excel.ExcelImportUtil; +import cn.afterturn.easypoi.excel.entity.ExportParams; +import cn.afterturn.easypoi.excel.entity.ImportParams; +import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity; +import cn.afterturn.easypoi.excel.entity.enmus.ExcelType; +import org.apache.poi.hssf.usermodel.HSSFWorkbook; +import org.apache.poi.ss.usermodel.Workbook; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import com.yunzhupaas.onlinedev.model.ExcelImFieldModel; +import com.yunzhupaas.base.model.OnlineImport.ImportDataModel; +import com.yunzhupaas.base.model.OnlineImport.ImportFormCheckUniqueModel; +import com.yunzhupaas.base.model.OnlineImport.ExcelImportModel; +import com.yunzhupaas.base.model.OnlineImport.VisualImportModel; +import cn.xuyanwu.spring.file.storage.FileInfo; +import lombok.Cleanup; +import com.yunzhupaas.model.visualJson.config.HeaderModel; +import com.yunzhupaas.base.model.ColumnDataModel; +import com.yunzhupaas.base.util.VisualUtils; +import org.springframework.transaction.annotation.Transactional; + +/** + * 工种信息 + * @版本: V5.2.7 + * @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * @作者: 深圳市乐程软件有限公司 + * @日期: 2026-05-18 + */ +@Slf4j +@RestController +@Tag(name = "工种信息" , description = "2") +@RequestMapping("/api/2/WorkType") +public class WorkTypeController { + + @Autowired + private GeneraterSwapUtil generaterSwapUtil; + + @Autowired + private UserProvider userProvider; + + @Autowired + private WorkTypeService workTypeService; + + + + @Autowired + private ConfigValueUtil configValueUtil; + + /** + * 列表 + * + * @param workTypePagination + * @return + */ + @Operation(summary = "获取列表") + @PostMapping("/getList") + public ActionResult list(@RequestBody WorkTypePagination workTypePagination)throws Exception{ + List list= workTypeService.getList(workTypePagination); + List> realList=new ArrayList<>(); + for (WorkTypeEntity entity : list) { + Map workTypeMap=JsonUtil.entityToMap(entity); + workTypeMap.put("id", workTypeMap.get("work_type_id")); + //副表数据 + //子表数据 + realList.add(workTypeMap); + } + //数据转换 + boolean isPc = "pc".equals(ServletUtil.getHeader("yunzhupaas-origin" )); + realList = generaterSwapUtil.swapDataList(realList, WorkTypeConstant.getFormData(), WorkTypeConstant.getColumnData(), workTypePagination.getModuleId(),isPc?false:false); + + //返回对象 + PageListVO vo = new PageListVO(); + vo.setList(realList); + PaginationVO page = JsonUtil.getJsonToBean(workTypePagination, PaginationVO.class); + vo.setPagination(page); + return ActionResult.success(vo); + } + /** + * 创建 + * + * @param workTypeForm + * @return + */ + @PostMapping() + @Operation(summary = "创建") + public ActionResult create(@RequestBody @Valid WorkTypeForm workTypeForm) { + String b = workTypeService.checkForm(workTypeForm,0); + if (StringUtil.isNotEmpty(b)){ + return ActionResult.fail(b ); + } + try{ + workTypeService.saveOrUpdate(workTypeForm, null ,true); + }catch(Exception e){ + return ActionResult.fail(MsgCode.FA028.get()); + } + return ActionResult.success(MsgCode.SU001.get()); + } + /** + * 导出Excel + * + * @return + */ + @Operation(summary = "导出Excel") + @PostMapping("/Actions/Export") + public ActionResult Export(@RequestBody WorkTypePagination workTypePagination) throws IOException { + if (StringUtil.isEmpty(workTypePagination.getSelectKey())){ + return ActionResult.fail(MsgCode.IMP011.get()); + } + List list= workTypeService.getList(workTypePagination); + List> realList=new ArrayList<>(); + for (WorkTypeEntity entity : list) { + Map workTypeMap=JsonUtil.entityToMap(entity); + workTypeMap.put("id", workTypeMap.get("work_type_id")); + //副表数据 + //子表数据 + realList.add(workTypeMap); + } + //数据转换 + realList = generaterSwapUtil.swapDataList(realList, WorkTypeConstant.getFormData(), WorkTypeConstant.getColumnData(), workTypePagination.getModuleId(),false); + String[]keys=!StringUtil.isEmpty(workTypePagination.getSelectKey())?workTypePagination.getSelectKey():new String[0]; + UserInfo userInfo=userProvider.get(); + String menuFullName = generaterSwapUtil.getMenuName(workTypePagination.getMenuId()); + + DownloadVO vo=this.creatModelExcel(configValueUtil.getTemporaryFilePath(),realList,keys,userInfo,menuFullName); + return ActionResult.success(vo); + } + + /** + * 导出表格方法 + */ + public DownloadVO creatModelExcel(String path,List>list,String[]keys,UserInfo userInfo,String menuFullName){ + DownloadVO vo=DownloadVO.builder().build(); + List entitys=new ArrayList<>(); + if(keys.length>0){ + for(String key:keys){ + switch(key){ + case "work_type_code" : + entitys.add(new ExcelExportEntity("工种编码" ,"work_type_code")); + break; + case "work_type_name" : + entitys.add(new ExcelExportEntity("工种名称" ,"work_type_name")); + break; + case "work_category_id" : + entitys.add(new ExcelExportEntity("工种分类" ,"work_category_id")); + break; + case "skill_level" : + entitys.add(new ExcelExportEntity("技能等级" ,"skill_level")); + break; + case "unit" : + entitys.add(new ExcelExportEntity("计价单位" ,"unit")); + break; + case "reference_unit_price" : + entitys.add(new ExcelExportEntity("参考单价" ,"reference_unit_price")); + break; + case "price_lower_limit" : + entitys.add(new ExcelExportEntity("单价下限" ,"price_lower_limit")); + break; + case "price_upper_limit" : + entitys.add(new ExcelExportEntity("单价上限" ,"price_upper_limit")); + break; + case "seq_num" : + entitys.add(new ExcelExportEntity("排序号" ,"seq_num")); + break; + case "work_description" : + entitys.add(new ExcelExportEntity("工种描述" ,"work_description")); + break; + case "remarks" : + entitys.add(new ExcelExportEntity("备注" ,"remarks")); + break; + default: + break; + } + } + } + + ExportParams exportParams = new ExportParams(null, "表单信息"); + exportParams.setType(ExcelType.XSSF); + try{ + @Cleanup Workbook workbook = new HSSFWorkbook(); + if (entitys.size()>0){ + if (list.size()==0){ + list.add(new HashMap<>()); + } + //去除空数据 + List> dataList = new ArrayList<>(); + for (Map map : list) { + int i = 0; + for (String key : keys) { + //子表 + if (key.toLowerCase().startsWith("tablefield")) { + String tableField = key.substring(0, key.indexOf("-" )); + String field = key.substring(key.indexOf("-" ) + 1); + Object o = map.get(tableField); + if (o != null) { + List> childList = (List>) o; + for (Map childMap : childList) { + if (childMap.get(field) != null) { + i++; + } + } + } + } else { + Object o = map.get(key); + if (o != null) { + i++; + } + } + } + if (i > 0) { + dataList.add(map); + } + } + List mergerEntitys = new ArrayList<>(entitys); + List> mergerList=new ArrayList<>(dataList); + //复杂表头-表头和数据处理 + ColumnDataModel columnDataModel = JsonUtil.getJsonToBean(WorkTypeConstant.getColumnData(), ColumnDataModel.class); + List complexHeaderList = columnDataModel.getComplexHeaderList(); + if (!Objects.equals(columnDataModel.getType(), 3) && !Objects.equals(columnDataModel.getType(), 5)) { + entitys = VisualUtils.complexHeaderHandel(entitys, complexHeaderList, Objects.equals(columnDataModel.getType(), 4)); + dataList = VisualUtils.complexHeaderDataHandel(dataList, complexHeaderList, Objects.equals(columnDataModel.getType(), 4)); + } + + exportParams.setStyle(ExcelExportStyler.class); + workbook = ExcelExportUtil.exportExcel(exportParams, entitys, dataList); + VisualUtils.mergerVertical(workbook, mergerEntitys, mergerList); + ExcelModel excelModel = generaterSwapUtil.getExcelParams(WorkTypeConstant.getFormData(),Arrays.asList(keys)); + ExcelHelper helper = new ExcelHelper(); + helper.init(workbook, exportParams, entitys, excelModel); + helper.doPreHandle(); + helper.doPostHandle(); + } + String fileName = menuFullName +"_"+ DateUtil.dateNow("yyyyMMddHHmmss") + ".xls"; + MultipartFile multipartFile = ExcelUtil.workbookToCommonsMultipartFile(workbook, fileName); + String temporaryFilePath = configValueUtil.getTemporaryFilePath(); + FileInfo fileInfo = FileUploadUtils.uploadFile(multipartFile, temporaryFilePath, fileName); + vo.setName(fileInfo.getFilename()); + vo.setUrl(UploaderUtil.uploaderFile(fileInfo.getFilename() + "#" + "Temporary") + "&name=" + fileName); + } catch (Exception e) { + log.error("信息导出Excel错误:{}", e.getMessage()); + e.printStackTrace(); + } + return vo; + } + @Operation(summary = "上传文件") + @PostMapping("/Uploader") + public ActionResult Uploader() { + List list = UpUtil.getFileAll(); + MultipartFile file = list.get(0); + if (file.getOriginalFilename().endsWith(".xlsx") || file.getOriginalFilename().endsWith(".xls")) { + String filePath = XSSEscape.escape(configValueUtil.getTemporaryFilePath()); + String fileName = XSSEscape.escape(RandomUtil.uuId() + "." + UpUtil.getFileType(file)); + //上传文件 + FileInfo fileInfo = FileUploadUtils.uploadFile(file, filePath, fileName); + DownloadVO vo = DownloadVO.builder().build(); + vo.setName(fileInfo.getFilename()); + return ActionResult.success(vo); + } else { + return ActionResult.fail(MsgCode.FA017.get()); + } + } + + /** + * 模板下载 + * + * @return + */ + @Operation(summary = "模板下载") + @GetMapping("/TemplateDownload") + public ActionResult TemplateDownload(@RequestParam("menuId") String menuId){ + DownloadVO vo = DownloadVO.builder().build(); + UserInfo userInfo = userProvider.get(); + String menuFullName = generaterSwapUtil.getMenuName(menuId); + //主表对象 + List entitys = new ArrayList<>(); + List selectKeys = new ArrayList<>(); + //以下添加字段 + entitys.add(new ExcelExportEntity("工种名称(work_type_name)" ,"work_type_name")); + selectKeys.add("work_type_name"); + entitys.add(new ExcelExportEntity("工种分类(work_category_id)" ,"work_category_id")); + selectKeys.add("work_category_id"); + entitys.add(new ExcelExportEntity("技能等级(skill_level)" ,"skill_level")); + selectKeys.add("skill_level"); + entitys.add(new ExcelExportEntity("计价单位(unit)" ,"unit")); + selectKeys.add("unit"); + entitys.add(new ExcelExportEntity("参考单价(reference_unit_price)" ,"reference_unit_price")); + selectKeys.add("reference_unit_price"); + entitys.add(new ExcelExportEntity("单价下限(price_lower_limit)" ,"price_lower_limit")); + selectKeys.add("price_lower_limit"); + entitys.add(new ExcelExportEntity("单价上限(price_upper_limit)" ,"price_upper_limit")); + selectKeys.add("price_upper_limit"); + entitys.add(new ExcelExportEntity("排序号(seq_num)" ,"seq_num")); + selectKeys.add("seq_num"); + entitys.add(new ExcelExportEntity("工种描述(work_description)" ,"work_description")); + selectKeys.add("work_description"); + entitys.add(new ExcelExportEntity("备注(remarks)" ,"remarks")); + selectKeys.add("remarks"); + ExcelModel excelModel = generaterSwapUtil.getExcelParams(WorkTypeConstant.getFormData(),selectKeys); + List> list = new ArrayList<>(); + list.add(excelModel.getDataMap()); + + ExportParams exportParams = new ExportParams(null, menuFullName + "模板"); + exportParams.setStyle(ExcelExportStyler.class); + exportParams.setType(ExcelType.XSSF); + try{ + @Cleanup Workbook workbook = new HSSFWorkbook(); + if (entitys.size()>0){ + if (list.size()==0){ + list.add(new HashMap<>()); + } + //复杂表头-表头和数据处理 + ColumnDataModel columnDataModel = JsonUtil.getJsonToBean(WorkTypeConstant.getColumnData(), ColumnDataModel.class); + List complexHeaderList = columnDataModel.getComplexHeaderList(); + if (!Objects.equals(columnDataModel.getType(), 3) && !Objects.equals(columnDataModel.getType(), 5)) { + entitys = VisualUtils.complexHeaderHandel(entitys, complexHeaderList, false); + list = VisualUtils.complexHeaderDataHandel(list, complexHeaderList, false); + } + workbook = ExcelExportUtil.exportExcel(exportParams, entitys, list); + ExcelHelper helper = new ExcelHelper(); + helper.init(workbook, exportParams, entitys, excelModel); + helper.doPreHandle(); + helper.doPostHandle(); + } + String fileName = menuFullName + "导入模板.xls"; + MultipartFile multipartFile = ExcelUtil.workbookToCommonsMultipartFile(workbook, fileName); + String temporaryFilePath = configValueUtil.getTemporaryFilePath(); + FileInfo fileInfo = FileUploadUtils.uploadFile(multipartFile, temporaryFilePath, fileName); + vo.setName(fileInfo.getFilename()); + vo.setUrl(UploaderUtil.uploaderFile(fileInfo.getFilename() + "#" + "Temporary") + "&name=" + fileName); + } catch (Exception e) { + log.error("模板信息导出Excel错误:{}", e.getMessage()); + e.printStackTrace(); + } + return ActionResult.success(vo); + } + + /** + * 导入预览 + * + * @return + */ + @Operation(summary = "导入预览" ) + @GetMapping("/ImportPreview") + public ActionResult> ImportPreview(String fileName) throws Exception { + Map headAndDataMap = new HashMap<>(2); + String filePath = FileUploadUtils.getLocalBasePath() + configValueUtil.getTemporaryFilePath(); + FileUploadUtils.downLocal(configValueUtil.getTemporaryFilePath(), filePath, fileName); + File temporary = new File(XSSEscape.escapePath(filePath + fileName)); + int headerRowIndex = 1; + ImportParams params = new ImportParams(); + params.setTitleRows(0); + params.setHeadRows(headerRowIndex); + params.setNeedVerify(true); + try { + InputStream inputStream = ExcelUtil.solveOrginTitle(temporary, headerRowIndex); + List excelDataList = ExcelUtil.importExcelByInputStream(inputStream, 0, headerRowIndex, Map.class); + //数据超过1000条 + if(excelDataList != null && excelDataList.size() > 1000) { + return ActionResult.fail(MsgCode.ETD117.get()); + } + + ColumnDataModel columnDataModel = JsonUtil.getJsonToBean(WorkTypeConstant.getColumnData(), ColumnDataModel.class); + UploaderTemplateModel uploaderTemplateModel = JsonUtil.getJsonToBean(columnDataModel.getUploaderTemplateJson(), UploaderTemplateModel.class); + List selectKey = uploaderTemplateModel.getSelectKey(); + //子表合并 + List> results = FormExecelUtils.dataMergeChildTable(excelDataList,selectKey); + // 导入字段 + List columns = new ArrayList<>(); + columns.add(new ExcelImFieldModel("work_type_name","工种名称","input")); + columns.add(new ExcelImFieldModel("work_category_id","工种分类","select")); + columns.add(new ExcelImFieldModel("skill_level","技能等级","select")); + columns.add(new ExcelImFieldModel("unit","计价单位","input")); + columns.add(new ExcelImFieldModel("reference_unit_price","参考单价","inputNumber")); + columns.add(new ExcelImFieldModel("price_lower_limit","单价下限","inputNumber")); + columns.add(new ExcelImFieldModel("price_upper_limit","单价上限","inputNumber")); + columns.add(new ExcelImFieldModel("seq_num","排序号","inputNumber")); + columns.add(new ExcelImFieldModel("work_description","工种描述","textarea")); + columns.add(new ExcelImFieldModel("remarks","备注","textarea")); + headAndDataMap.put("dataRow" , results); + headAndDataMap.put("headerRow" , JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(columns))); + } catch (Exception e){ + e.printStackTrace(); + return ActionResult.fail(MsgCode.VS407.get()); + } + return ActionResult.success(headAndDataMap); + } + + /** + * 导入数据 + * + * @return + */ + @Operation(summary = "导入数据" ) + @PostMapping("/ImportData") + public ActionResult ImportData(@RequestBody VisualImportModel visualImportModel) throws Exception { + List> listData = visualImportModel.getList(); + ImportFormCheckUniqueModel uniqueModel = new ImportFormCheckUniqueModel(); + uniqueModel.setDbLinkId(WorkTypeConstant.DBLINKID); + uniqueModel.setUpdate(Objects.equals("1", "2")); + + Map tablefieldkey = new HashMap<>(); + for(String key:WorkTypeConstant.TABLEFIELDKEY.keySet()){ + tablefieldkey.put(key,WorkTypeConstant.TABLERENAMES.get(WorkTypeConstant.TABLEFIELDKEY.get(key))); + } + ExcelImportModel excelImportModel = generaterSwapUtil.importData(WorkTypeConstant.getFormData(),listData,uniqueModel, tablefieldkey,WorkTypeConstant.getTableList()); + List importDataModel = uniqueModel.getImportDataModel(); + for (ImportDataModel model : importDataModel) { + String id = model.getId(); + Map result = model.getResultData(); + if(StringUtil.isNotEmpty(id)){ + update(id, JsonUtil.getJsonToBean(result,WorkTypeForm.class), true); + }else { + create( JsonUtil.getJsonToBean(result,WorkTypeForm.class)); + } + } + return ActionResult.success(excelImportModel); + } + + /** + * 导出异常报告 + * + * @return + */ + @Operation(summary = "导出异常报告") + @PostMapping("/ImportExceptionData") + public ActionResult ImportExceptionData(@RequestBody VisualImportModel visualImportModel) { + DownloadVO vo = DownloadVO.builder().build(); + UserInfo userInfo = userProvider.get(); + String menuFullName = generaterSwapUtil.getMenuName(visualImportModel.getMenuId()); + //主表对象 + List entitys = new ArrayList<>(); + entitys.add(new ExcelExportEntity("异常原因", "errorsInfo",30)); + List selectKeys = new ArrayList<>(); + //以下添加字段 + entitys.add(new ExcelExportEntity("工种名称(work_type_name)" ,"work_type_name")); + selectKeys.add("work_type_name"); + entitys.add(new ExcelExportEntity("工种分类(work_category_id)" ,"work_category_id")); + selectKeys.add("work_category_id"); + entitys.add(new ExcelExportEntity("技能等级(skill_level)" ,"skill_level")); + selectKeys.add("skill_level"); + entitys.add(new ExcelExportEntity("计价单位(unit)" ,"unit")); + selectKeys.add("unit"); + entitys.add(new ExcelExportEntity("参考单价(reference_unit_price)" ,"reference_unit_price")); + selectKeys.add("reference_unit_price"); + entitys.add(new ExcelExportEntity("单价下限(price_lower_limit)" ,"price_lower_limit")); + selectKeys.add("price_lower_limit"); + entitys.add(new ExcelExportEntity("单价上限(price_upper_limit)" ,"price_upper_limit")); + selectKeys.add("price_upper_limit"); + entitys.add(new ExcelExportEntity("排序号(seq_num)" ,"seq_num")); + selectKeys.add("seq_num"); + entitys.add(new ExcelExportEntity("工种描述(work_description)" ,"work_description")); + selectKeys.add("work_description"); + entitys.add(new ExcelExportEntity("备注(remarks)" ,"remarks")); + selectKeys.add("remarks"); + ExcelModel excelModel = generaterSwapUtil.getExcelParams(WorkTypeConstant.getFormData(),selectKeys); + List> list = new ArrayList<>(); + list.addAll(visualImportModel.getList()); + + ExportParams exportParams = new ExportParams(null, menuFullName + "模板"); + exportParams.setStyle(ExcelExportStyler.class); + exportParams.setType(ExcelType.XSSF); + exportParams.setFreezeCol(1); + try{ + @Cleanup Workbook workbook = new HSSFWorkbook(); + if (entitys.size()>0){ + if (list.size()==0){ + list.add(new HashMap<>()); + } + //复杂表头-表头和数据处理 + ColumnDataModel columnDataModel = JsonUtil.getJsonToBean(WorkTypeConstant.getColumnData(), ColumnDataModel.class); + List complexHeaderList = columnDataModel.getComplexHeaderList(); + if (!Objects.equals(columnDataModel.getType(), 3) && !Objects.equals(columnDataModel.getType(), 5)) { + entitys = VisualUtils.complexHeaderHandel(entitys, complexHeaderList, false); + list = VisualUtils.complexHeaderDataHandel(list, complexHeaderList, false); + } + + workbook = ExcelExportUtil.exportExcel(exportParams, entitys, list); + ExcelHelper helper = new ExcelHelper(); + helper.init(workbook, exportParams, entitys, excelModel); + helper.doPreHandle(); + helper.doPostHandle(); + } + + String fileName = menuFullName + "错误报告_" + DateUtil.dateNow("yyyyMMddHHmmss") + ".xls"; + MultipartFile multipartFile = ExcelUtil.workbookToCommonsMultipartFile(workbook, fileName); + String temporaryFilePath = configValueUtil.getTemporaryFilePath(); + FileInfo fileInfo = FileUploadUtils.uploadFile(multipartFile, temporaryFilePath, fileName); + vo.setName(fileInfo.getFilename()); + vo.setUrl(UploaderUtil.uploaderFile(fileInfo.getFilename() + "#" + "Temporary") + "&name=" + fileName); + } catch (Exception e) { + e.printStackTrace(); + } + return ActionResult.success(vo); + } + /** + * 删除 + * @param id + * @return + */ + @Operation(summary = "删除") + @DeleteMapping("/{id}") + @Transactional + public ActionResult delete(@PathVariable("id") String id,@RequestParam(name = "forceDel",defaultValue = "false") boolean forceDel) throws Exception{ + WorkTypeEntity entity= workTypeService.getInfo(id); + if(entity!=null){ + //假删除 + entity.setDeleteMark(1); + entity.setDeleteUserId(userProvider.get().getUserId()); + entity.setDeleteTime(new Date()); + workTypeService.setIgnoreLogicDelete().updateById(entity); + } + return ActionResult.success(MsgCode.SU003.get()); + } + /** + * 批量删除 + * @param obj + * @return + */ + @DeleteMapping("/batchRemove") + @Transactional + @Operation(summary = "批量删除") + public ActionResult batchRemove(@RequestBody Object obj){ + Map objectMap = JsonUtil.entityToMap(obj); + List idList = JsonUtil.getJsonToList(objectMap.get("ids"), String.class); + String errInfo = ""; + List successList = new ArrayList<>(); + for (String allId : idList){ + try { + this.delete(allId,false); + successList.add(allId); + } catch (Exception e) { + errInfo = e.getMessage(); + } + } + if (successList.size() == 0 && StringUtil.isNotEmpty(errInfo)){ + return ActionResult.fail(errInfo); + } + return ActionResult.success(MsgCode.SU003.get()); + } + /** + * 编辑 + * @param id + * @param workTypeForm + * @return + */ + @PutMapping("/{id}") + @Operation(summary = "更新") + public ActionResult update(@PathVariable("id") String id,@RequestBody @Valid WorkTypeForm workTypeForm, + @RequestParam(value = "isImport", required = false) boolean isImport){ + WorkTypeEntity entity= workTypeService.getInfo(id); + if(entity!=null){ + workTypeForm.setWorkTypeId(String.valueOf(entity.getWorkTypeId())); + + if (!isImport) { + String b = workTypeService.checkForm(workTypeForm,1); + if (StringUtil.isNotEmpty(b)){ + return ActionResult.fail(b ); + } + } + + try{ + workTypeService.saveOrUpdate(workTypeForm,id,false); + }catch (DataException e1){ + return ActionResult.fail(e1.getMessage()); + }catch(Exception e){ + return ActionResult.fail(MsgCode.FA029.get()); + } + return ActionResult.success(MsgCode.SU004.get()); + }else{ + return ActionResult.fail(MsgCode.FA002.get()); + } + } + /** + * 表单信息(详情页) + * 详情页面使用-转换数据 + * @param id + * @return + */ + @Operation(summary = "表单信息(详情页)") + @GetMapping("/detail/{id}") + public ActionResult detailInfo(@PathVariable("id") String id){ + WorkTypeEntity entity= workTypeService.getInfo(id); + if(entity==null){ + return ActionResult.fail(MsgCode.FA001.get()); + } + Map workTypeMap=JsonUtil.entityToMap(entity); + workTypeMap.put("id", workTypeMap.get("work_type_id")); + //副表数据 + //子表数据 + boolean isPc = "pc".equals(ServletUtil.getHeader("yunzhupaas-origin" )); + workTypeMap = generaterSwapUtil.swapDataDetail(workTypeMap,WorkTypeConstant.getFormData(),"823446652726543365",isPc?false:false); + //子表数据 + return ActionResult.success(workTypeMap); + } + /** + * 获取详情(编辑页) + * 编辑页面使用-不转换数据 + * @param id + * @return + */ + @Operation(summary = "信息") + @GetMapping("/{id}") + public ActionResult info(@PathVariable("id") String id){ + WorkTypeEntity entity= workTypeService.getInfo(id); + if(entity==null){ + return ActionResult.fail(MsgCode.FA001.get()); + } + Map workTypeMap=JsonUtil.entityToMap(entity); + workTypeMap.put("id", workTypeMap.get("work_type_id")); + //副表数据 + //子表数据 + workTypeMap = generaterSwapUtil.swapDataForm(workTypeMap,WorkTypeConstant.getFormData(),WorkTypeConstant.TABLEFIELDKEY,WorkTypeConstant.TABLERENAMES); + return ActionResult.success(workTypeMap); + } + +} diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/entity/WorkTypeEntity.java b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/entity/WorkTypeEntity.java new file mode 100644 index 0000000..2058b2e --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/entity/WorkTypeEntity.java @@ -0,0 +1,77 @@ +package com.yunzhupaas.mdm.entity; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import java.util.Date; +import java.util.List; +import com.alibaba.fastjson.annotation.JSONField; +import java.math.BigDecimal; +import java.math.BigDecimal; +import java.math.BigDecimal; +/** + * 工种基础信息表 + * + * @版本: V5.2.7 + * @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * @作者: 深圳市乐程软件有限公司 + * @日期: 2026-05-18 + */ +@Data +@TableName("mdm_work_type") +public class WorkTypeEntity { + @TableId(value ="work_type_id" ) + @JSONField(name = "work_type_id") + private String workTypeId; + @TableField(value = "work_type_code" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "work_type_code") + private String workTypeCode; + @TableField(value = "work_type_name" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "work_type_name") + private String workTypeName; + @TableField(value = "work_category_id" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "work_category_id") + private String workCategoryId; + @TableField(value = "skill_level" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "skill_level") + private String skillLevel; + @TableField(value = "unit" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "unit") + private String unit; + @TableField(value = "reference_unit_price" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "reference_unit_price") + private BigDecimal referenceUnitPrice; + @TableField(value = "price_lower_limit" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "price_lower_limit") + private BigDecimal priceLowerLimit; + @TableField(value = "price_upper_limit" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "price_upper_limit") + private BigDecimal priceUpperLimit; + @TableField(value = "work_description" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "work_description") + private String workDescription; + @TableField(value = "seq_num" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "seq_num") + private Integer seqNum; + @TableField(value = "remarks" , updateStrategy = FieldStrategy.IGNORED) + @JSONField(name = "remarks") + private String remarks; + @TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE) + @JSONField(name = "f_tenant_id") + private String tenantId; + @TableField("f_delete_mark") + @JSONField(name = "f_delete_mark") + private Integer deleteMark; + @TableField("f_delete_time") + @JSONField(name = "f_delete_time") + private Date deleteTime; + @TableField("f_delete_user_id") + @JSONField(name = "f_delete_user_id") + private String deleteUserId; + @TableField("f_flow_id") + @JSONField(name = "f_flow_id") + private String flowId; + @TableField("f_flow_task_id") + @JSONField(name = "f_flow_task_id") + private String flowTaskId; + +} diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeConstant.java b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeConstant.java new file mode 100644 index 0000000..437bb65 --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeConstant.java @@ -0,0 +1,42 @@ +package com.yunzhupaas.mdm.model.worktype; + +import com.yunzhupaas.util.JsonUtil; +import java.util.*; + +/** + * 工种信息配置json + * + * @版本: V5.2.7 + * @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * @作者: 深圳市乐程软件有限公司 + * @日期: 2026-05-18 + */ +public class WorkTypeConstant{ + /** 数据库链接 */ + public static final String DBLINKID = "0"; + /** 表别名 map */ + public static final Map TABLERENAMES = JsonUtil.getJsonToBean("{\"mdm_work_type\":\"workType\"}",Map.class); + /** 子表model map */ + public static final Map TABLEFIELDKEY = JsonUtil.getJsonToBean("{}",Map.class); + /** 整个表单配置json */ + public static final String getFormData(){ + StringBuilder sb = new StringBuilder(); +sb.append("{\"popupType\":\"fullScreen\",\"labelWidth\":100,\"classNames\":[],\"className\":[],\"fullScreenWidth\":\"100%\",\"hasConfirmAndAddBtn\":true,\"cancelButtonTextI18nCode\":\"common.cancelText\",\"businessKeyTip\":\"数据已存在,请勿重复提交!\",\"labelPosition\":\"right\",\"printId\":\"\",\"labelSuffix\":\"\",\"customBtns\":[],\"disabled\":false,\"formModel\":\"dataForm\",\"cancelButtonText\":\"取消\",\"confirmButtonText\":\"确定\",\"hasCancelBtn\":true,\"primaryKeyPolicy\":1,\"hasPrintBtn\":false,\"concurrencyLock\":false,\"classJson\":\"\",\"drawerWidth\":\"1000px\",\"confirmButtonTextI18nCode\":\"common.okText\",\"printButtonText\":\"打印\",\"businessKeyList\":[],\"formRef\":\"formRef\",\"gutter\":15,\"logicalDelete\":true,\"size\":\"middle\",\"formRules\":\"rules\",\"generalWidth\":\"600px\",\"colon\":false,\"hasConfirmBtn\":true,\"useBusinessKey\":false,\"formStyle\":\"\",\"printButtonTextI18nCode\":\"common.printText\",\"fields\":[{\"__config__\":{\"formId\":\"formItemec5a15\",\"yunzhupaasKey\":\"billRule\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"rule\":\"workTypeCode\",\"className\":[],\"label\":\"工种编码\",\"trigger\":\"change\",\"ruleConfig\":{\"startNumber\":\"\",\"dateFormat\":\"YYYY\",\"randomDigit\":16,\"prefixList\":[],\"randomType\":1,\"suffixList\":[],\"type\":1},\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345780019,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleType\":1,\"ruleName\":\"工种编码\",\"tag\":\"YunzhupaasInput\",\"tableAlign\":\"left\",\"span\":12},\"readonly\":true,\"__vModel__\":\"work_type_code\",\"style\":{\"width\":\"100%\"},\"placeholder\":\"系统自动生成\"},{\"clearable\":true,\"maxlength\":20,\"useScan\":false,\"suffixIcon\":\"\",\"addonAfter\":\"\",\"showCount\":false,\"__config__\":{\"formId\":\"formItem120e88\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"defaultValue\":\"\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种名称\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345895532,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"__vModel__\":\"work_type_name\",\"useMask\":false,\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"filterable\":false,\"clearable\":true,\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777346352365,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItema4f72a\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"workCategory\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"工种分类\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"multiple\":false,\"__vModel__\":\"work_category_id\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请选择\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"}},{\"filterable\":false,\"clearable\":true,\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347095610,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItem03ef8d\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"skillLevel\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"技能等级\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"multiple\":false,\"__vModel__\":\"skill_level\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请选择\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"}},{\"clearable\":true,\"maxlength\":20,\"useScan\":false,\"suffixIcon\":\"\",\"addonAfter\":\"\",\"showCount\":false,\"__config__\":{\"formId\":\"formItemec96d9\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"计价单位\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347663137,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"__vModel__\":\"unit\",\"useMask\":false,\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItem21ecc7\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"参考单价\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347687893,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"reference_unit_price\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItemb89c51\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价下限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463666421,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"price_lower_limit\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItemb6f93e\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价上限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463673987,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"price_upper_limit\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItem294dfe\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"排序号\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463713454,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"seq_num\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"clearable\":true,\"showCount\":false,\"__config__\":{\"formId\":\"formItema2c991\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种描述\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347940332,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"maxlength\":255,\"__vModel__\":\"work_description\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\"},{\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"clearable\":true,\"showCount\":false,\"__config__\":{\"formId\":\"formItem055641\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463723841,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"maxlength\":255,\"__vModel__\":\"remarks\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\"}],\"detailExtraList\":[],\"span\":24,\"dataLog\":true}"); return sb.toString(); + } + /** 列表字段配置json */ + public static final String getColumnData(){ + StringBuilder sb = new StringBuilder(); +sb.append("{\"showSummary\":false,\"treePropsValue\":\"enCode\",\"columnOptions\":[{\"__config__\":{\"formId\":\"formItemec5a15\",\"yunzhupaasKey\":\"billRule\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"rule\":\"workTypeCode\",\"className\":[],\"label\":\"工种编码\",\"trigger\":\"change\",\"ruleConfig\":{\"startNumber\":\"\",\"dateFormat\":\"YYYY\",\"randomDigit\":16,\"prefixList\":[],\"randomType\":1,\"suffixList\":[],\"type\":1},\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345780019,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleType\":1,\"ruleName\":\"工种编码\",\"tag\":\"YunzhupaasInput\",\"tableAlign\":\"left\",\"span\":12},\"readonly\":true,\"__vModel__\":\"work_type_code\",\"fullName\":\"工种编码\",\"fullNameI18nCode\":[\"\"],\"style\":{\"width\":\"100%\"},\"id\":\"work_type_code\",\"placeholder\":\"系统自动生成\"},{\"clearable\":true,\"maxlength\":20,\"useScan\":false,\"suffixIcon\":\"\",\"fullName\":\"工种名称\",\"fullNameI18nCode\":[\"\"],\"addonAfter\":\"\",\"showCount\":false,\"__config__\":{\"formId\":\"formItem120e88\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"defaultValue\":\"\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种名称\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345895532,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"__vModel__\":\"work_type_name\",\"useMask\":false,\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_type_name\",\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"filterable\":false,\"clearable\":true,\"multiple\":false,\"fullName\":\"工种分类\",\"fullNameI18nCode\":[\"\"],\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777346352365,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItema4f72a\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"workCategory\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"工种分类\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"__vModel__\":\"work_category_id\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_category_id\",\"placeholder\":\"请选择\"},{\"filterable\":false,\"clearable\":true,\"multiple\":false,\"fullName\":\"技能等级\",\"fullNameI18nCode\":[\"\"],\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347095610,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItem03ef8d\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"skillLevel\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"技能等级\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"__vModel__\":\"skill_level\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"skill_level\",\"placeholder\":\"请选择\"},{\"clearable\":true,\"maxlength\":20,\"useScan\":false,\"suffixIcon\":\"\",\"fullName\":\"计价单位\",\"fullNameI18nCode\":[\"\"],\"addonAfter\":\"\",\"showCount\":false,\"__config__\":{\"formId\":\"formItemec96d9\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"计价单位\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347663137,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"__vModel__\":\"unit\",\"useMask\":false,\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"unit\",\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"fullName\":\"参考单价\",\"fullNameI18nCode\":[\"\"],\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItem21ecc7\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"参考单价\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347687893,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"reference_unit_price\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"id\":\"reference_unit_price\",\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"fullName\":\"单价下限\",\"fullNameI18nCode\":[\"\"],\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItemb89c51\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价下限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463666421,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"price_lower_limit\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"id\":\"price_lower_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"fullName\":\"单价上限\",\"fullNameI18nCode\":[\"\"],\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItemb6f93e\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价上限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463673987,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"price_upper_limit\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"id\":\"price_upper_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"fullName\":\"排序号\",\"fullNameI18nCode\":[\"\"],\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItem294dfe\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"排序号\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463713454,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"seq_num\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"id\":\"seq_num\",\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"clearable\":true,\"maxlength\":255,\"fullName\":\"工种描述\",\"fullNameI18nCode\":[\"\"],\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"showCount\":false,\"__config__\":{\"formId\":\"formItema2c991\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种描述\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347940332,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"__vModel__\":\"work_description\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_description\",\"placeholder\":\"请输入\"},{\"clearable\":true,\"maxlength\":255,\"fullName\":\"备注\",\"fullNameI18nCode\":[\"\"],\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"showCount\":false,\"__config__\":{\"formId\":\"formItem055641\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463723841,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"__vModel__\":\"remarks\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"remarks\",\"placeholder\":\"请输入\"}],\"pageSize\":20,\"type\":1,\"columnBtnsList\":[{\"show\":true,\"icon\":\"icon-ym icon-ym-btn-edit\",\"label\":\"编辑\",\"event\":{\"enableFunc\":\"({ row, rowIndex, onlineUtils }) => {\\r\\n\\r\\n return true \\r\\n}\"},\"value\":\"edit\",\"labelI18nCode\":\"common.editText\"},{\"show\":true,\"icon\":\"icon-ym icon-ym-btn-clearn\",\"label\":\"删除\",\"event\":{\"enableFunc\":\"({ row, rowIndex, onlineUtils }) => {\\r\\n\\r\\n return true \\r\\n}\"},\"value\":\"remove\",\"labelI18nCode\":\"common.delText\"},{\"show\":true,\"icon\":\"icon-ym icon-ym-generator-menu\",\"label\":\"详情\",\"event\":{\"enableFunc\":\"({ row, rowIndex, onlineUtils }) => {\\r\\n\\r\\n return true \\r\\n}\"},\"value\":\"detail\",\"labelI18nCode\":\"common.detailText\"}],\"treeTitle\":\"左侧标题\",\"defaultColumnList\":[{\"yunzhupaasKey\":\"billRule\",\"resizable\":true,\"fullName\":\"工种编码\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种编码\",\"sortable\":false,\"align\":\"left\",\"__config__\":{\"formId\":\"formItemec5a15\",\"yunzhupaasKey\":\"billRule\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"rule\":\"workTypeCode\",\"className\":[],\"label\":\"工种编码\",\"trigger\":\"change\",\"ruleConfig\":{\"startNumber\":\"\",\"dateFormat\":\"YYYY\",\"randomDigit\":16,\"prefixList\":[],\"randomType\":1,\"suffixList\":[],\"type\":1},\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345780019,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleType\":1,\"ruleName\":\"工种编码\",\"tag\":\"YunzhupaasInput\",\"tableAlign\":\"left\",\"span\":12},\"readonly\":true,\"prop\":\"work_type_code\",\"__vModel__\":\"work_type_code\",\"checked\":true,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"id\":\"work_type_code\",\"placeholder\":\"系统自动生成\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"input\",\"useScan\":false,\"suffixIcon\":\"\",\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"showCount\":false,\"__config__\":{\"formId\":\"formItem120e88\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"defaultValue\":\"\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种名称\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345895532,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"prop\":\"work_type_name\",\"__vModel__\":\"work_type_name\",\"checked\":true,\"disabled\":false,\"id\":\"work_type_name\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"resizable\":true,\"maxlength\":20,\"fullName\":\"工种名称\",\"label\":\"工种名称\",\"sortable\":false,\"addonAfter\":\"\",\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"useMask\":false,\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"select\",\"filterable\":false,\"clearable\":true,\"resizable\":true,\"multiple\":false,\"fullName\":\"工种分类\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种分类\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777346352365,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItema4f72a\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"workCategory\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"工种分类\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"prop\":\"work_category_id\",\"__vModel__\":\"work_category_id\",\"checked\":true,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_category_id\",\"placeholder\":\"请选择\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"select\",\"filterable\":false,\"clearable\":true,\"resizable\":true,\"multiple\":false,\"fullName\":\"技能等级\",\"fullNameI18nCode\":[\"\"],\"label\":\"技能等级\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347095610,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItem03ef8d\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"skillLevel\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"技能等级\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"prop\":\"skill_level\",\"__vModel__\":\"skill_level\",\"checked\":true,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"skill_level\",\"placeholder\":\"请选择\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"input\",\"useScan\":false,\"suffixIcon\":\"\",\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"showCount\":false,\"__config__\":{\"formId\":\"formItemec96d9\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"计价单位\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347663137,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"prop\":\"unit\",\"__vModel__\":\"unit\",\"checked\":true,\"disabled\":false,\"id\":\"unit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"resizable\":true,\"maxlength\":20,\"fullName\":\"计价单位\",\"label\":\"计价单位\",\"sortable\":false,\"addonAfter\":\"\",\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"useMask\":false,\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItem21ecc7\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"参考单价\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347687893,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"reference_unit_price\",\"__vModel__\":\"reference_unit_price\",\"checked\":true,\"disabled\":false,\"id\":\"reference_unit_price\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"参考单价\",\"label\":\"参考单价\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItemb89c51\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价下限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463666421,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"price_lower_limit\",\"__vModel__\":\"price_lower_limit\",\"checked\":true,\"disabled\":false,\"id\":\"price_lower_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"单价下限\",\"label\":\"单价下限\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItemb6f93e\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价上限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463673987,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"price_upper_limit\",\"__vModel__\":\"price_upper_limit\",\"checked\":true,\"disabled\":false,\"id\":\"price_upper_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"单价上限\",\"label\":\"单价上限\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItem294dfe\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"排序号\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463713454,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"seq_num\",\"__vModel__\":\"seq_num\",\"checked\":true,\"disabled\":false,\"id\":\"seq_num\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"排序号\",\"label\":\"排序号\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"textarea\",\"clearable\":true,\"resizable\":true,\"maxlength\":255,\"fullName\":\"工种描述\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种描述\",\"sortable\":false,\"align\":\"left\",\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"showCount\":false,\"__config__\":{\"formId\":\"formItema2c991\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种描述\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347940332,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"prop\":\"work_description\",\"__vModel__\":\"work_description\",\"checked\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_description\",\"placeholder\":\"请输入\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"textarea\",\"clearable\":true,\"resizable\":true,\"maxlength\":255,\"fullName\":\"备注\",\"fullNameI18nCode\":[\"\"],\"label\":\"备注\",\"sortable\":false,\"align\":\"left\",\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"showCount\":false,\"__config__\":{\"formId\":\"formItem055641\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463723841,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"prop\":\"remarks\",\"__vModel__\":\"remarks\",\"checked\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"remarks\",\"placeholder\":\"请输入\",\"labelI18nCode\":\"\"}],\"treeRelationFieldAbleIds\":[],\"treeSyncInterfaceName\":\"\",\"treeSyncTemplateJson\":[],\"treeRelation\":\"asset_type\",\"defaultSortConfig\":[{\"field\":\"seq_num\",\"sort\":\"asc\",\"id\":\"sortce80fc\"}],\"tabConfig\":{\"hasAllTab\":true,\"relationField\":\"\",\"on\":false},\"hasSuperQuery\":true,\"treePropsLabel\":\"fullName\",\"groupField\":\"\",\"printIds\":[],\"uploaderTemplateJson\":{\"selectKey\":[\"work_type_name\",\"work_category_id\",\"skill_level\",\"unit\",\"reference_unit_price\",\"price_lower_limit\",\"price_upper_limit\",\"seq_num\",\"work_description\",\"remarks\"],\"dataType\":\"1\"},\"hasTreeQuery\":false,\"useFormPermission\":false,\"complexHeaderList\":[],\"useBtnPermission\":true,\"treeSyncType\":0,\"hasPage\":true,\"searchList\":[{\"yunzhupaasKey\":\"input\",\"useScan\":false,\"suffixIcon\":\"\",\"fullNameI18nCode\":[\"\"],\"showCount\":false,\"__config__\":{\"formId\":\"formItem120e88\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"defaultValue\":\"\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种名称\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345895532,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"prop\":\"work_type_name\",\"__vModel__\":\"work_type_name\",\"searchMultiple\":false,\"disabled\":false,\"id\":\"work_type_name\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"searchType\":2,\"maxlength\":20,\"fullName\":\"工种名称\",\"label\":\"工种名称\",\"addonAfter\":\"\",\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"isKeyword\":false,\"useMask\":false,\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"select\",\"filterable\":false,\"clearable\":true,\"searchType\":1,\"multiple\":false,\"fullName\":\"工种分类\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种分类\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777346352365,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItema4f72a\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"workCategory\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"工种分类\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"prop\":\"work_category_id\",\"__vModel__\":\"work_category_id\",\"searchMultiple\":true,\"isKeyword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_category_id\",\"placeholder\":\"请选择\",\"labelI18nCode\":\"\"}],\"ruleList\":{\"conditionList\":[],\"matchLogic\":\"and\"},\"childTableStyle\":1,\"treePropsChildren\":\"children\",\"treeRelationFieldSelectType\":\"all\",\"showOverflow\":true,\"treeTemplateJson\":[],\"treeTitleI18nCode\":\"\",\"treePropsName\":\"\",\"useColumnPermission\":false,\"treePropsUrl\":\"\",\"btnsList\":[{\"show\":true,\"icon\":\"icon-ym icon-ym-btn-add\",\"label\":\"新增\",\"value\":\"add\",\"labelI18nCode\":\"common.add2Text\"},{\"show\":true,\"icon\":\"icon-ym icon-ym-btn-download\",\"label\":\"导出\",\"value\":\"download\",\"labelI18nCode\":\"common.exportText\"},{\"show\":true,\"icon\":\"icon-ym icon-ym-btn-upload\",\"label\":\"导入\",\"value\":\"upload\",\"labelI18nCode\":\"common.importText\"},{\"show\":false,\"icon\":\"icon-ym icon-ym-btn-clearn\",\"label\":\"批量删除\",\"value\":\"batchRemove\",\"labelI18nCode\":\"common.batchDelText\"},{\"show\":false,\"icon\":\"icon-ym icon-ym-report-icon-preview-printPreview\",\"label\":\"批量打印\",\"value\":\"batchPrint\",\"labelI18nCode\":\"common.batchPrintText\"}],\"useDataPermission\":true,\"viewKey\":\"\",\"columnList\":[{\"yunzhupaasKey\":\"billRule\",\"resizable\":true,\"fullName\":\"工种编码\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种编码\",\"sortable\":false,\"align\":\"left\",\"__config__\":{\"formId\":\"formItemec5a15\",\"yunzhupaasKey\":\"billRule\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"rule\":\"workTypeCode\",\"className\":[],\"label\":\"工种编码\",\"trigger\":\"change\",\"ruleConfig\":{\"startNumber\":\"\",\"dateFormat\":\"YYYY\",\"randomDigit\":16,\"prefixList\":[],\"randomType\":1,\"suffixList\":[],\"type\":1},\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345780019,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleType\":1,\"ruleName\":\"工种编码\",\"tag\":\"YunzhupaasInput\",\"tableAlign\":\"left\",\"span\":12},\"readonly\":true,\"prop\":\"work_type_code\",\"__vModel__\":\"work_type_code\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"id\":\"work_type_code\",\"placeholder\":\"系统自动生成\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"input\",\"useScan\":false,\"suffixIcon\":\"\",\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"showCount\":false,\"__config__\":{\"formId\":\"formItem120e88\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"defaultValue\":\"\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种名称\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345895532,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"prop\":\"work_type_name\",\"__vModel__\":\"work_type_name\",\"disabled\":false,\"id\":\"work_type_name\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"resizable\":true,\"maxlength\":20,\"fullName\":\"工种名称\",\"label\":\"工种名称\",\"sortable\":false,\"addonAfter\":\"\",\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"useMask\":false,\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"select\",\"filterable\":false,\"clearable\":true,\"resizable\":true,\"multiple\":false,\"fullName\":\"工种分类\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种分类\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777346352365,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItema4f72a\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"workCategory\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"工种分类\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"prop\":\"work_category_id\",\"__vModel__\":\"work_category_id\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_category_id\",\"placeholder\":\"请选择\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"select\",\"filterable\":false,\"clearable\":true,\"resizable\":true,\"multiple\":false,\"fullName\":\"技能等级\",\"fullNameI18nCode\":[\"\"],\"label\":\"技能等级\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347095610,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItem03ef8d\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"skillLevel\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"技能等级\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"prop\":\"skill_level\",\"__vModel__\":\"skill_level\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"skill_level\",\"placeholder\":\"请选择\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"input\",\"useScan\":false,\"suffixIcon\":\"\",\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"showCount\":false,\"__config__\":{\"formId\":\"formItemec96d9\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"计价单位\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347663137,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"prop\":\"unit\",\"__vModel__\":\"unit\",\"disabled\":false,\"id\":\"unit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"resizable\":true,\"maxlength\":20,\"fullName\":\"计价单位\",\"label\":\"计价单位\",\"sortable\":false,\"addonAfter\":\"\",\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"useMask\":false,\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItem21ecc7\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"参考单价\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347687893,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"reference_unit_price\",\"__vModel__\":\"reference_unit_price\",\"disabled\":false,\"id\":\"reference_unit_price\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"参考单价\",\"label\":\"参考单价\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItemb89c51\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价下限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463666421,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"price_lower_limit\",\"__vModel__\":\"price_lower_limit\",\"disabled\":false,\"id\":\"price_lower_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"单价下限\",\"label\":\"单价下限\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItemb6f93e\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价上限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463673987,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"price_upper_limit\",\"__vModel__\":\"price_upper_limit\",\"disabled\":false,\"id\":\"price_upper_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"单价上限\",\"label\":\"单价上限\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItem294dfe\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"排序号\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463713454,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"seq_num\",\"__vModel__\":\"seq_num\",\"disabled\":false,\"id\":\"seq_num\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"排序号\",\"label\":\"排序号\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"}],\"summaryField\":[],\"parentField\":\"\",\"treeDataSource\":\"dictionary\",\"treeDictionary\":\"assetType\",\"treeSyncInterfaceId\":\"\",\"customBtnsList\":[]}"); return sb.toString(); + } + /** app列表字段配置json */ + public static final String getAppColumnData(){ + StringBuilder sb = new StringBuilder(); +sb.append("{\"hasPage\":true,\"useColumnPermission\":false,\"searchList\":[],\"btnsList\":[{\"show\":true,\"icon\":\"icon-ym icon-ym-btn-add\",\"label\":\"新增\",\"value\":\"add\",\"labelI18nCode\":\"common.add2Text\"},{\"show\":false,\"icon\":\"icon-ym icon-ym-btn-clearn\",\"label\":\"批量删除\",\"value\":\"batchRemove\",\"labelI18nCode\":\"common.batchDelText\"}],\"useDataPermission\":false,\"viewKey\":\"\",\"ruleListApp\":{\"conditionList\":[],\"matchLogic\":\"and\"},\"columnList\":[{\"yunzhupaasKey\":\"billRule\",\"resizable\":true,\"fullName\":\"工种编码\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种编码\",\"sortable\":false,\"align\":\"left\",\"__config__\":{\"formId\":\"formItemec5a15\",\"yunzhupaasKey\":\"billRule\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"rule\":\"workTypeCode\",\"className\":[],\"label\":\"工种编码\",\"trigger\":\"change\",\"ruleConfig\":{\"startNumber\":\"\",\"dateFormat\":\"YYYY\",\"randomDigit\":16,\"prefixList\":[],\"randomType\":1,\"suffixList\":[],\"type\":1},\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345780019,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleType\":1,\"ruleName\":\"工种编码\",\"tag\":\"YunzhupaasInput\",\"tableAlign\":\"left\",\"span\":12},\"readonly\":true,\"prop\":\"work_type_code\",\"__vModel__\":\"work_type_code\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"id\":\"work_type_code\",\"placeholder\":\"系统自动生成\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"input\",\"useScan\":false,\"suffixIcon\":\"\",\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"showCount\":false,\"__config__\":{\"formId\":\"formItem120e88\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"defaultValue\":\"\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种名称\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345895532,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"prop\":\"work_type_name\",\"__vModel__\":\"work_type_name\",\"disabled\":false,\"id\":\"work_type_name\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"resizable\":true,\"maxlength\":20,\"fullName\":\"工种名称\",\"label\":\"工种名称\",\"sortable\":false,\"addonAfter\":\"\",\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"useMask\":false,\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"select\",\"filterable\":false,\"clearable\":true,\"resizable\":true,\"multiple\":false,\"fullName\":\"工种分类\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种分类\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777346352365,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItema4f72a\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"workCategory\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"工种分类\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"prop\":\"work_category_id\",\"__vModel__\":\"work_category_id\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_category_id\",\"placeholder\":\"请选择\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"select\",\"filterable\":false,\"clearable\":true,\"resizable\":true,\"multiple\":false,\"fullName\":\"技能等级\",\"fullNameI18nCode\":[\"\"],\"label\":\"技能等级\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347095610,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItem03ef8d\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"skillLevel\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"技能等级\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"prop\":\"skill_level\",\"__vModel__\":\"skill_level\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"skill_level\",\"placeholder\":\"请选择\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"input\",\"useScan\":false,\"suffixIcon\":\"\",\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"showCount\":false,\"__config__\":{\"formId\":\"formItemec96d9\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"计价单位\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347663137,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"prop\":\"unit\",\"__vModel__\":\"unit\",\"disabled\":false,\"id\":\"unit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"resizable\":true,\"maxlength\":20,\"fullName\":\"计价单位\",\"label\":\"计价单位\",\"sortable\":false,\"addonAfter\":\"\",\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"useMask\":false,\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItem21ecc7\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"参考单价\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347687893,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"reference_unit_price\",\"__vModel__\":\"reference_unit_price\",\"disabled\":false,\"id\":\"reference_unit_price\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"参考单价\",\"label\":\"参考单价\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItemb89c51\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价下限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463666421,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"price_lower_limit\",\"__vModel__\":\"price_lower_limit\",\"disabled\":false,\"id\":\"price_lower_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"单价下限\",\"label\":\"单价下限\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItemb6f93e\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价上限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463673987,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"price_upper_limit\",\"__vModel__\":\"price_upper_limit\",\"disabled\":false,\"id\":\"price_upper_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"单价上限\",\"label\":\"单价上限\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItem294dfe\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"排序号\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463713454,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"seq_num\",\"__vModel__\":\"seq_num\",\"disabled\":false,\"id\":\"seq_num\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"排序号\",\"label\":\"排序号\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"}],\"columnOptions\":[{\"__config__\":{\"formId\":\"formItemec5a15\",\"yunzhupaasKey\":\"billRule\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"rule\":\"workTypeCode\",\"className\":[],\"label\":\"工种编码\",\"trigger\":\"change\",\"ruleConfig\":{\"startNumber\":\"\",\"dateFormat\":\"YYYY\",\"randomDigit\":16,\"prefixList\":[],\"randomType\":1,\"suffixList\":[],\"type\":1},\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345780019,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleType\":1,\"ruleName\":\"工种编码\",\"tag\":\"YunzhupaasInput\",\"tableAlign\":\"left\",\"span\":12},\"readonly\":true,\"__vModel__\":\"work_type_code\",\"fullName\":\"工种编码\",\"fullNameI18nCode\":[\"\"],\"style\":{\"width\":\"100%\"},\"id\":\"work_type_code\",\"placeholder\":\"系统自动生成\"},{\"clearable\":true,\"maxlength\":20,\"useScan\":false,\"suffixIcon\":\"\",\"fullName\":\"工种名称\",\"fullNameI18nCode\":[\"\"],\"addonAfter\":\"\",\"showCount\":false,\"__config__\":{\"formId\":\"formItem120e88\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"defaultValue\":\"\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种名称\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345895532,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"__vModel__\":\"work_type_name\",\"useMask\":false,\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_type_name\",\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"filterable\":false,\"clearable\":true,\"multiple\":false,\"fullName\":\"工种分类\",\"fullNameI18nCode\":[\"\"],\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777346352365,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItema4f72a\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"workCategory\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"工种分类\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"__vModel__\":\"work_category_id\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_category_id\",\"placeholder\":\"请选择\"},{\"filterable\":false,\"clearable\":true,\"multiple\":false,\"fullName\":\"技能等级\",\"fullNameI18nCode\":[\"\"],\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347095610,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItem03ef8d\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"skillLevel\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"技能等级\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"__vModel__\":\"skill_level\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"skill_level\",\"placeholder\":\"请选择\"},{\"clearable\":true,\"maxlength\":20,\"useScan\":false,\"suffixIcon\":\"\",\"fullName\":\"计价单位\",\"fullNameI18nCode\":[\"\"],\"addonAfter\":\"\",\"showCount\":false,\"__config__\":{\"formId\":\"formItemec96d9\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"计价单位\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347663137,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"__vModel__\":\"unit\",\"useMask\":false,\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"unit\",\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"fullName\":\"参考单价\",\"fullNameI18nCode\":[\"\"],\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItem21ecc7\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"参考单价\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347687893,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"reference_unit_price\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"id\":\"reference_unit_price\",\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"fullName\":\"单价下限\",\"fullNameI18nCode\":[\"\"],\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItemb89c51\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价下限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463666421,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"price_lower_limit\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"id\":\"price_lower_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"fullName\":\"单价上限\",\"fullNameI18nCode\":[\"\"],\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItemb6f93e\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价上限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463673987,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"price_upper_limit\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"id\":\"price_upper_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"controls\":false,\"precision\":2,\"fullName\":\"排序号\",\"fullNameI18nCode\":[\"\"],\"thousands\":false,\"isAmountChinese\":false,\"addonAfter\":\"\",\"__config__\":{\"formId\":\"formItem294dfe\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"排序号\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463713454,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"__vModel__\":\"seq_num\",\"style\":{\"width\":\"100%\"},\"step\":1,\"disabled\":false,\"id\":\"seq_num\",\"placeholder\":\"请输入\",\"addonBefore\":\"\"},{\"clearable\":true,\"maxlength\":255,\"fullName\":\"工种描述\",\"fullNameI18nCode\":[\"\"],\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"showCount\":false,\"__config__\":{\"formId\":\"formItema2c991\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种描述\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347940332,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"__vModel__\":\"work_description\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_description\",\"placeholder\":\"请输入\"},{\"clearable\":true,\"maxlength\":255,\"fullName\":\"备注\",\"fullNameI18nCode\":[\"\"],\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"showCount\":false,\"__config__\":{\"formId\":\"formItem055641\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463723841,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"__vModel__\":\"remarks\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"remarks\",\"placeholder\":\"请输入\"}],\"pageSize\":20,\"defaultSortConfig\":[],\"type\":1,\"columnBtnsList\":[{\"show\":true,\"icon\":\"icon-ym icon-ym-btn-edit\",\"label\":\"编辑\",\"event\":{\"enableFunc\":\"({ row, rowIndex, onlineUtils }) => {\\r\\n\\r\\n return true \\r\\n}\"},\"value\":\"edit\",\"labelI18nCode\":\"common.editText\"},{\"show\":true,\"icon\":\"icon-ym icon-ym-btn-clearn\",\"label\":\"删除\",\"event\":{\"enableFunc\":\"({ row, rowIndex, onlineUtils }) => {\\r\\n\\r\\n return true \\r\\n}\"},\"value\":\"remove\",\"labelI18nCode\":\"common.delText\"},{\"show\":true,\"icon\":\"icon-ym icon-ym-generator-menu\",\"label\":\"详情\",\"event\":{\"enableFunc\":\"({ row, rowIndex, onlineUtils }) => {\\r\\n\\r\\n return true \\r\\n}\"},\"value\":\"detail\",\"labelI18nCode\":\"common.detailText\"}],\"tabConfig\":{\"hasAllTab\":true,\"relationField\":\"\",\"on\":false},\"hasSuperQuery\":false,\"defaultColumnList\":[{\"yunzhupaasKey\":\"billRule\",\"resizable\":true,\"fullName\":\"工种编码\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种编码\",\"sortable\":false,\"align\":\"left\",\"__config__\":{\"formId\":\"formItemec5a15\",\"yunzhupaasKey\":\"billRule\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"rule\":\"workTypeCode\",\"className\":[],\"label\":\"工种编码\",\"trigger\":\"change\",\"ruleConfig\":{\"startNumber\":\"\",\"dateFormat\":\"YYYY\",\"randomDigit\":16,\"prefixList\":[],\"randomType\":1,\"suffixList\":[],\"type\":1},\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345780019,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleType\":1,\"ruleName\":\"工种编码\",\"tag\":\"YunzhupaasInput\",\"tableAlign\":\"left\",\"span\":12},\"readonly\":true,\"prop\":\"work_type_code\",\"__vModel__\":\"work_type_code\",\"checked\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"id\":\"work_type_code\",\"placeholder\":\"系统自动生成\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"input\",\"useScan\":false,\"suffixIcon\":\"\",\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"showCount\":false,\"__config__\":{\"formId\":\"formItem120e88\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"defaultValue\":\"\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种名称\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777345895532,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"prop\":\"work_type_name\",\"__vModel__\":\"work_type_name\",\"checked\":false,\"disabled\":false,\"id\":\"work_type_name\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"resizable\":true,\"maxlength\":20,\"fullName\":\"工种名称\",\"label\":\"工种名称\",\"sortable\":false,\"addonAfter\":\"\",\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"useMask\":false,\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"select\",\"filterable\":false,\"clearable\":true,\"resizable\":true,\"multiple\":false,\"fullName\":\"工种分类\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种分类\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777346352365,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItema4f72a\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"workCategory\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"工种分类\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"prop\":\"work_category_id\",\"__vModel__\":\"work_category_id\",\"checked\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_category_id\",\"placeholder\":\"请选择\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"select\",\"filterable\":false,\"clearable\":true,\"resizable\":true,\"multiple\":false,\"fullName\":\"技能等级\",\"fullNameI18nCode\":[\"\"],\"label\":\"技能等级\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"yunzhupaasKey\":\"select\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347095610,\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"tag\":\"YunzhupaasSelect\",\"formId\":\"formItem03ef8d\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"dataType\":\"dictionary\",\"dictionaryType\":\"skillLevel\",\"tipLabel\":\"\",\"tableFixed\":\"none\",\"label\":\"技能等级\",\"trigger\":\"change\",\"layout\":\"colFormItem\",\"useCache\":true,\"propsName\":\"\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"prop\":\"skill_level\",\"__vModel__\":\"skill_level\",\"checked\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"skill_level\",\"placeholder\":\"请选择\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"input\",\"useScan\":false,\"suffixIcon\":\"\",\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"showCount\":false,\"__config__\":{\"formId\":\"formItemec96d9\",\"yunzhupaasKey\":\"input\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"计价单位\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347663137,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"tag\":\"YunzhupaasInput\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"readonly\":false,\"prop\":\"unit\",\"__vModel__\":\"unit\",\"checked\":false,\"disabled\":false,\"id\":\"unit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"resizable\":true,\"maxlength\":20,\"fullName\":\"计价单位\",\"label\":\"计价单位\",\"sortable\":false,\"addonAfter\":\"\",\"maskConfig\":{\"prefixType\":1,\"useUnrealMask\":false,\"maskType\":1,\"unrealMaskLength\":1,\"prefixLimit\":0,\"suffixLimit\":0,\"filler\":\"*\",\"prefixSpecifyChar\":\"\",\"suffixType\":1,\"ignoreChar\":\"\",\"suffixSpecifyChar\":\"\"},\"useMask\":false,\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItem21ecc7\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"参考单价\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347687893,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"reference_unit_price\",\"__vModel__\":\"reference_unit_price\",\"checked\":false,\"disabled\":false,\"id\":\"reference_unit_price\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"参考单价\",\"label\":\"参考单价\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItemb89c51\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价下限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463666421,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"price_lower_limit\",\"__vModel__\":\"price_lower_limit\",\"checked\":false,\"disabled\":false,\"id\":\"price_lower_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"单价下限\",\"label\":\"单价下限\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItemb6f93e\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"单价上限\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463673987,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"price_upper_limit\",\"__vModel__\":\"price_upper_limit\",\"checked\":false,\"disabled\":false,\"id\":\"price_upper_limit\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"单价上限\",\"label\":\"单价上限\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"inputNumber\",\"controls\":false,\"precision\":2,\"fullNameI18nCode\":[\"\"],\"align\":\"left\",\"isAmountChinese\":false,\"__config__\":{\"formId\":\"formItem294dfe\",\"yunzhupaasKey\":\"inputNumber\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"排序号\",\"trigger\":[\"blur\",\"change\"],\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463713454,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-number\",\"tag\":\"YunzhupaasInputNumber\",\"regList\":[],\"tableAlign\":\"left\",\"span\":12},\"min\":0,\"prop\":\"seq_num\",\"__vModel__\":\"seq_num\",\"checked\":false,\"disabled\":false,\"id\":\"seq_num\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"resizable\":true,\"fullName\":\"排序号\",\"label\":\"排序号\",\"sortable\":false,\"thousands\":false,\"addonAfter\":\"\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"step\":1,\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"textarea\",\"clearable\":true,\"resizable\":true,\"maxlength\":255,\"fullName\":\"工种描述\",\"fullNameI18nCode\":[\"\"],\"label\":\"工种描述\",\"sortable\":false,\"align\":\"left\",\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"showCount\":false,\"__config__\":{\"formId\":\"formItema2c991\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"工种描述\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1777347940332,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"prop\":\"work_description\",\"__vModel__\":\"work_description\",\"checked\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"work_description\",\"placeholder\":\"请输入\",\"labelI18nCode\":\"\"},{\"yunzhupaasKey\":\"textarea\",\"clearable\":true,\"resizable\":true,\"maxlength\":255,\"fullName\":\"备注\",\"fullNameI18nCode\":[\"\"],\"label\":\"备注\",\"sortable\":false,\"align\":\"left\",\"autoSize\":{\"minRows\":2,\"maxRows\":2},\"showCount\":false,\"__config__\":{\"formId\":\"formItem055641\",\"yunzhupaasKey\":\"textarea\",\"visibility\":[\"pc\",\"app\"],\"noShow\":false,\"tipLabel\":\"\",\"tableFixed\":\"none\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"mdm_work_type\",\"renderKey\":1778463723841,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-textarea\",\"tag\":\"YunzhupaasTextarea\",\"regList\":[],\"tableAlign\":\"left\",\"span\":24},\"readonly\":false,\"prop\":\"remarks\",\"__vModel__\":\"remarks\",\"checked\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"remarks\",\"placeholder\":\"请输入\",\"labelI18nCode\":\"\"}],\"showOverflow\":true,\"useFormPermission\":false,\"customBtnsList\":[],\"useBtnPermission\":false}"); return sb.toString(); + } + /** 表列表 */ + public static final String getTableList(){ + StringBuilder sb = new StringBuilder(); +sb.append("[{\"relationTable\":\"\",\"tableField\":\"\",\"typeId\":\"1\",\"fields\":[{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":null,\"dataType\":\"bigint\",\"field\":\"work_type_id\",\"fieldName\":\"主键ID\",\"identity\":0,\"primaryKey\":1},{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"30\",\"dataType\":\"varchar\",\"field\":\"work_type_code\",\"fieldName\":\"工种编码。单据规则:workTypeCode\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"work_type_name\",\"fieldName\":\"工种名称\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"work_category_id\",\"fieldName\":\"工种分类。关联字典:workCategory\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"skill_level\",\"fieldName\":\"技能等级。关联字典:skillLevel\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"10\",\"dataType\":\"varchar\",\"field\":\"unit\",\"fieldName\":\"计价单位\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"10,2\",\"dataType\":\"decimal\",\"field\":\"reference_unit_price\",\"fieldName\":\"参考单价\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"10,2\",\"dataType\":\"decimal\",\"field\":\"price_lower_limit\",\"fieldName\":\"单价下限\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"10,2\",\"dataType\":\"decimal\",\"field\":\"price_upper_limit\",\"fieldName\":\"单价上限\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"2000\",\"dataType\":\"varchar\",\"field\":\"work_description\",\"fieldName\":\"工种描述\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":null,\"dataType\":\"int\",\"field\":\"seq_num\",\"fieldName\":\"排序号\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"500\",\"dataType\":\"varchar\",\"field\":\"remarks\",\"fieldName\":\"备注\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":0,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"f_tenant_id\",\"fieldName\":\"租户id\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":null,\"dataType\":\"int\",\"field\":\"f_delete_mark\",\"fieldName\":\"删除标志\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"\",\"dataType\":\"datetime\",\"field\":\"f_delete_time\",\"fieldName\":\"删除时间\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"f_delete_user_id\",\"fieldName\":\"删除用户\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"f_flow_id\",\"fieldName\":\"流程id\",\"identity\":0,\"primaryKey\":0},{\"allowNull\":1,\"autoIncrement\":0,\"columnName\":null,\"dataLength\":\"50\",\"dataType\":\"varchar\",\"field\":\"f_flow_task_id\",\"fieldName\":\"流程任务主键\",\"identity\":0,\"primaryKey\":0}],\"relationField\":\"\",\"table\":\"mdm_work_type\",\"tableName\":\"工种基础信息表\"}]"); return sb.toString(); + } + +} diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeExcelErrorVO.java b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeExcelErrorVO.java new file mode 100644 index 0000000..c07839f --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeExcelErrorVO.java @@ -0,0 +1,22 @@ + + +package com.yunzhupaas.mdm.model.worktype; + +import lombok.Data; +import cn.afterturn.easypoi.excel.annotation.Excel; +import com.alibaba.fastjson.annotation.JSONField; +/** + * + * 工种信息 + * @版本: V5.2.7 + * @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * @作者: 深圳市乐程软件有限公司 + * @日期: 2026-05-18 + */ +@Data +public class WorkTypeExcelErrorVO extends WorkTypeExcelVO{ + + @Excel(name = "异常原因",orderNum = "-999") + @JSONField(name = "errorsInfo") + private String errorsInfo; +} diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeExcelVO.java b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeExcelVO.java new file mode 100644 index 0000000..a9780dc --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeExcelVO.java @@ -0,0 +1,75 @@ +package com.yunzhupaas.mdm.model.worktype; + +import lombok.Data; +import java.sql.Time; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.alibaba.fastjson.annotation.JSONField; +import cn.afterturn.easypoi.excel.annotation.Excel; +import cn.afterturn.easypoi.excel.annotation.ExcelEntity; +import cn.afterturn.easypoi.excel.annotation.ExcelCollection; +import java.math.BigDecimal; +import java.util.List; +/** + * + * 工种信息 + * @版本: V5.2.7 + * @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * @作者: 深圳市乐程软件有限公司 + * @日期: 2026-05-18 + */ +@Data +public class WorkTypeExcelVO{ + /** 工种名称 **/ + @JSONField(name = "work_type_name") + @Excel(name = "工种名称(work_type_name)",orderNum = "1", isImportField = "true" ) + private String work_type_name; + + /** 工种分类 **/ + @JSONField(name = "work_category_id") + @Excel(name = "工种分类(work_category_id)",orderNum = "1", isImportField = "true" ) + private String work_category_id; + + /** 技能等级 **/ + @JSONField(name = "skill_level") + @Excel(name = "技能等级(skill_level)",orderNum = "1", isImportField = "true" ) + private String skill_level; + + /** 计价单位 **/ + @JSONField(name = "unit") + @Excel(name = "计价单位(unit)",orderNum = "1", isImportField = "true" ) + private String unit; + + /** 参考单价 **/ + @JSONField(name = "reference_unit_price") + @Excel(name = "参考单价(reference_unit_price)",orderNum = "1", isImportField = "true" ) + private String reference_unit_price; + + /** 单价下限 **/ + @JSONField(name = "price_lower_limit") + @Excel(name = "单价下限(price_lower_limit)",orderNum = "1", isImportField = "true" ) + private String price_lower_limit; + + /** 单价上限 **/ + @JSONField(name = "price_upper_limit") + @Excel(name = "单价上限(price_upper_limit)",orderNum = "1", isImportField = "true" ) + private String price_upper_limit; + + /** 排序号 **/ + @JSONField(name = "seq_num") + @Excel(name = "排序号(seq_num)",orderNum = "1", isImportField = "true" ) + private String seq_num; + + /** 工种描述 **/ + @JSONField(name = "work_description") + @Excel(name = "工种描述(work_description)",orderNum = "1", isImportField = "true" ) + private String work_description; + + /** 备注 **/ + @JSONField(name = "remarks") + @Excel(name = "备注(remarks)",orderNum = "1", isImportField = "true" ) + private String remarks; + + +} diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeForm.java b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeForm.java new file mode 100644 index 0000000..e8470a4 --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypeForm.java @@ -0,0 +1,82 @@ +package com.yunzhupaas.mdm.model.worktype; + +import lombok.Data; +import java.util.*; +import java.math.BigDecimal; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.alibaba.fastjson.annotation.JSONField; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * 工种信息 + * @版本: V5.2.7 + * @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * @作者: 深圳市乐程软件有限公司 + * @日期: 2026-05-18 + */ +@Data +@Schema(description = "表单参数") +public class WorkTypeForm { + /** 主键 */ + @Schema(description = "主键") + @JSONField(name = "work_type_id") + private String workTypeId; + + + /** 工种编码 **/ + @Schema(description = "工种编码") + @JsonProperty("work_type_code") + @JSONField(name = "work_type_code") + private String workTypeCode; + /** 工种名称 **/ + @Schema(description = "工种名称") + @JsonProperty("work_type_name") + @JSONField(name = "work_type_name") + private String workTypeName; + /** 工种分类 **/ + @Schema(description = "工种分类") + @JsonProperty("work_category_id") + @JSONField(name = "work_category_id") + private Object workCategoryId; + /** 技能等级 **/ + @Schema(description = "技能等级") + @JsonProperty("skill_level") + @JSONField(name = "skill_level") + private Object skillLevel; + /** 计价单位 **/ + @Schema(description = "计价单位") + @JsonProperty("unit") + @JSONField(name = "unit") + private String unit; + /** 参考单价 **/ + @Schema(description = "参考单价") + @JsonProperty("reference_unit_price") + @JSONField(name = "reference_unit_price") + private BigDecimal referenceUnitPrice; + /** 单价下限 **/ + @Schema(description = "单价下限") + @JsonProperty("price_lower_limit") + @JSONField(name = "price_lower_limit") + private BigDecimal priceLowerLimit; + /** 单价上限 **/ + @Schema(description = "单价上限") + @JsonProperty("price_upper_limit") + @JSONField(name = "price_upper_limit") + private BigDecimal priceUpperLimit; + /** 排序号 **/ + @Schema(description = "排序号") + @JsonProperty("seq_num") + @JSONField(name = "seq_num") + private BigDecimal seqNum; + /** 工种描述 **/ + @Schema(description = "工种描述") + @JsonProperty("work_description") + @JSONField(name = "work_description") + private String workDescription; + /** 备注 **/ + @Schema(description = "备注") + @JsonProperty("remarks") + @JSONField(name = "remarks") + private String remarks; + +} diff --git a/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypePagination.java b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypePagination.java new file mode 100644 index 0000000..bbad3c5 --- /dev/null +++ b/yunzhupaas-mdm/yunzhupaas-mdm-entity/src/main/java/com/yunzhupaas/mdm/model/worktype/WorkTypePagination.java @@ -0,0 +1,55 @@ +package com.yunzhupaas.mdm.model.worktype; + +import com.alibaba.fastjson.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; +import com.yunzhupaas.base.Pagination; +import io.swagger.v3.oas.annotations.media.Schema; +import java.util.List; + +/** + * + * 工种信息 + * @版本: V5.2.7 + * @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有 + * @作者: 深圳市乐程软件有限公司 + * @日期: 2026-05-18 + */ +@Data +@Schema(description = "列表查询参数") +public class WorkTypePagination extends Pagination { + /** 关键词搜索 */ + @Schema(description = "关键词搜索") + private String yunzhupaasKeyword; + /** 查询key */ + @Schema(description = "查询key") + private String[] selectKey; + /** 选中数据数组id */ + @Schema(description = "选中数据数组id") + private Object[] selectIds; + /** json */ + @Schema(description = "json") + private String json; + /** 数据类型 0-当前页,1-全部数据 */ + @Schema(description = "数据类型 0-当前页,1-全部数据") + private String dataType; + /** 高级查询 */ + @Schema(description = "高级查询") + private String superQueryJson; + /** 功能id */ + @Schema(description = "功能id") + private String moduleId; + /** 菜单id */ + @Schema(description = "菜单id") + private String menuId; + /** 工种名称 */ + @Schema(description = "工种名称") + @JsonProperty("work_type_name") + @JSONField(name = "workTypeName") + private Object workTypeName; + /** 工种分类 */ + @Schema(description = "工种分类") + @JsonProperty("work_category_id") + @JSONField(name = "workCategoryId") + private Object workCategoryId; +}