客户和供应商服务商

jg-waiwang-pro
胡川虎 9 months ago
parent 7507efd7d7
commit fd56d507a8

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="jnpf.mapper.SubjectcreditratingnoMapper">
<resultMap id="queryDefaultCreditrules" type="jnpf.entity.SubjectcreditratingnoEntity">
<id column="id" property="id"/>
<result column="underpayment_amount_down" property="underpaymentAmountDown"/>
<result column="underpayment_amount_upper" property="underpaymentAmountUpper"/>
<result column="underpayment_rate_down" property="underpaymentRateDown"/>
<result column="underpayment_rate_upper" property="underpaymentRateUpper"/>
<result column="margin_amount_down" property="marginAmountDown"/>
<result column="margin_amount_upper" property="marginAmountUpper"/>
<result column="margin_rate_down" property="marginRateDown"/>
<result column="margin_rate_upper" property="marginRateUpper"/>
<result column="overdue_annualized_down" property="overdueAnnualizedDown"/>
<result column="overdue_annualized_upper" property="overdueAnnualizedUpper"/>
<result column="overdue_monthly_down" property="overdueMonthlyDown"/>
<result column="overdue_monthly_upper" property="overdueMonthlyUpper"/>
</resultMap>
<select id="queryDefaultCreditrules" parameterType="jnpf.entity.SubjectcreditratingnoEntity" resultMap="queryDefaultCreditrules">
select a.* from jg_subject_credit_rating_no a
left join flow_task b on a.id = b.f_id
where a.f_delete_mark is null and b.f_current_node_code = 'end' and f_status = 2 and f_completion = 100
<if test="companyId != null and companyId != ''">
AND a.company_id= #{companyId}
</if>
<if test="businessType != null and businessType != ''">
AND a.business_type= #{businessType}
</if>
ORDER BY b.f_last_modify_time DESC LIMIT 1
</select>
</mapper>

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="jnpf.mapper.SubjectcreditrulesMapper">
<resultMap id="queryDefaultCreditrules" type="jnpf.entity.SubjectcreditrulesEntity">
<id column="id" property="id"/>
<result column="business_no" property="businessNo"/>
<result column="business_type" property="businessType"/>
<result column="category_name2" property="categoryName"/>
<result column="project_name2" property="projectName"/>
<result column="rule_description" property="ruleDescription"/>
<result column="annex" property="annex"/>
</resultMap>
<select id="queryDefaultCreditrules" parameterType="jnpf.entity.SubjectcreditrulesEntity" resultMap="queryDefaultCreditrules">
select a.*,d.F_Full_name category_name2,e.F_Full_name project_name2 from jg_subject_credit_rules a
left join flow_task b on a.id = b.f_id
LEFT JOIN (SELECT * from base_dictionary_data where f_dictionary_type_id = '522733511912730437') d ON a.category_name = d.F_En_Code
LEFT JOIN (SELECT * from base_dictionary_data where f_dictionary_type_id = '522733676014874437') e ON a.project_name = e.F_En_Code
where a.f_delete_mark is null and b.f_current_node_code = 'end' and f_status = 2 and f_completion = 100 and
a.id not in (SELECT c.id FROM (select a.id,MIN(a.f_last_modify_time) aa from jg_subject_credit_rules a
left join flow_task b on a.id = b.f_id
where a.f_delete_mark is null and b.f_current_node_code = 'end' and f_status = 2 and f_completion = 100
<if test="companyId != null and companyId != ''">
AND a.company_id= #{companyId}
</if>
<if test="businessType != null and businessType != ''">
AND a.business_type= #{businessType}
</if>
GROUP BY
business_type,category_name,project_name
HAVING
count( business_type )> 1) c)
<if test="companyId != null and companyId != ''">
AND a.company_id= #{companyId}
</if>
<if test="businessType != null and businessType != ''">
AND a.business_type= #{businessType}
</if>
ORDER BY a.category_name,a.project_name
</select>
</mapper>

@ -13,4 +13,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface SubjectcreditratingnoMapper extends BaseMapper<SubjectcreditratingnoEntity> {
SubjectcreditratingnoEntity queryDefaultCreditrules(SubjectcreditratingnoEntity subjectcreditratingnoEntity);
}

@ -4,6 +4,8 @@ package jnpf.mapper;
import jnpf.entity.SubjectcreditrulesEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* Subjectcreditrules
* V3.5
@ -13,4 +15,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface SubjectcreditrulesMapper extends BaseMapper<SubjectcreditrulesEntity> {
List<SubjectcreditrulesEntity> queryDefaultCreditrules(SubjectcreditrulesEntity subjectcreditrulesEntity);
}

@ -36,4 +36,5 @@ public interface SubjectcreditratingnoService extends IService<Subjectcreditrati
void saveOrUpdate(SubjectcreditratingnoForm subjectcreditratingnoForm,String id, boolean isSave) throws Exception;
SubjectcreditratingnoEntity queryDefaultCreditrules(SubjectcreditratingnoEntity subjectcreditratingnoEntity);
}

@ -36,4 +36,5 @@ public interface SubjectcreditrulesService extends IService<SubjectcreditrulesEn
void saveOrUpdate(SubjectcreditrulesForm subjectcreditrulesForm,String id, boolean isSave) throws Exception;
List<SubjectcreditrulesEntity> queryDefaultCreditrules(SubjectcreditrulesEntity subjectcreditrulesEntity);
}

@ -183,6 +183,15 @@ public class ContactsServiceImpl extends ServiceImpl<ContactsMapper, ContactsEnt
}
}
if(ObjectUtil.isNotEmpty(contactsPagination.getBusinessType())){
contactsNum++;
String value = contactsPagination.getBusinessType() instanceof List ?
JsonUtil.getObjectToString(contactsPagination.getBusinessType()) :
String.valueOf(contactsPagination.getBusinessType());
contactsQueryWrapper.lambda().like(ContactsEntity::getBusinessType,value);
}
List<String> intersection = generaterSwapUtil.getIntersection(intersectionList);
if (total>0){

@ -48,6 +48,8 @@ public class SubjectcreditratingnoServiceImpl extends ServiceImpl<Subjectcreditr
@Autowired
private SubjectcreditratingService subjectcreditratingService;
@Autowired
private SubjectcreditratingnoMapper subjectcreditratingnoMapper;
@Override
public List<SubjectcreditratingnoEntity> getList(SubjectcreditratingnoPagination subjectcreditratingnoPagination){
return getTypeList(subjectcreditratingnoPagination,subjectcreditratingnoPagination.getDataType());
@ -388,4 +390,9 @@ public class SubjectcreditratingnoServiceImpl extends ServiceImpl<Subjectcreditr
}
}
}
@Override
public SubjectcreditratingnoEntity queryDefaultCreditrules(SubjectcreditratingnoEntity subjectcreditratingnoEntity) {
return subjectcreditratingnoMapper.queryDefaultCreditrules(subjectcreditratingnoEntity);
}
}

@ -48,6 +48,8 @@ public class SubjectcreditrulesServiceImpl extends ServiceImpl<Subjectcreditrule
@Autowired
private SubjectcreditrulesscoreService subjectcreditrulesscoreService;
@Autowired
private SubjectcreditrulesMapper subjectcreditrulesMapper;
@Override
public List<SubjectcreditrulesEntity> getList(SubjectcreditrulesPagination subjectcreditrulesPagination){
return getTypeList(subjectcreditrulesPagination,subjectcreditrulesPagination.getDataType());
@ -460,4 +462,9 @@ public class SubjectcreditrulesServiceImpl extends ServiceImpl<Subjectcreditrule
}
}
}
@Override
public List<SubjectcreditrulesEntity> queryDefaultCreditrules(SubjectcreditrulesEntity subjectcreditrulesEntity) {
return subjectcreditrulesMapper.queryDefaultCreditrules(subjectcreditrulesEntity);
}
}

@ -183,6 +183,15 @@ public class SubjectfollowmanagementServiceImpl extends ServiceImpl<Subjectfollo
}
}
if(ObjectUtil.isNotEmpty(subjectfollowmanagementPagination.getBusinessType())){
subjectfollowmanagementNum++;
String value = subjectfollowmanagementPagination.getBusinessType() instanceof List ?
JsonUtil.getObjectToString(subjectfollowmanagementPagination.getBusinessType()) :
String.valueOf(subjectfollowmanagementPagination.getBusinessType());
subjectfollowmanagementQueryWrapper.lambda().like(SubjectfollowmanagementEntity::getBusinessType,value);
}
List<String> intersection = generaterSwapUtil.getIntersection(intersectionList);
if (total>0){

@ -405,6 +405,12 @@ public class SubjectbasicController {
case "taxPaymentCertificate2" :
entitys.add(new ExcelExportEntity("完税证明超时限制2" ,"taxPaymentCertificate2"));
break;
case "fundLimit" :
entitys.add(new ExcelExportEntity("授信额度" ,"fundLimit"));
break;
case "taxBearingRate" :
entitys.add(new ExcelExportEntity("税负率" ,"taxBearingRate"));
break;
case "tableField119-representativeType":
tableField119List.add(new ExcelExportEntity("代表人类型" ,"representativeType"));
break;

@ -6,8 +6,11 @@ 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.constant.PermissionConst;
import jnpf.exception.DataException;
import jnpf.permission.entity.OrganizeEntity;
import jnpf.permission.entity.UserEntity;
import jnpf.permission.service.OrganizeService;
import jnpf.service.*;
import jnpf.entity.*;
import jnpf.util.*;
@ -73,7 +76,8 @@ public class SubjectcreditratingnoController {
@Autowired
private SubjectcreditratingService subjectcreditratingService;
@Autowired
private OrganizeService organizeService;
@Autowired
private ConfigValueUtil configValueUtil;
@ -422,4 +426,43 @@ public class SubjectcreditratingnoController {
return ActionResult.success(subjectcreditratingnoMap);
}
/**
* ()
* 使- businessType(1.2.3.)
* @param businessType
* @return
*/
@Operation(summary = "信息")
@GetMapping("queryDefaultCreditrating/{businessType}")
public ActionResult queryDefaultCreditrating(@PathVariable("businessType") String businessType){
UserInfo userInfo=userProvider.get();
String companyId = "";
if(userInfo != null && StringUtil.isNotEmpty(userInfo.getOrganizeId())){
OrganizeEntity organizeEntity = organizeService.getInfo(userInfo.getOrganizeId());
if(PermissionConst.DEPARTMENT.equals(organizeEntity.getCategory())){
userInfo.setDepartmentId(organizeEntity.getId());
do {
//获取父组织
organizeEntity = organizeService.getInfo(organizeEntity.getParentId());
}while (PermissionConst.DEPARTMENT.equals(organizeEntity.getCategory()));
companyId = organizeEntity.getId();
}else{
companyId = organizeEntity.getId();
}
}
SubjectcreditratingnoEntity subjectcreditratingnoEntity = new SubjectcreditratingnoEntity();
subjectcreditratingnoEntity.setCompanyId(companyId);
subjectcreditratingnoEntity.setBusinessType(businessType);
//查询同公司的最后一条审批通过的流程
SubjectcreditratingnoEntity entity= subjectcreditratingnoService.queryDefaultCreditrules(subjectcreditratingnoEntity);
Map<String, Object> subjectcreditratingnoMap=JsonUtil.entityToMap(entity);
subjectcreditratingnoMap.put("id", subjectcreditratingnoMap.get("id"));
//副表数据
//子表数据
List<SubjectcreditratingEntity> subjectcreditratingList = subjectcreditratingnoService.getSubjectcreditratingList(entity.getId());
subjectcreditratingnoMap.put("subjectcreditratingList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(subjectcreditratingList)));
subjectcreditratingnoMap = generaterSwapUtil.swapDataForm(subjectcreditratingnoMap,SubjectcreditratingnoConstant.getFormData(),SubjectcreditratingnoConstant.TABLEFIELDKEY,SubjectcreditratingnoConstant.TABLERENAMES);
return ActionResult.success(subjectcreditratingnoMap);
}
}

@ -6,8 +6,11 @@ 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.constant.PermissionConst;
import jnpf.exception.DataException;
import jnpf.permission.entity.OrganizeEntity;
import jnpf.permission.entity.UserEntity;
import jnpf.permission.service.OrganizeService;
import jnpf.service.*;
import jnpf.entity.*;
import jnpf.util.*;
@ -73,7 +76,8 @@ public class SubjectcreditrulesController {
@Autowired
private SubjectcreditrulesscoreService subjectcreditrulesscoreService;
@Autowired
private OrganizeService organizeService;
@Autowired
private ConfigValueUtil configValueUtil;
@ -421,5 +425,47 @@ public class SubjectcreditrulesController {
subjectcreditrulesMap = generaterSwapUtil.swapDataForm(subjectcreditrulesMap,SubjectcreditrulesConstant.getFormData(),SubjectcreditrulesConstant.TABLEFIELDKEY,SubjectcreditrulesConstant.TABLERENAMES);
return ActionResult.success(subjectcreditrulesMap);
}
/**
* ()
* 使- businessType(1.2.3.)
* @param businessType
* @return
*/
@Operation(summary = "信息")
@GetMapping("queryDefaultCreditrules/{businessType}")
public ActionResult queryDefaultCreditrules(@PathVariable("businessType") String businessType){
UserInfo userInfo=userProvider.get();
String companyId = "";
if(userInfo != null && StringUtil.isNotEmpty(userInfo.getOrganizeId())){
OrganizeEntity organizeEntity = organizeService.getInfo(userInfo.getOrganizeId());
if(PermissionConst.DEPARTMENT.equals(organizeEntity.getCategory())){
userInfo.setDepartmentId(organizeEntity.getId());
do {
//获取父组织
organizeEntity = organizeService.getInfo(organizeEntity.getParentId());
}while (PermissionConst.DEPARTMENT.equals(organizeEntity.getCategory()));
companyId = organizeEntity.getId();
}else{
companyId = organizeEntity.getId();
}
}
SubjectcreditrulesEntity subjectcreditrulesEntity = new SubjectcreditrulesEntity();
subjectcreditrulesEntity.setCompanyId(companyId);
subjectcreditrulesEntity.setBusinessType(businessType);
//查询同公司的最后一条审批通过的流程
List<SubjectcreditrulesEntity> list= subjectcreditrulesService.queryDefaultCreditrules(subjectcreditrulesEntity);
List<Map<String, Object>> realList=new ArrayList<>();
for (SubjectcreditrulesEntity entity : list) {
Map<String, Object> subjectcreditrulesMap=JsonUtil.entityToMap(entity);
subjectcreditrulesMap.put("id", subjectcreditrulesMap.get("id"));
//副表数据
//子表数据
List<SubjectcreditrulesscoreEntity> subjectcreditrulesscoreList = subjectcreditrulesService.getSubjectcreditrulesscoreList(entity.getId());
subjectcreditrulesMap.put("tableField107",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(subjectcreditrulesscoreList)));
realList.add(subjectcreditrulesMap);
}
//数据转换
realList = generaterSwapUtil.swapDataList(realList, SubjectcreditrulesConstant.getFormData(), SubjectcreditrulesConstant.getColumnData());
return ActionResult.success(realList);
}
}

@ -6,6 +6,8 @@ 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.base.entity.DictionaryDataEntity;
import jnpf.base.service.DictionaryDataService;
import jnpf.exception.DataException;
import jnpf.permission.entity.UserEntity;
import jnpf.service.*;
@ -70,7 +72,8 @@ public class SubjectfollowmanagementController {
@Autowired
private SubjectfollowmanagementService subjectfollowmanagementService;
@Autowired
private DictionaryDataService dictionaryDataService;
@Autowired
private SubjectbasicService subjectbasicService;
@ -93,8 +96,10 @@ public class SubjectfollowmanagementController {
SubjectbasicEntity subjectbasicEntity = subjectbasicService.getById(entity.getSubjectBasicId());
entity.setName(subjectbasicEntity.getName());
entity.setLogo(subjectbasicEntity.getLogo());
entity.setEnterpriseNature(subjectbasicEntity.getEnterpriseNature());
entity.setCustomerStarRating(subjectbasicEntity.getCustomerStarRating());
DictionaryDataEntity dictionaryEnterpriseNature = dictionaryDataService.getInfo(subjectbasicEntity.getEnterpriseNature());
DictionaryDataEntity dictionaryCustomerStarRating = dictionaryDataService.getInfo(subjectbasicEntity.getCustomerStarRating());
entity.setEnterpriseNature(dictionaryEnterpriseNature.getFullName());
entity.setCustomerStarRating(dictionaryCustomerStarRating.getFullName());
entity.setCalssify(subjectbasicEntity.getCalssify());
Map<String, Object> subjectfollowmanagementMap=JsonUtil.entityToMap(entity);
subjectfollowmanagementMap.put("id", subjectfollowmanagementMap.get("id"));

@ -9,7 +9,7 @@ import java.util.Date;
* @ V3.5
* @ https://www.jnpfsoft.com
* @ JNPF
* @ 2024-01-29
* @ 2024-02-04
*/
@Data
@TableName("jg_subject_contacts")
@ -18,6 +18,8 @@ public class ContactsEntity {
private String id;
@TableField(value = "SUBJECT_BASIC_ID" , updateStrategy = FieldStrategy.IGNORED)
private String subjectBasicId;
@TableField(value = "BUSINESS_TYPE" , updateStrategy = FieldStrategy.IGNORED)
private String businessType;
@TableField(value = "CONTACTS_TYPE" , updateStrategy = FieldStrategy.IGNORED)
private String contactsType;
@TableField(value = "LOGO" , updateStrategy = FieldStrategy.IGNORED)

@ -86,9 +86,9 @@ public class SubjectbasicEntity {
private Long demandVolumeDown;
@TableField(value = "DEMAND_VOLUME_UPPER" , updateStrategy = FieldStrategy.IGNORED)
private Long demandVolumeUpper;
@TableField("FUND_LIMIT")
@TableField(value = "FUND_LIMIT" , updateStrategy = FieldStrategy.IGNORED)
private Long fundLimit;
@TableField("TAX_BEARING_RATE")
@TableField(value = "TAX_BEARING_RATE" , updateStrategy = FieldStrategy.IGNORED)
private String taxBearingRate;
@TableField("BUSINESS_DATE")
private String businessDate;

@ -18,6 +18,8 @@ public class SubjectcontactsEntity {
private String id;
@TableField("SUBJECT_BASIC_ID")
private String subjectBasicId;
@TableField(value = "BUSINESS_TYPE" , updateStrategy = FieldStrategy.IGNORED)
private String businessType;
@TableField(value = "CONTACTS_TYPE" , updateStrategy = FieldStrategy.IGNORED)
private String contactsType;
@TableField(value = "LOGO" , updateStrategy = FieldStrategy.IGNORED)

@ -18,6 +18,8 @@ public class SubjectfollowmanagementEntity {
private String id;
@TableField(value = "SUBJECT_BASIC_ID" , updateStrategy = FieldStrategy.IGNORED)
private String subjectBasicId;
@TableField("BUSINESS_TYPE")
private String businessType;
@TableField(value = "TITLE" , updateStrategy = FieldStrategy.IGNORED)
private String title;
@TableField("ID_CARD")

@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* @ V3.5
* @ https://www.jnpfsoft.com
* @ JNPF
* @ 2024-01-29
* @ 2024-02-04
*/
@Data
public class ContactsForm {
@ -53,4 +53,7 @@ public class ContactsForm {
/** 附件 **/
@JsonProperty("annex")
private Object annex;
/** 类型 **/
@JsonProperty("businessType")
private String businessType;
}

@ -11,7 +11,7 @@ import java.util.List;
* @ V3.5
* @ https://www.jnpfsoft.com
* @ JNPF
* @ 2024-01-29
* @ 2024-02-04
*/
@Data
public class ContactsPagination extends Pagination {
@ -33,4 +33,7 @@ public class ContactsPagination extends Pagination {
/** 姓名 */
@JsonProperty("name")
private Object name;
/** 类型 */
@JsonProperty("businessType")
private Object businessType;
}

@ -14,7 +14,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* V3.5
* : https://www.jnpfsoft.com
* JNPF
* 2024-01-31
* 2024-02-04
*/
@Data
public class SubjectaccountperiodrulesModel {

@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* @ V3.5
* @ https://www.jnpfsoft.com
* @ JNPF
* @ 2024-01-31
* @ 2024-02-04
*/
@Data
public class SubjectaccountperiodrulesnoForm {
@ -32,4 +32,16 @@ public class SubjectaccountperiodrulesnoForm {
/** 业务类型 **/
@JsonProperty("businessType")
private String businessType;
/** 创建用户 **/
@JsonProperty("creatorUserId")
private String creatorUserId;
/** 创建时间 **/
@JsonProperty("creatorTime")
private String creatorTime;
/** 修改用户 **/
@JsonProperty("lastModifyUserId")
private String lastModifyUserId;
/** 修改时间 **/
@JsonProperty("lastModifyTime")
private String lastModifyTime;
}

@ -11,7 +11,7 @@ import java.util.List;
* @ V3.5
* @ https://www.jnpfsoft.com
* @ JNPF
* @ 2024-01-31
* @ 2024-02-04
*/
@Data
public class SubjectaccountperiodrulesnoPagination extends Pagination {

@ -224,4 +224,10 @@ public class SubjectbasicForm {
/** 完税证明超时限制2 **/
@JsonProperty("taxPaymentCertificate2")
private String taxPaymentCertificate2;
/** 授信额度 **/
@JsonProperty("fundLimit")
private String fundLimit;
/** 税负率 **/
@JsonProperty("taxBearingRate")
private String taxBearingRate;
}

@ -14,7 +14,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* V3.5
* : https://www.jnpfsoft.com
* JNPF
* 2024-02-01
* 2024-02-04
*/
@Data
public class SubjectcontactsModel {
@ -47,6 +47,9 @@ public class SubjectcontactsModel {
/** 地址 **/
@JSONField(name = "address")
private String address;
/** 类型 **/
@JSONField(name = "businessType")
private String businessType;
/** 附件 **/
@JSONField(name = "annex")
private Object annex;

@ -45,4 +45,11 @@ public class SubjectproductblacklistModel {
/** 允许超收比例 **/
@JSONField(name = "purchaseAllowOverchargingRatio")
private String purchaseAllowOverchargingRatio;
/** 开始时间 **/
@JSONField(name = "startTime")
private Long startTime;
/** 结束时间 **/
@JSONField(name = "endTime")
private Long endTime;
}

@ -14,7 +14,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* V3.5
* : https://www.jnpfsoft.com
* JNPF
* 2024-02-01
* 2024-02-04
*/
@Data
public class SubjectcreditratingModel {

@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* @ V3.5
* @ https://www.jnpfsoft.com
* @ JNPF
* @ 2024-02-01
* @ 2024-02-04
*/
@Data
public class SubjectcreditratingnoForm {
@ -32,4 +32,16 @@ public class SubjectcreditratingnoForm {
/** 业务类型 **/
@JsonProperty("businessType")
private String businessType;
/** 创建用户 **/
@JsonProperty("creatorUserId")
private String creatorUserId;
/** 创建时间 **/
@JsonProperty("creatorTime")
private String creatorTime;
/** 修改用户 **/
@JsonProperty("lastModifyUserId")
private String lastModifyUserId;
/** 修改时间 **/
@JsonProperty("lastModifyTime")
private String lastModifyTime;
}

@ -11,7 +11,7 @@ import java.util.List;
* @ V3.5
* @ https://www.jnpfsoft.com
* @ JNPF
* @ 2024-02-01
* @ 2024-02-04
*/
@Data
public class SubjectcreditratingnoPagination extends Pagination {

@ -65,4 +65,6 @@ public class SubjectfollowmanagementForm {
/** 报告附件 **/
@JsonProperty("reportannex")
private Object reportannex;
@JsonProperty("businessType")
private String businessType;
}

@ -33,4 +33,6 @@ public class SubjectfollowmanagementPagination extends Pagination {
/** 紧要程度 */
@JsonProperty("urgency")
private Object urgency;
@JsonProperty("businessType")
private Object businessType;
}

@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* @ V3.5
* @ https://www.jnpfsoft.com
* @ JNPF
* @ 2024-01-31
* @ 2024-02-04
*/
@Data
public class SubjectSettlementRulesForm {
@ -62,4 +62,16 @@ public class SubjectSettlementRulesForm {
/** 逾期月化上限 **/
@JsonProperty("overdueMonthlyUpper")
private String overdueMonthlyUpper;
/** 创建用户 **/
@JsonProperty("creatorUserId")
private String creatorUserId;
/** 创建时间 **/
@JsonProperty("creatorTime")
private String creatorTime;
/** 修改用户 **/
@JsonProperty("lastModifyUserId")
private String lastModifyUserId;
/** 修改时间 **/
@JsonProperty("lastModifyTime")
private String lastModifyTime;
}

@ -11,7 +11,7 @@ import java.util.List;
* @ V3.5
* @ https://www.jnpfsoft.com
* @ JNPF
* @ 2024-01-31
* @ 2024-02-04
*/
@Data
public class SubjectSettlementRulesPagination extends Pagination {

@ -14,5 +14,17 @@ export function queryDefaultAccountPeriodRules(businessType) {
method: 'GET'
})
}
// 查询默认信用等级规则
export function queryDefaultCreditrating(businessType) {
return request({
url: `/api/scm/Subjectcreditratingno/queryDefaultCreditrating/${businessType}`,
method: 'GET'
})
}
// 查询默认信用规则配置
export function queryDefaultCreditrules(businessType) {
return request({
url: `/api/scm/Subjectcreditrules/queryDefaultCreditrules/${businessType}`,
method: 'GET'
})
}

@ -173,6 +173,7 @@
logo : [],
contactsType : "2",
subjectBasicId : undefined,
businessType:'1',
name : undefined,
position : undefined,
companyName : undefined,

@ -155,6 +155,7 @@
detailVisible: false,
query: {
contactsType: undefined,
businessType: 1,
name: undefined,
},
treeProps: {

@ -0,0 +1,267 @@
<template>
<div class="CommonForm-container app-container nohead">
<div class="dataForm">
<el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="110px" class="mt-10">
<el-col :span="24">
<jnpf-form-tip-item>
<JnpfGroupTitle content="信用等级" contentPosition="left">
</JnpfGroupTitle>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<el-table :data="defaultCreditrating" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="信用级别" prop="creditRating">
<template slot="header">
<span class="required-sign">*</span>信用级别
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.creditRating" placeholder="请选择"
:disabled="true"
clearable :style='{"width":"100%"}' :options="subjectcreditratingcreditRatingOptions"
:props="subjectcreditratingcreditRatingProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="评定分数最低" prop="scoreDown">
<template slot="header">
<span class="required-sign">*</span>评定分数最低
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.scoreDown" placeholder="请输入"
:disabled="true"
addonAfter="分" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="评定分数最高" prop="scoreUpper">
<template slot="header">
<span class="required-sign">*</span>评定分数最高
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.scoreUpper" placeholder="请输入"
:disabled="true"
addonAfter="分" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="开始时间" prop="startTime">
<template slot="header">
<span class="required-sign">*</span>开始时间
</template>
<template slot-scope="scope">
<el-date-picker
v-model="scope.row.startTime"
type="date"
:disabled="true"
placeholder="选择日期" format="yyyy-MM-dd">
</el-date-picker>
</template>
</el-table-column>
<el-table-column label="结束时间" prop="endTime">
<template slot="header">
<span class="required-sign">*</span>结束时间
</template>
<template slot-scope="scope">
<el-date-picker
v-model="scope.row.endTime"
type="date"
:disabled="true"
placeholder="选择日期" format="yyyy-MM-dd">
</el-date-picker>
</template>
</el-table-column>
<el-table-column label="级别说明" prop="levelDescription">
<template slot="header">
<span class="required-sign" >*</span>级别说明
</template>
<template slot-scope="scope">
<JnpfTextarea v-model="scope.row.levelDescription" placeholder="请输入"
:disabled="true"
:style='{"width":"100%"}' true type="textarea" :autosize='{"minRows":4,"maxRows":4}'>
</JnpfTextarea>
</template>
</el-table-column>
<el-table-column label="附件" prop="annex">
<template slot="header">
<span class="required-sign">*</span>附件
</template>
<template slot-scope="scope">
<JnpfUploadFile v-model="scope.row.annex" :disabled="true"
tipText="支持格式:.rar .zip .doc .docx .pdf 单个文件不能超过20MB" :fileSize="10" sizeUnit="MB" :limit="9"
pathType="defaultPath" :isAccount="0" buttonText="点击上传">
</JnpfUploadFile>
</template>
</el-table-column>
</el-table>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<JnpfGroupTitle content="信用规则配置" contentPosition="left">
</JnpfGroupTitle>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<JNPF-table :data="defaultCreditrules"
:hasNO="false" class="ruleClass" :span-method="arraySpanMethod" border>
<el-table-column type="expand" width="40">
<template slot-scope="scope">
<el-table :data="scope.row.tableField107" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column prop="scoreDown" label="范围最低" width="175" />
<el-table-column prop="scoreUpper" label="范围最高" width="175" />
<el-table-column prop="score" label="计分" width="175" />
</el-table>
</template>
</el-table-column>
<el-table-column prop="categoryName" label="类目" width="150" />
<el-table-column prop="projectName" label="项目" width="150" />
<el-table-column prop="ruleDescription" label="说明" />
</JNPF-table>
</jnpf-form-tip-item>
</el-col>
</el-form>
</div>
<Form v-if="formVisible" ref="form" @refreshDataList="initData" />
</div>
</template>
<script>
import { CustomerList, GoodsList } from '@/api/extend/order'
import Form from '@/views/extend/order/GoodsBox'
import { queryDefaultCreditrating, queryDefaultCreditrules } from '@/api/extend/scm'
import {
getDictionaryDataSelector
} from '@/api/systemData/dictionary'
export default {
name: 'extend-formDemo-fieldForm5',
components: { Form },
data() {
return {
defaultCreditrating: [],
defaultCreditrules: [],
dataForm: {
CustomerName: '',
CustomerCode: '',
Goods: '',
GoodsCode: '',
Specifications: '',
Unit: '',
Price: '',
},
dataRule: {},
options: [],
formVisible: false,
subjectcreditratingcreditRatingOptions: [],
subjectcreditratingcreditRatingProps: {
"label": "fullName",
"value": "id"
},
}
},
created() {
this.init()
},
methods: {
init() {
getDictionaryDataSelector('517682237588636677').then(res => {
this.subjectcreditratingcreditRatingOptions = res.data.list
})
//
queryDefaultCreditrating('1').then(res => {
this.defaultCreditrating = res.data.subjectcreditratingList
})
queryDefaultCreditrules('1').then(res => {
this.defaultCreditrules = res.data
})
/* CustomerList().then(res => {
this.options = res.data.list
}) */
},
dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
// this.$message({
// message: '',
// type: 'success',
// duration: 1500,
// })
}
})
},
handleChange(val) { },
choice() {
this.formVisible = true
this.$nextTick(() => {
this.$refs.form.init()
})
},
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 1) {
const cellValue = row[column.property]
const prevRow = this.defaultCreditrules[rowIndex - 1]
let nextRow = this.defaultCreditrules[rowIndex + 1]
if (prevRow && prevRow[column.property] === cellValue) {
return { rowspan: 0, colspan: 0 }
} else {
let countRowspan = 1
while (nextRow && nextRow[column.property] === cellValue) {
nextRow = this.defaultCreditrules[++countRowspan + rowIndex]
}
if (countRowspan > 1) {
return { rowspan: countRowspan, colspan: 1 }
}
}
}
},
initData(list) {
let GoodsList = [], GoodsCodeList = [], SpecificationsList = [], UnitList = [], Price = []
for (let i = 0; i < list.length; i++) {
const e = list[i];
GoodsList.push(e.text)
GoodsCodeList.push(e.code)
SpecificationsList.push(e.specifications)
UnitList.push(e.unit)
Price.push(e.price)
}
this.dataForm.Goods = GoodsList.join(',')
this.dataForm.GoodsCode = GoodsCodeList.join(',')
this.dataForm.Specifications = SpecificationsList.join(',')
this.dataForm.Unit = UnitList.join(',')
this.dataForm.Price = Price.join(',')
}
}
}
</script>
<style lang="scss" scoped>
.app-container {
height: auto;
overflow: auto;
}
.CommonForm-container {
.JNPF-common-head {
height: 50px;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
}
.dataForm {
flex: 1;
overflow: auto;
.el-input {
width: 300px;
}
.tip {
margin-left: 10px;
color: darkgray;
}
}
.ruleClass ::v-deep .el-table__body-wrapper{
height: auto !important;
}
}
</style>

@ -0,0 +1,366 @@
<template>
<div class="CommonForm-container app-container nohead">
<div class="dataForm">
<el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="110px" class="mt-10">
<el-col :span="24">
<jnpf-form-tip-item>
<JnpfGroupTitle content="结算规则" contentPosition="left">
</JnpfGroupTitle>
</jnpf-form-tip-item>
</el-col>
<el-col :span="12">
<el-form-item label="压款金额" class="mt-10">
<el-input v-model="defaultSettlementRules.underpaymentAmountDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append"></template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.underpaymentAmountUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="压款比例" class="mt-10">
<el-input v-model="defaultSettlementRules.underpaymentRateDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.underpaymentRateUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="保证金金额" class="mt-10">
<el-input v-model="defaultSettlementRules.marginAmountDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append"></template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.marginAmountUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="保证金比例" class="mt-10">
<el-input v-model="defaultSettlementRules.marginRateDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.marginRateUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="逾期年化" class="mt-10">
<el-input v-model="defaultSettlementRules.overdueAnnualizedDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.overdueAnnualizedUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="逾期月化" class="mt-10">
<el-input v-model="defaultSettlementRules.overdueMonthlyDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.overdueMonthlyUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<JnpfGroupTitle content="账期规则" contentPosition="left">
</JnpfGroupTitle>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<el-table :data="defaultAccountPeriodRules" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="信用级别" width="100"
prop="creditRating">
<template slot="header">
<span class="required-sign" >*</span>信用级别
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.creditRating" placeholder="请选择"
:disabled="true"
clearable :style='{"width":"100%"}' :options="subjectaccountperiodrulescreditRatingOptions"
:props="subjectaccountperiodrulescreditRatingProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="合作方式" width="100"
prop="cooperateType">
<template slot="header">
<span class="required-sign">*</span>合作方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.cooperateType" placeholder="请选择"
:disabled="true"
clearable :style='{"width":"100%"}' :options="subjectaccountperiodrulescooperateTypeOptions"
:props="subjectaccountperiodrulescooperateTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="结算方式" width="150"
prop="settlementType">
<template slot="header">
<span class="required-sign" >*</span>结算方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.settlementType" placeholder="请选择"
:disabled="true"
clearable :style='{"width":"100%"}' :options="subjectaccountperiodrulessettlementTypeOptions"
:props="subjectaccountperiodrulessettlementTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="预付比例"
prop="advanceRatioDown">
<template slot="header">
<span class="required-sign" >*</span>预付比例(%)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.advanceRatioDown" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
<label></label>
<JnpfInput v-model="scope.row.advanceRatioUpper" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="账期"
prop="accountPeriodDown">
<template slot="header">
<span class="required-sign" >*</span>账期()
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.accountPeriodDown" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
<label></label>
<JnpfInput v-model="scope.row.accountPeriodUpper"
placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="授信额度"
prop="fundLimitDown">
<template slot="header">
<span class="required-sign" >*</span>授信额度()
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.fundLimitDown" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
<label></label>
<JnpfInput v-model="scope.row.fundLimitUpper" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="开始时间" width="160" prop="startTime">
<template slot="header">
<span class="required-sign" >*</span>开始时间
</template>
<template slot-scope="scope">
<el-date-picker
v-model="scope.row.startTime"
type="date"
:disabled="true"
placeholder="选择日期" format="yyyy-MM-dd">
</el-date-picker>
</template>
</el-table-column>
<el-table-column label="结束时间" width="160" prop="endTime">
<template slot="header">
<span class="required-sign" >*</span>结束时间
</template>
<template slot-scope="scope">
<el-date-picker
v-model="scope.row.endTime"
type="date"
:disabled="true"
placeholder="选择日期" format="yyyy-MM-dd">
</el-date-picker>
</template>
</el-table-column>
<el-table-column label="规则说明" width="200"
prop="ruleDescription">
<template slot="header">
<span class="required-sign" >*</span>规则说明
</template>
<template slot-scope="scope">
<JnpfTextarea v-model="scope.row.ruleDescription" placeholder="请输入"
:disabled="true"
:style='{"width":"100%"}' true type="textarea" :autosize='{"minRows":4,"maxRows":4}'>
</JnpfTextarea>
</template>
</el-table-column>
</el-table>
</jnpf-form-tip-item>
</el-col>
</el-form>
</div>
<Form v-if="formVisible" ref="form" @refreshDataList="initData" />
</div>
</template>
<script>
import { CustomerList, GoodsList } from '@/api/extend/order'
import Form from '@/views/extend/order/GoodsBox'
import { queryDefaultSettlementRules, queryDefaultAccountPeriodRules } from '@/api/extend/scm'
export default {
name: 'extend-formDemo-fieldForm5',
components: { Form },
data() {
return {
defaultSettlementRules: {},
defaultAccountPeriodRules: [],
dataForm: {
CustomerName: '',
CustomerCode: '',
Goods: '',
GoodsCode: '',
Specifications: '',
Unit: '',
Price: '',
},
dataRule: {},
options: [],
formVisible: false,
subjectaccountperiodrulescreditRatingOptions: [{
"fullName": "一星",
"id": "1"
}, {
"fullName": "二星",
"id": "2"
}, {
"fullName": "三星",
"id": "3"
}, {
"fullName": "四星",
"id": "4"
}, {
"fullName": "五星",
"id": "5"
}],
subjectaccountperiodrulescreditRatingProps: {
"label": "fullName",
"value": "id"
},
subjectaccountperiodrulescooperateTypeOptions: [{
"fullName": "买断",
"id": "1"
}, {
"fullName": "联营",
"id": "2"
}],
subjectaccountperiodrulescooperateTypeProps: {
"label": "fullName",
"value": "id"
},
subjectaccountperiodrulessettlementTypeOptions: [{
"fullName": "先货后款",
"id": "1"
}, {
"fullName": "先款后货",
"id": "2"
}],
subjectaccountperiodrulessettlementTypeProps: {
"label": "fullName",
"value": "id"
},
}
},
created() {
this.init()
},
methods: {
init() {
//
queryDefaultSettlementRules('1').then(res => {
this.defaultSettlementRules = res.data
})
queryDefaultAccountPeriodRules('1').then(res => {
debugger
this.defaultAccountPeriodRules = res.data.tableField102
})
/* CustomerList().then(res => {
this.options = res.data.list
}) */
},
dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
// this.$message({
// message: '',
// type: 'success',
// duration: 1500,
// })
}
})
},
handleChange(val) { },
choice() {
this.formVisible = true
this.$nextTick(() => {
this.$refs.form.init()
})
},
initData(list) {
let GoodsList = [], GoodsCodeList = [], SpecificationsList = [], UnitList = [], Price = []
for (let i = 0; i < list.length; i++) {
const e = list[i];
GoodsList.push(e.text)
GoodsCodeList.push(e.code)
SpecificationsList.push(e.specifications)
UnitList.push(e.unit)
Price.push(e.price)
}
this.dataForm.Goods = GoodsList.join(',')
this.dataForm.GoodsCode = GoodsCodeList.join(',')
this.dataForm.Specifications = SpecificationsList.join(',')
this.dataForm.Unit = UnitList.join(',')
this.dataForm.Price = Price.join(',')
}
}
}
</script>
<style lang="scss" scoped>
.CommonForm-container {
.JNPF-common-head {
height: 50px;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
}
.dataForm {
flex: 1;
overflow: auto;
.el-input {
width: 300px;
}
.tip {
margin-left: 10px;
color: darkgray;
}
}
}
</style>

@ -1384,6 +1384,8 @@
companyNameOptions: [],
emaile: '',
emaileOptions: [],
businessType : '',
businessTypeOptions:[],
address: '',
addressOptions: [],
annex: [],
@ -2006,6 +2008,7 @@
subjectcontactscompanyName: [],
subjectcontactsemaile: [],
subjectcontactsaddress: [],
subjectcontactsbusinessType: [],
subjectcontactsannex: [],
subjectproductblacklistproductId: [],
subjectproductblacklistname: [],
@ -2500,6 +2503,7 @@
companyName: undefined,
emaile: undefined,
address: undefined,
businessType:'1',
annex: [],
}
this.getsubjectcontactsList(item)

@ -88,6 +88,9 @@
</el-button>
<el-button size="mini" type="text" :disabled="!scope.row.flowState"
@click="updateHandle(scope.row,scope.row.flowState)">详情</el-button>
<el-button type="text" :disabled="!scope.row.flowState"
@click="updateBusinessConfigHandle(scope.row)" v-has="'btn_edit'">业务配置
</el-button>
</template>
</el-table-column>
</JNPF-table>
@ -101,6 +104,7 @@
<FlowBox v-if="flowVisible" ref="FlowBox" @close="colseFlow" />
<FlowBusinessConfigBox v-if="flowBusinessConfigVisible" ref="FlowBusinessConfigBox" @close="colseFlow" />
<el-dialog title="请选择流程" :close-on-click-modal="false" append-to-body :visible.sync="flowListVisible"
class="JNPF-dialog template-dialog JNPF-dialog_center" lock-scroll width="400px">
<el-scrollbar class="template-list">
@ -131,6 +135,7 @@
getFlowList
} from '@/api/workFlow/FlowEngine'
import FlowBox from '@/views/workFlow/components/FlowBox'
import FlowBusinessConfigBox from '@/views/workFlow/components/FlowBusinessConfigBox'
import ExportBox from '@/components/ExportBox'
import ToFormDetail from '@/views/basic/dynamicModel/list/detail'
import {
@ -155,6 +160,7 @@
export default {
components: {
FlowBox,
FlowBusinessConfigBox,
ExportBox,
ToFormDetail,
SuperQuery
@ -202,6 +208,7 @@
},
formVisible: false,
flowVisible: false,
flowBusinessConfigVisible: false,
flowListVisible: false,
flowList: [],
exportBoxVisible: false,
@ -738,6 +745,18 @@
this.$refs.FlowBox.init(data)
})
},
updateBusinessConfigHandle(row, flowState) {
let data = {
id: row.id,
flowId: row.flowId || this.flowList[0].id,
opType: flowState ? 0 : '-1',
status: flowState
}
this.flowBusinessConfigVisible = true
this.$nextTick(() => {
this.$refs.FlowBusinessConfigBox.init(data)
})
},
toApprovalDetail(row) {
let data = {
id: row.id,
@ -786,6 +805,7 @@
},
colseFlow(isrRefresh) {
this.flowVisible = false
this.flowBusinessConfigVisible = false
if (isrRefresh) this.reset()
},
}

@ -46,6 +46,14 @@
@selection-change="handleSelectionChange" :span-method="arraySpanMethod">
<el-table-column prop="businessNo" label="单据号" align="left">
</el-table-column>
<el-table-column prop="creatorTime" label="创建时间" align="left">
</el-table-column>
<el-table-column prop="creatorUserId" label="创建人" align="left">
</el-table-column>
<el-table-column prop="lastModifyTime" label="更新时间" align="left">
</el-table-column>
<el-table-column prop="lastModifyUserId" label="更新人" align="left">
</el-table-column>
<el-table-column prop="flowState" label="状态" width="100">
<template slot-scope="scope" v-if="!scope.row.top">
<el-tag v-if="scope.row.flowState==1"></el-tag>

@ -210,6 +210,7 @@
responsible: undefined,
partake: [],
urgency: "4",
businessType:'1',
description: undefined,
annex: [],
reportType: "1",

@ -190,6 +190,7 @@
query: {
title: undefined,
urgency: undefined,
businessType:'1',
},
treeProps: {
children: 'children',

@ -0,0 +1,176 @@
<template>
<el-dialog title="详情"
:close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
<template v-if="!loading">
<el-col :span="24" >
<jnpf-form-tip-item label="联系人头像"
prop="logo" >
<JnpfUploadImg v-model="dataForm.logo"
disabled
detailed :fileSize="10" sizeUnit="MB" :limit="1" pathType="defaultPath" :isAccount="0" >
</JnpfUploadImg>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="联系人类型"
prop="contactsType" >
<p>{{ dataForm.contactsType }} </p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="关联客户"
prop="subjectBasicId" >
<p>{{dataForm.subjectBasicId}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="姓名"
prop="name" >
<p>{{dataForm.name}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="职务"
prop="position" >
<p>{{dataForm.position}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="公司"
prop="companyName" >
<p>{{dataForm.companyName}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="手机"
prop="mobile" >
<p>{{dataForm.mobile}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="电话"
prop="phone" >
<p>{{dataForm.phone}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="邮箱"
prop="emaile" >
<p>{{dataForm.emaile}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="地址"
prop="address" >
<p>{{dataForm.address}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="是否星标"
prop="markColor" >
<p>{{dataForm.markColor}}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item label="附件"
prop="annex" >
<JnpfUploadFile v-model="dataForm.annex"
disabled
detailed :fileSize="10" sizeUnit="MB" :limit="9" pathType="defaultPath" :isAccount="0" buttonText="点击上传" >
</JnpfUploadFile>
</jnpf-form-tip-item>
</el-col>
</template>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button>
</span>
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
</el-dialog>
</template>
<script>
import request from '@/utils/request'
import { getConfigData } from '@/api/onlineDev/visualDev'
import jnpf from '@/utils/jnpf'
import Detail from '@/views/basic/dynamicModel/list/detail'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { Detail},
props: [],
data() {
return {
visible: false,
detailVisible: false,
loading: false,
dataForm: {
id :'',
logo : [],
contactsType : "2",
subjectBasicId : "",
name : '',
position : '',
companyName : '',
mobile : '',
phone : '',
emaile : '',
address : '',
markColor : 0,
annex : [],
},
contactsTypeOptions:[{"fullName":"默认","id":"1"},{"fullName":"联系人","id":"2"}],
contactsTypeProps:{"label":"fullName","value":"id" },
}
},
computed: {},
watch: {},
created() {
},
mounted() {},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(formData, modelId, defaultValue)
})
})
},
dataInfo(dataAll){
let _dataAll =dataAll
this.dataForm = _dataAll
},
init(id) {
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if(this.dataForm.id){
this.loading = true
request({
url: '/api/scm/Contacts/detail/'+this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
})
}
})
},
},
}
</script>

File diff suppressed because one or more lines are too long

@ -0,0 +1,574 @@
<template>
<el-dialog :title="!dataForm.id ? '新建' :'编辑'"
:close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
width="1000px">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px" label-position="right" >
<template v-if="!loading">
<!-- 具体表单 -->
<el-col :span="24" >
<jnpf-form-tip-item
label="联系人头像" prop="logo" >
<JnpfUploadImg v-model="dataForm.logo" @change="changeData('logo',-1)"
:fileSize="10" sizeUnit="MB" :limit="1" pathType="defaultPath" :isAccount="0" >
</JnpfUploadImg>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="联系人类型" prop="contactsType" >
<JnpfSelect v-model="dataForm.contactsType" @change="changeData('contactsType',-1)"
placeholder="请选择" clearable :style='{"width":"100%"}' :options="contactsTypeOptions" :props="contactsTypeProps" >
</JnpfSelect>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="关联客户" prop="subjectBasicId" >
<JnpfPopupSelect v-model="dataForm.subjectBasicId" @change="changeData('subjectBasicId',-1)"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.subjectBasicId" placeholder="请选择" propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name' field='subjectBasicId' interfaceId="520962013808039429" :pageSize="20" :columnOptions="subjectBasicIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="姓名" prop="name" >
<JnpfInput v-model="dataForm.name" @change="changeData('name',-1)"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="职务" prop="position" >
<JnpfInput v-model="dataForm.position" @change="changeData('position',-1)"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="公司" prop="companyName" >
<JnpfInput v-model="dataForm.companyName" @change="changeData('companyName',-1)"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="手机" prop="mobile" >
<JnpfInput v-model="dataForm.mobile" @change="changeData('mobile',-1)"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="电话" prop="phone" >
<JnpfInput v-model="dataForm.phone" @change="changeData('phone',-1)"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="邮箱" prop="emaile" >
<JnpfInput v-model="dataForm.emaile" @change="changeData('emaile',-1)"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="地址" prop="address" >
<JnpfInput v-model="dataForm.address" @change="changeData('address',-1)"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="是否星标" prop="markColor" >
<JnpfSwitch v-model="dataForm.markColor" @change="changeData('markColor',-1)"
:active-value="1" :inactive-value="0" >
</JnpfSwitch>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" >
<jnpf-form-tip-item
label="附件" prop="annex" >
<JnpfUploadFile v-model="dataForm.annex" @change="changeData('annex',-1)"
:fileSize="10" sizeUnit="MB" :limit="9" pathType="defaultPath" :isAccount="0" buttonText="点击上传" >
</JnpfUploadFile>
</jnpf-form-tip-item>
</el-col>
<!-- 表单结束 -->
</template>
</el-form>
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm"
ref="selectDialog" @select="addForSelect" @close="selectDialogVisible=false"/>
</el-row>
<span slot="footer" class="dialog-footer">
<div class="upAndDown-button" v-if="dataForm.id">
<el-button @click="prev" :disabled='prevDis'>
{{'上一条'}}
</el-button>
<el-button @click="next" :disabled='nextDis'>
{{'下一条'}}
</el-button>
</div>
<el-button type="primary" @click="dataFormSubmit(2)" :loading="continueBtnLoading">
{{!dataForm.id ?'确定并新增':'确定并继续'}}</el-button>
<el-button @click="visible = false"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading"> </el-button>
</span>
</el-dialog>
</template>
<script>
import request from '@/utils/request'
import {mapGetters} from "vuex";
import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
import { getDefaultCurrentValueUserId } from '@/api/permission/user'
import { getDefaultCurrentValueDepartmentId } from '@/api/permission/organize'
import { getDateDay, getLaterData, getBeforeData, getBeforeTime, getLaterTime } from '@/components/Generator/utils/index.js'
import { thousandsFormat } from "@/components/Generator/utils/index"
export default {
components: { },
props: [],
data() {
return {
dataFormSubmitType: 0,
continueBtnLoading: false,
index: 0,
prevDis: false,
nextDis: false,
allList: [],
visible: false,
loading: false,
btnLoading: false,
formRef: 'formRef',
setting:{},
eventType: '',
userBoxVisible:false,
selectDialogVisible: false,
currTableConf:{},
dataValueAll:{},
addTableConf:{
},
//
ableAll:{
},
tableRows:{
},
Vmodel:"",
currVmodel:"",
dataForm: {
logo : [],
contactsType : "2",
subjectBasicId : undefined,
businessType:'1',
name : undefined,
position : undefined,
companyName : undefined,
mobile : undefined,
phone : undefined,
emaile : undefined,
address : undefined,
markColor : 0,
annex : [],
},
tableRequiredData: {},
dataRule:
{
subjectBasicId: [
{
required: true,
message: '请选择',
trigger: 'change'
},
],
name: [
{
required: true,
message: '请输入',
trigger: 'blur'
},
],
position: [
{
required: true,
message: '请输入',
trigger: 'blur'
},
],
companyName: [
{
required: true,
message: '请输入',
trigger: 'blur'
},
],
mobile: [
{
required: true,
message: '请输入',
trigger: 'blur'
},
{
pattern: /^1[3456789]\d{9}$|^0\d{2,3}-?\d{7,8}$/,
message: '请输入正确的联系方式',
trigger: 'blur'
},
],
phone: [
{
required: true,
message: '请输入',
trigger: 'blur'
},
{
pattern: /^1[3456789]\d{9}$|^0\d{2,3}-?\d{7,8}$/,
message: '请输入正确的联系方式',
trigger: 'blur'
},
],
emaile: [
{
required: true,
message: '请输入',
trigger: 'blur'
},
{
pattern: /^[a-z0-9]+([._\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,
message: '请输入正确的邮箱',
trigger: 'blur'
},
],
address: [
{
required: true,
message: '请输入',
trigger: 'blur'
},
],
},
contactsTypeOptions:[{"fullName":"默认","id":"1"},{"fullName":"联系人","id":"2"}],
contactsTypeProps:{"label":"fullName","value":"id" },
subjectBasicIdcolumnOptions:[ {"label":"客户名称","value":"name"}, {"label":"客户编码","value":"code"},],
childIndex:-1,
isEdit:false,
interfaceRes: {
logo:[] ,
contactsType:[] ,
subjectBasicId:[] ,
name:[] ,
position:[] ,
companyName:[] ,
mobile:[] ,
phone:[] ,
emaile:[] ,
address:[] ,
markColor:[] ,
annex:[] ,
},
}
},
computed: {
...mapGetters(['userInfo'])
},
watch: {},
created() {
this.dataAll()
this.initDefaultData()
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
},
mounted() {},
methods: {
prev() {
this.index--
if (this.index === 0) {
this.prevDis = true
}
this.nextDis = false
for (let index = 0; index < this.allList.length; index++) {
const element = this.allList[index];
if (this.index == index) {
this.getInfo(element.id)
}
}
},
next() {
this.index++
if (this.index === this.allList.length - 1) {
this.nextDis = true
}
this.prevDis = false
for (let index = 0; index < this.allList.length; index++) {
const element = this.allList[index];
if (this.index == index) {
this.getInfo(element.id)
}
}
},
getInfo(id) {
request({
url: '/api/scm/Contacts/'+ id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
});
},
goBack() {
this.visible = false
this.$emit('refreshDataList', true)
},
changeData(model, index) {
this.isEdit = false
this.childIndex = index
let modelAll = model.split("-");
let faceMode = "";
for (let i = 0; i < modelAll.length; i++) {
faceMode += modelAll[i];
}
for (let key in this.interfaceRes) {
if (key != faceMode) {
let faceReList = this.interfaceRes[key]
for (let i = 0; i < faceReList.length; i++) {
if (faceReList[i].relationField == model) {
let options = 'get' + key + 'Options';
if(this[options]){
this[options]()
}
this.changeData(key, index)
}
}
}
}
},
changeDataFormData(type, data, model,index,defaultValue) {
if(!this.isEdit) {
if (type == 2) {
for (let i = 0; i < this.dataForm[data].length; i++) {
if (index == -1) {
this.dataForm[data][i][model] = defaultValue
} else if (index == i) {
this.dataForm[data][i][model] = defaultValue
}
}
} else {
this.dataForm[data] = defaultValue
}
}
},
dataAll(){
},
clearData(){
this.dataForm = JSON.parse(JSON.stringify(this.dataValueAll))
},
init(id,isDetail,allList) {
this.prevDis = false
this.nextDis = false
this.allList = allList || []
if (allList.length) {
this.index = this.allList.findIndex(item => item.id === id)
if (this.index == 0) {
this.prevDis = true
}
if (this.index == this.allList.length - 1) {
this.nextDis = true
}
} else {
this.prevDis = true
this.nextDis = true
}
this.dataForm.id = id || 0;
this.visible = true;
this.$nextTick(() => {
if(this.dataForm.id){
this.loading = true
request({
url: '/api/scm/Contacts/'+this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
});
}else{
this.clearData()
this.initDefaultData()
}
});
this.$store.commit('generator/UPDATE_RELATION_DATA', {})
},
//
initDefaultData() {
},
//
dataFormSubmit(type) {
this.dataFormSubmitType = type ? type : 0
this.$refs['formRef'].validate((valid) => {
if (valid) {
this.request()
}
})
},
request() {
let _data =this.dataList()
if (this.dataFormSubmitType == 2) {
this.continueBtnLoading = true
} else {
this.btnLoading = true
}
if (!this.dataForm.id) {
request({
url: '/api/scm/Contacts',
method: 'post',
data: _data
}).then((res) => {
this.$message({
message: res.msg,
type: 'success',
duration: 1000,
onClose: () => {
if (this.dataFormSubmitType == 2) {
this.$nextTick(() => {
this.clearData()
this.initDefaultData()
})
this.continueBtnLoading = false
return
}
this.visible = false
this.btnLoading = false
this.$emit('refresh', true)
}
})
}).catch(()=>{
this.btnLoading = false
this.continueBtnLoading = false
})
}else{
request({
url: '/api/scm/Contacts/'+this.dataForm.id,
method: 'PUT',
data: _data
}).then((res) => {
this.$message({
message: res.msg,
type: 'success',
duration: 1000,
onClose: () => {
if (this.dataFormSubmitType == 2) return this.continueBtnLoading = false
this.visible = false
this.btnLoading = false
this.$emit('refresh', true)
}
})
}).catch(()=>{
this.btnLoading = false
this.continueBtnLoading = false
})
}
},
openSelectDialog(key) {
this.currTableConf=this.addTableConf[key]
this.currVmodel=key
this.selectDialogVisible = true
this.$nextTick(() => {
this.$refs.selectDialog.init()
})
},
addForSelect(data) {
for (let i = 0; i < data.length; i++) {
let t = data[i]
if(this['get'+this.currVmodel]){
this['get'+this.currVmodel](t)
}
}
},
dateTime(timeRule, timeType, timeTarget, timeValueData, dataValue) {
let timeDataValue = null;
let timeValue = Number(timeValueData)
if (timeRule) {
if (timeType == 1) {
timeDataValue = timeValue
} else if (timeType == 2) {
timeDataValue = dataValue
} else if (timeType == 3) {
timeDataValue = new Date().getTime()
} else if (timeType == 4) {
let previousDate = '';
if (timeTarget == 1 || timeTarget == 2) {
previousDate = getDateDay(timeTarget, timeType, timeValue)
timeDataValue = new Date(previousDate).getTime()
} else if (timeTarget == 3) {
previousDate = getBeforeData(timeValue)
timeDataValue = new Date(previousDate).getTime()
} else {
timeDataValue = getBeforeTime(timeTarget, timeValue).getTime()
}
} else if (timeType == 5) {
let previousDate = '';
if (timeTarget == 1 || timeTarget == 2) {
previousDate = getDateDay(timeTarget, timeType, timeValue)
timeDataValue = new Date(previousDate).getTime()
} else if (timeTarget == 3) {
previousDate = getLaterData(timeValue)
timeDataValue = new Date(previousDate).getTime()
} else {
timeDataValue = getLaterTime(timeTarget, timeValue).getTime()
}
}
}
return timeDataValue;
},
time(timeRule, timeType, timeTarget, timeValue, formatType, dataValue) {
let format = formatType == 'HH:mm' ? 'HH:mm:00' : formatType
let timeDataValue = null
if (timeRule) {
if (timeType == 1) {
timeDataValue = timeValue || '00:00:00'
if (timeDataValue.split(':').length == 3) {
timeDataValue = timeDataValue
} else {
timeDataValue = timeDataValue + ':00'
}
} else if (timeType == 2) {
timeDataValue = dataValue
} else if (timeType == 3) {
timeDataValue = this.jnpf.toDate(new Date(), format)
} else if (timeType == 4) {
let previousDate = '';
previousDate = getBeforeTime(timeTarget, timeValue)
timeDataValue = this.jnpf.toDate(previousDate, format)
} else if (timeType == 5) {
let previousDate = '';
previousDate = getLaterTime(timeTarget, timeValue)
timeDataValue = this.jnpf.toDate(previousDate, format)
}
}
return timeDataValue;
},
dataList(){
var _data = this.dataForm;
return _data;
},
dataInfo(dataAll){
let _dataAll =dataAll
this.dataForm = _dataAll
this.isEdit = true
this.dataAll()
this.childIndex=-1
},
},
}
</script>

@ -0,0 +1,526 @@
<template>
<div class="JNPF-common-layout">
<div class="JNPF-common-layout-center">
<el-row class="JNPF-common-search-box" :gutter="16">
<el-form @submit.native.prevent>
<el-col :span="6">
<el-form-item label="联系人类型">
<JnpfSelect v-model="query.contactsType" placeholder="请选择" clearable :options="contactsTypeOptions"
:props="contactsTypeProps">
</JnpfSelect>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="姓名">
<el-input v-model="query.name" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="search()"></el-button>
<el-button icon="el-icon-refresh-right" @click="reset()"></el-button>
</el-form-item>
</el-col>
</el-form>
</el-row>
<div class="JNPF-common-layout-main JNPF-flex-main">
<div class="JNPF-common-head">
<div>
<el-button type="primary" icon="icon-ym icon-ym-btn-add" v-has="'btn_add'" @click="addOrUpdateHandle()">
</el-button>
<el-button type="text" icon="icon-ym icon-ym-btn-download" @click="exportData()" v-has="'btn_download'">
</el-button>
<el-button type="text" icon="icon-ym icon-ym-btn-clearn" @click="handleBatchRemoveDel()"
v-has="'btn_batchRemove'">批量删除
</el-button>
</div>
<div class="JNPF-common-head-right">
<el-tooltip content="高级查询" placement="top" v-if="true">
<el-link icon="icon-ym icon-ym-filter JNPF-common-head-icon" :underline="false"
@click="openSuperQuery()" />
</el-tooltip>
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="initData()" />
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c
@selection-change="handleSelectionChange" :span-method="arraySpanMethod">
<el-table-column label="联系人类型" prop="contactsType" algin="left">
<template slot-scope="scope">
{{ scope.row.contactsType}}
</template>
</el-table-column>
<el-table-column prop="name" label="姓名" align="left">
</el-table-column>
<el-table-column prop="subjectBasicId" label="所属客户" align="left">
</el-table-column>
<el-table-column prop="position" label="职务" align="left">
</el-table-column>
<el-table-column prop="companyName" label="公司" align="left">
</el-table-column>
<el-table-column prop="mobile" label="手机" align="left">
</el-table-column>
<el-table-column prop="phone" label="电话" align="left">
</el-table-column>
<el-table-column prop="emaile" label="邮箱" align="left">
</el-table-column>
<el-table-column prop="address" label="地址" align="left">
</el-table-column>
<el-table-column prop="markColor" label="是否星标" align="left">
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row)" v-has="'btn_edit'">
</el-button>
<el-button type="text" class="JNPF-table-delBtn" v-has="'btn_remove'" @click="handleDel(scope.row.id)">
</el-button>
<el-button type="text" v-has="'btn_detail'" @click="goDetail(scope.row.id)">
</el-button>
</template>
</el-table-column>
</JNPF-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>
</div>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
<ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData" />
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false" />
<ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail" @close="toFormDetailVisible = false" />
<SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson" @superQuery="superQuery" />
</div>
</template>
<script>
import request from '@/utils/request'
import {
mapGetters
} from "vuex";
import {
getDictionaryDataSelector
} from '@/api/systemData/dictionary'
import JNPFForm from './form'
import Detail from './Detail'
import ExportBox from '@/components/ExportBox'
import ToFormDetail from '@/views/basic/dynamicModel/list/detail'
import {
getDataInterfaceRes
} from '@/api/systemData/dataInterface'
import {
getConfigData
} from '@/api/onlineDev/visualDev'
import {
getDefaultCurrentValueUserIdAsync
} from '@/api/permission/user'
import {
getDefaultCurrentValueDepartmentIdAsync
} from '@/api/permission/organize'
import columnList from './columnList'
import {
thousandsFormat
} from "@/components/Generator/utils/index"
import SuperQuery from '@/components/SuperQuery'
import superQueryJson from './superQueryJson'
export default {
components: {
JNPFForm,
Detail,
ExportBox,
ToFormDetail,
SuperQuery
},
data() {
return {
keyword: '',
expandsTree: true,
refreshTree: true,
toFormDetailVisible: false,
expandObj: {},
columnOptions: [],
mergeList: [],
exportList: [],
columnList,
superQueryVisible: false,
superQueryJson,
uploadBoxVisible: false,
detailVisible: false,
query: {
contactsType: undefined,
businessType: 1,
name: undefined,
},
treeProps: {
children: 'children',
label: 'fullName',
value: 'id',
isLeaf: 'isLeaf'
},
list: [],
listLoading: true,
multipleSelection: [],
total: 0,
queryData: {},
listQuery: {
superQueryJson: '',
currentPage: 1,
pageSize: 20,
sort: "desc",
sidx: "",
},
formVisible: false,
flowVisible: false,
flowListVisible: false,
flowList: [],
exportBoxVisible: false,
contactsTypeOptions: [{
"fullName": "默认",
"id": "1"
}, {
"fullName": "联系人",
"id": "2"
}],
contactsTypeProps: {
"label": "fullName",
"value": "id"
},
interfaceRes: {
subjectBasicId: [],
},
}
},
computed: {
...mapGetters(['userInfo']),
menuId() {
return this.$route.meta.modelId || ''
}
},
created() {
this.getColumnList(),
this.initSearchDataAndListData()
this.queryData = JSON.parse(JSON.stringify(this.query))
},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.toFormDetailVisible = true
this.$nextTick(() => {
this.$refs.toFormDetail.init(formData, modelId, defaultValue)
})
})
},
toggleTreeExpand(expands) {
this.refreshTree = false
this.expandsTree = expands
this.$nextTick(() => {
this.refreshTree = true
this.$nextTick(() => {
this.$refs.treeBox.setCurrentKey(null)
})
})
},
filterNode(value, data) {
if (!value) return true;
return data[this.treeProps.label].indexOf(value) !== -1;
},
loadNode(node, resolve) {
const nodeData = node.data
const config = {
treeInterfaceId: "",
treeTemplateJson: []
}
if (config.treeInterfaceId) {
//
if (config.treeTemplateJson && config.treeTemplateJson.length) {
for (let i = 0; i < config.treeTemplateJson.length; i++) {
const element = config.treeTemplateJson[i];
element.defaultValue = nodeData[element.relationField] || ''
}
}
//
let query = {
paramList: config.treeTemplateJson || [],
}
//
getDataInterfaceRes(config.treeInterfaceId, query).then(res => {
let data = res.data
if (Array.isArray(data)) {
resolve(data);
} else {
resolve([]);
}
})
}
},
getColumnList() {
//
this.columnOptions = this.transformColumnList(this.columnList)
},
transformColumnList(columnList) {
let list = []
for (let i = 0; i < columnList.length; i++) {
const e = columnList[i];
if (!e.prop.includes('-')) {
list.push(e)
} else {
let prop = e.prop.split('-')[0]
let label = e.label.split('-')[0]
let vModel = e.prop.split('-')[1]
let newItem = {
align: "center",
jnpfKey: "table",
prop,
label,
children: []
}
e.vModel = vModel
if (!this.expandObj.hasOwnProperty(`${prop}Expand`)) this.$set(this.expandObj, `${prop}Expand`, false)
if (!list.some(o => o.prop === prop)) list.push(newItem)
for (let i = 0; i < list.length; i++) {
if (list[i].prop === prop) {
list[i].children.push(e)
break
}
}
}
}
this.getMergeList(list)
this.getExportList(list)
return list
},
arraySpanMethod({
column
}) {
for (let i = 0; i < this.mergeList.length; i++) {
if (column.property == this.mergeList[i].prop) {
return [this.mergeList[i].rowspan, this.mergeList[i].colspan]
}
}
},
getMergeList(list) {
let newList = JSON.parse(JSON.stringify(list))
newList.forEach(item => {
if (item.children && item.children.length) {
let child = {
prop: item.prop + '-child-first'
}
item.children.unshift(child)
}
})
newList.forEach(item => {
if (item.children && item.children.length) {
item.children.forEach((child, index) => {
if (index == 0) {
this.mergeList.push({
prop: child.prop,
rowspan: 1,
colspan: item.children.length
})
} else {
this.mergeList.push({
prop: child.prop,
rowspan: 0,
colspan: 0
})
}
})
} else {
this.mergeList.push({
prop: item.prop,
rowspan: 1,
colspan: 1
})
}
})
},
getExportList(list) {
let exportList = []
for (let i = 0; i < list.length; i++) {
if (list[i].jnpfKey === 'table') {
for (let j = 0; j < list[i].children.length; j++) {
exportList.push(list[i].children[j])
}
} else {
exportList.push(list[i])
}
}
this.exportList = exportList
},
goDetail(id) {
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(id)
})
},
sortChange({
column,
prop,
order
}) {
this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
this.listQuery.sidx = !order ? '' : prop
this.initData()
},
async initSearchDataAndListData() {
await this.initSearchData()
this.initData()
},
//
async initSearchData() {},
initData() {
this.listLoading = true;
let _query = {
...this.listQuery,
...this.query,
keyword: this.keyword,
dataType: 0,
menuId: this.menuId,
moduleId: '521664611062126789',
type: 1,
};
request({
url: `/api/scm/Contacts/getList`,
method: 'post',
data: _query
}).then(res => {
var _list = res.data.list;
this.list = _list.map(o => ({
...o,
...this.expandObj,
}))
this.total = res.data.pagination.total
this.listLoading = false
})
},
handleDel(id) {
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
type: 'warning'
}).then(() => {
request({
url: `/api/scm/Contacts/${id}`,
method: 'DELETE'
}).then(res => {
this.$message({
type: 'success',
message: res.msg,
onClose: () => {
this.initData()
}
});
})
}).catch(() => {});
},
handelUpload() {
this.uploadBoxVisible = true
this.$nextTick(() => {
this.$refs.UploadBox.init("", "scm/Contacts")
})
},
handleSelectionChange(val) {
const res = val.map(item => item.id)
this.multipleSelection = res
},
handleBatchRemoveDel() {
if (!this.multipleSelection.length) {
this.$message({
type: 'error',
message: '请选择一条数据',
duration: 1500,
})
return
}
const ids = this.multipleSelection
this.$confirm('您确定要删除这些数据吗, 是否继续?', '提示', {
type: 'warning'
}).then(() => {
request({
url: `/api/scm/Contacts/batchRemove`,
data: ids,
method: 'DELETE'
}).then(res => {
this.$message({
type: 'success',
message: res.msg,
onClose: () => {
this.initData()
}
});
})
}).catch(() => {})
},
openSuperQuery() {
this.superQueryVisible = true
this.$nextTick(() => {
this.$refs.SuperQuery.init()
})
},
superQuery(queryJson) {
this.listQuery.superQueryJson = queryJson
this.listQuery.currentPage = 1
this.initData()
},
addOrUpdateHandle(row, isDetail) {
let id = row ? row.id : ""
this.formVisible = true
this.$nextTick(() => {
this.$refs.JNPFForm.init(id, isDetail, this.list)
})
},
exportData() {
this.exportBoxVisible = true
this.$nextTick(() => {
this.$refs.ExportBox.init(this.exportList)
})
},
download(data) {
let query = {
...data,
...this.listQuery,
...this.query,
menuId: this.menuId
}
request({
url: `/api/scm/Contacts/Actions/Export`,
method: 'post',
data: query
}).then(res => {
if (!res.data.url) return
this.jnpf.downloadFile(res.data.url)
this.$refs.ExportBox.visible = false
this.exportBoxVisible = false
})
},
search() {
this.listQuery.currentPage = 1
this.listQuery.pageSize = 20
this.listQuery.sort = "desc"
this.listQuery.sidx = ""
this.initData()
},
refresh(isrRefresh) {
this.formVisible = false
if (isrRefresh) this.reset()
},
reset() {
this.query = JSON.parse(JSON.stringify(this.queryData))
this.search()
},
colseFlow(isrRefresh) {
this.flowVisible = false
if (isrRefresh) this.reset()
},
}
}
</script>

File diff suppressed because one or more lines are too long

@ -0,0 +1,267 @@
<template>
<div class="CommonForm-container app-container nohead">
<div class="dataForm">
<el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="110px" class="mt-10">
<el-col :span="24">
<jnpf-form-tip-item>
<JnpfGroupTitle content="信用等级" contentPosition="left">
</JnpfGroupTitle>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<el-table :data="defaultCreditrating" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="信用级别" prop="creditRating">
<template slot="header">
<span class="required-sign">*</span>信用级别
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.creditRating" placeholder="请选择"
:disabled="true"
clearable :style='{"width":"100%"}' :options="subjectcreditratingcreditRatingOptions"
:props="subjectcreditratingcreditRatingProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="评定分数最低" prop="scoreDown">
<template slot="header">
<span class="required-sign">*</span>评定分数最低
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.scoreDown" placeholder="请输入"
:disabled="true"
addonAfter="分" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="评定分数最高" prop="scoreUpper">
<template slot="header">
<span class="required-sign">*</span>评定分数最高
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.scoreUpper" placeholder="请输入"
:disabled="true"
addonAfter="分" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="开始时间" prop="startTime">
<template slot="header">
<span class="required-sign">*</span>开始时间
</template>
<template slot-scope="scope">
<el-date-picker
v-model="scope.row.startTime"
type="date"
:disabled="true"
placeholder="选择日期" format="yyyy-MM-dd">
</el-date-picker>
</template>
</el-table-column>
<el-table-column label="结束时间" prop="endTime">
<template slot="header">
<span class="required-sign">*</span>结束时间
</template>
<template slot-scope="scope">
<el-date-picker
v-model="scope.row.endTime"
type="date"
:disabled="true"
placeholder="选择日期" format="yyyy-MM-dd">
</el-date-picker>
</template>
</el-table-column>
<el-table-column label="级别说明" prop="levelDescription">
<template slot="header">
<span class="required-sign" >*</span>级别说明
</template>
<template slot-scope="scope">
<JnpfTextarea v-model="scope.row.levelDescription" placeholder="请输入"
:disabled="true"
:style='{"width":"100%"}' true type="textarea" :autosize='{"minRows":4,"maxRows":4}'>
</JnpfTextarea>
</template>
</el-table-column>
<el-table-column label="附件" prop="annex">
<template slot="header">
<span class="required-sign">*</span>附件
</template>
<template slot-scope="scope">
<JnpfUploadFile v-model="scope.row.annex" :disabled="true"
tipText="支持格式:.rar .zip .doc .docx .pdf 单个文件不能超过20MB" :fileSize="10" sizeUnit="MB" :limit="9"
pathType="defaultPath" :isAccount="0" buttonText="点击上传">
</JnpfUploadFile>
</template>
</el-table-column>
</el-table>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<JnpfGroupTitle content="信用规则配置" contentPosition="left">
</JnpfGroupTitle>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<JNPF-table :data="defaultCreditrules"
:hasNO="false" class="ruleClass" :span-method="arraySpanMethod" border>
<el-table-column type="expand" width="40">
<template slot-scope="scope">
<el-table :data="scope.row.tableField107" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column prop="scoreDown" label="范围最低" width="175" />
<el-table-column prop="scoreUpper" label="范围最高" width="175" />
<el-table-column prop="score" label="计分" width="175" />
</el-table>
</template>
</el-table-column>
<el-table-column prop="categoryName" label="类目" width="150" />
<el-table-column prop="projectName" label="项目" width="150" />
<el-table-column prop="ruleDescription" label="说明" />
</JNPF-table>
</jnpf-form-tip-item>
</el-col>
</el-form>
</div>
<Form v-if="formVisible" ref="form" @refreshDataList="initData" />
</div>
</template>
<script>
import { CustomerList, GoodsList } from '@/api/extend/order'
import Form from '@/views/extend/order/GoodsBox'
import { queryDefaultCreditrating, queryDefaultCreditrules } from '@/api/extend/scm'
import {
getDictionaryDataSelector
} from '@/api/systemData/dictionary'
export default {
name: 'extend-formDemo-fieldForm5',
components: { Form },
data() {
return {
defaultCreditrating: [],
defaultCreditrules: [],
dataForm: {
CustomerName: '',
CustomerCode: '',
Goods: '',
GoodsCode: '',
Specifications: '',
Unit: '',
Price: '',
},
dataRule: {},
options: [],
formVisible: false,
subjectcreditratingcreditRatingOptions: [],
subjectcreditratingcreditRatingProps: {
"label": "fullName",
"value": "id"
},
}
},
created() {
this.init()
},
methods: {
init() {
getDictionaryDataSelector('517682237588636677').then(res => {
this.subjectcreditratingcreditRatingOptions = res.data.list
})
//
queryDefaultCreditrating('1').then(res => {
this.defaultCreditrating = res.data.subjectcreditratingList
})
queryDefaultCreditrules('1').then(res => {
this.defaultCreditrules = res.data
})
/* CustomerList().then(res => {
this.options = res.data.list
}) */
},
dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
// this.$message({
// message: '',
// type: 'success',
// duration: 1500,
// })
}
})
},
handleChange(val) { },
choice() {
this.formVisible = true
this.$nextTick(() => {
this.$refs.form.init()
})
},
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 1) {
const cellValue = row[column.property]
const prevRow = this.defaultCreditrules[rowIndex - 1]
let nextRow = this.defaultCreditrules[rowIndex + 1]
if (prevRow && prevRow[column.property] === cellValue) {
return { rowspan: 0, colspan: 0 }
} else {
let countRowspan = 1
while (nextRow && nextRow[column.property] === cellValue) {
nextRow = this.defaultCreditrules[++countRowspan + rowIndex]
}
if (countRowspan > 1) {
return { rowspan: countRowspan, colspan: 1 }
}
}
}
},
initData(list) {
let GoodsList = [], GoodsCodeList = [], SpecificationsList = [], UnitList = [], Price = []
for (let i = 0; i < list.length; i++) {
const e = list[i];
GoodsList.push(e.text)
GoodsCodeList.push(e.code)
SpecificationsList.push(e.specifications)
UnitList.push(e.unit)
Price.push(e.price)
}
this.dataForm.Goods = GoodsList.join(',')
this.dataForm.GoodsCode = GoodsCodeList.join(',')
this.dataForm.Specifications = SpecificationsList.join(',')
this.dataForm.Unit = UnitList.join(',')
this.dataForm.Price = Price.join(',')
}
}
}
</script>
<style lang="scss" scoped>
.app-container {
height: auto;
overflow: auto;
}
.CommonForm-container {
.JNPF-common-head {
height: 50px;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
}
.dataForm {
flex: 1;
overflow: auto;
.el-input {
width: 300px;
}
.tip {
margin-left: 10px;
color: darkgray;
}
}
.ruleClass ::v-deep .el-table__body-wrapper{
height: auto !important;
}
}
</style>

@ -0,0 +1,366 @@
<template>
<div class="CommonForm-container app-container nohead">
<div class="dataForm">
<el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="110px" class="mt-10">
<el-col :span="24">
<jnpf-form-tip-item>
<JnpfGroupTitle content="结算规则" contentPosition="left">
</JnpfGroupTitle>
</jnpf-form-tip-item>
</el-col>
<el-col :span="12">
<el-form-item label="压款金额" class="mt-10">
<el-input v-model="defaultSettlementRules.underpaymentAmountDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append"></template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.underpaymentAmountUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="压款比例" class="mt-10">
<el-input v-model="defaultSettlementRules.underpaymentRateDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.underpaymentRateUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="保证金金额" class="mt-10">
<el-input v-model="defaultSettlementRules.marginAmountDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append"></template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.marginAmountUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="保证金比例" class="mt-10">
<el-input v-model="defaultSettlementRules.marginRateDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.marginRateUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="逾期年化" class="mt-10">
<el-input v-model="defaultSettlementRules.overdueAnnualizedDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.overdueAnnualizedUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="逾期月化" class="mt-10">
<el-input v-model="defaultSettlementRules.overdueMonthlyDown" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
<label></label>
<el-input v-model="defaultSettlementRules.overdueMonthlyUpper" placeholder="" readonly :style='{"width":"40%"}'>
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<JnpfGroupTitle content="账期规则" contentPosition="left">
</JnpfGroupTitle>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item>
<el-table :data="defaultAccountPeriodRules" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="信用级别" width="100"
prop="creditRating">
<template slot="header">
<span class="required-sign" >*</span>信用级别
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.creditRating" placeholder="请选择"
:disabled="true"
clearable :style='{"width":"100%"}' :options="subjectaccountperiodrulescreditRatingOptions"
:props="subjectaccountperiodrulescreditRatingProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="合作方式" width="100"
prop="cooperateType">
<template slot="header">
<span class="required-sign">*</span>合作方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.cooperateType" placeholder="请选择"
:disabled="true"
clearable :style='{"width":"100%"}' :options="subjectaccountperiodrulescooperateTypeOptions"
:props="subjectaccountperiodrulescooperateTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="结算方式" width="150"
prop="settlementType">
<template slot="header">
<span class="required-sign" >*</span>结算方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.settlementType" placeholder="请选择"
:disabled="true"
clearable :style='{"width":"100%"}' :options="subjectaccountperiodrulessettlementTypeOptions"
:props="subjectaccountperiodrulessettlementTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="预付比例"
prop="advanceRatioDown">
<template slot="header">
<span class="required-sign" >*</span>预付比例(%)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.advanceRatioDown" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
<label></label>
<JnpfInput v-model="scope.row.advanceRatioUpper" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="账期"
prop="accountPeriodDown">
<template slot="header">
<span class="required-sign" >*</span>账期()
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.accountPeriodDown" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
<label></label>
<JnpfInput v-model="scope.row.accountPeriodUpper"
placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="授信额度"
prop="fundLimitDown">
<template slot="header">
<span class="required-sign" >*</span>授信额度()
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.fundLimitDown" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
<label></label>
<JnpfInput v-model="scope.row.fundLimitUpper" placeholder="请输入"
:disabled="true"
clearable :style='{"width":"40%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="开始时间" width="160" prop="startTime">
<template slot="header">
<span class="required-sign" >*</span>开始时间
</template>
<template slot-scope="scope">
<el-date-picker
v-model="scope.row.startTime"
type="date"
:disabled="true"
placeholder="选择日期" format="yyyy-MM-dd">
</el-date-picker>
</template>
</el-table-column>
<el-table-column label="结束时间" width="160" prop="endTime">
<template slot="header">
<span class="required-sign" >*</span>结束时间
</template>
<template slot-scope="scope">
<el-date-picker
v-model="scope.row.endTime"
type="date"
:disabled="true"
placeholder="选择日期" format="yyyy-MM-dd">
</el-date-picker>
</template>
</el-table-column>
<el-table-column label="规则说明" width="200"
prop="ruleDescription">
<template slot="header">
<span class="required-sign" >*</span>规则说明
</template>
<template slot-scope="scope">
<JnpfTextarea v-model="scope.row.ruleDescription" placeholder="请输入"
:disabled="true"
:style='{"width":"100%"}' true type="textarea" :autosize='{"minRows":4,"maxRows":4}'>
</JnpfTextarea>
</template>
</el-table-column>
</el-table>
</jnpf-form-tip-item>
</el-col>
</el-form>
</div>
<Form v-if="formVisible" ref="form" @refreshDataList="initData" />
</div>
</template>
<script>
import { CustomerList, GoodsList } from '@/api/extend/order'
import Form from '@/views/extend/order/GoodsBox'
import { queryDefaultSettlementRules, queryDefaultAccountPeriodRules } from '@/api/extend/scm'
export default {
name: 'extend-formDemo-fieldForm5',
components: { Form },
data() {
return {
defaultSettlementRules: {},
defaultAccountPeriodRules: [],
dataForm: {
CustomerName: '',
CustomerCode: '',
Goods: '',
GoodsCode: '',
Specifications: '',
Unit: '',
Price: '',
},
dataRule: {},
options: [],
formVisible: false,
subjectaccountperiodrulescreditRatingOptions: [{
"fullName": "一星",
"id": "1"
}, {
"fullName": "二星",
"id": "2"
}, {
"fullName": "三星",
"id": "3"
}, {
"fullName": "四星",
"id": "4"
}, {
"fullName": "五星",
"id": "5"
}],
subjectaccountperiodrulescreditRatingProps: {
"label": "fullName",
"value": "id"
},
subjectaccountperiodrulescooperateTypeOptions: [{
"fullName": "买断",
"id": "1"
}, {
"fullName": "联营",
"id": "2"
}],
subjectaccountperiodrulescooperateTypeProps: {
"label": "fullName",
"value": "id"
},
subjectaccountperiodrulessettlementTypeOptions: [{
"fullName": "先货后款",
"id": "1"
}, {
"fullName": "先款后货",
"id": "2"
}],
subjectaccountperiodrulessettlementTypeProps: {
"label": "fullName",
"value": "id"
},
}
},
created() {
this.init()
},
methods: {
init() {
//
queryDefaultSettlementRules('1').then(res => {
this.defaultSettlementRules = res.data
})
queryDefaultAccountPeriodRules('1').then(res => {
debugger
this.defaultAccountPeriodRules = res.data.tableField102
})
/* CustomerList().then(res => {
this.options = res.data.list
}) */
},
dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
// this.$message({
// message: '',
// type: 'success',
// duration: 1500,
// })
}
})
},
handleChange(val) { },
choice() {
this.formVisible = true
this.$nextTick(() => {
this.$refs.form.init()
})
},
initData(list) {
let GoodsList = [], GoodsCodeList = [], SpecificationsList = [], UnitList = [], Price = []
for (let i = 0; i < list.length; i++) {
const e = list[i];
GoodsList.push(e.text)
GoodsCodeList.push(e.code)
SpecificationsList.push(e.specifications)
UnitList.push(e.unit)
Price.push(e.price)
}
this.dataForm.Goods = GoodsList.join(',')
this.dataForm.GoodsCode = GoodsCodeList.join(',')
this.dataForm.Specifications = SpecificationsList.join(',')
this.dataForm.Unit = UnitList.join(',')
this.dataForm.Price = Price.join(',')
}
}
}
</script>
<style lang="scss" scoped>
.CommonForm-container {
.JNPF-common-head {
height: 50px;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
}
.dataForm {
flex: 1;
overflow: auto;
.el-input {
width: 300px;
}
.tip {
margin-left: 10px;
color: darkgray;
}
}
}
</style>

@ -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":"zqgz","className":[],"label":"单据号","trigger":"change","showLabel":true,"required":false,"tableName":"jg_subject_account_period_rules_no","renderKey":1706679999405,"layout":"colFormItem","tagIcon":"icon-ym icon-ym-generator-documents","ruleName":"风控配置-账期规则","tag":"JnpfInput","span":24},"readonly":true,"prop":"businessNo","width":0,"__vModel__":"businessNo","fixed":"none","style":{"width":"100%"},"id":"businessNo","placeholder":"系统自动生成"}]
export default columnList

@ -0,0 +1,850 @@
<template>
<div :style="{margin: '0 auto',width:'100%'}">
<el-row :gutter="15" class="">
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px" label-position="right"
:disabled="setting.readonly">
<template v-if="!loading && formOperates">
<!-- 具体表单 -->
<el-col :span="24" v-if="judgeShow('businessNo')">
<jnpf-form-tip-item label="单据号" v-if="judgeShow('businessNo')" prop="businessNo">
<JnpfInput v-model="dataForm.businessNo" @change="changeData('businessNo',-1)" placeholder="系统自动生成"
:disabled="judgeWrite('businessNo')" readonly :style='{"width":"100%"}'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
<jnpf-form-tip-item label-width="0">
<div class="JNPF-common-title">
<h2>账期规则</h2>
</div>
<el-table :data="dataForm.subjectaccountperiodrulesList" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="信用级别" width="100" v-if="judgeShow('subjectaccountperiodrules-creditRating')"
prop="creditRating">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('subjectaccountperiodrulesList-creditRating')">*</span>信用级别
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.creditRating"
@change="changeData('subjectaccountperiodrules-creditRating',scope.$index)" placeholder="请选择"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-creditRating')"
clearable :style='{"width":"100%"}' :options="subjectaccountperiodrulescreditRatingOptions"
:props="subjectaccountperiodrulescreditRatingProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="合作方式" width="100" v-if="judgeShow('subjectaccountperiodrules-cooperateType')"
prop="cooperateType">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('subjectaccountperiodrulesList-cooperateType')">*</span>合作方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.cooperateType"
@change="changeData('subjectaccountperiodrules-cooperateType',scope.$index)" placeholder="请选择"
:disabled="true"
clearable :style='{"width":"100%"}' :options="subjectaccountperiodrulescooperateTypeOptions"
:props="subjectaccountperiodrulescooperateTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="结算方式" width="150" v-if="judgeShow('subjectaccountperiodrules-settlementType')"
prop="settlementType">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('subjectaccountperiodrulesList-settlementType')">*</span>结算方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.settlementType"
@change="changeData('subjectaccountperiodrules-settlementType',scope.$index)" placeholder="请选择"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-settlementType')"
clearable :style='{"width":"100%"}' :options="subjectaccountperiodrulessettlementTypeOptions"
:props="subjectaccountperiodrulessettlementTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="预付比例" v-if="judgeShow('subjectaccountperiodrules-advanceRatioDown')"
prop="advanceRatioDown">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('subjectaccountperiodrulesList-advanceRatioDown')">*</span>预付比例(%)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.advanceRatioDown"
@change="changeData('subjectaccountperiodrules-advanceRatioDown',scope.$index)" placeholder="请输入"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-advanceRatioDown')"
clearable :style='{"width":"40%"}'>
</JnpfInput>
<label></label>
<JnpfInput v-model="scope.row.advanceRatioUpper"
@change="changeData('subjectaccountperiodrules-advanceRatioUpper',scope.$index)" placeholder="请输入"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-advanceRatioUpper')"
clearable :style='{"width":"40%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="账期" v-if="judgeShow('subjectaccountperiodrules-accountPeriodDown')"
prop="accountPeriodDown">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('subjectaccountperiodrulesList-accountPeriodDown')">*</span>账期()
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.accountPeriodDown"
@change="changeData('subjectaccountperiodrules-accountPeriodDown',scope.$index)" placeholder="请输入"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-accountPeriodDown')"
clearable :style='{"width":"40%"}'>
</JnpfInput>
<label></label>
<JnpfInput v-model="scope.row.accountPeriodUpper"
@change="changeData('subjectaccountperiodrules-accountPeriodUpper',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-accountPeriodUpper')"
clearable :style='{"width":"40%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="授信额度" v-if="judgeShow('subjectaccountperiodrules-fundLimitDown')"
prop="fundLimitDown">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('subjectaccountperiodrulesList-fundLimitDown')">*</span>授信额度()
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.fundLimitDown"
@change="changeData('subjectaccountperiodrules-fundLimitDown',scope.$index)" placeholder="请输入"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-fundLimitDown')"
clearable :style='{"width":"40%"}'>
</JnpfInput>
<label></label>
<JnpfInput v-model="scope.row.fundLimitUpper"
@change="changeData('subjectaccountperiodrules-fundLimitUpper',scope.$index)" placeholder="请输入"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-fundLimitUpper')"
clearable :style='{"width":"40%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="开始时间" width="160" v-if="judgeShow('subjectaccountperiodrules-startTime')" prop="startTime">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('subjectaccountperiodrulesList-startTime')">*</span>开始时间
</template>
<template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.startTime"
@change="changeData('subjectaccountperiodrules-startTime',scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-startTime')"
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</template>
</el-table-column>
<el-table-column label="结束时间" width="160" v-if="judgeShow('subjectaccountperiodrules-endTime')" prop="endTime">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('subjectaccountperiodrulesList-endTime')">*</span>结束时间
</template>
<template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.endTime"
@change="changeData('subjectaccountperiodrules-endTime',scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-endTime')"
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</template>
</el-table-column>
<el-table-column label="规则说明" width="200" v-if="judgeShow('subjectaccountperiodrules-ruleDescription')"
prop="ruleDescription">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('subjectaccountperiodrulesList-ruleDescription')">*</span>规则说明
</template>
<template slot-scope="scope">
<JnpfTextarea v-model="scope.row.ruleDescription"
@change="changeData('subjectaccountperiodrules-ruleDescription',scope.$index)" placeholder="请输入"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-ruleDescription')"
:style='{"width":"100%"}' true type="textarea" :autosize='{"minRows":4,"maxRows":4}'>
</JnpfTextarea>
</template>
</el-table-column>
<!-- <el-table-column label="备注" v-if="judgeShow('subjectaccountperiodrules-remark')" prop="remark">
<template slot="header">
<span class="required-sign" v-if="judgeRequired('subjectaccountperiodrulesList-remark')">*</span>
</template>
<template slot-scope="scope">
<JnpfTextarea v-model="scope.row.remark"
@change="changeData('subjectaccountperiodrules-remark',scope.$index)" placeholder="请输入"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-remark')"
:style='{"width":"100%"}' true type="textarea" :autosize='{"minRows":4,"maxRows":4}'>
</JnpfTextarea>
</template>
</el-table-column>
<el-table-column label="附件" v-if="judgeShow('subjectaccountperiodrules-annex')" prop="annex">
<template slot="header">
<span class="required-sign" v-if="judgeRequired('subjectaccountperiodrulesList-annex')">*</span>
</template>
<template slot-scope="scope">
<JnpfUploadFile v-model="scope.row.annex"
@change="changeData('subjectaccountperiodrules-annex',scope.$index)"
:disabled="judgeWrite('subjectaccountperiodrulesList')||judgeWrite('subjectaccountperiodrulesList-annex')"
tipText="支持格式:.rar .zip .doc .docx .pdf 单个文件不能超过20MB" :fileSize="10" sizeUnit="MB" :limit="9"
pathType="defaultPath" :isAccount="0" buttonText="点击上传">
</JnpfUploadFile>
</template>
</el-table-column> -->
<el-table-column label="操作" width="50" v-if="!judgeWrite('subjectaccountperiodrulesList')">
<template slot-scope="scope">
<el-button size="mini" type="text" class="JNPF-table-delBtn"
@click="delsubjectaccountperiodrulesList(scope.$index)">删除</el-button>
</template>
</el-table-column>
</el-table>
<div class="table-actions" @click="addsubjectaccountperiodrulesList()"
v-if="!judgeWrite('subjectaccountperiodrulesList')">
<el-button type="text" icon="el-icon-plus">添加</el-button>
</div>
</jnpf-form-tip-item>
</el-col>
<!-- 表单结束 -->
</template>
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm" ref="selectDialog"
@select="addForSelect" @close="selectDialogVisible=false" />
</el-form>
</el-row>
<UserBox v-if="userBoxVisible" ref="userBox" @submit="submit" />
</div>
</template>
<script>
import request from '@/utils/request'
import {
mapGetters
} from "vuex";
import {
getFormById
} from '@/api/workFlow/FormDesign'
import comMixin from '@/views/workFlow/workFlowForm/mixin';
import {
getDataInterfaceRes
} from '@/api/systemData/dataInterface'
import {
getDictionaryDataSelector
} from '@/api/systemData/dictionary'
import {
getDefaultCurrentValueUserId
} from '@/api/permission/user'
import {
getDefaultCurrentValueDepartmentId
} from '@/api/permission/organize'
import {
getDateDay,
getLaterData,
getBeforeData,
getBeforeTime,
getLaterTime
} from '@/components/Generator/utils/index.js'
import {
thousandsFormat
} from "@/components/Generator/utils/index"
export default {
mixins: [comMixin],
components: {},
props: [],
data() {
return {
dataFormSubmitType: 0,
continueBtnLoading: false,
index: 0,
prevDis: false,
nextDis: false,
allList: [],
visible: false,
loading: false,
btnLoading: false,
formRef: 'formRef',
setting: {},
eventType: '',
userBoxVisible: false,
selectDialogVisible: false,
currTableConf: {},
dataValueAll: {},
addTableConf: {
subjectaccountperiodrulesList: {
"popupType": "dialog",
"hasPage": true,
"popupTitle": "选择数据",
"pageSize": 20,
"columnOptions": [],
"interfaceId": "",
"interfaceName": "",
"relationOptions": [],
"templateJson": [],
"popupWidth": "800px"
},
},
//
ableAll: {},
tableRows: {
subjectaccountperiodrulesList: {
creditRatingOptions: [],
cooperateTypeOptions: [],
settlementTypeOptions: [],
advanceRatioDown: '',
advanceRatioDownOptions: [],
advanceRatioUpper: '',
advanceRatioUpperOptions: [],
accountPeriodDown: '',
accountPeriodDownOptions: [],
accountPeriodUpper: '',
accountPeriodUpperOptions: [],
fundLimitDown: '',
fundLimitDownOptions: [],
fundLimitUpper: '',
fundLimitUpperOptions: [],
startTime: '',
startTimeOptions: [],
endTime: '',
endTimeOptions: [],
ruleDescription: '',
ruleDescriptionOptions: [],
remark: '',
remarkOptions: [],
annex: [],
annexOptions: [],
enabledmark: undefined
},
},
Vmodel: "",
currVmodel: "",
dataForm: {
businessNo: undefined,
businessType:'1',
subjectaccountperiodrulesList: [],
version: 0,
},
tableRequiredData: {},
dataRule: {},
subjectaccountperiodrulescreditRatingOptions: [{
"fullName": "一星",
"id": "1"
}, {
"fullName": "二星",
"id": "2"
}, {
"fullName": "三星",
"id": "3"
}, {
"fullName": "四星",
"id": "4"
}, {
"fullName": "五星",
"id": "5"
}],
subjectaccountperiodrulescreditRatingProps: {
"label": "fullName",
"value": "id"
},
subjectaccountperiodrulescooperateTypeOptions: [{
"fullName": "买断",
"id": "1"
}, {
"fullName": "联营",
"id": "2"
}],
subjectaccountperiodrulescooperateTypeProps: {
"label": "fullName",
"value": "id"
},
subjectaccountperiodrulessettlementTypeOptions: [{
"fullName": "先货后款",
"id": "1"
}, {
"fullName": "先款后货",
"id": "2"
}],
subjectaccountperiodrulessettlementTypeProps: {
"label": "fullName",
"value": "id"
},
childIndex: -1,
isEdit: false,
interfaceRes: {
businessNo: [],
subjectBasicType:[],
subjectaccountperiodrulescreditRating: [],
subjectaccountperiodrulescooperateType: [],
subjectaccountperiodrulessettlementType: [],
subjectaccountperiodrulesadvanceRatioDown: [],
subjectaccountperiodrulesadvanceRatioUpper: [],
subjectaccountperiodrulesaccountPeriodDown: [],
subjectaccountperiodrulesaccountPeriodUpper: [],
subjectaccountperiodrulesfundLimitDown: [],
subjectaccountperiodrulesfundLimitUpper: [],
subjectaccountperiodrulesstartTime: [],
subjectaccountperiodrulesendTime: [],
subjectaccountperiodrulesruleDescription: [],
subjectaccountperiodrulesremark: [],
subjectaccountperiodrulesannex: [],
},
}
},
computed: {
formOperates() {
return this.setting.formOperates
}
},
watch: {},
created() {
this.getFormById()
if (this.dataForm.id == null || this.dataForm.id == '' && this.dataForm.id == undefined || this.dataForm.id ==
0) {
this.initDefaultData()
}
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
},
mounted() {},
methods: {
changeData(model, index) {
this.isEdit = false
this.childIndex = index
let modelAll = model.split("-");
let faceMode = "";
for (let i = 0; i < modelAll.length; i++) {
faceMode += modelAll[i];
}
for (let key in this.interfaceRes) {
if (key != faceMode) {
let faceReList = this.interfaceRes[key]
for (let i = 0; i < faceReList.length; i++) {
if (faceReList[i].relationField == model) {
let options = 'get' + key + 'Options';
if (this[options]) {
this[options]()
}
this.changeData(key, index)
}
}
}
}
},
changeDataFormData(type, data, model, index, defaultValue) {
if (!this.isEdit) {
if (type == 2) {
for (let i = 0; i < this.dataForm[data].length; i++) {
if (index == -1) {
this.dataForm[data][i][model] = defaultValue
} else if (index == i) {
this.dataForm[data][i][model] = defaultValue
}
}
} else {
this.dataForm[data] = defaultValue
}
}
},
dataAll() {},
selfGetInfo(dataForm) {
this.dataInfo(dataForm)
},
beforeSubmit() {
const _data = this.dataList()
return _data
},
selfInit() {
this.dataAll()
},
getFormById() {
getFormById("522376064903685637").then(res => {
this.dataForm.flowId = res.data && res.data.flowId
// this.encode = res.data&&res.data.encode
})
},
exist() {
let isOk = true
for (let key in this.tableRequiredData) {
if (this.dataForm[key] && Array.isArray(this.dataForm[key])) {
for (let i = 0; i < this.dataForm[key].length; i++) {
let item = this.dataForm[key][i]
inner: for (let id in item) {
let arr = this.tableRequiredData[key].filter(o => o.id === id) || []
if (!arr.length) continue inner
if (arr[0].required) {
let msg = `${arr[0].name}不能为空`
let boo = true
if (arr[0].dataType === 'array') {
boo = !this.jnpf.isEmptyArray(item[id])
} else {
boo = !this.jnpf.isEmpty(item[id])
}
if (!boo) {
this.$message({
message: msg,
type: 'error',
duration: 1000
})
isOk = false
break
}
}
}
}
}
}
if (!this.subjectaccountperiodrulesExist()) return
return isOk
},
subjectaccountperiodrulesExist() {
let isOk = true;
for (let i = 0; i < this.dataForm.subjectaccountperiodrulesList.length; i++) {
const e = this.dataForm.subjectaccountperiodrulesList[i];
if (!e.creditRating) {
this.$message({
message: '信用级别不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (!e.cooperateType) {
this.$message({
message: '合作方式不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (!e.settlementType) {
this.$message({
message: '结算方式不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (!e.advanceRatioDown) {
this.$message({
message: '预付比例最低不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (e.advanceRatioDown) {
var regPos = [{
"pattern": "/^([1-9][\\d]*|0)(\\.[\\d]+)?$/",
"message": "请输入正确的金额"
}]
for (let i = 0; i < regPos.length; i++) {
const element = regPos[i];
if (element.pattern && !eval(element.pattern).test(e.advanceRatioDown)) {
this.$message({
message: element.message,
type: 'error',
duration: 1000
});
isOk = false
break;
}
}
}
if (!e.advanceRatioUpper) {
this.$message({
message: '预付比例最高不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (e.advanceRatioUpper) {
var regPos = [{
"pattern": "/^([1-9][\\d]*|0)(\\.[\\d]+)?$/",
"message": "请输入正确的金额"
}]
for (let i = 0; i < regPos.length; i++) {
const element = regPos[i];
if (element.pattern && !eval(element.pattern).test(e.advanceRatioUpper)) {
this.$message({
message: element.message,
type: 'error',
duration: 1000
});
isOk = false
break;
}
}
}
if (!e.accountPeriodDown) {
this.$message({
message: '账期最低不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (e.accountPeriodDown) {
var regPos = [{
"pattern": "/^([1-9][\\d]*|0)(\\.[\\d]+)?$/",
"message": "请输入正确的金额"
}]
for (let i = 0; i < regPos.length; i++) {
const element = regPos[i];
if (element.pattern && !eval(element.pattern).test(e.accountPeriodDown)) {
this.$message({
message: element.message,
type: 'error',
duration: 1000
});
isOk = false
break;
}
}
}
if (!e.accountPeriodUpper) {
this.$message({
message: '账期最高不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (e.accountPeriodUpper) {
var regPos = [{
"pattern": "/^([1-9][\\d]*|0)(\\.[\\d]+)?$/",
"message": "请输入正确的金额"
}]
for (let i = 0; i < regPos.length; i++) {
const element = regPos[i];
if (element.pattern && !eval(element.pattern).test(e.accountPeriodUpper)) {
this.$message({
message: element.message,
type: 'error',
duration: 1000
});
isOk = false
break;
}
}
}
if (!e.fundLimitDown) {
this.$message({
message: '授信额度最低不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (e.fundLimitDown) {
var regPos = [{
"pattern": "/^([1-9][\\d]*|0)(\\.[\\d]+)?$/",
"message": "请输入正确的金额"
}]
for (let i = 0; i < regPos.length; i++) {
const element = regPos[i];
if (element.pattern && !eval(element.pattern).test(e.fundLimitDown)) {
this.$message({
message: element.message,
type: 'error',
duration: 1000
});
isOk = false
break;
}
}
}
if (!e.fundLimitUpper) {
this.$message({
message: '授信额度最高不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (e.fundLimitUpper) {
var regPos = [{
"pattern": "/^([1-9][\\d]*|0)(\\.[\\d]+)?$/",
"message": "请输入正确的金额"
}]
for (let i = 0; i < regPos.length; i++) {
const element = regPos[i];
if (element.pattern && !eval(element.pattern).test(e.fundLimitUpper)) {
this.$message({
message: element.message,
type: 'error',
duration: 1000
});
isOk = false
break;
}
}
}
if (!e.startTime) {
this.$message({
message: '开始时间不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
if (!e.endTime) {
this.$message({
message: '结束时间不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
}
return isOk;
},
clearData() {
this.dataForm = JSON.parse(JSON.stringify(this.dataValueAll))
},
//
initDefaultData() {
},
addsubjectaccountperiodrulesList() {
let item = {
creditRating: '',
cooperateType: '1',
settlementType: '1',
advanceRatioDown: undefined,
advanceRatioUpper: undefined,
accountPeriodDown: undefined,
accountPeriodUpper: undefined,
fundLimitDown: undefined,
fundLimitUpper: undefined,
startTime: undefined,
endTime: undefined,
ruleDescription: undefined,
remark: undefined,
annex: [],
}
this.getsubjectaccountperiodrulesList(item)
},
delsubjectaccountperiodrulesList(index) {
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
type: 'warning'
}).then(() => {
this.dataForm.subjectaccountperiodrulesList.splice(index, 1);
}).catch(() => {});
},
getsubjectaccountperiodrulesList(value) {
let item = {
...this.tableRows.subjectaccountperiodrulesList,
...value
}
this.dataForm.subjectaccountperiodrulesList.push(item)
this.childIndex = this.dataForm.subjectaccountperiodrulesList.length - 1
this.isEdit = true
this.isEdit = false
this.childIndex = -1
},
openSelectDialog(key) {
this.currTableConf = this.addTableConf[key]
this.currVmodel = key
this.selectDialogVisible = true
this.$nextTick(() => {
this.$refs.selectDialog.init()
})
},
addForSelect(data) {
for (let i = 0; i < data.length; i++) {
let t = data[i]
if (this['get' + this.currVmodel]) {
this['get' + this.currVmodel](t)
}
}
},
dateTime(timeRule, timeType, timeTarget, timeValueData, dataValue) {
let timeDataValue = null;
let timeValue = Number(timeValueData)
if (timeRule) {
if (timeType == 1) {
timeDataValue = timeValue
} else if (timeType == 2) {
timeDataValue = dataValue
} else if (timeType == 3) {
timeDataValue = new Date().getTime()
} else if (timeType == 4) {
let previousDate = '';
if (timeTarget == 1 || timeTarget == 2) {
previousDate = getDateDay(timeTarget, timeType, timeValue)
timeDataValue = new Date(previousDate).getTime()
} else if (timeTarget == 3) {
previousDate = getBeforeData(timeValue)
timeDataValue = new Date(previousDate).getTime()
} else {
timeDataValue = getBeforeTime(timeTarget, timeValue).getTime()
}
} else if (timeType == 5) {
let previousDate = '';
if (timeTarget == 1 || timeTarget == 2) {
previousDate = getDateDay(timeTarget, timeType, timeValue)
timeDataValue = new Date(previousDate).getTime()
} else if (timeTarget == 3) {
previousDate = getLaterData(timeValue)
timeDataValue = new Date(previousDate).getTime()
} else {
timeDataValue = getLaterTime(timeTarget, timeValue).getTime()
}
}
}
return timeDataValue;
},
time(timeRule, timeType, timeTarget, timeValue, formatType, dataValue) {
let format = formatType == 'HH:mm' ? 'HH:mm:00' : formatType
let timeDataValue = null
if (timeRule) {
if (timeType == 1) {
timeDataValue = timeValue || '00:00:00'
if (timeDataValue.split(':').length == 3) {
timeDataValue = timeDataValue
} else {
timeDataValue = timeDataValue + ':00'
}
} else if (timeType == 2) {
timeDataValue = dataValue
} else if (timeType == 3) {
timeDataValue = this.jnpf.toDate(new Date(), format)
} else if (timeType == 4) {
let previousDate = '';
previousDate = getBeforeTime(timeTarget, timeValue)
timeDataValue = this.jnpf.toDate(previousDate, format)
} else if (timeType == 5) {
let previousDate = '';
previousDate = getLaterTime(timeTarget, timeValue)
timeDataValue = this.jnpf.toDate(previousDate, format)
}
}
return timeDataValue;
},
dataList() {
var _data = this.dataForm;
return _data;
},
dataInfo(dataAll) {
let _dataAll = dataAll
this.dataForm = _dataAll
this.isEdit = true
this.dataAll()
for (let i = 0; i < _dataAll.subjectaccountperiodrulesList.length; i++) {
this.childIndex = i
}
this.childIndex = -1
},
},
}
</script>

@ -0,0 +1,621 @@
<template>
<div class="JNPF-common-layout">
<div class="JNPF-common-layout-center">
<el-row class="JNPF-common-search-box" :gutter="16">
<el-form @submit.native.prevent>
<el-col :span="6">
<el-form-item label="单据号">
<el-input v-model="query.businessNo" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="search()"></el-button>
<el-button icon="el-icon-refresh-right" @click="reset()"></el-button>
</el-form-item>
</el-col>
</el-form>
</el-row>
<div class="JNPF-common-layout-main JNPF-flex-main">
<div class="JNPF-common-head">
<div>
<el-button type="primary" icon="icon-ym icon-ym-btn-add" v-has="'btn_add'" @click="addOrUpdateHandle()">
</el-button>
<el-button type="text" icon="icon-ym icon-ym-btn-download" @click="exportData()" v-has="'btn_download'">
</el-button>
<el-button type="text" icon="icon-ym icon-ym-btn-clearn" @click="handleBatchRemoveDel()"
v-has="'btn_batchRemove'">批量删除
</el-button>
</div>
<div class="JNPF-common-head-right">
<el-tooltip content="高级查询" placement="top" v-if="true">
<el-link icon="icon-ym icon-ym-filter JNPF-common-head-icon" :underline="false"
@click="openSuperQuery()" />
</el-tooltip>
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="initData()" />
</el-tooltip>
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c
@selection-change="handleSelectionChange" :span-method="arraySpanMethod">
<el-table-column prop="businessNo" label="单据号" align="left">
</el-table-column>
<el-table-column prop="creatorTime" label="创建时间" align="left">
</el-table-column>
<el-table-column prop="creatorUserId" label="创建人" align="left">
</el-table-column>
<el-table-column prop="lastModifyTime" label="更新时间" align="left">
</el-table-column>
<el-table-column prop="lastModifyUserId" label="更新人" align="left">
</el-table-column>
<el-table-column prop="flowState" label="状态" width="100">
<template slot-scope="scope" v-if="!scope.row.top">
<el-tag v-if="scope.row.flowState==1"></el-tag>
<el-tag type="success" v-else-if="scope.row.flowState==2">审核通过</el-tag>
<el-tag type="danger" v-else-if="scope.row.flowState==3">审核驳回</el-tag>
<el-tag type="info" v-else-if="scope.row.flowState==4">流程撤回</el-tag>
<el-tag type="info" v-else-if="scope.row.flowState==5">审核终止</el-tag>
<el-tag type="warning" v-else></el-tag>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope">
<el-button type="text" :disabled="[1,2,4,5].indexOf(scope.row.flowState)>-1"
@click="updateHandle(scope.row)" v-has="'btn_edit'">编辑
</el-button>
<el-button type="text" class="JNPF-table-delBtn" :disabled="[1,2,3,5].indexOf(scope.row.flowState)>-1"
v-has="'btn_remove'" @click="handleDel(scope.row.id)">删除
</el-button>
<el-button size="mini" type="text" :disabled="!scope.row.flowState"
@click="updateHandle(scope.row,scope.row.flowState)">详情</el-button>
</template>
</el-table-column>
</JNPF-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>
</div>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
<FlowBox v-if="flowVisible" ref="FlowBox" @close="colseFlow" />
<el-dialog title="请选择流程" :close-on-click-modal="false" append-to-body :visible.sync="flowListVisible"
class="JNPF-dialog template-dialog JNPF-dialog_center" lock-scroll width="400px">
<el-scrollbar class="template-list">
<div class="template-item" v-for="item in flowList" :key="item.id" @click="selectFlow(item)">{{item.fullName}}
</div>
</el-scrollbar>
</el-dialog>
<ImportBox v-if="uploadBoxVisible" ref="UploadBox" @refresh="initData" />
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false" />
<ToFormDetail v-if="toFormDetailVisible" ref="toFormDetail" @close="toFormDetailVisible = false" />
<SuperQuery v-if="superQueryVisible" ref="SuperQuery" :columnOptions="superQueryJson" @superQuery="superQuery" />
</div>
</template>
<script>
import request from '@/utils/request'
import {
mapGetters
} from "vuex";
import {
getDictionaryDataSelector
} from '@/api/systemData/dictionary'
import {
getFormById
} from '@/api/workFlow/FormDesign'
import {
getFlowList
} from '@/api/workFlow/FlowEngine'
import FlowBox from '@/views/workFlow/components/FlowBox'
import ExportBox from '@/components/ExportBox'
import ToFormDetail from '@/views/basic/dynamicModel/list/detail'
import {
getDataInterfaceRes
} from '@/api/systemData/dataInterface'
import {
getConfigData
} from '@/api/onlineDev/visualDev'
import {
getDefaultCurrentValueUserIdAsync
} from '@/api/permission/user'
import {
getDefaultCurrentValueDepartmentIdAsync
} from '@/api/permission/organize'
import columnList from './columnList'
import {
thousandsFormat
} from "@/components/Generator/utils/index"
import SuperQuery from '@/components/SuperQuery'
import superQueryJson from './superQueryJson'
export default {
components: {
FlowBox,
ExportBox,
ToFormDetail,
SuperQuery
},
data() {
return {
keyword: '',
expandsTree: true,
refreshTree: true,
toFormDetailVisible: false,
expandObj: {},
columnOptions: [],
mergeList: [],
exportList: [],
columnList,
superQueryVisible: false,
superQueryJson,
uploadBoxVisible: false,
detailVisible: false,
query: {
businessNo: undefined,
businessType:'1',
},
treeProps: {
children: 'children',
label: 'fullName',
value: 'id',
isLeaf: 'isLeaf'
},
list: [],
listLoading: true,
multipleSelection: [],
total: 0,
queryData: {},
listQuery: {
superQueryJson: '',
currentPage: 1,
pageSize: 20,
sort: "desc",
sidx: "",
},
formVisible: false,
flowVisible: false,
flowListVisible: false,
flowList: [],
exportBoxVisible: false,
tableField102_creditRatingOptions: [{
"fullName": "一星",
"id": "1"
}, {
"fullName": "二星",
"id": "2"
}, {
"fullName": "三星",
"id": "3"
}, {
"fullName": "四星",
"id": "4"
}, {
"fullName": "五星",
"id": "5"
}],
tableField102_creditRatingProps: {
"label": "fullName",
"value": "id"
},
tableField102_cooperateTypeOptions: [{
"fullName": "买断",
"id": "1"
}, {
"fullName": "联营",
"id": "2"
}],
tableField102_cooperateTypeProps: {
"label": "fullName",
"value": "id"
},
tableField102_settlementTypeOptions: [{
"fullName": "先货后款",
"id": "1"
}, {
"fullName": "先款后货",
"id": "2"
}],
tableField102_settlementTypeProps: {
"label": "fullName",
"value": "id"
},
interfaceRes: {},
}
},
computed: {
...mapGetters(['userInfo']),
menuId() {
return this.$route.meta.modelId || ''
}
},
created() {
getFormById("522376064903685637").then(res1 => {
let flowId = res1.data && res1.data.id
getFlowList(flowId, '1').then(res2 => {
this.flowList = res2.data
this.getColumnList(),
this.initSearchDataAndListData()
this.queryData = JSON.parse(JSON.stringify(this.query))
}).catch((e) => {
this.$message({
type: 'error',
message: e.message
});
this.$router.push('/404');
})
})
},
methods: {
toDetail(defaultValue, modelId) {
if (!defaultValue) return
getConfigData(modelId).then(res => {
if (!res.data || !res.data.formData) return
let formData = JSON.parse(res.data.formData)
formData.popupType = 'general'
this.toFormDetailVisible = true
this.$nextTick(() => {
this.$refs.toFormDetail.init(formData, modelId, defaultValue)
})
})
},
toggleTreeExpand(expands) {
this.refreshTree = false
this.expandsTree = expands
this.$nextTick(() => {
this.refreshTree = true
this.$nextTick(() => {
this.$refs.treeBox.setCurrentKey(null)
})
})
},
filterNode(value, data) {
if (!value) return true;
return data[this.treeProps.label].indexOf(value) !== -1;
},
loadNode(node, resolve) {
const nodeData = node.data
const config = {
treeInterfaceId: "",
treeTemplateJson: []
}
if (config.treeInterfaceId) {
//
if (config.treeTemplateJson && config.treeTemplateJson.length) {
for (let i = 0; i < config.treeTemplateJson.length; i++) {
const element = config.treeTemplateJson[i];
element.defaultValue = nodeData[element.relationField] || ''
}
}
//
let query = {
paramList: config.treeTemplateJson || [],
}
//
getDataInterfaceRes(config.treeInterfaceId, query).then(res => {
let data = res.data
if (Array.isArray(data)) {
resolve(data);
} else {
resolve([]);
}
})
}
},
getColumnList() {
//
this.columnOptions = this.transformColumnList(this.columnList)
},
transformColumnList(columnList) {
let list = []
for (let i = 0; i < columnList.length; i++) {
const e = columnList[i];
if (!e.prop.includes('-')) {
list.push(e)
} else {
let prop = e.prop.split('-')[0]
let label = e.label.split('-')[0]
let vModel = e.prop.split('-')[1]
let newItem = {
align: "center",
jnpfKey: "table",
prop,
label,
children: []
}
e.vModel = vModel
if (!this.expandObj.hasOwnProperty(`${prop}Expand`)) this.$set(this.expandObj, `${prop}Expand`, false)
if (!list.some(o => o.prop === prop)) list.push(newItem)
for (let i = 0; i < list.length; i++) {
if (list[i].prop === prop) {
list[i].children.push(e)
break
}
}
}
}
this.getMergeList(list)
this.getExportList(list)
return list
},
arraySpanMethod({
column
}) {
for (let i = 0; i < this.mergeList.length; i++) {
if (column.property == this.mergeList[i].prop) {
return [this.mergeList[i].rowspan, this.mergeList[i].colspan]
}
}
},
getMergeList(list) {
let newList = JSON.parse(JSON.stringify(list))
newList.forEach(item => {
if (item.children && item.children.length) {
let child = {
prop: item.prop + '-child-first'
}
item.children.unshift(child)
}
})
newList.forEach(item => {
if (item.children && item.children.length) {
item.children.forEach((child, index) => {
if (index == 0) {
this.mergeList.push({
prop: child.prop,
rowspan: 1,
colspan: item.children.length
})
} else {
this.mergeList.push({
prop: child.prop,
rowspan: 0,
colspan: 0
})
}
})
} else {
this.mergeList.push({
prop: item.prop,
rowspan: 1,
colspan: 1
})
}
})
},
getExportList(list) {
let exportList = []
for (let i = 0; i < list.length; i++) {
if (list[i].jnpfKey === 'table') {
for (let j = 0; j < list[i].children.length; j++) {
exportList.push(list[i].children[j])
}
} else {
exportList.push(list[i])
}
}
this.exportList = exportList
},
goDetail(id) {
this.detailVisible = true
this.$nextTick(() => {
this.$refs.Detail.init(id)
})
},
sortChange({
column,
prop,
order
}) {
this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
this.listQuery.sidx = !order ? '' : prop
this.initData()
},
async initSearchDataAndListData() {
await this.initSearchData()
this.initData()
},
//
async initSearchData() {},
initData() {
this.listLoading = true;
let _query = {
...this.listQuery,
...this.query,
keyword: this.keyword,
dataType: 0,
menuId: this.menuId,
moduleId: '522376064903685637',
type: 1,
};
request({
url: `/api/scm/Subjectaccountperiodrulesno/getList`,
method: 'post',
data: _query
}).then(res => {
var _list = res.data.list;
this.list = _list.map(o => ({
...o,
...this.expandObj,
}))
this.total = res.data.pagination.total
this.listLoading = false
})
},
handleDel(id) {
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
type: 'warning'
}).then(() => {
request({
url: `/api/scm/Subjectaccountperiodrulesno/${id}`,
method: 'DELETE'
}).then(res => {
this.$message({
type: 'success',
message: res.msg,
onClose: () => {
this.initData()
}
});
})
}).catch(() => {});
},
handelUpload() {
this.uploadBoxVisible = true
this.$nextTick(() => {
this.$refs.UploadBox.init("", "scm/Subjectaccountperiodrulesno")
})
},
handleSelectionChange(val) {
const res = val.map(item => item.id)
this.multipleSelection = res
},
handleBatchRemoveDel() {
if (!this.multipleSelection.length) {
this.$message({
type: 'error',
message: '请选择一条数据',
duration: 1500,
})
return
}
const ids = this.multipleSelection
this.$confirm('您确定要删除这些数据吗, 是否继续?', '提示', {
type: 'warning'
}).then(() => {
request({
url: `/api/scm/Subjectaccountperiodrulesno/batchRemove`,
data: ids,
method: 'DELETE'
}).then(res => {
this.$message({
type: 'success',
message: res.msg,
onClose: () => {
this.initData()
}
});
})
}).catch(() => {})
},
openSuperQuery() {
this.superQueryVisible = true
this.$nextTick(() => {
this.$refs.SuperQuery.init()
})
},
superQuery(queryJson) {
this.listQuery.superQueryJson = queryJson
this.listQuery.currentPage = 1
this.initData()
},
addOrUpdateHandle(row, flowState) {
if (!row) {
this.addHandle();
} else {
this.updateHandle(row, flowState)
}
},
exportData() {
this.exportBoxVisible = true
this.$nextTick(() => {
this.$refs.ExportBox.init(this.exportList)
})
},
download(data) {
let query = {
...data,
...this.listQuery,
...this.query,
menuId: this.menuId
}
request({
url: `/api/scm/Subjectaccountperiodrulesno/Actions/Export`,
method: 'post',
data: query
}).then(res => {
if (!res.data.url) return
this.jnpf.downloadFile(res.data.url)
this.$refs.ExportBox.visible = false
this.exportBoxVisible = false
})
},
search() {
this.listQuery.currentPage = 1
this.listQuery.pageSize = 20
this.listQuery.sort = "desc"
this.listQuery.sidx = ""
this.initData()
},
//
updateHandle(row, flowState) {
let data = {
id: row.id,
flowId: row.flowId || this.flowList[0].id,
opType: flowState ? 0 : '-1',
status: flowState
}
this.flowVisible = true
this.$nextTick(() => {
this.$refs.FlowBox.init(data)
})
},
toApprovalDetail(row) {
let data = {
id: row.id,
flowId: row.flowId,
opType: 0,
status: row.currentState
}
this.formVisible = true
this.$nextTick(() => {
this.$refs.FlowBox.init(data)
})
},
addHandle() {
if (!this.flowList.length) {
this.$message({
type: 'error',
message: '流程不存在'
});
} else if (this.flowList.length === 1) {
this.selectFlow(this.flowList[0])
} else {
this.flowListVisible = true
}
},
//
selectFlow(item) {
let data = {
id: '',
formType: 1,
flowId: item.id,
opType: '-1'
}
this.flowListVisible = false
this.flowVisible = true
this.$nextTick(() => {
this.$refs.FlowBox.init(data)
})
},
refresh(isrRefresh) {
this.formVisible = false
if (isrRefresh) this.reset()
},
reset() {
this.query = JSON.parse(JSON.stringify(this.queryData))
this.search()
},
colseFlow(isrRefresh) {
this.flowVisible = false
if (isrRefresh) this.reset()
},
}
}
</script>

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save