diff --git a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingReportlossMapper.xml b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingReportlossMapper.xml new file mode 100644 index 00000000..9968c198 --- /dev/null +++ b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingReportlossMapper.xml @@ -0,0 +1,11 @@ + + + + + + + diff --git a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingReportlossProductMapper.xml b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingReportlossProductMapper.xml new file mode 100644 index 00000000..b53c1056 --- /dev/null +++ b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/WarehousingReportlossProductMapper.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/mapper/WarehousingReportlossMapper.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/mapper/WarehousingReportlossMapper.java new file mode 100644 index 00000000..4434883c --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/mapper/WarehousingReportlossMapper.java @@ -0,0 +1,18 @@ +package jnpf.mapper; + + +import jnpf.entity.WarehousingReportlossEntity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * warehousingReportloss + * 版本: V3.5 + * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * 作者: JNPF开发平台组 + * 日期: 2024-02-22 + */ +public interface WarehousingReportlossMapper extends BaseMapper { + //报损总数量 + String queryReportlossSum(String id); + +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/mapper/WarehousingReportlossProductMapper.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/mapper/WarehousingReportlossProductMapper.java new file mode 100644 index 00000000..a777d45c --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/mapper/WarehousingReportlossProductMapper.java @@ -0,0 +1,16 @@ +package jnpf.mapper; + + +import jnpf.entity.WarehousingReportlossProductEntity; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * warehousingReportloss + * 版本: V3.5 + * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * 作者: JNPF开发平台组 + * 日期: 2024-02-22 + */ +public interface WarehousingReportlossProductMapper extends BaseMapper { + +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/WarehousingReportlossProductService.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/WarehousingReportlossProductService.java new file mode 100644 index 00000000..46362cc2 --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/WarehousingReportlossProductService.java @@ -0,0 +1,18 @@ +package jnpf.service; + +import jnpf.model.warehousingreportloss.*; +import jnpf.entity.*; +import java.util.*; +import com.baomidou.mybatisplus.extension.service.IService; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; + +/** + * warehousingReportloss + * 版本: V3.5 + * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * 作者: JNPF开发平台组 + * 日期: 2024-02-22 + */ +public interface WarehousingReportlossProductService extends IService { + QueryWrapper getChild(WarehousingReportlossPagination pagination,QueryWrapper warehousingReportlossProductQueryWrapper); +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/WarehousingReportlossService.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/WarehousingReportlossService.java new file mode 100644 index 00000000..c9fd493f --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/WarehousingReportlossService.java @@ -0,0 +1,41 @@ +package jnpf.service; + +import jnpf.model.warehousingreportloss.*; +import jnpf.entity.*; +import java.util.*; +import com.baomidou.mybatisplus.extension.service.IService; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; + +/** + * warehousingReportloss + * 版本: V3.5 + * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * 作者: JNPF开发平台组 + * 日期: 2024-02-22 + */ +public interface WarehousingReportlossService extends IService { + List getList(WarehousingReportlossPagination warehousingReportlossPagination); + + List getTypeList(WarehousingReportlossPagination warehousingReportlossPagination,String dataType); + + WarehousingReportlossEntity getInfo(String id); + + void delete(WarehousingReportlossEntity entity); + + void create(WarehousingReportlossEntity entity); + + boolean update(String id, WarehousingReportlossEntity entity); + + //子表方法 + List getWarehousingReportlossProductList(String id,WarehousingReportlossPagination warehousingReportlossPagination); + + List getWarehousingReportlossProductList(String id); + + //副表数据方法 + String checkForm(WarehousingReportlossForm form,int i); + + void saveOrUpdate(WarehousingReportlossForm warehousingReportlossForm,String id, boolean isSave) throws Exception; + + //查询报损总数量 + String queryReportlossSum(String id); +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingReportlossProductServiceImpl.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingReportlossProductServiceImpl.java new file mode 100644 index 00000000..ad80c0c8 --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingReportlossProductServiceImpl.java @@ -0,0 +1,59 @@ +package jnpf.service.impl; + +import jnpf.entity.*; +import jnpf.mapper.WarehousingReportlossProductMapper; +import jnpf.service.*; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import jnpf.model.warehousingreportloss.*; +import java.math.BigDecimal; +import cn.hutool.core.util.ObjectUtil; +import jnpf.permission.model.authorize.AuthorizeConditionModel; +import jnpf.util.GeneraterSwapUtil; +import jnpf.database.model.superQuery.SuperQueryJsonModel; +import jnpf.database.model.superQuery.ConditionJsonModel; +import jnpf.database.model.superQuery.SuperQueryConditionModel; +import jnpf.model.QueryModel; +import java.util.stream.Collectors; +import jnpf.base.model.ColumnDataModel; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import jnpf.database.model.superQuery.SuperJsonModel; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.transaction.annotation.Transactional; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import java.text.SimpleDateFormat; +import jnpf.util.*; +import java.util.*; +import jnpf.base.UserInfo; +import jnpf.permission.entity.UserEntity; +/** + * + * warehousingReportloss + * 版本: V3.5 + * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * 作者: JNPF开发平台组 + * 日期: 2024-02-22 + */ +@Service +public class WarehousingReportlossProductServiceImpl extends ServiceImpl implements WarehousingReportlossProductService{ + @Autowired + private GeneraterSwapUtil generaterSwapUtil; + + @Autowired + private UserProvider userProvider; + + //子表过滤方法 + @Override + public QueryWrapper getChild(WarehousingReportlossPagination pagination, QueryWrapper warehousingReportlossProductQueryWrapper){ + boolean pcPermission = true; + boolean appPermission = false; + boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); + String ruleQueryJson = isPc?WarehousingReportlossConstant.getColumnData():WarehousingReportlossConstant.getAppColumnData(); + ColumnDataModel dataModel = JsonUtil.getJsonToBean(ruleQueryJson,ColumnDataModel.class); + String ruleJson = isPc?JsonUtil.getObjectToString(dataModel.getRuleList()):JsonUtil.getObjectToString(dataModel.getRuleListApp()); + if(isPc){ + } + return warehousingReportlossProductQueryWrapper; + } +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingReportlossServiceImpl.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingReportlossServiceImpl.java new file mode 100644 index 00000000..3c0c90dd --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-biz/src/main/java/jnpf/service/impl/WarehousingReportlossServiceImpl.java @@ -0,0 +1,414 @@ +package jnpf.service.impl; + +import jnpf.entity.*; +import jnpf.mapper.WarehousingReportlossMapper; +import jnpf.service.*; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import jnpf.model.warehousingreportloss.*; +import java.math.BigDecimal; +import cn.hutool.core.util.ObjectUtil; +import jnpf.permission.model.authorize.AuthorizeConditionModel; +import jnpf.util.GeneraterSwapUtil; +import jnpf.database.model.superQuery.SuperQueryJsonModel; +import jnpf.database.model.superQuery.ConditionJsonModel; +import jnpf.database.model.superQuery.SuperQueryConditionModel; +import java.lang.reflect.Field; +import com.baomidou.mybatisplus.annotation.TableField; +import java.util.regex.Pattern; +import jnpf.model.QueryModel; +import java.util.stream.Collectors; +import jnpf.base.model.ColumnDataModel; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import jnpf.database.model.superQuery.SuperJsonModel; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.transaction.annotation.Transactional; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import java.text.SimpleDateFormat; +import jnpf.util.*; +import java.util.*; +import jnpf.base.UserInfo; +import jnpf.permission.entity.UserEntity; +/** + * + * warehousingReportloss + * 版本: V3.5 + * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * 作者: JNPF开发平台组 + * 日期: 2024-02-22 + */ +@Service +public class WarehousingReportlossServiceImpl extends ServiceImpl implements WarehousingReportlossService{ + @Autowired + private GeneraterSwapUtil generaterSwapUtil; + + @Autowired + private UserProvider userProvider; + + @Autowired + private WarehousingReportlossProductService warehousingReportlossProductService; + @Autowired + private WarehousingReportlossMapper warehousingReportlossMapper; + @Override + public List getList(WarehousingReportlossPagination warehousingReportlossPagination){ + return getTypeList(warehousingReportlossPagination,warehousingReportlossPagination.getDataType()); + } + /** 列表查询 */ + @Override + public List getTypeList(WarehousingReportlossPagination warehousingReportlossPagination,String dataType){ + String userId=userProvider.get().getUserId(); + List AllIdList =new ArrayList(); + List> intersectionList =new ArrayList<>(); + boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); + String columnData = !isPc ? WarehousingReportlossConstant.getAppColumnData() : WarehousingReportlossConstant.getColumnData(); + ColumnDataModel columnDataModel = JsonUtil.getJsonToBean(columnData, ColumnDataModel.class); + String ruleJson = !isPc ? JsonUtil.getObjectToString(columnDataModel.getRuleListApp()) : JsonUtil.getObjectToString(columnDataModel.getRuleList()); + + int total=0; + int warehousingReportlossNum =0; + QueryWrapper warehousingReportlossQueryWrapper=new QueryWrapper<>(); + int warehousingReportlossProductNum =0; + QueryWrapper warehousingReportlossProductQueryWrapper=new QueryWrapper<>(); + long warehousingReportlossProductcount = warehousingReportlossProductService.count(); + List allSuperIDlist = new ArrayList<>(); + String superOp =""; + if (ObjectUtil.isNotEmpty(warehousingReportlossPagination.getSuperQueryJson())){ + List allSuperList = new ArrayList<>(); + List> intersectionSuperList = new ArrayList<>(); + String queryJson = warehousingReportlossPagination.getSuperQueryJson(); + SuperJsonModel superJsonModel = JsonUtil.getJsonToBean(queryJson, SuperJsonModel.class); + int superNum = 0; + QueryWrapper warehousingReportlossSuperWrapper = new QueryWrapper<>(); + warehousingReportlossSuperWrapper = generaterSwapUtil.getCondition(new QueryModel(warehousingReportlossSuperWrapper,WarehousingReportlossEntity.class,queryJson,"0")); + int warehousingReportlossNum1 = warehousingReportlossSuperWrapper.getExpression().getNormal().size(); + if (warehousingReportlossNum1>0){ + List warehousingReportlossList =this.list(warehousingReportlossSuperWrapper).stream().map(WarehousingReportlossEntity::getId).collect(Collectors.toList()); + allSuperList.addAll(warehousingReportlossList); + intersectionSuperList.add(warehousingReportlossList); + superNum++; + } + String warehousingReportlossProductTable = "jg_warehousing_reportloss_product"; + boolean warehousingReportlossProductHasSql = queryJson.contains(warehousingReportlossProductTable); + List warehousingReportlossProductList = generaterSwapUtil.selectIdsByChildCondition(WarehousingReportlossConstant.getTableList(), warehousingReportlossProductTable , queryJson, null); + if (warehousingReportlossProductHasSql){ + allSuperList.addAll(warehousingReportlossProductList); + intersectionSuperList.add(warehousingReportlossProductList); + superNum++; + } + superOp = superNum > 0 ? superJsonModel.getMatchLogic() : ""; + //and or + if(superOp.equalsIgnoreCase("and")){ + allSuperIDlist = generaterSwapUtil.getIntersection(intersectionSuperList); + }else{ + allSuperIDlist = allSuperList; + } + } + List allRuleIDlist = new ArrayList<>(); + String ruleOp =""; + if (ObjectUtil.isNotEmpty(ruleJson)){ + List allRuleList = new ArrayList<>(); + List> intersectionRuleList = new ArrayList<>(); + SuperJsonModel ruleJsonModel = JsonUtil.getJsonToBean(ruleJson, SuperJsonModel.class); + int ruleNum = 0; + QueryWrapper warehousingReportlossSuperWrapper = new QueryWrapper<>(); + warehousingReportlossSuperWrapper = generaterSwapUtil.getCondition(new QueryModel(warehousingReportlossSuperWrapper,WarehousingReportlossEntity.class,ruleJson,"0")); + int warehousingReportlossNum1 = warehousingReportlossSuperWrapper.getExpression().getNormal().size(); + if (warehousingReportlossNum1>0){ + List warehousingReportlossList =this.list(warehousingReportlossSuperWrapper).stream().map(WarehousingReportlossEntity::getId).collect(Collectors.toList()); + allRuleList.addAll(warehousingReportlossList); + intersectionRuleList.add(warehousingReportlossList); + ruleNum++; + } + String warehousingReportlossProductTable = "jg_warehousing_reportloss_product"; + boolean warehousingReportlossProductHasSql = ruleJson.contains(warehousingReportlossProductTable); + List warehousingReportlossProductList = generaterSwapUtil.selectIdsByChildCondition(WarehousingReportlossConstant.getTableList(), warehousingReportlossProductTable , ruleJson, null); + if (warehousingReportlossProductHasSql){ + allRuleList.addAll(warehousingReportlossProductList); + intersectionRuleList.add(warehousingReportlossProductList); + ruleNum++; + } + ruleOp = ruleNum > 0 ? ruleJsonModel.getMatchLogic() : ""; + //and or + if(ruleOp.equalsIgnoreCase("and")){ + allRuleIDlist = generaterSwapUtil.getIntersection(intersectionRuleList); + }else{ + allRuleIDlist = allRuleList; + } + } + boolean pcPermission = true; + boolean appPermission = false; + if(isPc && pcPermission){ + if (!userProvider.get().getIsAdministrator()){ + Object warehousingReportlossObj=generaterSwapUtil.getAuthorizeCondition(new QueryModel(warehousingReportlossQueryWrapper,WarehousingReportlossEntity.class,warehousingReportlossPagination.getMenuId(),"0")); + if (ObjectUtil.isEmpty(warehousingReportlossObj)){ + return new ArrayList<>(); + } else { + warehousingReportlossQueryWrapper = (QueryWrapper)warehousingReportlossObj; + if( warehousingReportlossQueryWrapper.getExpression().getNormal().size()>0){ + warehousingReportlossNum++; + } + } + Object warehousingReportlossProductObj=generaterSwapUtil.getAuthorizeCondition(new QueryModel(warehousingReportlossProductQueryWrapper,WarehousingReportlossProductEntity.class,warehousingReportlossPagination.getMenuId(),"0")); + if (ObjectUtil.isEmpty(warehousingReportlossProductObj)){ + return new ArrayList<>(); + } else { + warehousingReportlossProductQueryWrapper = (QueryWrapper)warehousingReportlossProductObj; + if( warehousingReportlossProductQueryWrapper.getExpression().getNormal().size()>0){ + warehousingReportlossProductNum++; + } + } + } + } + if(!isPc && appPermission){ + if (!userProvider.get().getIsAdministrator()){ + Object warehousingReportlossObj=generaterSwapUtil.getAuthorizeCondition(new QueryModel(warehousingReportlossQueryWrapper,WarehousingReportlossEntity.class,warehousingReportlossPagination.getMenuId(),"0")); + if (ObjectUtil.isEmpty(warehousingReportlossObj)){ + return new ArrayList<>(); + } else { + warehousingReportlossQueryWrapper = (QueryWrapper)warehousingReportlossObj; + if( warehousingReportlossQueryWrapper.getExpression().getNormal().size()>0){ + warehousingReportlossNum++; + } + } + + + Object warehousingReportlossProductObj=generaterSwapUtil.getAuthorizeCondition(new QueryModel(warehousingReportlossProductQueryWrapper,WarehousingReportlossProductEntity.class,warehousingReportlossPagination.getMenuId(),"0")); + if (ObjectUtil.isEmpty(warehousingReportlossProductObj)){ + return new ArrayList<>(); + } else { + warehousingReportlossProductQueryWrapper = (QueryWrapper)warehousingReportlossProductObj; + if( warehousingReportlossProductQueryWrapper.getExpression().getNormal().size()>0){ + warehousingReportlossProductNum++; + } + } + + + } + } + if(isPc){ + if(ObjectUtil.isNotEmpty(warehousingReportlossPagination.getReportlossTime())){ + warehousingReportlossNum++; + + List ReportlossTimeList = JsonUtil.getJsonToList(warehousingReportlossPagination.getReportlossTime(),String.class); + Long fir = Long.valueOf(String.valueOf(ReportlossTimeList.get(0))); + Long sec = Long.valueOf(String.valueOf(ReportlossTimeList.get(1))); + + warehousingReportlossQueryWrapper.lambda().ge(WarehousingReportlossEntity::getReportlossTime, new Date(fir)) + .le(WarehousingReportlossEntity::getReportlossTime, DateUtil.stringToDate(DateUtil.daFormatYmd(sec) + " 23:59:59")); + + + } + + if(ObjectUtil.isNotEmpty(warehousingReportlossPagination.getReportlossType())){ + warehousingReportlossNum++; + + List idList = new ArrayList<>(); + try { + String[][] reportlossType = JsonUtil.getJsonToBean(warehousingReportlossPagination.getReportlossType(),String[][].class); + for(int i=0;i0){ + idList.add(JsonUtil.getObjectToString(Arrays.asList(reportlossType[i]))); + } + } + }catch (Exception e1){ + try { + List reportlossType = JsonUtil.getJsonToList(warehousingReportlossPagination.getReportlossType(),String.class); + if(reportlossType.size()>0){ + idList.addAll(reportlossType); + } + }catch (Exception e2){ + idList.add(String.valueOf(warehousingReportlossPagination.getReportlossType())); + } + } + warehousingReportlossQueryWrapper.lambda().and(t->{ + idList.forEach(tt->{ + t.like(WarehousingReportlossEntity::getReportlossType, tt).or(); + }); + }); + + } + + if(ObjectUtil.isNotEmpty(warehousingReportlossPagination.getReportlossCode())){ + warehousingReportlossNum++; + + String value = warehousingReportlossPagination.getReportlossCode() instanceof List ? + JsonUtil.getObjectToString(warehousingReportlossPagination.getReportlossCode()) : + String.valueOf(warehousingReportlossPagination.getReportlossCode()); + warehousingReportlossQueryWrapper.lambda().like(WarehousingReportlossEntity::getReportlossCode,value); + + } + + } + if(warehousingReportlossProductNum>0){ + List warehousingReportlossProductIdList = warehousingReportlossProductService.list(warehousingReportlossProductQueryWrapper).stream().filter(t->StringUtil.isNotEmpty(t.getReportlossId())).map(t->t.getReportlossId()).collect(Collectors.toList()); + long count = warehousingReportlossProductService.count(); + if (count>0){ + intersectionList.add(warehousingReportlossProductIdList); + } + AllIdList.addAll(warehousingReportlossProductIdList); + } + total+=warehousingReportlossProductNum; + List intersection = generaterSwapUtil.getIntersection(intersectionList); + if (total>0){ + if (intersection.size()==0){ + intersection.add("jnpfNullList"); + } + warehousingReportlossQueryWrapper.lambda().in(WarehousingReportlossEntity::getId, intersection); + } + //是否有高级查询 + if (StringUtil.isNotEmpty(superOp)){ + if (allSuperIDlist.size()==0){ + allSuperIDlist.add("jnpfNullList"); + } + List finalAllSuperIDlist = allSuperIDlist; + warehousingReportlossQueryWrapper.lambda().and(t->t.in(WarehousingReportlossEntity::getId, finalAllSuperIDlist)); + } + //是否有数据过滤查询 + if (StringUtil.isNotEmpty(ruleOp)){ + if (allRuleIDlist.size()==0){ + allRuleIDlist.add("jnpfNullList"); + } + List finalAllRuleIDlist = allRuleIDlist; + warehousingReportlossQueryWrapper.lambda().and(t->t.in(WarehousingReportlossEntity::getId, finalAllRuleIDlist)); + } + //假删除标志 + warehousingReportlossQueryWrapper.lambda().isNull(WarehousingReportlossEntity::getDeleteMark); + + //排序 + if(StringUtil.isEmpty(warehousingReportlossPagination.getSidx())){ + warehousingReportlossQueryWrapper.lambda().orderByDesc(WarehousingReportlossEntity::getId); + }else{ + try { + String sidx = warehousingReportlossPagination.getSidx(); + String[] strs= sidx.split("_name"); + WarehousingReportlossEntity warehousingReportlossEntity = new WarehousingReportlossEntity(); + Field declaredField = warehousingReportlossEntity.getClass().getDeclaredField(strs[0]); + declaredField.setAccessible(true); + String value = declaredField.getAnnotation(TableField.class).value(); + warehousingReportlossQueryWrapper="asc".equals(warehousingReportlossPagination.getSort().toLowerCase())?warehousingReportlossQueryWrapper.orderByAsc(value):warehousingReportlossQueryWrapper.orderByDesc(value); + } catch (NoSuchFieldException e) { + e.printStackTrace(); + } + } + + if("0".equals(dataType)){ + if((total>0 && AllIdList.size()>0) || total==0){ + Page page=new Page<>(warehousingReportlossPagination.getCurrentPage(), warehousingReportlossPagination.getPageSize()); + IPage userIPage=this.page(page, warehousingReportlossQueryWrapper); + return warehousingReportlossPagination.setData(userIPage.getRecords(),userIPage.getTotal()); + }else{ + List list = new ArrayList(); + return warehousingReportlossPagination.setData(list, list.size()); + } + }else{ + return this.list(warehousingReportlossQueryWrapper); + } + } + @Override + public WarehousingReportlossEntity getInfo(String id){ + QueryWrapper queryWrapper=new QueryWrapper<>(); + queryWrapper.lambda().eq(WarehousingReportlossEntity::getId,id); + return this.getOne(queryWrapper); + } + @Override + public void create(WarehousingReportlossEntity entity){ + this.save(entity); + } + @Override + public boolean update(String id, WarehousingReportlossEntity entity){ + return this.updateById(entity); + } + @Override + public void delete(WarehousingReportlossEntity entity){ + if(entity!=null){ + this.removeById(entity.getId()); + } + } + /** WarehousingReportlossProduct子表方法 */ + @Override + public List getWarehousingReportlossProductList(String id,WarehousingReportlossPagination warehousingReportlossPagination){ + Map newtabMap=WarehousingReportlossConstant.TABLEFIELDKEY.entrySet() + .stream().collect( Collectors.toMap(e->e.getValue(),e->e.getKey())); + String tableName="warehousingReportlossProduct"; + tableName=newtabMap.get(tableName)==null?tableName:newtabMap.get(tableName).toString(); + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper = warehousingReportlossProductService.getChild(warehousingReportlossPagination,queryWrapper); + queryWrapper.lambda().eq(WarehousingReportlossProductEntity::getReportlossId, id); + generaterSwapUtil.wrapperHandle(WarehousingReportlossConstant.getColumnData(), WarehousingReportlossConstant.getAppColumnData(), queryWrapper,WarehousingReportlossProductEntity.class,"sub",tableName); + return warehousingReportlossProductService.list(queryWrapper); + } + + /** WarehousingReportlossProduct子表方法 */ + @Override + public List getWarehousingReportlossProductList(String id){ + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.lambda().eq(WarehousingReportlossProductEntity::getReportlossId, id); + return warehousingReportlossProductService.list(queryWrapper); + } + /** 验证表单唯一字段,正则,非空 i-0新增-1修改*/ + @Override + public String checkForm(WarehousingReportlossForm form,int i) { + boolean isUp =StringUtil.isNotEmpty(form.getId()) && !form.getId().equals("0"); + String id=""; + String countRecover = ""; + if (isUp){ + id = form.getId(); + } + //主表字段验证 + //子表字段验证 + if (form.getWarehousingReportlossProductList()!=null){ + } + return countRecover; + } + /** + * 新增修改数据(事务回滚) + * @param id + * @param warehousingReportlossForm + * @return + */ + @Override + @Transactional + public void saveOrUpdate(WarehousingReportlossForm warehousingReportlossForm,String id, boolean isSave) throws Exception{ + UserInfo userInfo=userProvider.get(); + UserEntity userEntity = generaterSwapUtil.getUser(userInfo.getUserId()); + warehousingReportlossForm = JsonUtil.getJsonToBean( + generaterSwapUtil.swapDatetime(WarehousingReportlossConstant.getFormData(),warehousingReportlossForm),WarehousingReportlossForm.class); + WarehousingReportlossEntity entity = JsonUtil.getJsonToBean(warehousingReportlossForm, WarehousingReportlossEntity.class); + + if(isSave){ + String mainId = id ; + entity.setReportlossCode(generaterSwapUtil.getBillNumber("warehousingReportloss", false)); + entity.setId(mainId); + entity.setFlowId(warehousingReportlossForm.getFlowId()); + entity.setVersion(0); + }else{ + entity.setReportlossCode(generaterSwapUtil.getBillNumber("warehousingReportloss", false)); + entity.setFlowId(warehousingReportlossForm.getFlowId()); + } + this.saveOrUpdate(entity); + + //WarehousingReportlossProduct子表数据新增修改 + if(!isSave){ + QueryWrapper WarehousingReportlossProductqueryWrapper = new QueryWrapper<>(); + WarehousingReportlossProductqueryWrapper.lambda().eq(WarehousingReportlossProductEntity::getReportlossId, entity.getId()); + warehousingReportlossProductService.remove(WarehousingReportlossProductqueryWrapper); + } + if (warehousingReportlossForm.getWarehousingReportlossProductList()!=null){ + List tableField109 = JsonUtil.getJsonToList(warehousingReportlossForm.getWarehousingReportlossProductList(),WarehousingReportlossProductEntity.class); + for(WarehousingReportlossProductEntity entitys : tableField109){ + entitys.setId(RandomUtil.uuId()); + entitys.setReportlossId(entity.getId()); + if(isSave){ + }else{ + } + warehousingReportlossProductService.saveOrUpdate(entitys); + } + } + } + + @Override + public String queryReportlossSum(String id) { + return warehousingReportlossMapper.queryReportlossSum(id); + } +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-controller/src/main/java/jnpf/controller/WarehousingReportlossController.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-controller/src/main/java/jnpf/controller/WarehousingReportlossController.java new file mode 100644 index 00000000..5e6196cf --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-controller/src/main/java/jnpf/controller/WarehousingReportlossController.java @@ -0,0 +1,426 @@ +package jnpf.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 jnpf.base.ActionResult; +import jnpf.base.UserInfo; +import jnpf.exception.DataException; +import jnpf.permission.entity.UserEntity; +import jnpf.service.*; +import jnpf.entity.*; +import jnpf.util.*; +import jnpf.model.warehousingreportloss.*; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import javax.validation.Valid; +import java.util.*; +import jnpf.annotation.JnpfField; +import jnpf.base.vo.PageListVO; +import jnpf.base.vo.PaginationVO; +import jnpf.base.vo.DownloadVO; +import jnpf.config.ConfigValueUtil; +import jnpf.base.entity.ProvinceEntity; +import java.io.IOException; +import java.util.stream.Collectors; +import jnpf.engine.entity.FlowTaskEntity; +import jnpf.exception.WorkFlowException; +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 jnpf.onlinedev.model.ExcelImFieldModel; +import jnpf.onlinedev.model.OnlineImport.ImportDataModel; +import jnpf.onlinedev.model.OnlineImport.ImportFormCheckUniqueModel; +import jnpf.onlinedev.model.OnlineImport.ExcelImportModel; +import jnpf.onlinedev.model.OnlineImport.VisualImportModel; +import cn.xuyanwu.spring.file.storage.FileInfo; +import lombok.Cleanup; +import jnpf.model.visualJson.config.HeaderModel; +import jnpf.base.model.ColumnDataModel; +import jnpf.base.util.VisualUtils; +import org.springframework.transaction.annotation.Transactional; + +/** + * warehousingReportloss + * @版本: V3.5 + * @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * @作者: JNPF开发平台组 + * @日期: 2024-02-22 + */ +@Slf4j +@RestController +@Tag(name = "warehousingReportloss" , description = "scm") +@RequestMapping("/api/scm/WarehousingReportloss") +public class WarehousingReportlossController { + + @Autowired + private GeneraterSwapUtil generaterSwapUtil; + + @Autowired + private UserProvider userProvider; + + @Autowired + private WarehousingReportlossService warehousingReportlossService; + + @Autowired + private WarehousingReportlossProductService warehousingReportlossProductService; + + + @Autowired + private ConfigValueUtil configValueUtil; + + /** + * 列表 + * + * @param warehousingReportlossPagination + * @return + */ + @Operation(summary = "获取列表") + @PostMapping("/getList") + public ActionResult list(@RequestBody WarehousingReportlossPagination warehousingReportlossPagination)throws IOException{ + List list= warehousingReportlossService.getList(warehousingReportlossPagination); + List> realList=new ArrayList<>(); + for (WarehousingReportlossEntity entity : list) { + entity.setReportlossSum(warehousingReportlossService.queryReportlossSum(entity.getId())); + Map warehousingReportlossMap=JsonUtil.entityToMap(entity); + warehousingReportlossMap.put("id", warehousingReportlossMap.get("id")); + //副表数据 + //子表数据 + List warehousingReportlossProductList = warehousingReportlossService.getWarehousingReportlossProductList(entity.getId(),warehousingReportlossPagination); + warehousingReportlossMap.put("tableField109",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(warehousingReportlossProductList))); + realList.add(warehousingReportlossMap); + } + //数据转换 + realList = generaterSwapUtil.swapDataList(realList, WarehousingReportlossConstant.getFormData(), WarehousingReportlossConstant.getColumnData(), warehousingReportlossPagination.getModuleId(),false); + + //流程状态添加 + for(Map vo:realList){ + FlowTaskEntity flowTaskEntity = generaterSwapUtil.getInfoSubmit(String.valueOf(vo.get("id")), FlowTaskEntity::getStatus); + if (flowTaskEntity!=null){ + vo.put("flowState",flowTaskEntity.getStatus()); + }else{ + vo.put("flowState",null); + } + //添加流程id + String flowId=""; + if(vo.get("flowid")!=null){ + flowId = String.valueOf(vo.get("flowid")); + } + if(vo.get("flowid".toUpperCase())!=null){ + flowId = String.valueOf(vo.get("flowid".toUpperCase())); + } + if(StringUtil.isNotEmpty(flowId)){ + vo.put("flowId" ,flowId); + } + } + //返回对象 + PageListVO vo = new PageListVO(); + vo.setList(realList); + PaginationVO page = JsonUtil.getJsonToBean(warehousingReportlossPagination, PaginationVO.class); + vo.setPagination(page); + return ActionResult.success(vo); + } + /** + * 创建 + * + * @param warehousingReportlossForm + * @return + */ + @PostMapping("/{id}") + @Operation(summary = "创建") + public ActionResult create(@PathVariable("id") String id, @RequestBody @Valid WarehousingReportlossForm warehousingReportlossForm) { + String b = warehousingReportlossService.checkForm(warehousingReportlossForm,0); + if (StringUtil.isNotEmpty(b)){ + return ActionResult.fail(b ); + } + try{ + warehousingReportlossService.saveOrUpdate(warehousingReportlossForm, id ,true); + }catch(Exception e){ + return ActionResult.fail("新增数据失败"); + } + return ActionResult.success("创建成功"); + } + /** + * 导出Excel + * + * @return + */ + @Operation(summary = "导出Excel") + @PostMapping("/Actions/Export") + public ActionResult Export(@RequestBody WarehousingReportlossPagination warehousingReportlossPagination) throws IOException { + if (StringUtil.isEmpty(warehousingReportlossPagination.getSelectKey())){ + return ActionResult.fail("请选择导出字段"); + } + List list= warehousingReportlossService.getList(warehousingReportlossPagination); + List> realList=new ArrayList<>(); + for (WarehousingReportlossEntity entity : list) { + Map warehousingReportlossMap=JsonUtil.entityToMap(entity); + warehousingReportlossMap.put("id", warehousingReportlossMap.get("id")); + //副表数据 + //子表数据 + List warehousingReportlossProductList = warehousingReportlossService.getWarehousingReportlossProductList(entity.getId(),warehousingReportlossPagination); + warehousingReportlossMap.put("tableField109",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(warehousingReportlossProductList))); + realList.add(warehousingReportlossMap); + } + //数据转换 + realList = generaterSwapUtil.swapDataList(realList, WarehousingReportlossConstant.getFormData(), WarehousingReportlossConstant.getColumnData(), warehousingReportlossPagination.getModuleId(),false); + String[]keys=!StringUtil.isEmpty(warehousingReportlossPagination.getSelectKey())?warehousingReportlossPagination.getSelectKey():new String[0]; + UserInfo userInfo=userProvider.get(); + DownloadVO vo=this.creatModelExcel(configValueUtil.getTemporaryFilePath(),realList,keys,userInfo); + return ActionResult.success(vo); + } + + /** + * 导出表格方法 + */ + public DownloadVO creatModelExcel(String path,List>list,String[]keys,UserInfo userInfo){ + DownloadVO vo=DownloadVO.builder().build(); + List entitys=new ArrayList<>(); + if(keys.length>0){ + ExcelExportEntity tableField109ExcelEntity = new ExcelExportEntity("","tableField109"); + List tableField109List = new ArrayList<>(); + for(String key:keys){ + switch(key){ + case "reportlossCode" : + entitys.add(new ExcelExportEntity("报损单编号" ,"reportlossCode")); + break; + case "reportlossType" : + entitys.add(new ExcelExportEntity("单据类型" ,"reportlossType")); + break; + case "reportlossTime" : + entitys.add(new ExcelExportEntity("报损时间" ,"reportlossTime")); + break; + case "reportlossReason" : + entitys.add(new ExcelExportEntity("报损原因" ,"reportlossReason")); + break; + case "warehouseId" : + entitys.add(new ExcelExportEntity("仓库名称" ,"warehouseId")); + break; + case "remark" : + entitys.add(new ExcelExportEntity("备注" ,"remark")); + break; + case "tableField109-productId": + tableField109List.add(new ExcelExportEntity("商品名称" ,"productId")); + break; + case "tableField109-reportlossUnit": + tableField109List.add(new ExcelExportEntity("报损单位" ,"reportlossUnit")); + break; + case "tableField109-reportlossNumber": + tableField109List.add(new ExcelExportEntity("报损数量" ,"reportlossNumber")); + break; + default: + break; + } + } + if(tableField109List.size() > 0){ + tableField109ExcelEntity.setList(tableField109List); + entitys.add(tableField109ExcelEntity); + } + } + + 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); + } + } + //复杂表头-表头和数据处理 + ColumnDataModel columnDataModel = JsonUtil.getJsonToBean(WarehousingReportlossConstant.getColumnData(), ColumnDataModel.class); + List complexHeaderList = columnDataModel.getComplexHeaderList(); + if (!Objects.equals(columnDataModel.getType(), 3) && !Objects.equals(columnDataModel.getType(), 5)) { + entitys = VisualUtils.complexHeaderHandel(entitys, complexHeaderList); + dataList = VisualUtils.complexHeaderDataHandel(dataList, complexHeaderList); + } + + workbook = ExcelExportUtil.exportExcel(exportParams, entitys, dataList); + } + String fileName = "表单信息" + DateUtil.dateNow("yyyyMMdd") + "_" + RandomUtil.uuId() + ".xlsx"; + 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; + } + /** + * 批量删除 + * @param ids + * @return + */ + @DeleteMapping("/batchRemove") + @Transactional + @Operation(summary = "批量删除") + public ActionResult batchRemove(@RequestBody String ids){ + List idList = JsonUtil.getJsonToList(ids, String.class); + List columnIdList = new ArrayList<>(20); + int i =0; + String errInfo = ""; + for (String allId : idList){ + FlowTaskEntity taskEntity = generaterSwapUtil.getInfoSubmit(allId, FlowTaskEntity::getId, FlowTaskEntity::getStatus); + if (taskEntity==null){ + columnIdList.add(allId); + this.delete(allId); + }else if (taskEntity.getStatus().equals(0) || taskEntity.getStatus().equals(4)){ + try { + generaterSwapUtil.deleteFlowTask(taskEntity); + columnIdList.add(allId); + this.delete(allId); + i++; + } catch (WorkFlowException e) { + errInfo = e.getMessage(); + e.printStackTrace(); + } + } + } + if (i == 0 && columnIdList.size()==0){ + return ActionResult.fail("流程已发起,无法删除"); + } + if (StringUtil.isNotEmpty(errInfo)){ + return ActionResult.fail(errInfo); + } + return ActionResult.success("删除成功"); + } + /** + * 编辑 + * @param id + * @param warehousingReportlossForm + * @return + */ + @PutMapping("/{id}") + @Operation(summary = "更新") + public ActionResult update(@PathVariable("id") String id,@RequestBody @Valid WarehousingReportlossForm warehousingReportlossForm, + @RequestParam(value = "isImport", required = false) boolean isImport){ + warehousingReportlossForm.setId(id); + if (!isImport) { + String b = warehousingReportlossService.checkForm(warehousingReportlossForm,1); + if (StringUtil.isNotEmpty(b)){ + return ActionResult.fail(b ); + } + } + WarehousingReportlossEntity entity= warehousingReportlossService.getInfo(id); + if(entity!=null){ + try{ + warehousingReportlossService.saveOrUpdate(warehousingReportlossForm,id,false); + }catch(Exception e){ + return ActionResult.fail("修改数据失败"); + } + return ActionResult.success("更新成功"); + }else{ + return ActionResult.fail("更新失败,数据不存在"); + } + } + /** + * 删除 + * @param id + * @return + */ + @Operation(summary = "删除") + @DeleteMapping("/{id}") + @Transactional + public ActionResult delete(@PathVariable("id") String id){ + WarehousingReportlossEntity entity= warehousingReportlossService.getInfo(id); + if(entity!=null){ + FlowTaskEntity taskEntity = generaterSwapUtil.getInfoSubmit(id, FlowTaskEntity::getId, FlowTaskEntity::getStatus); + if (taskEntity != null) { + try { + generaterSwapUtil.deleteFlowTask(taskEntity); + } catch (WorkFlowException e) { + e.printStackTrace(); + } + } + //假删除 + entity.setDeleteMark(1); + warehousingReportlossService.update(id,entity); + } + return ActionResult.success("删除成功"); + } + /** + * 表单信息(详情页) + * 详情页面使用-转换数据 + * @param id + * @return + */ + @Operation(summary = "表单信息(详情页)") + @GetMapping("/detail/{id}") + public ActionResult detailInfo(@PathVariable("id") String id){ + WarehousingReportlossEntity entity= warehousingReportlossService.getInfo(id); + if(entity==null){ + return ActionResult.fail("表单数据不存在!"); + } + Map warehousingReportlossMap=JsonUtil.entityToMap(entity); + warehousingReportlossMap.put("id", warehousingReportlossMap.get("id")); + //副表数据 + //子表数据 + List warehousingReportlossProductList = warehousingReportlossService.getWarehousingReportlossProductList(entity.getId()); + warehousingReportlossMap.put("tableField109",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(warehousingReportlossProductList))); + warehousingReportlossMap = generaterSwapUtil.swapDataDetail(warehousingReportlossMap,WarehousingReportlossConstant.getFormData(),"530031733014287557",false); + return ActionResult.success(warehousingReportlossMap); + } + /** + * 获取详情(编辑页) + * 编辑页面使用-不转换数据 + * @param id + * @return + */ + @Operation(summary = "信息") + @GetMapping("/{id}") + public ActionResult info(@PathVariable("id") String id){ + WarehousingReportlossEntity entity= warehousingReportlossService.getInfo(id); + if(entity==null){ + return ActionResult.fail("表单数据不存在!"); + } + Map warehousingReportlossMap=JsonUtil.entityToMap(entity); + warehousingReportlossMap.put("id", warehousingReportlossMap.get("id")); + //副表数据 + //子表数据 + List warehousingReportlossProductList = warehousingReportlossService.getWarehousingReportlossProductList(entity.getId()); + warehousingReportlossMap.put("warehousingReportlossProductList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(warehousingReportlossProductList))); + warehousingReportlossMap = generaterSwapUtil.swapDataForm(warehousingReportlossMap,WarehousingReportlossConstant.getFormData(),WarehousingReportlossConstant.TABLEFIELDKEY,WarehousingReportlossConstant.TABLERENAMES); + return ActionResult.success(warehousingReportlossMap); + } + +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/WarehousingReportlossEntity.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/WarehousingReportlossEntity.java new file mode 100644 index 00000000..5f62efd9 --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/WarehousingReportlossEntity.java @@ -0,0 +1,60 @@ +package jnpf.entity; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import java.util.Date; +/** + * 库存报损表 + * + * @版本: V3.5 + * @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * @作者: JNPF开发平台组 + * @日期: 2024-02-22 + */ +@Data +@TableName("jg_warehousing_reportloss") +public class WarehousingReportlossEntity { + @TableId(value ="ID" ) + private String id; + @TableField(value = "REPORTLOSS_CODE" , updateStrategy = FieldStrategy.IGNORED) + private String reportlossCode; + @TableField(value = "REPORTLOSS_TYPE" , updateStrategy = FieldStrategy.IGNORED) + private String reportlossType; + @TableField(value = "REPORTLOSS_TIME" , updateStrategy = FieldStrategy.IGNORED) + private Date reportlossTime; + @TableField(value = "REPORTLOSS_REASON" , updateStrategy = FieldStrategy.IGNORED) + private String reportlossReason; + @TableField("REPORTLOSS_STATUS") + private String reportlossStatus; + @TableField(value = "WAREHOUSE_ID" , updateStrategy = FieldStrategy.IGNORED) + private String warehouseId; + @TableField(value = "REMARK" , updateStrategy = FieldStrategy.IGNORED) + private String remark; + @TableField("F_CREATOR_TIME") + private Date creatorTime; + @TableField("F_CREATOR_USER_ID") + private String creatorUserId; + @TableField("F_LAST_MODIFY_TIME") + private Date lastModifyTime; + @TableField("F_LAST_MODIFY_USER_ID") + private String lastModifyUserId; + @TableField("F_DELETE_TIME") + private Date deleteTime; + @TableField("F_DELETE_USER_ID") + private String deleteUserId; + @TableField("F_DELETE_MARK") + private Integer deleteMark; + @TableField("F_TENANT_ID") + private String tenantId; + @TableField("COMPANY_ID") + private String companyId; + @TableField("DEPARTMENT_ID") + private String departmentId; + @TableField("F_FLOW_ID") + private String flowId; + @TableField("F_VERSION") + private Integer version; + + @TableField(exist = false) + private String reportlossSum; +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/WarehousingReportlossProductEntity.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/WarehousingReportlossProductEntity.java new file mode 100644 index 00000000..cc464126 --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/WarehousingReportlossProductEntity.java @@ -0,0 +1,54 @@ +package jnpf.entity; + +import com.baomidou.mybatisplus.annotation.*; +import lombok.Data; +import java.util.Date; +import java.math.BigDecimal; +import java.math.BigDecimal; +import java.math.BigDecimal; +/** + * 报损单商品信息 + * + * @版本: V3.5 + * @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * @作者: JNPF开发平台组 + * @日期: 2024-02-22 + */ +@Data +@TableName("jg_warehousing_reportloss_product") +public class WarehousingReportlossProductEntity { + @TableId(value ="ID" ) + private String id; + @TableField("REPORTLOSS_ID") + private String reportlossId; + @TableField(value = "PRODUCT_ID" , updateStrategy = FieldStrategy.IGNORED) + private String productId; + @TableField("PHYSICAL_INVENTORY") + private BigDecimal physicalInventory; + @TableField("AVAILABLE_STOCK") + private BigDecimal availableStock; + @TableField(value = "REPORTLOSS_UNIT" , updateStrategy = FieldStrategy.IGNORED) + private String reportlossUnit; + @TableField(value = "REPORTLOSS_NUMBER" , updateStrategy = FieldStrategy.IGNORED) + private BigDecimal reportlossNumber; + @TableField("F_CREATOR_TIME") + private Date creatorTime; + @TableField("F_CREATOR_USER_ID") + private String creatorUserId; + @TableField("F_LAST_MODIFY_TIME") + private Date lastModifyTime; + @TableField("F_LAST_MODIFY_USER_ID") + private String lastModifyUserId; + @TableField("F_DELETE_TIME") + private Date deleteTime; + @TableField("F_DELETE_USER_ID") + private String deleteUserId; + @TableField("F_DELETE_MARK") + private Integer deleteMark; + @TableField("F_TENANT_ID") + private String tenantId; + @TableField("COMPANY_ID") + private String companyId; + @TableField("DEPARTMENT_ID") + private String departmentId; +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossConstant.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossConstant.java new file mode 100644 index 00000000..5dc85004 --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossConstant.java @@ -0,0 +1,41 @@ +package jnpf.model.warehousingreportloss; + +import jnpf.util.JsonUtil; +import java.util.Map; + +/** + * warehousingReportloss配置json + * + * @版本: V3.5 + * @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * @作者: JNPF开发平台组 + * @日期: 2024-02-22 + */ +public class WarehousingReportlossConstant{ + /** 数据库链接 */ + public static final String DBLINKID = "0"; + /** 表别名 map */ + public static final Map TABLERENAMES = JsonUtil.getJsonToBean("{\"jg_warehousing_reportloss\":\"warehousingReportloss\",\"jg_warehousing_reportloss_product\":\"warehousingReportlossProduct\"}",Map.class); + /** 子表model map */ + public static final Map TABLEFIELDKEY = JsonUtil.getJsonToBean("{\"tableField109\":\"jg_warehousing_reportloss_product\"}",Map.class); + /** 整个表单配置json */ + public static final String getFormData(){ + StringBuilder sb = new StringBuilder(); + sb.append("{\"popupType\":\"general\",\"idGlobal\":118,\"formBtns\":false,\"labelWidth\":100,\"classNames\":[],\"className\":[],\"fullScreenWidth\":\"100%\",\"hasConfirmAndAddBtn\":true,\"labelPosition\":\"right\",\"printId\":\"\",\"disabled\":false,\"formModel\":\"dataForm\",\"cancelButtonText\":\"取 消\",\"confirmButtonText\":\"确 定\",\"hasCancelBtn\":true,\"primaryKeyPolicy\":1,\"confirmAndAddText\":\"确定并继续操作\",\"hasPrintBtn\":false,\"concurrencyLock\":true,\"classJson\":\"\",\"drawerWidth\":\"600px\",\"printButtonText\":\"打 印\",\"formRef\":\"formRef\",\"gutter\":15,\"logicalDelete\":true,\"size\":\"small\",\"formRules\":\"rules\",\"generalWidth\":\"600px\",\"hasConfirmBtn\":true,\"formStyle\":\"\",\"fields\":[{\"__config__\":{\"formId\":107,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"groupTitle\",\"dragDisabled\":false,\"className\":[],\"label\":\"分组标题\",\"showLabel\":false,\"required\":false,\"renderKey\":1708506619344,\"tableName\":\"jg_warehousing_reportloss\",\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-group\",\"tag\":\"JnpfGroupTitle\",\"span\":24},\"contentPosition\":\"left\",\"content\":\"基础信息\",\"helpMessage\":\"\"},{\"__config__\":{\"formId\":101,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"billRule\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"rule\":\"warehousingReportloss\",\"className\":[],\"label\":\"报损单编号\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506252688,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleName\":\"报损单\",\"tag\":\"JnpfInput\",\"span\":8},\"readonly\":true,\"__vModel__\":\"reportlossCode\",\"style\":{\"width\":\"100%\"},\"placeholder\":\"系统自动生成\"},{\"filterable\":false,\"clearable\":true,\"__config__\":{\"formId\":102,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"单据类型\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506293958,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"options\":[{\"fullName\":\"采购报损\",\"id\":\"1\"},{\"fullName\":\"销售报损\",\"id\":\"2\"},{\"fullName\":\"仓库报损\",\"id\":\"3\"},{\"fullName\":\"加工报损\",\"id\":\"4\"},{\"fullName\":\"其他报损\",\"id\":\"5\"}],\"multiple\":false,\"__vModel__\":\"reportlossType\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"}},{\"clearable\":true,\"__config__\":{\"endRelationField\":\"\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506404582,\"tagIcon\":\"icon-ym icon-ym-generator-date\",\"startRelationField\":\"\",\"defaultCurrent\":true,\"tag\":\"JnpfDatePicker\",\"formId\":103,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"datePicker\",\"noShow\":false,\"endTimeTarget\":1,\"tipLabel\":\"\",\"startTimeType\":1,\"endTimeRule\":false,\"label\":\"报损时间\",\"startTimeRule\":false,\"startTimeValue\":\"\",\"trigger\":\"change\",\"endTimeValue\":\"\",\"endTimeType\":1,\"layout\":\"colFormItem\",\"startTimeTarget\":1,\"regList\":[],\"span\":8},\"readonly\":false,\"format\":\"yyyy-MM-dd\",\"__vModel__\":\"reportlossTime\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请选择\",\"type\":\"date\"},{\"filterable\":false,\"clearable\":true,\"__config__\":{\"formId\":104,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损原因\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506442927,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"options\":[{\"fullName\":\"质量问题\",\"id\":\"1\"},{\"fullName\":\"客户退回\",\"id\":\"2\"},{\"fullName\":\"试用\",\"id\":\"3\"},{\"fullName\":\"临期报废\",\"id\":\"4\"},{\"fullName\":\"其他\",\"id\":\"5\"}],\"multiple\":false,\"__vModel__\":\"reportlossReason\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"}},{\"popupType\":\"dialog\",\"hasPage\":true,\"clearable\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"仓库名称\",\"value\":\"name\"},{\"label\":\"仓库编码\",\"value\":\"code\"}],\"templateJson\":[],\"relationField\":\"name\",\"__config__\":{\"formId\":105,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"仓库名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506481124,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":8},\"popupTitle\":\"选择数据\",\"__vModel__\":\"warehouseId\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"interfaceId\":\"529617754022498181\",\"interfaceName\":\"入库单-查询仓库\",\"popupWidth\":\"800px\",\"propsValue\":\"id\"},{\"clearable\":true,\"suffixIcon\":\"\",\"addonAfter\":\"\",\"__config__\":{\"formId\":106,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506609295,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"showWordLimit\":false,\"__vModel__\":\"remark\",\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"__config__\":{\"formId\":116,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"createTime\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"创建时间\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708571088456,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-createtime\",\"tag\":\"JnpfOpenData\",\"span\":24},\"readonly\":true,\"__vModel__\":\"creatorTime\",\"style\":{\"width\":\"100%\"},\"placeholder\":\"\",\"type\":\"currTime\"},{\"__config__\":{\"formId\":115,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"createUser\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"创建用户\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708571086716,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-founder\",\"tag\":\"JnpfOpenData\",\"span\":24},\"readonly\":true,\"__vModel__\":\"creatorUserId\",\"style\":{\"width\":\"100%\"},\"placeholder\":\"\",\"type\":\"currUser\"},{\"__config__\":{\"formId\":117,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"modifyTime\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"修改时间\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708571090723,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-modifytime\",\"tag\":\"JnpfInput\",\"span\":24},\"readonly\":true,\"__vModel__\":\"lastModifyTime\",\"style\":{\"width\":\"100%\"},\"placeholder\":\"系统自动生成\"},{\"__config__\":{\"formId\":118,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"modifyUser\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"修改用户\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708571093638,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-modifier\",\"tag\":\"JnpfInput\",\"span\":24},\"readonly\":true,\"__vModel__\":\"lastModifyUserId\",\"style\":{\"width\":\"100%\"},\"placeholder\":\"系统自动生成\"},{\"__config__\":{\"formId\":108,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"groupTitle\",\"dragDisabled\":false,\"className\":[],\"label\":\"分组标题\",\"showLabel\":false,\"required\":false,\"renderKey\":1708506625543,\"tableName\":\"jg_warehousing_reportloss\",\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-group\",\"tag\":\"JnpfGroupTitle\",\"span\":24},\"contentPosition\":\"left\",\"content\":\"商品信息\",\"helpMessage\":\"\"},{\"showSummary\":false,\"actionText\":\"添加\",\"tableConf\":{},\"defaultValue\":[],\"addTableConf\":{\"popupType\":\"dialog\",\"hasPage\":true,\"popupTitle\":\"选择数据\",\"pageSize\":20,\"columnOptions\":[],\"interfaceId\":\"\",\"interfaceName\":\"\",\"relationOptions\":[],\"templateJson\":[],\"popupWidth\":\"800px\"},\"thousands\":false,\"summaryField\":[],\"thousandsField\":[],\"showDeleteBtn\":true,\"addType\":0,\"__config__\":{\"formId\":109,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"table\",\"defaultValue\":[],\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"\",\"type\":\"table\",\"showLabel\":false,\"tableName\":\"jg_warehousing_reportloss_product\",\"renderKey\":1708506637406,\"layout\":\"rowFormItem\",\"rowType\":\"table\",\"tagIcon\":\"icon-ym icon-ym-generator-table\",\"children\":[{\"popupType\":\"dialog\",\"hasPage\":false,\"clearable\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"商品名称\",\"value\":\"name\"},{\"label\":\"商品编码\",\"value\":\"code\"},{\"label\":\"批次号\",\"value\":\"batch_number\"}],\"templateJson\":[],\"relationField\":\"name\",\"__config__\":{\"formId\":113,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"商品名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708565037984,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"popupTitle\":\"选择数据\",\"__vModel__\":\"productId\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"interfaceId\":\"529994958833209925\",\"interfaceName\":\"盘点单-查询商品,批次号\",\"popupWidth\":\"800px\",\"propsValue\":\"id\"},{\"popupType\":\"dialog\",\"hasPage\":false,\"clearable\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"单位\",\"value\":\"unit_name\"}],\"templateJson\":[],\"relationField\":\"unit_name\",\"__config__\":{\"formId\":112,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损单位\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708564941982,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"popupTitle\":\"选择数据\",\"__vModel__\":\"reportlossUnit\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"interfaceId\":\"529938341609623877\",\"interfaceName\":\"查询全部商品单位库表\",\"popupWidth\":\"800px\",\"propsValue\":\"id\"},{\"clearable\":true,\"suffixIcon\":\"\",\"addonAfter\":\"\",\"__config__\":{\"formId\":110,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损数量\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506662146,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"isSubTable\":true,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"showWordLimit\":false,\"__vModel__\":\"reportlossNumber\",\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"}],\"showTitle\":true,\"complexHeaderList\":[],\"tag\":\"JnpfInputTable\",\"componentName\":\"row109\",\"span\":24},\"showAddBtn\":true,\"__vModel__\":\"tableField109\",\"disabled\":false}],\"span\":24}"); return sb.toString(); + } + /** 列表字段配置json */ + public static final String getColumnData(){ + StringBuilder sb = new StringBuilder(); + sb.append("{\"showSummary\":false,\"hasPage\":true,\"searchList\":[{\"clearable\":true,\"searchType\":3,\"jnpfKey\":\"datePicker\",\"format\":\"yyyy-MM-dd\",\"fullName\":\"报损时间\",\"label\":\"报损时间\",\"type\":\"date\",\"__config__\":{\"endRelationField\":\"\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506404582,\"tagIcon\":\"icon-ym icon-ym-generator-date\",\"startRelationField\":\"\",\"defaultCurrent\":true,\"tag\":\"JnpfDatePicker\",\"formId\":103,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"datePicker\",\"noShow\":false,\"endTimeTarget\":1,\"tipLabel\":\"\",\"startTimeType\":1,\"endTimeRule\":false,\"label\":\"报损时间\",\"startTimeRule\":false,\"startTimeValue\":\"\",\"trigger\":\"change\",\"endTimeValue\":\"\",\"endTimeType\":1,\"layout\":\"colFormItem\",\"startTimeTarget\":1,\"regList\":[],\"span\":8},\"readonly\":false,\"prop\":\"reportlossTime\",\"__vModel__\":\"reportlossTime\",\"searchMultiple\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"reportlossTime\",\"placeholder\":\"请选择\",\"value\":[]},{\"filterable\":false,\"clearable\":true,\"searchType\":1,\"jnpfKey\":\"select\",\"multiple\":false,\"fullName\":\"单据类型\",\"label\":\"单据类型\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":102,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"单据类型\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506293958,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"prop\":\"reportlossType\",\"options\":[{\"fullName\":\"采购报损\",\"id\":\"1\"},{\"fullName\":\"销售报损\",\"id\":\"2\"},{\"fullName\":\"仓库报损\",\"id\":\"3\"},{\"fullName\":\"加工报损\",\"id\":\"4\"},{\"fullName\":\"其他报损\",\"id\":\"5\"}],\"__vModel__\":\"reportlossType\",\"searchMultiple\":true,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"reportlossType\",\"placeholder\":\"请选择\",\"value\":[]},{\"__config__\":{\"formId\":101,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"billRule\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"rule\":\"warehousingReportloss\",\"className\":[],\"label\":\"报损单编号\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506252688,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleName\":\"报损单\",\"tag\":\"JnpfInput\",\"span\":8},\"readonly\":true,\"searchType\":2,\"jnpfKey\":\"billRule\",\"prop\":\"reportlossCode\",\"__vModel__\":\"reportlossCode\",\"searchMultiple\":false,\"fullName\":\"报损单编号\",\"style\":{\"width\":\"100%\"},\"label\":\"报损单编号\",\"id\":\"reportlossCode\",\"placeholder\":\"系统自动生成\"}],\"treeInterfaceId\":\"\",\"treePropsValue\":\"id\",\"ruleList\":{\"conditionList\":[],\"matchLogic\":\"and\"},\"childTableStyle\":1,\"columnOptions\":[{\"__config__\":{\"formId\":101,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"billRule\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"rule\":\"warehousingReportloss\",\"className\":[],\"label\":\"报损单编号\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506252688,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleName\":\"报损单\",\"tag\":\"JnpfInput\",\"span\":8},\"readonly\":true,\"__vModel__\":\"reportlossCode\",\"fullName\":\"报损单编号\",\"style\":{\"width\":\"100%\"},\"id\":\"reportlossCode\",\"placeholder\":\"系统自动生成\"},{\"filterable\":false,\"clearable\":true,\"multiple\":false,\"fullName\":\"单据类型\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":102,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"单据类型\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506293958,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"options\":[{\"fullName\":\"采购报损\",\"id\":\"1\"},{\"fullName\":\"销售报损\",\"id\":\"2\"},{\"fullName\":\"仓库报损\",\"id\":\"3\"},{\"fullName\":\"加工报损\",\"id\":\"4\"},{\"fullName\":\"其他报损\",\"id\":\"5\"}],\"__vModel__\":\"reportlossType\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"reportlossType\",\"placeholder\":\"请选择\"},{\"clearable\":true,\"format\":\"yyyy-MM-dd\",\"fullName\":\"报损时间\",\"type\":\"date\",\"__config__\":{\"endRelationField\":\"\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506404582,\"tagIcon\":\"icon-ym icon-ym-generator-date\",\"startRelationField\":\"\",\"defaultCurrent\":true,\"tag\":\"JnpfDatePicker\",\"formId\":103,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"datePicker\",\"noShow\":false,\"endTimeTarget\":1,\"tipLabel\":\"\",\"startTimeType\":1,\"endTimeRule\":false,\"label\":\"报损时间\",\"startTimeRule\":false,\"startTimeValue\":\"\",\"trigger\":\"change\",\"endTimeValue\":\"\",\"endTimeType\":1,\"layout\":\"colFormItem\",\"startTimeTarget\":1,\"regList\":[],\"span\":8},\"readonly\":false,\"__vModel__\":\"reportlossTime\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"reportlossTime\",\"placeholder\":\"请选择\"},{\"filterable\":false,\"clearable\":true,\"multiple\":false,\"fullName\":\"报损原因\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":104,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损原因\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506442927,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"options\":[{\"fullName\":\"质量问题\",\"id\":\"1\"},{\"fullName\":\"客户退回\",\"id\":\"2\"},{\"fullName\":\"试用\",\"id\":\"3\"},{\"fullName\":\"临期报废\",\"id\":\"4\"},{\"fullName\":\"其他\",\"id\":\"5\"}],\"__vModel__\":\"reportlossReason\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"reportlossReason\",\"placeholder\":\"请选择\"},{\"popupType\":\"dialog\",\"hasPage\":true,\"clearable\":true,\"fullName\":\"仓库名称\",\"pageSize\":20,\"columnOptions\":[{\"label\":\"仓库名称\",\"value\":\"name\"},{\"label\":\"仓库编码\",\"value\":\"code\"}],\"templateJson\":[],\"relationField\":\"name\",\"__config__\":{\"formId\":105,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"仓库名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506481124,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":8},\"popupTitle\":\"选择数据\",\"__vModel__\":\"warehouseId\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"warehouseId\",\"placeholder\":\"请选择\",\"interfaceId\":\"529617754022498181\",\"interfaceName\":\"入库单-查询仓库\",\"popupWidth\":\"800px\",\"propsValue\":\"id\"},{\"clearable\":true,\"suffixIcon\":\"\",\"fullName\":\"备注\",\"addonAfter\":\"\",\"__config__\":{\"formId\":106,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506609295,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"showWordLimit\":false,\"__vModel__\":\"remark\",\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"remark\",\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"popupType\":\"dialog\",\"hasPage\":false,\"clearable\":true,\"fullName\":\"-商品名称\",\"pageSize\":20,\"columnOptions\":[{\"label\":\"商品名称\",\"value\":\"name\"},{\"label\":\"商品编码\",\"value\":\"code\"},{\"label\":\"批次号\",\"value\":\"batch_number\"}],\"templateJson\":[],\"relationField\":\"name\",\"__config__\":{\"formId\":113,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"商品名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708565037984,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"popupTitle\":\"选择数据\",\"__vModel__\":\"productId\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"tableField109-productId\",\"placeholder\":\"请选择\",\"interfaceId\":\"529994958833209925\",\"interfaceName\":\"盘点单-查询商品,批次号\",\"popupWidth\":\"800px\",\"propsValue\":\"id\"},{\"popupType\":\"dialog\",\"hasPage\":false,\"clearable\":true,\"fullName\":\"-报损单位\",\"pageSize\":20,\"columnOptions\":[{\"label\":\"单位\",\"value\":\"unit_name\"}],\"templateJson\":[],\"relationField\":\"unit_name\",\"__config__\":{\"formId\":112,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损单位\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708564941982,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"popupTitle\":\"选择数据\",\"__vModel__\":\"reportlossUnit\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"tableField109-reportlossUnit\",\"placeholder\":\"请选择\",\"interfaceId\":\"529938341609623877\",\"interfaceName\":\"查询全部商品单位库表\",\"popupWidth\":\"800px\",\"propsValue\":\"id\"},{\"clearable\":true,\"suffixIcon\":\"\",\"fullName\":\"-报损数量\",\"addonAfter\":\"\",\"__config__\":{\"formId\":110,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损数量\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506662146,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"isSubTable\":true,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"showWordLimit\":false,\"__vModel__\":\"reportlossNumber\",\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"tableField109-reportlossNumber\",\"placeholder\":\"请输入\",\"prefixIcon\":\"\",\"addonBefore\":\"\"}],\"pageSize\":20,\"treePropsChildren\":\"children\",\"type\":1,\"columnBtnsList\":[{\"icon\":\"icon-ym icon-ym-btn-edit\",\"label\":\"编辑\",\"value\":\"edit\"},{\"icon\":\"icon-ym icon-ym-btn-clearn\",\"label\":\"删除\",\"value\":\"remove\"},{\"icon\":\"icon-ym icon-ym-generator-menu\",\"label\":\"详情\",\"value\":\"detail\"}],\"thousandsField\":[],\"treeTitle\":\"左侧标题\",\"defaultColumnList\":[{\"jnpfKey\":\"billRule\",\"fullName\":\"报损单编号\",\"label\":\"报损单编号\",\"sortable\":false,\"align\":\"left\",\"__config__\":{\"formId\":101,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"billRule\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"rule\":\"warehousingReportloss\",\"className\":[],\"label\":\"报损单编号\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506252688,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleName\":\"报损单\",\"tag\":\"JnpfInput\",\"span\":8},\"readonly\":true,\"prop\":\"reportlossCode\",\"__vModel__\":\"reportlossCode\",\"checked\":true,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"id\":\"reportlossCode\",\"placeholder\":\"系统自动生成\"},{\"filterable\":false,\"clearable\":true,\"jnpfKey\":\"select\",\"multiple\":false,\"fullName\":\"单据类型\",\"label\":\"单据类型\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":102,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"单据类型\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506293958,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"prop\":\"reportlossType\",\"options\":[{\"fullName\":\"采购报损\",\"id\":\"1\"},{\"fullName\":\"销售报损\",\"id\":\"2\"},{\"fullName\":\"仓库报损\",\"id\":\"3\"},{\"fullName\":\"加工报损\",\"id\":\"4\"},{\"fullName\":\"其他报损\",\"id\":\"5\"}],\"__vModel__\":\"reportlossType\",\"checked\":true,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"reportlossType\",\"placeholder\":\"请选择\"},{\"clearable\":true,\"jnpfKey\":\"datePicker\",\"format\":\"yyyy-MM-dd\",\"fullName\":\"报损时间\",\"label\":\"报损时间\",\"sortable\":false,\"align\":\"left\",\"type\":\"date\",\"__config__\":{\"endRelationField\":\"\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506404582,\"tagIcon\":\"icon-ym icon-ym-generator-date\",\"startRelationField\":\"\",\"defaultCurrent\":true,\"tag\":\"JnpfDatePicker\",\"formId\":103,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"datePicker\",\"noShow\":false,\"endTimeTarget\":1,\"tipLabel\":\"\",\"startTimeType\":1,\"endTimeRule\":false,\"label\":\"报损时间\",\"startTimeRule\":false,\"startTimeValue\":\"\",\"trigger\":\"change\",\"endTimeValue\":\"\",\"endTimeType\":1,\"layout\":\"colFormItem\",\"startTimeTarget\":1,\"regList\":[],\"span\":8},\"readonly\":false,\"prop\":\"reportlossTime\",\"__vModel__\":\"reportlossTime\",\"checked\":true,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"reportlossTime\",\"placeholder\":\"请选择\"},{\"filterable\":false,\"clearable\":true,\"jnpfKey\":\"select\",\"multiple\":false,\"fullName\":\"报损原因\",\"label\":\"报损原因\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":104,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损原因\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506442927,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"prop\":\"reportlossReason\",\"options\":[{\"fullName\":\"质量问题\",\"id\":\"1\"},{\"fullName\":\"客户退回\",\"id\":\"2\"},{\"fullName\":\"试用\",\"id\":\"3\"},{\"fullName\":\"临期报废\",\"id\":\"4\"},{\"fullName\":\"其他\",\"id\":\"5\"}],\"__vModel__\":\"reportlossReason\",\"checked\":true,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"reportlossReason\",\"placeholder\":\"请选择\"},{\"popupType\":\"dialog\",\"hasPage\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"仓库名称\",\"value\":\"name\"},{\"label\":\"仓库编码\",\"value\":\"code\"}],\"align\":\"left\",\"templateJson\":[],\"__config__\":{\"formId\":105,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"仓库名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506481124,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":8},\"prop\":\"warehouseId\",\"__vModel__\":\"warehouseId\",\"checked\":true,\"disabled\":false,\"id\":\"warehouseId\",\"placeholder\":\"请选择\",\"interfaceName\":\"入库单-查询仓库\",\"popupWidth\":\"800px\",\"clearable\":true,\"jnpfKey\":\"popupSelect\",\"fullName\":\"仓库名称\",\"label\":\"仓库名称\",\"sortable\":false,\"relationField\":\"name\",\"popupTitle\":\"选择数据\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"interfaceHasPage\":false,\"interfaceId\":\"529617754022498181\",\"propsValue\":\"id\"},{\"suffixIcon\":\"\",\"align\":\"left\",\"__config__\":{\"formId\":106,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506609295,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"prop\":\"remark\",\"showWordLimit\":false,\"__vModel__\":\"remark\",\"checked\":false,\"disabled\":false,\"id\":\"remark\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"jnpfKey\":\"input\",\"fullName\":\"备注\",\"label\":\"备注\",\"sortable\":false,\"addonAfter\":\"\",\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\"},{\"popupType\":\"dialog\",\"hasPage\":false,\"pageSize\":20,\"columnOptions\":[{\"label\":\"商品名称\",\"value\":\"name\"},{\"label\":\"商品编码\",\"value\":\"code\"},{\"label\":\"批次号\",\"value\":\"batch_number\"}],\"align\":\"left\",\"templateJson\":[],\"__config__\":{\"formId\":113,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"商品名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708565037984,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"prop\":\"tableField109-productId\",\"__vModel__\":\"productId\",\"checked\":false,\"disabled\":false,\"id\":\"tableField109-productId\",\"placeholder\":\"请选择\",\"interfaceName\":\"盘点单-查询商品,批次号\",\"popupWidth\":\"800px\",\"clearable\":true,\"jnpfKey\":\"popupSelect\",\"fullName\":\"-商品名称\",\"label\":\"-商品名称\",\"sortable\":false,\"relationField\":\"name\",\"popupTitle\":\"选择数据\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"interfaceHasPage\":false,\"interfaceId\":\"529994958833209925\",\"propsValue\":\"id\"},{\"popupType\":\"dialog\",\"hasPage\":false,\"pageSize\":20,\"columnOptions\":[{\"label\":\"单位\",\"value\":\"unit_name\"}],\"align\":\"left\",\"templateJson\":[],\"__config__\":{\"formId\":112,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损单位\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708564941982,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"prop\":\"tableField109-reportlossUnit\",\"__vModel__\":\"reportlossUnit\",\"checked\":false,\"disabled\":false,\"id\":\"tableField109-reportlossUnit\",\"placeholder\":\"请选择\",\"interfaceName\":\"查询全部商品单位库表\",\"popupWidth\":\"800px\",\"clearable\":true,\"jnpfKey\":\"popupSelect\",\"fullName\":\"-报损单位\",\"label\":\"-报损单位\",\"sortable\":false,\"relationField\":\"unit_name\",\"popupTitle\":\"选择数据\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"interfaceHasPage\":false,\"interfaceId\":\"529938341609623877\",\"propsValue\":\"id\"},{\"suffixIcon\":\"\",\"align\":\"left\",\"__config__\":{\"formId\":110,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损数量\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506662146,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"isSubTable\":true,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"prop\":\"tableField109-reportlossNumber\",\"showWordLimit\":false,\"__vModel__\":\"reportlossNumber\",\"checked\":false,\"disabled\":false,\"id\":\"tableField109-reportlossNumber\",\"placeholder\":\"请输入\",\"addonBefore\":\"\",\"clearable\":true,\"jnpfKey\":\"input\",\"fullName\":\"-报损数量\",\"label\":\"-报损数量\",\"sortable\":false,\"addonAfter\":\"\",\"showPassword\":false,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"prefixIcon\":\"\"}],\"treeTemplateJson\":[],\"treePropsName\":\"\",\"useColumnPermission\":false,\"treePropsUrl\":\"\",\"treeRelation\":\"\",\"treeSynType\":0,\"btnsList\":[{\"icon\":\"icon-ym icon-ym-btn-add\",\"label\":\"新增\",\"value\":\"add\"},{\"icon\":\"icon-ym icon-ym-btn-download\",\"label\":\"导出\",\"value\":\"download\"},{\"icon\":\"icon-ym icon-ym-btn-clearn\",\"label\":\"批量删除\",\"value\":\"batchRemove\"}],\"useDataPermission\":true,\"columnList\":[{\"jnpfKey\":\"billRule\",\"fullName\":\"报损单编号\",\"label\":\"报损单编号\",\"sortable\":false,\"align\":\"left\",\"__config__\":{\"formId\":101,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"billRule\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"rule\":\"warehousingReportloss\",\"className\":[],\"label\":\"报损单编号\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506252688,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleName\":\"报损单\",\"tag\":\"JnpfInput\",\"span\":8},\"readonly\":true,\"prop\":\"reportlossCode\",\"width\":0,\"__vModel__\":\"reportlossCode\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"id\":\"reportlossCode\",\"placeholder\":\"系统自动生成\"},{\"filterable\":false,\"clearable\":true,\"jnpfKey\":\"select\",\"multiple\":false,\"fullName\":\"单据类型\",\"label\":\"单据类型\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":102,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"单据类型\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506293958,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"prop\":\"reportlossType\",\"width\":0,\"options\":[{\"fullName\":\"采购报损\",\"id\":\"1\"},{\"fullName\":\"销售报损\",\"id\":\"2\"},{\"fullName\":\"仓库报损\",\"id\":\"3\"},{\"fullName\":\"加工报损\",\"id\":\"4\"},{\"fullName\":\"其他报损\",\"id\":\"5\"}],\"__vModel__\":\"reportlossType\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"reportlossType\",\"placeholder\":\"请选择\"},{\"clearable\":true,\"jnpfKey\":\"datePicker\",\"format\":\"yyyy-MM-dd\",\"fullName\":\"报损时间\",\"label\":\"报损时间\",\"sortable\":false,\"align\":\"left\",\"type\":\"date\",\"__config__\":{\"endRelationField\":\"\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506404582,\"tagIcon\":\"icon-ym icon-ym-generator-date\",\"startRelationField\":\"\",\"defaultCurrent\":true,\"tag\":\"JnpfDatePicker\",\"formId\":103,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"datePicker\",\"noShow\":false,\"endTimeTarget\":1,\"tipLabel\":\"\",\"startTimeType\":1,\"endTimeRule\":false,\"label\":\"报损时间\",\"startTimeRule\":false,\"startTimeValue\":\"\",\"trigger\":\"change\",\"endTimeValue\":\"\",\"endTimeType\":1,\"layout\":\"colFormItem\",\"startTimeTarget\":1,\"regList\":[],\"span\":8},\"readonly\":false,\"prop\":\"reportlossTime\",\"width\":0,\"__vModel__\":\"reportlossTime\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"id\":\"reportlossTime\",\"placeholder\":\"请选择\"},{\"filterable\":false,\"clearable\":true,\"jnpfKey\":\"select\",\"multiple\":false,\"fullName\":\"报损原因\",\"label\":\"报损原因\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":104,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损原因\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506442927,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"prop\":\"reportlossReason\",\"width\":0,\"options\":[{\"fullName\":\"质量问题\",\"id\":\"1\"},{\"fullName\":\"客户退回\",\"id\":\"2\"},{\"fullName\":\"试用\",\"id\":\"3\"},{\"fullName\":\"临期报废\",\"id\":\"4\"},{\"fullName\":\"其他\",\"id\":\"5\"}],\"__vModel__\":\"reportlossReason\",\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"id\":\"reportlossReason\",\"placeholder\":\"请选择\"},{\"popupType\":\"dialog\",\"hasPage\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"仓库名称\",\"value\":\"name\"},{\"label\":\"仓库编码\",\"value\":\"code\"}],\"align\":\"left\",\"templateJson\":[],\"__config__\":{\"formId\":105,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"仓库名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506481124,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":8},\"prop\":\"warehouseId\",\"__vModel__\":\"warehouseId\",\"disabled\":false,\"id\":\"warehouseId\",\"placeholder\":\"请选择\",\"interfaceName\":\"入库单-查询仓库\",\"popupWidth\":\"800px\",\"clearable\":true,\"jnpfKey\":\"popupSelect\",\"fullName\":\"仓库名称\",\"label\":\"仓库名称\",\"sortable\":false,\"relationField\":\"name\",\"popupTitle\":\"选择数据\",\"width\":0,\"fixed\":\"none\",\"style\":{\"width\":\"100%\"},\"interfaceHasPage\":false,\"interfaceId\":\"529617754022498181\",\"propsValue\":\"id\"}],\"sort\":\"desc\",\"thousands\":false,\"hasSuperQuery\":true,\"summaryField\":[],\"parentField\":\"\",\"treePropsLabel\":\"fullName\",\"treeDataSource\":\"dictionary\",\"groupField\":\"\",\"printIds\":[],\"uploaderTemplateJson\":{},\"treeDictionary\":\"\",\"hasTreeQuery\":false,\"useFormPermission\":false,\"customBtnsList\":[],\"complexHeaderList\":[],\"useBtnPermission\":true,\"treeInterfaceName\":\"\",\"defaultSidx\":\"\"}"); return sb.toString(); + } + /** app列表字段配置json */ + public static final String getAppColumnData(){ + StringBuilder sb = new StringBuilder(); + sb.append("{\"hasPage\":true,\"useColumnPermission\":false,\"searchList\":[],\"btnsList\":[{\"icon\":\"icon-ym icon-ym-btn-add\",\"label\":\"新增\",\"value\":\"add\"}],\"useDataPermission\":false,\"ruleListApp\":{\"conditionList\":[],\"matchLogic\":\"and\"},\"columnList\":[{\"jnpfKey\":\"billRule\",\"fullName\":\"报损单编号\",\"label\":\"报损单编号\",\"sortable\":false,\"align\":\"left\",\"__config__\":{\"formId\":101,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"billRule\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"rule\":\"warehousingReportloss\",\"className\":[],\"label\":\"报损单编号\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506252688,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleName\":\"报损单\",\"tag\":\"JnpfInput\",\"span\":8},\"readonly\":true,\"prop\":\"reportlossCode\",\"width\":0,\"__vModel__\":\"reportlossCode\",\"style\":{\"width\":\"100%\"},\"fixed\":\"none\",\"placeholder\":\"系统自动生成\",\"id\":\"reportlossCode\"},{\"filterable\":false,\"clearable\":true,\"jnpfKey\":\"select\",\"multiple\":false,\"fullName\":\"单据类型\",\"label\":\"单据类型\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":102,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"单据类型\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506293958,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"prop\":\"reportlossType\",\"width\":0,\"options\":[{\"fullName\":\"采购报损\",\"id\":\"1\"},{\"fullName\":\"销售报损\",\"id\":\"2\"},{\"fullName\":\"仓库报损\",\"id\":\"3\"},{\"fullName\":\"加工报损\",\"id\":\"4\"},{\"fullName\":\"其他报损\",\"id\":\"5\"}],\"__vModel__\":\"reportlossType\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"fixed\":\"none\",\"placeholder\":\"请选择\",\"id\":\"reportlossType\"},{\"clearable\":true,\"jnpfKey\":\"datePicker\",\"format\":\"yyyy-MM-dd\",\"fullName\":\"报损时间\",\"label\":\"报损时间\",\"sortable\":false,\"align\":\"left\",\"type\":\"date\",\"__config__\":{\"endRelationField\":\"\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506404582,\"tagIcon\":\"icon-ym icon-ym-generator-date\",\"startRelationField\":\"\",\"defaultCurrent\":true,\"tag\":\"JnpfDatePicker\",\"formId\":103,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"datePicker\",\"noShow\":false,\"endTimeTarget\":1,\"tipLabel\":\"\",\"startTimeType\":1,\"endTimeRule\":false,\"label\":\"报损时间\",\"startTimeRule\":false,\"startTimeValue\":\"\",\"trigger\":\"change\",\"endTimeValue\":\"\",\"endTimeType\":1,\"layout\":\"colFormItem\",\"startTimeTarget\":1,\"regList\":[],\"span\":8},\"readonly\":false,\"prop\":\"reportlossTime\",\"width\":0,\"__vModel__\":\"reportlossTime\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"fixed\":\"none\",\"placeholder\":\"请选择\",\"id\":\"reportlossTime\"},{\"filterable\":false,\"clearable\":true,\"jnpfKey\":\"select\",\"multiple\":false,\"fullName\":\"报损原因\",\"label\":\"报损原因\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":104,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损原因\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506442927,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"prop\":\"reportlossReason\",\"width\":0,\"options\":[{\"fullName\":\"质量问题\",\"id\":\"1\"},{\"fullName\":\"客户退回\",\"id\":\"2\"},{\"fullName\":\"试用\",\"id\":\"3\"},{\"fullName\":\"临期报废\",\"id\":\"4\"},{\"fullName\":\"其他\",\"id\":\"5\"}],\"__vModel__\":\"reportlossReason\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"fixed\":\"none\",\"placeholder\":\"请选择\",\"id\":\"reportlossReason\"},{\"popupType\":\"dialog\",\"hasPage\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"仓库名称\",\"value\":\"name\"},{\"label\":\"仓库编码\",\"value\":\"code\"}],\"align\":\"left\",\"templateJson\":[],\"__config__\":{\"formId\":105,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"仓库名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506481124,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":8},\"prop\":\"warehouseId\",\"__vModel__\":\"warehouseId\",\"disabled\":false,\"placeholder\":\"请选择\",\"interfaceName\":\"入库单-查询仓库\",\"id\":\"warehouseId\",\"popupWidth\":\"800px\",\"clearable\":true,\"jnpfKey\":\"popupSelect\",\"fullName\":\"仓库名称\",\"label\":\"仓库名称\",\"sortable\":false,\"relationField\":\"name\",\"popupTitle\":\"选择数据\",\"width\":0,\"style\":{\"width\":\"100%\"},\"interfaceHasPage\":false,\"fixed\":\"none\",\"interfaceId\":\"529617754022498181\",\"propsValue\":\"id\"}],\"columnOptions\":[{\"__config__\":{\"formId\":101,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"billRule\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"rule\":\"warehousingReportloss\",\"className\":[],\"label\":\"报损单编号\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506252688,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleName\":\"报损单\",\"tag\":\"JnpfInput\",\"span\":8},\"readonly\":true,\"__vModel__\":\"reportlossCode\",\"fullName\":\"报损单编号\",\"style\":{\"width\":\"100%\"},\"placeholder\":\"系统自动生成\",\"id\":\"reportlossCode\"},{\"filterable\":false,\"clearable\":true,\"multiple\":false,\"fullName\":\"单据类型\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":102,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"单据类型\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506293958,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"options\":[{\"fullName\":\"采购报损\",\"id\":\"1\"},{\"fullName\":\"销售报损\",\"id\":\"2\"},{\"fullName\":\"仓库报损\",\"id\":\"3\"},{\"fullName\":\"加工报损\",\"id\":\"4\"},{\"fullName\":\"其他报损\",\"id\":\"5\"}],\"__vModel__\":\"reportlossType\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"id\":\"reportlossType\"},{\"clearable\":true,\"format\":\"yyyy-MM-dd\",\"fullName\":\"报损时间\",\"type\":\"date\",\"__config__\":{\"endRelationField\":\"\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506404582,\"tagIcon\":\"icon-ym icon-ym-generator-date\",\"startRelationField\":\"\",\"defaultCurrent\":true,\"tag\":\"JnpfDatePicker\",\"formId\":103,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"datePicker\",\"noShow\":false,\"endTimeTarget\":1,\"tipLabel\":\"\",\"startTimeType\":1,\"endTimeRule\":false,\"label\":\"报损时间\",\"startTimeRule\":false,\"startTimeValue\":\"\",\"trigger\":\"change\",\"endTimeValue\":\"\",\"endTimeType\":1,\"layout\":\"colFormItem\",\"startTimeTarget\":1,\"regList\":[],\"span\":8},\"readonly\":false,\"__vModel__\":\"reportlossTime\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请选择\",\"id\":\"reportlossTime\"},{\"filterable\":false,\"clearable\":true,\"multiple\":false,\"fullName\":\"报损原因\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":104,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损原因\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506442927,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"options\":[{\"fullName\":\"质量问题\",\"id\":\"1\"},{\"fullName\":\"客户退回\",\"id\":\"2\"},{\"fullName\":\"试用\",\"id\":\"3\"},{\"fullName\":\"临期报废\",\"id\":\"4\"},{\"fullName\":\"其他\",\"id\":\"5\"}],\"__vModel__\":\"reportlossReason\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"id\":\"reportlossReason\"},{\"popupType\":\"dialog\",\"hasPage\":true,\"clearable\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"仓库名称\",\"value\":\"name\"},{\"label\":\"仓库编码\",\"value\":\"code\"}],\"fullName\":\"仓库名称\",\"templateJson\":[],\"relationField\":\"name\",\"__config__\":{\"formId\":105,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"仓库名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506481124,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":8},\"popupTitle\":\"选择数据\",\"__vModel__\":\"warehouseId\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"interfaceId\":\"529617754022498181\",\"interfaceName\":\"入库单-查询仓库\",\"id\":\"warehouseId\",\"popupWidth\":\"800px\",\"propsValue\":\"id\"},{\"clearable\":true,\"suffixIcon\":\"\",\"fullName\":\"备注\",\"addonAfter\":\"\",\"__config__\":{\"formId\":106,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506609295,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"showWordLimit\":false,\"__vModel__\":\"remark\",\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\",\"id\":\"remark\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"popupType\":\"dialog\",\"hasPage\":false,\"clearable\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"商品名称\",\"value\":\"name\"},{\"label\":\"商品编码\",\"value\":\"code\"},{\"label\":\"批次号\",\"value\":\"batch_number\"}],\"fullName\":\"-商品名称\",\"templateJson\":[],\"relationField\":\"name\",\"__config__\":{\"formId\":113,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"商品名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708565037984,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"popupTitle\":\"选择数据\",\"__vModel__\":\"productId\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"interfaceId\":\"529994958833209925\",\"interfaceName\":\"盘点单-查询商品,批次号\",\"id\":\"tableField109-productId\",\"popupWidth\":\"800px\",\"propsValue\":\"id\"},{\"popupType\":\"dialog\",\"hasPage\":false,\"clearable\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"单位\",\"value\":\"unit_name\"}],\"fullName\":\"-报损单位\",\"templateJson\":[],\"relationField\":\"unit_name\",\"__config__\":{\"formId\":112,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损单位\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708564941982,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"popupTitle\":\"选择数据\",\"__vModel__\":\"reportlossUnit\",\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"interfaceId\":\"529938341609623877\",\"interfaceName\":\"查询全部商品单位库表\",\"id\":\"tableField109-reportlossUnit\",\"popupWidth\":\"800px\",\"propsValue\":\"id\"},{\"clearable\":true,\"suffixIcon\":\"\",\"fullName\":\"-报损数量\",\"addonAfter\":\"\",\"__config__\":{\"formId\":110,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损数量\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506662146,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"isSubTable\":true,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"showWordLimit\":false,\"__vModel__\":\"reportlossNumber\",\"showPassword\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\",\"id\":\"tableField109-reportlossNumber\",\"prefixIcon\":\"\",\"addonBefore\":\"\"}],\"pageSize\":20,\"sort\":\"desc\",\"thousands\":false,\"columnBtnsList\":[{\"icon\":\"icon-ym icon-ym-btn-edit\",\"label\":\"编辑\",\"value\":\"edit\"},{\"icon\":\"icon-ym icon-ym-btn-clearn\",\"label\":\"删除\",\"value\":\"remove\"},{\"icon\":\"icon-ym icon-ym-generator-menu\",\"label\":\"详情\",\"value\":\"detail\"}],\"loading\":false,\"hasSuperQuery\":false,\"thousandsField\":[],\"defaultColumnList\":[{\"jnpfKey\":\"billRule\",\"fullName\":\"报损单编号\",\"label\":\"报损单编号\",\"sortable\":false,\"align\":\"left\",\"__config__\":{\"formId\":101,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"billRule\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"rule\":\"warehousingReportloss\",\"className\":[],\"label\":\"报损单编号\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506252688,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-documents\",\"ruleName\":\"报损单\",\"tag\":\"JnpfInput\",\"span\":8},\"readonly\":true,\"prop\":\"reportlossCode\",\"__vModel__\":\"reportlossCode\",\"checked\":true,\"style\":{\"width\":\"100%\"},\"placeholder\":\"系统自动生成\",\"id\":\"reportlossCode\"},{\"filterable\":false,\"clearable\":true,\"jnpfKey\":\"select\",\"multiple\":false,\"fullName\":\"单据类型\",\"label\":\"单据类型\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":102,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"单据类型\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506293958,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"prop\":\"reportlossType\",\"options\":[{\"fullName\":\"采购报损\",\"id\":\"1\"},{\"fullName\":\"销售报损\",\"id\":\"2\"},{\"fullName\":\"仓库报损\",\"id\":\"3\"},{\"fullName\":\"加工报损\",\"id\":\"4\"},{\"fullName\":\"其他报损\",\"id\":\"5\"}],\"__vModel__\":\"reportlossType\",\"checked\":true,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"id\":\"reportlossType\"},{\"clearable\":true,\"jnpfKey\":\"datePicker\",\"format\":\"yyyy-MM-dd\",\"fullName\":\"报损时间\",\"label\":\"报损时间\",\"sortable\":false,\"align\":\"left\",\"type\":\"date\",\"__config__\":{\"endRelationField\":\"\",\"defaultValue\":\"\",\"dragDisabled\":false,\"className\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506404582,\"tagIcon\":\"icon-ym icon-ym-generator-date\",\"startRelationField\":\"\",\"defaultCurrent\":true,\"tag\":\"JnpfDatePicker\",\"formId\":103,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"datePicker\",\"noShow\":false,\"endTimeTarget\":1,\"tipLabel\":\"\",\"startTimeType\":1,\"endTimeRule\":false,\"label\":\"报损时间\",\"startTimeRule\":false,\"startTimeValue\":\"\",\"trigger\":\"change\",\"endTimeValue\":\"\",\"endTimeType\":1,\"layout\":\"colFormItem\",\"startTimeTarget\":1,\"regList\":[],\"span\":8},\"readonly\":false,\"prop\":\"reportlossTime\",\"__vModel__\":\"reportlossTime\",\"checked\":true,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请选择\",\"id\":\"reportlossTime\"},{\"filterable\":false,\"clearable\":true,\"jnpfKey\":\"select\",\"multiple\":false,\"fullName\":\"报损原因\",\"label\":\"报损原因\",\"sortable\":false,\"align\":\"left\",\"props\":{\"label\":\"fullName\",\"value\":\"id\"},\"__config__\":{\"formId\":104,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"select\",\"defaultValue\":\"\",\"noShow\":false,\"dataType\":\"static\",\"dictionaryType\":\"\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损原因\",\"trigger\":\"change\",\"propsUrl\":\"\",\"templateJson\":[],\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506442927,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-select\",\"propsName\":\"\",\"tag\":\"JnpfSelect\",\"regList\":[],\"span\":8},\"prop\":\"reportlossReason\",\"options\":[{\"fullName\":\"质量问题\",\"id\":\"1\"},{\"fullName\":\"客户退回\",\"id\":\"2\"},{\"fullName\":\"试用\",\"id\":\"3\"},{\"fullName\":\"临期报废\",\"id\":\"4\"},{\"fullName\":\"其他\",\"id\":\"5\"}],\"__vModel__\":\"reportlossReason\",\"checked\":true,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"interfaceHasPage\":false,\"placeholder\":\"请选择\",\"id\":\"reportlossReason\"},{\"popupType\":\"dialog\",\"hasPage\":true,\"pageSize\":20,\"columnOptions\":[{\"label\":\"仓库名称\",\"value\":\"name\"},{\"label\":\"仓库编码\",\"value\":\"code\"}],\"align\":\"left\",\"templateJson\":[],\"__config__\":{\"formId\":105,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"仓库名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":true,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506481124,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":8},\"prop\":\"warehouseId\",\"__vModel__\":\"warehouseId\",\"checked\":true,\"disabled\":false,\"placeholder\":\"请选择\",\"interfaceName\":\"入库单-查询仓库\",\"id\":\"warehouseId\",\"popupWidth\":\"800px\",\"clearable\":true,\"jnpfKey\":\"popupSelect\",\"fullName\":\"仓库名称\",\"label\":\"仓库名称\",\"sortable\":false,\"relationField\":\"name\",\"popupTitle\":\"选择数据\",\"style\":{\"width\":\"100%\"},\"interfaceHasPage\":false,\"interfaceId\":\"529617754022498181\",\"propsValue\":\"id\"},{\"clearable\":true,\"jnpfKey\":\"input\",\"suffixIcon\":\"\",\"fullName\":\"备注\",\"label\":\"备注\",\"sortable\":false,\"align\":\"left\",\"addonAfter\":\"\",\"__config__\":{\"formId\":106,\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"备注\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506609295,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"prop\":\"remark\",\"showWordLimit\":false,\"__vModel__\":\"remark\",\"showPassword\":false,\"checked\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\",\"id\":\"remark\",\"prefixIcon\":\"\",\"addonBefore\":\"\"},{\"popupType\":\"dialog\",\"hasPage\":false,\"pageSize\":20,\"columnOptions\":[{\"label\":\"商品名称\",\"value\":\"name\"},{\"label\":\"商品编码\",\"value\":\"code\"},{\"label\":\"批次号\",\"value\":\"batch_number\"}],\"align\":\"left\",\"templateJson\":[],\"__config__\":{\"formId\":113,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"商品名称\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708565037984,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"prop\":\"tableField109-productId\",\"__vModel__\":\"productId\",\"checked\":false,\"disabled\":false,\"placeholder\":\"请选择\",\"interfaceName\":\"盘点单-查询商品,批次号\",\"id\":\"tableField109-productId\",\"popupWidth\":\"800px\",\"clearable\":true,\"jnpfKey\":\"popupSelect\",\"fullName\":\"-商品名称\",\"label\":\"-商品名称\",\"sortable\":false,\"relationField\":\"name\",\"popupTitle\":\"选择数据\",\"style\":{\"width\":\"100%\"},\"interfaceHasPage\":false,\"interfaceId\":\"529994958833209925\",\"propsValue\":\"id\"},{\"popupType\":\"dialog\",\"hasPage\":false,\"pageSize\":20,\"columnOptions\":[{\"label\":\"单位\",\"value\":\"unit_name\"}],\"align\":\"left\",\"templateJson\":[],\"__config__\":{\"formId\":112,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"popupSelect\",\"defaultValue\":\"\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损单位\",\"trigger\":\"change\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708564941982,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-popup\",\"isSubTable\":true,\"tag\":\"JnpfPopupSelect\",\"regList\":[],\"span\":24},\"prop\":\"tableField109-reportlossUnit\",\"__vModel__\":\"reportlossUnit\",\"checked\":false,\"disabled\":false,\"placeholder\":\"请选择\",\"interfaceName\":\"查询全部商品单位库表\",\"id\":\"tableField109-reportlossUnit\",\"popupWidth\":\"800px\",\"clearable\":true,\"jnpfKey\":\"popupSelect\",\"fullName\":\"-报损单位\",\"label\":\"-报损单位\",\"sortable\":false,\"relationField\":\"unit_name\",\"popupTitle\":\"选择数据\",\"style\":{\"width\":\"100%\"},\"interfaceHasPage\":false,\"interfaceId\":\"529938341609623877\",\"propsValue\":\"id\"},{\"clearable\":true,\"jnpfKey\":\"input\",\"suffixIcon\":\"\",\"fullName\":\"-报损数量\",\"label\":\"-报损数量\",\"sortable\":false,\"align\":\"left\",\"addonAfter\":\"\",\"__config__\":{\"formId\":110,\"relationTable\":\"jg_warehousing_reportloss_product\",\"visibility\":[\"pc\",\"app\"],\"jnpfKey\":\"input\",\"noShow\":false,\"parentVModel\":\"tableField109\",\"tipLabel\":\"\",\"dragDisabled\":false,\"className\":[],\"label\":\"报损数量\",\"trigger\":\"blur\",\"showLabel\":true,\"required\":false,\"tableName\":\"jg_warehousing_reportloss\",\"renderKey\":1708506662146,\"layout\":\"colFormItem\",\"tagIcon\":\"icon-ym icon-ym-generator-input\",\"unique\":false,\"isSubTable\":true,\"tag\":\"JnpfInput\",\"regList\":[],\"span\":24},\"readonly\":false,\"prop\":\"tableField109-reportlossNumber\",\"showWordLimit\":false,\"__vModel__\":\"reportlossNumber\",\"showPassword\":false,\"checked\":false,\"style\":{\"width\":\"100%\"},\"disabled\":false,\"placeholder\":\"请输入\",\"id\":\"tableField109-reportlossNumber\",\"prefixIcon\":\"\",\"addonBefore\":\"\"}],\"sortList\":[],\"useFormPermission\":false,\"customBtnsList\":[],\"useBtnPermission\":false,\"defaultSidx\":\"\"}"); return sb.toString(); + } + /** 表列表 */ + public static final String getTableList(){ + StringBuilder sb = new StringBuilder(); + sb.append("[{\"relationField\":\"\",\"relationTable\":\"\",\"table\":\"jg_warehousing_reportloss\",\"tableName\":\"库存报损表\",\"tableField\":\"\",\"typeId\":\"1\",\"fields\":[{\"columnName\":\"id\",\"field\":\"id\",\"fieldName\":\"自然主键\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":1,\"allowNull\":0,\"autoIncrement\":0},{\"columnName\":\"reportloss_code\",\"field\":\"reportlossCode\",\"fieldName\":\"报损单编号\",\"dataType\":\"varchar\",\"dataLength\":\"64\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"reportloss_type\",\"field\":\"reportlossType\",\"fieldName\":\"单据类型(1:采购报损 2:销售报损 3:仓库报损 4:加工报损 5:其他报损)\",\"dataType\":\"char\",\"dataLength\":\"1\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"reportloss_time\",\"field\":\"reportlossTime\",\"fieldName\":\"报损时间\",\"dataType\":\"datetime\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"reportloss_reason\",\"field\":\"reportlossReason\",\"fieldName\":\"报损原因(1:质量问题 2客户退回 3试用 4临期报废 5其他)\",\"dataType\":\"char\",\"dataLength\":\"1\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"reportloss_status\",\"field\":\"reportlossStatus\",\"fieldName\":\"单据状态(1:待提交 2:待审核 3:待调出 4:部分调出 5:待调入 6:部分调入 7:已完成 8:已驳回 9:已作废)\",\"dataType\":\"char\",\"dataLength\":\"1\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"warehouse_id\",\"field\":\"warehouseId\",\"fieldName\":\"仓库id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"remark\",\"field\":\"remark\",\"fieldName\":\"备注\",\"dataType\":\"varchar\",\"dataLength\":\"255\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_creator_time\",\"field\":\"creatorTime\",\"fieldName\":\"创建时间\",\"dataType\":\"datetime\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_creator_user_id\",\"field\":\"creatorUserId\",\"fieldName\":\"创建用户\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_last_modify_time\",\"field\":\"lastModifyTime\",\"fieldName\":\"修改时间\",\"dataType\":\"datetime\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_last_modify_user_id\",\"field\":\"lastModifyUserId\",\"fieldName\":\"修改用户\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_delete_time\",\"field\":\"deleteTime\",\"fieldName\":\"删除时间\",\"dataType\":\"datetime\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_delete_user_id\",\"field\":\"deleteUserId\",\"fieldName\":\"删除用户\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_delete_mark\",\"field\":\"deleteMark\",\"fieldName\":\"删除标志\",\"dataType\":\"int\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_tenant_id\",\"field\":\"tenantId\",\"fieldName\":\"租户id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"company_id\",\"field\":\"companyId\",\"fieldName\":\"公司id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"department_id\",\"field\":\"departmentId\",\"fieldName\":\"部门id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_flow_id\",\"field\":\"flowId\",\"fieldName\":\"流程id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_version\",\"field\":\"version\",\"fieldName\":\"乐观锁\",\"dataType\":\"int\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0}]},{\"relationField\":\"id\",\"relationTable\":\"jg_warehousing_reportloss\",\"table\":\"jg_warehousing_reportloss_product\",\"tableName\":\"报损单商品信息\",\"tableField\":\"reportlossId\",\"typeId\":\"0\",\"fields\":[{\"columnName\":\"id\",\"field\":\"id\",\"fieldName\":\"自然主键\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":1,\"allowNull\":0,\"autoIncrement\":0},{\"columnName\":\"reportloss_id\",\"field\":\"reportlossId\",\"fieldName\":\"报损id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"product_id\",\"field\":\"productId\",\"fieldName\":\"商品id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"physical_inventory\",\"field\":\"physicalInventory\",\"fieldName\":\"实物库存\",\"dataType\":\"decimal\",\"dataLength\":\"32,6\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"available_stock\",\"field\":\"availableStock\",\"fieldName\":\"可用库存\",\"dataType\":\"decimal\",\"dataLength\":\"32,6\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"reportloss_unit\",\"field\":\"reportlossUnit\",\"fieldName\":\"报损单位\",\"dataType\":\"char\",\"dataLength\":\"1\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"reportloss_number\",\"field\":\"reportlossNumber\",\"fieldName\":\"报损数量\",\"dataType\":\"decimal\",\"dataLength\":\"32,6\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_creator_time\",\"field\":\"creatorTime\",\"fieldName\":\"创建时间\",\"dataType\":\"datetime\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_creator_user_id\",\"field\":\"creatorUserId\",\"fieldName\":\"创建用户\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_last_modify_time\",\"field\":\"lastModifyTime\",\"fieldName\":\"修改时间\",\"dataType\":\"datetime\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_last_modify_user_id\",\"field\":\"lastModifyUserId\",\"fieldName\":\"修改用户\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_delete_time\",\"field\":\"deleteTime\",\"fieldName\":\"删除时间\",\"dataType\":\"datetime\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_delete_user_id\",\"field\":\"deleteUserId\",\"fieldName\":\"删除用户\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_delete_mark\",\"field\":\"deleteMark\",\"fieldName\":\"删除标志\",\"dataType\":\"int\",\"dataLength\":\"默认\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"f_tenant_id\",\"field\":\"tenantId\",\"fieldName\":\"租户id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"company_id\",\"field\":\"companyId\",\"fieldName\":\"公司id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0},{\"columnName\":\"department_id\",\"field\":\"departmentId\",\"fieldName\":\"部门id\",\"dataType\":\"varchar\",\"dataLength\":\"50\",\"primaryKey\":0,\"allowNull\":1,\"autoIncrement\":0}]}]"); return sb.toString(); + } +} \ No newline at end of file diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossForm.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossForm.java new file mode 100644 index 00000000..5d96d362 --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossForm.java @@ -0,0 +1,47 @@ +package jnpf.model.warehousingreportloss; + +import lombok.Data; +import java.util.List; +import java.math.BigDecimal; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * warehousingReportloss + * @版本: V3.5 + * @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * @作者: JNPF开发平台组 + * @日期: 2024-02-22 + */ +@Data +public class WarehousingReportlossForm { + /** 主键 */ + private String id; + /** 子表数据 **/ + @JsonProperty("warehousingReportlossProductList") + private List warehousingReportlossProductList; + /** 乐观锁 **/ + @JsonProperty("version") + private Integer version; + /** 流程id **/ + @JsonProperty("flowId") + private String flowId; + + /** 报损单编号 **/ + @JsonProperty("reportlossCode") + private String reportlossCode; + /** 单据类型 **/ + @JsonProperty("reportlossType") + private Object reportlossType; + /** 报损时间 **/ + @JsonProperty("reportlossTime") + private String reportlossTime; + /** 报损原因 **/ + @JsonProperty("reportlossReason") + private Object reportlossReason; + /** 仓库名称 **/ + @JsonProperty("warehouseId") + private String warehouseId; + /** 备注 **/ + @JsonProperty("remark") + private String remark; +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossPagination.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossPagination.java new file mode 100644 index 00000000..5aa387c8 --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossPagination.java @@ -0,0 +1,39 @@ +package jnpf.model.warehousingreportloss; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; +import jnpf.base.Pagination; +import java.util.List; + +/** + * + * warehousingReportloss + * @版本: V3.5 + * @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * @作者: JNPF开发平台组 + * @日期: 2024-02-22 + */ +@Data +public class WarehousingReportlossPagination extends Pagination { + /** 查询key */ + private String[] selectKey; + /** json */ + private String json; + /** 数据类型 0-当前页,1-全部数据 */ + private String dataType; + /** 高级查询 */ + private String superQueryJson; + /** 功能id */ + private String moduleId; + /** 菜单id */ + private String menuId; + /** 报损时间 */ + @JsonProperty("reportlossTime") + private Object reportlossTime; + /** 单据类型 */ + @JsonProperty("reportlossType") + private Object reportlossType; + /** 报损单编号 */ + @JsonProperty("reportlossCode") + private Object reportlossCode; +} diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossProductModel.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossProductModel.java new file mode 100644 index 00000000..eddd7dce --- /dev/null +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/model/warehousingreportloss/WarehousingReportlossProductModel.java @@ -0,0 +1,30 @@ +package jnpf.model.warehousingreportloss; + +import lombok.Data; +import java.util.List; +import java.util.Date; +import java.math.BigDecimal; +import com.alibaba.fastjson.annotation.JSONField; +import cn.afterturn.easypoi.excel.annotation.Excel; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * + * warehousingReportloss + * 版本: V3.5 + * 版权: 引迈信息技术有限公司(https://www.jnpfsoft.com) + * 作者: JNPF开发平台组 + * 日期: 2024-02-22 + */ +@Data +public class WarehousingReportlossProductModel { + /** 商品名称 **/ + @JSONField(name = "productId") + private String productId; + /** 报损单位 **/ + @JSONField(name = "reportlossUnit") + private String reportlossUnit; + /** 报损数量 **/ + @JSONField(name = "reportlossNumber") + private String reportlossNumber; +} diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousinginventory/form.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousinginventory/form.vue index 8d75eec5..2e87e3b1 100644 --- a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousinginventory/form.vue +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousinginventory/form.vue @@ -400,7 +400,7 @@ export default { missingDiskRuleProps: { "label": "fullName", "value": "id" }, duplicateInventoryRuleOptions: [{ "fullName": "累加汇总", "id": "1" }, { "fullName": "覆盖更新", "id": "2" }], duplicateInventoryRuleProps: { "label": "fullName", "value": "id" }, - warehousinginventoryproductproductIdcolumnOptions: [{ "label": "商品名称", "value": "name" }, { "label": "商品编码", "value": "code" }, { "label": "批次号", "value": "batch_number" },], + warehousinginventoryproductproductIdcolumnOptions: [{ "label": "商品名称", "value": "name" }, { "label": "商品编码", "value": "code" }, { "label": "批次号", "value": "batchNumber" },], childIndex: -1, isEdit: false, interfaceRes: { diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousinginventory/index.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousinginventory/index.vue index b2041526..1743a454 100644 --- a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousinginventory/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousinginventory/index.vue @@ -6,634 +6,619 @@ diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/columnList.js b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/columnList.js new file mode 100644 index 00000000..7175c2e5 --- /dev/null +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/columnList.js @@ -0,0 +1,2 @@ +const columnList = [{"jnpfKey":"billRule","fullName":"报损单编号","label":"报损单编号","sortable":false,"align":"left","__config__":{"formId":101,"visibility":["pc","app"],"jnpfKey":"billRule","defaultValue":null,"noShow":false,"tipLabel":"","dragDisabled":false,"rule":"warehousingReportloss","className":[],"label":"报损单编号","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_reportloss","renderKey":1708506252688,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-documents","ruleName":"报损单","tag":"JnpfInput","span":8},"readonly":true,"prop":"reportlossCode","width":0,"__vModel__":"reportlossCode","fixed":"none","style":{"width":"100%"},"id":"reportlossCode","placeholder":"系统自动生成"},{"filterable":false,"clearable":true,"jnpfKey":"select","multiple":false,"fullName":"单据类型","label":"单据类型","sortable":false,"align":"left","props":{"label":"fullName","value":"id"},"__config__":{"formId":102,"visibility":["pc","app"],"jnpfKey":"select","defaultValue":"","noShow":false,"dataType":"static","dictionaryType":"","tipLabel":"","dragDisabled":false,"className":[],"label":"单据类型","trigger":"change","propsUrl":"","templateJson":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_reportloss","renderKey":1708506293958,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-select","propsName":"","tag":"JnpfSelect","regList":[],"span":8},"prop":"reportlossType","width":0,"options":[{"fullName":"采购报损","id":"1"},{"fullName":"销售报损","id":"2"},{"fullName":"仓库报损","id":"3"},{"fullName":"加工报损","id":"4"},{"fullName":"其他报损","id":"5"}],"__vModel__":"reportlossType","fixed":"none","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"reportlossType","placeholder":"请选择","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"clearable":true,"jnpfKey":"datePicker","format":"yyyy-MM-dd","fullName":"报损时间","label":"报损时间","sortable":false,"align":"left","type":"date","__config__":{"endRelationField":"","defaultValue":"","dragDisabled":false,"className":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_reportloss","renderKey":1708506404582,"tagIcon":"icon-ym icon-ym-generator-date","startRelationField":"","defaultCurrent":true,"tag":"JnpfDatePicker","formId":103,"visibility":["pc","app"],"jnpfKey":"datePicker","noShow":false,"endTimeTarget":1,"tipLabel":"","startTimeType":1,"endTimeRule":false,"label":"报损时间","startTimeRule":false,"startTimeValue":"","trigger":"change","endTimeValue":"","endTimeType":1,"layout":"colFormItem","startTimeTarget":1,"regList":[],"span":8},"readonly":false,"prop":"reportlossTime","width":0,"__vModel__":"reportlossTime","fixed":"none","style":{"width":"100%"},"disabled":false,"startTime":null,"id":"reportlossTime","placeholder":"请选择","endTime":null,"on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"filterable":false,"clearable":true,"jnpfKey":"select","multiple":false,"fullName":"报损原因","label":"报损原因","sortable":false,"align":"left","props":{"label":"fullName","value":"id"},"__config__":{"formId":104,"visibility":["pc","app"],"jnpfKey":"select","defaultValue":"","noShow":false,"dataType":"static","dictionaryType":"","tipLabel":"","dragDisabled":false,"className":[],"label":"报损原因","trigger":"change","propsUrl":"","templateJson":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_reportloss","renderKey":1708506442927,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-select","propsName":"","tag":"JnpfSelect","regList":[],"span":8},"prop":"reportlossReason","width":0,"options":[{"fullName":"质量问题","id":"1"},{"fullName":"客户退回","id":"2"},{"fullName":"试用","id":"3"},{"fullName":"临期报废","id":"4"},{"fullName":"其他","id":"5"}],"__vModel__":"reportlossReason","fixed":"none","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"reportlossReason","placeholder":"请选择","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"popupType":"dialog","hasPage":true,"pageSize":20,"columnOptions":[{"label":"仓库名称","value":"name"},{"label":"仓库编码","value":"code"}],"align":"left","templateJson":[],"__config__":{"formId":105,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"仓库名称","trigger":"change","showLabel":true,"required":true,"tableName":"jg_warehousing_reportloss","renderKey":1708506481124,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"prop":"warehouseId","__vModel__":"warehouseId","disabled":false,"id":"warehouseId","placeholder":"请选择","interfaceName":"入库单-查询仓库","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"clearable":true,"jnpfKey":"popupSelect","fullName":"仓库名称","label":"仓库名称","sortable":false,"relationField":"name","popupTitle":"选择数据","width":0,"fixed":"none","style":{"width":"100%"},"interfaceHasPage":false,"interfaceId":"529617754022498181","propsValue":"id"}] +export default columnList \ No newline at end of file diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/form.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/form.vue new file mode 100644 index 00000000..146121e2 --- /dev/null +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/form.vue @@ -0,0 +1,603 @@ + + + + + + + diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/index.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/index.vue new file mode 100644 index 00000000..654beacd --- /dev/null +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/index.vue @@ -0,0 +1,602 @@ + + + + + + + + + + diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/superQueryJson.js b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/superQueryJson.js new file mode 100644 index 00000000..27b45d93 --- /dev/null +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingreportloss/superQueryJson.js @@ -0,0 +1,2 @@ +const superQueryJson = [{"__config__":{"formId":101,"visibility":["pc","app"],"jnpfKey":"billRule","defaultValue":null,"noShow":false,"tipLabel":"","dragDisabled":false,"rule":"warehousingReportloss","className":[],"label":"报损单编号","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_reportloss","renderKey":1708506252688,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-documents","ruleName":"报损单","tag":"JnpfInput","span":8},"readonly":true,"__vModel__":"reportlossCode","fullName":"报损单编号","style":{"width":"100%"},"id":"reportlossCode","placeholder":"系统自动生成"},{"filterable":false,"clearable":true,"multiple":false,"fullName":"单据类型","props":{"label":"fullName","value":"id"},"__config__":{"formId":102,"visibility":["pc","app"],"jnpfKey":"select","defaultValue":"","noShow":false,"dataType":"static","dictionaryType":"","tipLabel":"","dragDisabled":false,"className":[],"label":"单据类型","trigger":"change","propsUrl":"","templateJson":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_reportloss","renderKey":1708506293958,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-select","propsName":"","tag":"JnpfSelect","regList":[],"span":8},"options":[{"fullName":"采购报损","id":"1"},{"fullName":"销售报损","id":"2"},{"fullName":"仓库报损","id":"3"},{"fullName":"加工报损","id":"4"},{"fullName":"其他报损","id":"5"}],"__vModel__":"reportlossType","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"reportlossType","placeholder":"请选择","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"clearable":true,"format":"yyyy-MM-dd","fullName":"报损时间","type":"date","__config__":{"endRelationField":"","defaultValue":"","dragDisabled":false,"className":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_reportloss","renderKey":1708506404582,"tagIcon":"icon-ym icon-ym-generator-date","startRelationField":"","defaultCurrent":true,"tag":"JnpfDatePicker","formId":103,"visibility":["pc","app"],"jnpfKey":"datePicker","noShow":false,"endTimeTarget":1,"tipLabel":"","startTimeType":1,"endTimeRule":false,"label":"报损时间","startTimeRule":false,"startTimeValue":"","trigger":"change","endTimeValue":"","endTimeType":1,"layout":"colFormItem","startTimeTarget":1,"regList":[],"span":8},"readonly":false,"__vModel__":"reportlossTime","style":{"width":"100%"},"disabled":false,"startTime":null,"id":"reportlossTime","placeholder":"请选择","endTime":null,"on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"filterable":false,"clearable":true,"multiple":false,"fullName":"报损原因","props":{"label":"fullName","value":"id"},"__config__":{"formId":104,"visibility":["pc","app"],"jnpfKey":"select","defaultValue":"","noShow":false,"dataType":"static","dictionaryType":"","tipLabel":"","dragDisabled":false,"className":[],"label":"报损原因","trigger":"change","propsUrl":"","templateJson":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_reportloss","renderKey":1708506442927,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-select","propsName":"","tag":"JnpfSelect","regList":[],"span":8},"options":[{"fullName":"质量问题","id":"1"},{"fullName":"客户退回","id":"2"},{"fullName":"试用","id":"3"},{"fullName":"临期报废","id":"4"},{"fullName":"其他","id":"5"}],"__vModel__":"reportlossReason","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"reportlossReason","placeholder":"请选择","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"popupType":"dialog","hasPage":true,"clearable":true,"fullName":"仓库名称","pageSize":20,"columnOptions":[{"label":"仓库名称","value":"name"},{"label":"仓库编码","value":"code"}],"templateJson":[],"relationField":"name","__config__":{"formId":105,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"仓库名称","trigger":"change","showLabel":true,"required":true,"tableName":"jg_warehousing_reportloss","renderKey":1708506481124,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"popupTitle":"选择数据","__vModel__":"warehouseId","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"warehouseId","placeholder":"请选择","interfaceId":"529617754022498181","interfaceName":"入库单-查询仓库","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"propsValue":"id"},{"clearable":true,"maxlength":null,"suffixIcon":"","fullName":"备注","addonAfter":"","__config__":{"formId":106,"visibility":["pc","app"],"jnpfKey":"input","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"备注","trigger":"blur","showLabel":true,"required":false,"tableName":"jg_warehousing_reportloss","renderKey":1708506609295,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-input","unique":false,"tag":"JnpfInput","regList":[],"span":24},"readonly":false,"showWordLimit":false,"__vModel__":"remark","showPassword":false,"style":{"width":"100%"},"disabled":false,"id":"remark","placeholder":"请输入","prefixIcon":"","addonBefore":"","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"popupType":"dialog","hasPage":false,"clearable":true,"fullName":"-商品名称","pageSize":20,"columnOptions":[{"label":"商品名称","value":"name"},{"label":"商品编码","value":"code"},{"label":"批次号","value":"batch_number"}],"templateJson":[],"relationField":"name","__config__":{"formId":113,"relationTable":"jg_warehousing_reportloss_product","visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"parentVModel":"tableField109","tipLabel":"","dragDisabled":false,"className":[],"label":"商品名称","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_reportloss","renderKey":1708565037984,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","isSubTable":true,"tag":"JnpfPopupSelect","regList":[],"span":24},"popupTitle":"选择数据","__vModel__":"productId","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"tableField109-productId","placeholder":"请选择","interfaceId":"529994958833209925","interfaceName":"盘点单-查询商品,批次号","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"propsValue":"id"},{"popupType":"dialog","hasPage":false,"clearable":true,"fullName":"-报损单位","pageSize":20,"columnOptions":[{"label":"单位","value":"unit_name"}],"templateJson":[],"relationField":"unit_name","__config__":{"formId":112,"relationTable":"jg_warehousing_reportloss_product","visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"parentVModel":"tableField109","tipLabel":"","dragDisabled":false,"className":[],"label":"报损单位","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_reportloss","renderKey":1708564941982,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","isSubTable":true,"tag":"JnpfPopupSelect","regList":[],"span":24},"popupTitle":"选择数据","__vModel__":"reportlossUnit","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"tableField109-reportlossUnit","placeholder":"请选择","interfaceId":"529938341609623877","interfaceName":"查询全部商品单位库表","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"propsValue":"id"},{"clearable":true,"maxlength":null,"suffixIcon":"","fullName":"-报损数量","addonAfter":"","__config__":{"formId":110,"relationTable":"jg_warehousing_reportloss_product","visibility":["pc","app"],"jnpfKey":"input","noShow":false,"parentVModel":"tableField109","tipLabel":"","dragDisabled":false,"className":[],"label":"报损数量","trigger":"blur","showLabel":true,"required":false,"tableName":"jg_warehousing_reportloss","renderKey":1708506662146,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-input","unique":false,"isSubTable":true,"tag":"JnpfInput","regList":[],"span":24},"readonly":false,"showWordLimit":false,"__vModel__":"reportlossNumber","showPassword":false,"style":{"width":"100%"},"disabled":false,"id":"tableField109-reportlossNumber","placeholder":"请输入","prefixIcon":"","addonBefore":"","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}}] +export default superQueryJson \ No newline at end of file diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingstorage/form.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingstorage/form.vue index 5a247a70..a7501ddb 100644 --- a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingstorage/form.vue +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingstorage/form.vue @@ -566,7 +566,7 @@ export default { }, warehousingStorageTypeOptions: [{ "fullName": "全部", "id": "1" }, { "fullName": "盘盈入库", "id": "2" }, { "fullName": "采购入库", "id": "3" }, { "fullName": "调拨入库", "id": "4" }, { "fullName": "退货入库", "id": "5" }, { "fullName": "其他入库", "id": "6" }, { "fullName": "差异调整入库", "id": "7" }, { "fullName": "领用返库", "id": "8" }, { "fullName": "货权转移入库", "id": "9" }, { "fullName": "其他出库", "id": "10" }, { "fullName": "库存初始化", "id": "11" }, { "fullName": "调拨出库撤回", "id": "12" }, { "fullName": "其他出库撤回", "id": "13" }], warehousingStorageTypeProps: { "label": "fullName", "value": "id" }, - warehousingIdcolumnOptions: [{ "label": "通知编号", "value": "warehousing_code" }, { "label": "供应商id", "value": "subject_basic_id" }, { "label": "仓库id", "value": "warehouse_id" },], + warehousingIdcolumnOptions: [{ "label": "通知编号", "value": "warehousing_code" }, { "label": "供应商名称", "value": "subjectName" }, { "label": "仓库名称", "value": "businessName" },], warehouseIdcolumnOptions: [{ "label": "仓库编号", "value": "code" }, { "label": "仓库名称", "value": "name" }, { "label": "仓库简称", "value": "simple_name" },], warehousingstoragepoundlistvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucher_code" }, { "label": "凭证类型", "value": "voucher_type" }, { "label": "车牌号", "value": "vehicle_number" }, { "label": "商品名称", "value": "product_name" },], warehousingstorageproductproductIdcolumnOptions: [{ "label": "商品名称", "value": "name" }, { "label": "商品编码", "value": "code" }, { "label": "商品规格", "value": "spec" },], diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingstorage/index.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingstorage/index.vue index ba32866d..a1d9dc21 100644 --- a/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingstorage/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousing/warehousingstorage/index.vue @@ -614,6 +614,8 @@ export default { flowId: item.id, opType: '-1' } + // debugger + // console.log(item.id); this.flowListVisible = false this.flowVisible = true this.$nextTick(() => { diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/columnList.js b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/columnList.js deleted file mode 100644 index c70e2599..00000000 --- a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/columnList.js +++ /dev/null @@ -1,2 +0,0 @@ -const columnList = [{"border":false,"jnpfKey":"radio","fullName":"业务类型","label":"业务类型","sortable":false,"align":"left","props":{"label":"fullName","value":"id"},"optionType":"button","__config__":{"formId":102,"visibility":["pc","app"],"jnpfKey":"radio","defaultValue":"1","noShow":false,"dataType":"static","dictionaryType":"","tipLabel":"","dragDisabled":false,"className":[],"label":"业务类型","trigger":"change","propsUrl":"","templateJson":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_notification","renderKey":1708244472673,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-radio","propsName":"","tag":"JnpfRadio","regList":[],"span":24},"size":"medium","prop":"warehousingType","width":0,"options":[{"fullName":"采购入库","id":"1"},{"fullName":"退货入库","id":"2"},{"fullName":"调拨入库","id":"3"},{"fullName":"成品入库","id":"4"},{"fullName":"盘盈入库","id":"5"},{"fullName":"其他入库","id":"6"}],"__vModel__":"warehousingType","fixed":"none","style":{},"disabled":false,"interfaceHasPage":false,"id":"warehousingType","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"direction":"horizontal"},{"jnpfKey":"billRule","fullName":"通知编号","label":"通知编号","sortable":false,"align":"left","__config__":{"formId":103,"visibility":["pc","app"],"jnpfKey":"billRule","defaultValue":null,"noShow":false,"tipLabel":"","dragDisabled":false,"rule":"rktz","className":[],"label":"通知编号","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708245268488,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-documents","ruleName":"入库通知","tag":"JnpfInput","span":8},"readonly":true,"prop":"warehousingCode","width":0,"__vModel__":"warehousingCode","fixed":"none","style":{"width":"100%"},"id":"warehousingCode","placeholder":"系统自动生成"},{"jnpfKey":"createTime","fullName":"创建时间","label":"创建时间","sortable":false,"align":"left","type":"currTime","__config__":{"formId":104,"visibility":["pc","app"],"jnpfKey":"createTime","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"创建时间","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708245285792,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-createtime","tag":"JnpfOpenData","span":8},"readonly":true,"prop":"creatorTime","width":0,"__vModel__":"creatorTime","fixed":"none","style":{"width":"100%"},"id":"creatorTime","placeholder":""},{"jnpfKey":"createUser","fullName":"创建用户","label":"创建用户","sortable":false,"align":"left","type":"currUser","__config__":{"formId":115,"visibility":["pc","app"],"jnpfKey":"createUser","defaultValue":"","noShow":true,"tipLabel":"","dragDisabled":false,"className":[],"label":"创建用户","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708396564349,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-founder","tag":"JnpfOpenData","span":24},"readonly":true,"prop":"creatorUserId","width":0,"__vModel__":"creatorUserId","fixed":"none","style":{"width":"100%"},"id":"creatorUserId","placeholder":""},{"popupType":"dialog","hasPage":false,"pageSize":20,"columnOptions":[{"label":"采购订单号","value":"code"}],"align":"left","templateJson":[],"__config__":{"formId":106,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"关联采购订单","trigger":"change","showLabel":true,"required":true,"tableName":"jg_warehousing_notification","renderKey":1708245336728,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"prop":"businessId","__vModel__":"businessId","disabled":false,"id":"businessId","placeholder":"请选择","interfaceName":"查询采购订单列表","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"clearable":true,"jnpfKey":"popupSelect","fullName":"关联采购订单","label":"关联采购订单","sortable":false,"relationField":"code","popupTitle":"选择数据","width":0,"fixed":"none","style":{"width":"100%"},"interfaceHasPage":false,"interfaceId":"522687073317030149","propsValue":"id"},{"popupType":"dialog","hasPage":false,"pageSize":20,"columnOptions":[{"label":"供应商名称","value":"name"}],"align":"left","templateJson":[],"__config__":{"formId":110,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"供应商名称","trigger":"change","showLabel":true,"required":true,"tableName":"jg_warehousing_notification","renderKey":1708305447385,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"prop":"subjectBasicId","__vModel__":"subjectBasicId","disabled":false,"id":"subjectBasicId","placeholder":"请选择","interfaceName":"查询全部供应商","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"clearable":true,"jnpfKey":"popupSelect","fullName":"供应商名称","label":"供应商名称","sortable":false,"relationField":"name","popupTitle":"选择数据","width":0,"fixed":"none","style":{"width":"100%"},"interfaceHasPage":false,"interfaceId":"522417703080700549","propsValue":"id"},{"filterable":false,"clearable":true,"jnpfKey":"organizeSelect","ableIds":[],"multiple":false,"fullName":"机构名称","label":"机构名称","sortable":false,"align":"left","__config__":{"formId":114,"visibility":["pc","app"],"jnpfKey":"organizeSelect","defaultValue":[],"noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"机构名称","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708305631785,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-company","defaultCurrent":false,"tag":"JnpfOrganizeSelect","regList":[],"span":8},"prop":"enterpriseId","width":0,"__vModel__":"enterpriseId","fixed":"none","style":{"width":"100%"},"disabled":false,"selectType":"all","id":"enterpriseId","placeholder":"请选择","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}}] -export default columnList \ No newline at end of file diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/form.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/form.vue deleted file mode 100644 index 0df49d64..00000000 --- a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/form.vue +++ /dev/null @@ -1,448 +0,0 @@ - - - - - - - diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/saleOutBoundNotice1/index.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/saleOutBoundNotice1/index.vue deleted file mode 100644 index fe2685ef..00000000 --- a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/saleOutBoundNotice1/index.vue +++ /dev/null @@ -1,589 +0,0 @@ - - - - - - - - - - diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/superQueryJson.js b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/superQueryJson.js deleted file mode 100644 index 0681d14a..00000000 --- a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/superQueryJson.js +++ /dev/null @@ -1,2 +0,0 @@ -const superQueryJson = [{"border":false,"fullName":"业务类型","props":{"label":"fullName","value":"id"},"optionType":"button","__config__":{"formId":102,"visibility":["pc","app"],"jnpfKey":"radio","defaultValue":"1","noShow":false,"dataType":"static","dictionaryType":"","tipLabel":"","dragDisabled":false,"className":[],"label":"业务类型","trigger":"change","propsUrl":"","templateJson":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_notification","renderKey":1708244472673,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-radio","propsName":"","tag":"JnpfRadio","regList":[],"span":24},"size":"medium","options":[{"fullName":"采购入库","id":"1"},{"fullName":"退货入库","id":"2"},{"fullName":"调拨入库","id":"3"},{"fullName":"成品入库","id":"4"},{"fullName":"盘盈入库","id":"5"},{"fullName":"其他入库","id":"6"}],"__vModel__":"warehousingType","style":{},"disabled":false,"interfaceHasPage":false,"id":"warehousingType","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"direction":"horizontal"},{"__config__":{"formId":103,"visibility":["pc","app"],"jnpfKey":"billRule","defaultValue":null,"noShow":false,"tipLabel":"","dragDisabled":false,"rule":"rktz","className":[],"label":"通知编号","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708245268488,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-documents","ruleName":"入库通知","tag":"JnpfInput","span":8},"readonly":true,"__vModel__":"warehousingCode","fullName":"通知编号","style":{"width":"100%"},"id":"warehousingCode","placeholder":"系统自动生成"},{"__config__":{"formId":104,"visibility":["pc","app"],"jnpfKey":"createTime","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"创建时间","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708245285792,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-createtime","tag":"JnpfOpenData","span":8},"readonly":true,"__vModel__":"creatorTime","fullName":"创建时间","style":{"width":"100%"},"id":"creatorTime","placeholder":"","type":"currTime"},{"__config__":{"formId":115,"visibility":["pc","app"],"jnpfKey":"createUser","defaultValue":"","noShow":true,"tipLabel":"","dragDisabled":false,"className":[],"label":"创建用户","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708396564349,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-founder","tag":"JnpfOpenData","span":24},"readonly":true,"__vModel__":"creatorUserId","fullName":"创建用户","style":{"width":"100%"},"id":"creatorUserId","placeholder":"","type":"currUser"},{"popupType":"dialog","hasPage":false,"clearable":true,"fullName":"关联采购订单","pageSize":20,"columnOptions":[{"label":"采购订单号","value":"code"}],"templateJson":[],"relationField":"code","__config__":{"formId":106,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"关联采购订单","trigger":"change","showLabel":true,"required":true,"tableName":"jg_warehousing_notification","renderKey":1708245336728,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"popupTitle":"选择数据","__vModel__":"businessId","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"businessId","placeholder":"请选择","interfaceId":"522687073317030149","interfaceName":"查询采购订单列表","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"propsValue":"id"},{"clearable":true,"format":"yyyy-MM-dd","fullName":"计划入库时间开始","type":"date","__config__":{"endRelationField":"","defaultValue":null,"dragDisabled":false,"className":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_notification","renderKey":1708305333242,"tagIcon":"icon-ym icon-ym-generator-date","startRelationField":"","defaultCurrent":false,"tag":"JnpfDatePicker","formId":107,"visibility":["pc","app"],"jnpfKey":"datePicker","noShow":false,"endTimeTarget":1,"tipLabel":"","startTimeType":1,"endTimeRule":false,"label":"计划入库时间开始","startTimeRule":false,"startTimeValue":"","trigger":"change","endTimeValue":"","endTimeType":1,"layout":"colFormItem","startTimeTarget":1,"regList":[],"span":8},"readonly":false,"__vModel__":"plannedWarehousingTimeStart","style":{"width":"100%"},"disabled":false,"startTime":null,"id":"plannedWarehousingTimeStart","placeholder":"请选择","endTime":null,"on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"clearable":true,"format":"yyyy-MM-dd","fullName":"计划入库时间结束","type":"date","__config__":{"endRelationField":"","defaultValue":null,"dragDisabled":false,"className":[],"showLabel":true,"required":true,"tableName":"jg_warehousing_notification","renderKey":1708305333889,"tagIcon":"icon-ym icon-ym-generator-date","startRelationField":"","defaultCurrent":false,"tag":"JnpfDatePicker","formId":108,"visibility":["pc","app"],"jnpfKey":"datePicker","noShow":false,"endTimeTarget":1,"tipLabel":"","startTimeType":1,"endTimeRule":false,"label":"计划入库时间结束","startTimeRule":false,"startTimeValue":"","trigger":"change","endTimeValue":"","endTimeType":1,"layout":"colFormItem","startTimeTarget":1,"regList":[],"span":8},"readonly":false,"__vModel__":"plannedWarehousingTimeEnd","style":{"width":"100%"},"disabled":false,"startTime":null,"id":"plannedWarehousingTimeEnd","placeholder":"请选择","endTime":null,"on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"popupType":"dialog","hasPage":false,"clearable":true,"fullName":"供应商名称","pageSize":20,"columnOptions":[{"label":"供应商名称","value":"name"}],"templateJson":[],"relationField":"name","__config__":{"formId":110,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"供应商名称","trigger":"change","showLabel":true,"required":true,"tableName":"jg_warehousing_notification","renderKey":1708305447385,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"popupTitle":"选择数据","__vModel__":"subjectBasicId","style":{"width":"100%"},"disabled":false,"interfaceHasPage":false,"id":"subjectBasicId","placeholder":"请选择","interfaceId":"522417703080700549","interfaceName":"查询全部供应商","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"propsValue":"id"},{"clearable":true,"maxlength":null,"suffixIcon":"","fullName":"发货地址","addonAfter":"","__config__":{"formId":111,"visibility":["pc","app"],"jnpfKey":"input","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"发货地址","trigger":"blur","showLabel":true,"required":true,"tableName":"jg_warehousing_notification","renderKey":1708305551057,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-input","unique":false,"tag":"JnpfInput","regList":[],"span":8},"readonly":false,"showWordLimit":false,"__vModel__":"shippingAddress","showPassword":false,"style":{"width":"100%"},"disabled":false,"id":"shippingAddress","placeholder":"请输入","prefixIcon":"","addonBefore":"","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"filterable":false,"clearable":true,"ableIds":[],"multiple":false,"fullName":"机构名称","__config__":{"formId":114,"visibility":["pc","app"],"jnpfKey":"organizeSelect","defaultValue":[],"noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"机构名称","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708305631785,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-company","defaultCurrent":false,"tag":"JnpfOrganizeSelect","regList":[],"span":8},"__vModel__":"enterpriseId","style":{"width":"100%"},"disabled":false,"selectType":"all","id":"enterpriseId","placeholder":"请选择","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}}] -export default superQueryJson \ No newline at end of file diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/saleOutBoundNotice1/columnList.js b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/columnList.js similarity index 100% rename from jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/saleOutBoundNotice1/columnList.js rename to jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/columnList.js diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/form.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/form.vue new file mode 100644 index 00000000..c5e2c0d0 --- /dev/null +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/form.vue @@ -0,0 +1,982 @@ + + + diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/index.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/index.vue new file mode 100644 index 00000000..269b7620 --- /dev/null +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/index.vue @@ -0,0 +1,616 @@ + + + diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/saleOutBoundNotice1/superQueryJson.js b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/superQueryJson.js similarity index 100% rename from jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/saleOutBoundNotice1/superQueryJson.js rename to jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationpurchase/superQueryJson.js diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationsale/columnList.js b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationsale/columnList.js new file mode 100644 index 00000000..e939df6a --- /dev/null +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationsale/columnList.js @@ -0,0 +1,2 @@ +const columnList = [{"jnpfKey":"billRule","fullName":"通知编号","label":"通知编号","sortable":false,"align":"left","__config__":{"formId":104,"visibility":["pc","app"],"jnpfKey":"billRule","defaultValue":null,"noShow":false,"tipLabel":"","dragDisabled":false,"rule":"cktz","className":[],"label":"通知编号","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708332437986,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-documents","ruleName":"出库通知","tag":"JnpfInput","span":8},"readonly":true,"prop":"warehousingCode","width":0,"__vModel__":"warehousingCode","fixed":"none","style":{"width":"100%"},"id":"warehousingCode","placeholder":"系统自动生成"},{"popupType":"dialog","hasPage":false,"pageSize":20,"columnOptions":[{"label":"订单编号","value":"code"}],"align":"left","templateJson":[],"__config__":{"formId":109,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"销售订单","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708332717520,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"prop":"businessId","__vModel__":"businessId","disabled":false,"id":"businessId","placeholder":"请选择","interfaceName":"关联销售订单","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"clearable":true,"jnpfKey":"popupSelect","fullName":"销售订单","label":"销售订单","sortable":false,"relationField":"code","popupTitle":"选择数据","width":0,"fixed":"none","style":{"width":"100%"},"interfaceHasPage":false,"interfaceId":"529307088124379205","propsValue":"id"},{"popupType":"dialog","hasPage":false,"pageSize":20,"columnOptions":[{"label":"名称","value":"name"}],"align":"left","templateJson":[],"__config__":{"formId":112,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"客户名称","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708333879117,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"prop":"subjectBasicId","__vModel__":"subjectBasicId","disabled":true,"id":"subjectBasicId","placeholder":"请选择","interfaceName":"查询一级客户","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"clearable":true,"jnpfKey":"popupSelect","fullName":"客户名称","label":"客户名称","sortable":false,"relationField":"name","popupTitle":"选择数据","width":0,"fixed":"none","style":{"width":"100%"},"interfaceHasPage":false,"interfaceId":"522693551289534725","propsValue":"id"},{"clearable":true,"maxlength":null,"jnpfKey":"input","suffixIcon":"","fullName":"收货地址","label":"收货地址","sortable":false,"align":"left","addonAfter":"","__config__":{"formId":113,"visibility":["pc","app"],"jnpfKey":"input","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"收货地址","trigger":"blur","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708334380601,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-input","unique":false,"tag":"JnpfInput","regList":[],"span":8},"readonly":false,"prop":"shippingAddress","showWordLimit":false,"width":0,"__vModel__":"shippingAddress","showPassword":false,"fixed":"none","style":{"width":"100%"},"disabled":false,"id":"shippingAddress","placeholder":"请输入","prefixIcon":"","addonBefore":"","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}","blur":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"}},{"popupType":"dialog","hasPage":false,"pageSize":20,"columnOptions":[{"label":"机构名称","value":"f_full_name"}],"align":"left","templateJson":[],"__config__":{"formId":115,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"机构名称","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708334496015,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"prop":"enterpriseId","__vModel__":"enterpriseId","disabled":true,"id":"enterpriseId","placeholder":"请选择","interfaceName":"查询机构列表","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"clearable":true,"jnpfKey":"popupSelect","fullName":"机构名称","label":"机构名称","sortable":false,"relationField":"f_full_name","popupTitle":"选择数据","width":0,"fixed":"none","style":{"width":"100%"},"interfaceHasPage":false,"interfaceId":"522729853024209157","propsValue":"id"},{"popupType":"dialog","hasPage":false,"pageSize":20,"columnOptions":[{"label":"名称","value":"name"}],"align":"left","templateJson":[{"fieldName":"","field":"businessLineId","defaultValue":"","dataType":"varchar","parameter":"businessLineId","id":"PneOdw1","required":0}],"__config__":{"formId":116,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"发货仓库","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708334662759,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"prop":"warehouseId","__vModel__":"warehouseId","disabled":false,"id":"warehouseId","placeholder":"请选择","interfaceName":"根据业务线查询仓库","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"clearable":true,"jnpfKey":"popupSelect","fullName":"发货仓库","label":"发货仓库","sortable":false,"relationField":"name","popupTitle":"选择数据","width":0,"fixed":"none","style":{"width":"100%"},"interfaceHasPage":false,"interfaceId":"522701377537837317","propsValue":"id"},{"popupType":"dialog","hasPage":false,"pageSize":20,"columnOptions":[{"label":"地址详情","value":"addressDetail"}],"align":"left","templateJson":[{"fieldName":"","field":"businessOrganizeId","defaultValue":"","jnpfKey":"popupSelect","dataType":"varchar","parameter":"businessOrganizeId","id":"AyAmdw1","required":0,"relationField":"warehouseId"}],"__config__":{"formId":117,"visibility":["pc","app"],"jnpfKey":"popupSelect","defaultValue":"","noShow":false,"tipLabel":"","dragDisabled":false,"className":[],"label":"发货地址","trigger":"change","showLabel":true,"required":false,"tableName":"jg_warehousing_notification","renderKey":1708335307693,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-popup","tag":"JnpfPopupSelect","regList":[],"span":8},"prop":"deliveryAddress","__vModel__":"deliveryAddress","disabled":false,"id":"deliveryAddress","placeholder":"请选择","interfaceName":"根据仓库查询地址","popupWidth":"800px","on":{"change":"({ data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils }) => {\n // 在此编写代码\n \n}"},"clearable":true,"jnpfKey":"popupSelect","fullName":"发货地址","label":"发货地址","sortable":false,"relationField":"addressDetail","popupTitle":"选择数据","width":0,"fixed":"none","style":{"width":"100%"},"interfaceHasPage":false,"interfaceId":"522724961224231173","propsValue":"id"}] +export default columnList \ No newline at end of file diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/saleOutBoundNotice1/form.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationsale/form.vue similarity index 100% rename from jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/saleOutBoundNotice1/form.vue rename to jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationsale/form.vue diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/index.vue b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationsale/index.vue similarity index 79% rename from jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/index.vue rename to jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationsale/index.vue index 7220489c..8fbb8cae 100644 --- a/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/scm/warehousingnotification/warehousingnotificationsale/index.vue @@ -1,60 +1,40 @@ + + + + + +