Browse Source

Merge remote-tracking branch 'origin/developerA' into developerD

huangzhiguo 1 year ago
parent
commit
53c749e89f

+ 6 - 1000
src/main/java/com/caimei/modules/user/entity/NewCmShop.java

@@ -1,6 +1,7 @@
 package com.caimei.modules.user.entity;
 
 import com.thinkgem.jeesite.common.persistence.DataEntity;
+import lombok.Data;
 import org.hibernate.validator.constraints.Length;
 
 import javax.validation.constraints.NotNull;
@@ -14,6 +15,7 @@ import java.util.List;
  * @author zcp
  * @version 2018-05-21
  */
+@Data
 public class NewCmShop extends DataEntity<NewCmShop> {
 
     private static final long serialVersionUID = 1L;
@@ -84,6 +86,10 @@ public class NewCmShop extends DataEntity<NewCmShop> {
     private String cardNumber; //收款卡号
     private Integer chargeSupport;//线上支付手续费:默认1采美承担,2供应商承担
     private Integer AccountOwnership; // 账号归属 0采美 1 供应商
+    /**
+     * 帐号类型 0 公账 1私账
+     */
+    private Integer CmAccountType;
     /**
      * 非持久化字段
      **/
@@ -99,1004 +105,4 @@ public class NewCmShop extends DataEntity<NewCmShop> {
     private String cmBankAccount; //付采美银行账号
     private String cmBankAccountName; //采美付款账号的户名
     private String cmBankName; //采美付款账号的开户行
-
-    public String getCmBankAccount() {
-        return cmBankAccount;
-    }
-
-    public void setCmBankAccount(String cmBankAccount) {
-        this.cmBankAccount = cmBankAccount;
-    }
-
-    public String getCmBankAccountName() {
-        return cmBankAccountName;
-    }
-
-    public void setCmBankAccountName(String cmBankAccountName) {
-        this.cmBankAccountName = cmBankAccountName;
-    }
-
-    public String getCmBankName() {
-        return cmBankName;
-    }
-
-    public void setCmBankName(String cmBankName) {
-        this.cmBankName = cmBankName;
-    }
-
-    public NewCmShop() {
-        super();
-    }
-
-    public NewCmShop(String id) {
-        super(id);
-    }
-
-    public String getCheckMan() {
-        return checkMan;
-    }
-
-    public void setCheckMan(String checkMan) {
-        this.checkMan = checkMan;
-    }
-
-    public String getCardNumber() {
-        return cardNumber;
-    }
-
-    public void setCardNumber(String cardNumber) {
-        this.cardNumber = cardNumber;
-    }
-
-    public Integer getShopType() {
-        return shopType;
-    }
-
-    public void setShopType(Integer shopType) {
-        this.shopType = shopType;
-    }
-
-    public String getSplitCode() {
-        return splitCode;
-    }
-
-    public void setSplitCode(String splitCode) {
-        this.splitCode = splitCode;
-    }
-
-    @Length(min = 0, max = 50, message = "联系人1邮箱长度必须介于 0 和 50 之间")
-    public String getContractEmail() {
-        return contractEmail;
-    }
-
-    public void setContractEmail(String contractEmail) {
-        this.contractEmail = contractEmail;
-    }
-
-    @NotNull(message = "shopID不能为空")
-    public Integer getShopID() {
-        return shopID;
-    }
-
-    public void setShopID(Integer shopID) {
-        this.shopID = shopID;
-    }
-
-    public Integer getUserID() {
-        return userID;
-    }
-
-    public void setUserID(Integer userID) {
-        this.userID = userID;
-    }
-
-    @Length(min = 0, max = 50, message = "名称长度必须介于 0 和 50 之间")
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    @Length(min = 0, max = 50, message = "供应商公司简称长度必须介于 0 和 50 之间")
-    public String getSname() {
-        return sname;
-    }
-
-    public void setSname(String sname) {
-        this.sname = sname;
-    }
-
-//    @Length(min = 0, max = 100, message = "英文名长度必须介于 0 和 100 之间")
-//    public String getNameEn() {
-//        return nameEn;
-//    }
-//
-//    public void setNameEn(String nameEn) {
-//        this.nameEn = nameEn;
-//    }
-//
-//    @Length(min = 0, max = 200, message = "网站长度必须介于 0 和 200 之间")
-//    public String getSite() {
-//        return site;
-//    }
-//
-//    public void setSite(String site) {
-//        this.site = site;
-//    }
-
-    @Length(min = 0, max = 200, message = "公司LOGO长度必须介于 0 和 200 之间")
-    public String getLogo() {
-        return logo;
-    }
-
-    public void setLogo(String logo) {
-        this.logo = logo;
-    }
-
-//    public String getLevel() {
-//        return level;
-//    }
-//
-//    public void setLevel(String level) {
-//        this.level = level;
-//    }
-//
-//    public String getScore() {
-//        return score;
-//    }
-//
-//    public void setScore(String score) {
-//        this.score = score;
-//    }
-//
-//    public Integer getProductCount() {
-//        return productCount;
-//    }
-//
-//    public void setProductCount(Integer productCount) {
-//        this.productCount = productCount;
-//    }
-
-    @Length(min = 0, max = 20, message = "法人长度必须介于 0 和 20 之间")
-    public String getLegalPerson() {
-        return legalPerson;
-    }
-
-    public void setLegalPerson(String legalPerson) {
-        this.legalPerson = legalPerson;
-    }
-
-    @Length(min = 0, max = 100, message = "businessLicense长度必须介于 0 和 100 之间")
-    public String getBusinessLicense() {
-        return businessLicense;
-    }
-
-    public void setBusinessLicense(String businessLicense) {
-        this.businessLicense = businessLicense;
-    }
-
-    @Length(min = 0, max = 100, message = "营业执照长度必须介于 0 和 100 之间")
-    public String getBusinessLicenseImage() {
-        return businessLicenseImage;
-    }
-
-    public void setBusinessLicenseImage(String businessLicenseImage) {
-        this.businessLicenseImage = businessLicenseImage;
-    }
-
-    @Length(min = 0, max = 100, message = "taxCertificate长度必须介于 0 和 100 之间")
-    public String getTaxCertificate() {
-        return taxCertificate;
-    }
-
-    public void setTaxCertificate(String taxCertificate) {
-        this.taxCertificate = taxCertificate;
-    }
-
-    @Length(min = 0, max = 100, message = "税务登记证长度必须介于 0 和 100 之间")
-    public String getTaxCertificateImage() {
-        return taxCertificateImage;
-    }
-
-    public void setTaxCertificateImage(String taxCertificateImage) {
-        this.taxCertificateImage = taxCertificateImage;
-    }
-
-    public Integer getTownID() {
-        return townID;
-    }
-
-    public void setTownID(Integer townID) {
-        this.townID = townID;
-    }
-
-    @Length(min = 0, max = 100, message = "地址长度必须介于 0 和 100 之间")
-    public String getAddress() {
-        return address;
-    }
-
-    public void setAddress(String address) {
-        this.address = address;
-    }
-
-    public String getRegisteredCapital() {
-        return registeredCapital;
-    }
-
-    public void setRegisteredCapital(String registeredCapital) {
-        this.registeredCapital = registeredCapital;
-    }
-
-    @Length(min = 0, max = 200, message = "公司性质长度必须介于 0 和 200 之间")
-    public String getNature() {
-        return nature;
-    }
-
-    public void setNature(String nature) {
-        this.nature = nature;
-    }
-
-    public String getTurnover() {
-        return turnover;
-    }
-
-    public void setTurnover(String turnover) {
-        this.turnover = turnover;
-    }
-
-    @Length(min = 0, max = 50, message = "联系人长度必须介于 0 和 50 之间")
-    public String getLinkMan() {
-        return linkMan;
-    }
-
-    public void setLinkMan(String linkMan) {
-        this.linkMan = linkMan;
-    }
-
-    @Length(min = 0, max = 50, message = "固定电话长度必须介于 0 和 50 之间")
-    public String getContractPhone() {
-        return contractPhone;
-    }
-
-    public void setContractPhone(String contractPhone) {
-        this.contractPhone = contractPhone;
-    }
-
-    @Length(min = 0, max = 20, message = "手机号长度必须介于 0 和 20 之间")
-    public String getContractMobile() {
-        return contractMobile;
-    }
-
-    public void setContractMobile(String contractMobile) {
-        this.contractMobile = contractMobile;
-    }
-
-    @Length(min = 0, max = 50, message = "传真长度必须介于 0 和 50 之间")
-    public String getFax() {
-        return fax;
-    }
-
-    public void setFax(String fax) {
-        this.fax = fax;
-    }
-
-    @Length(min = 0, max = 10, message = "邮编长度必须介于 0 和 10 之间")
-    public String getZipCode() {
-        return zipCode;
-    }
-
-    public void setZipCode(String zipCode) {
-        this.zipCode = zipCode;
-    }
-
-//    @Length(min = 0, max = 50, message = "联系人1(默认联系人)长度必须介于 0 和 50 之间")
-//    public String getLinkMan1() {
-//        return linkMan1;
-//    }
-//
-//    public void setLinkMan1(String linkMan1) {
-//        this.linkMan1 = linkMan1;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "联系人1职务长度必须介于 0 和 50 之间")
-//    public String getDuty1() {
-//        return duty1;
-//    }
-//
-//    public void setDuty1(String duty1) {
-//        this.duty1 = duty1;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "联系人1固定电话长度必须介于 0 和 50 之间")
-//    public String getContractPhone1() {
-//        return contractPhone1;
-//    }
-//
-//    public void setContractPhone1(String contractPhone1) {
-//        this.contractPhone1 = contractPhone1;
-//    }
-//
-//    @Length(min = 0, max = 20, message = "联系人1手机号长度必须介于 0 和 20 之间")
-//    public String getContractMobile1() {
-//        return contractMobile1;
-//    }
-//
-//    public void setContractMobile1(String contractMobile1) {
-//        this.contractMobile1 = contractMobile1;
-//    }
-//
-//    @Length(min = 0, max = 20, message = "联系人1QQ长度必须介于 0 和 20 之间")
-//    public String getContractQQ1() {
-//        return contractQQ1;
-//    }
-//
-//    public void setContractQQ1(String contractQQ1) {
-//        this.contractQQ1 = contractQQ1;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "联系人1微信长度必须介于 0 和 50 之间")
-//    public String getWechat1() {
-//        return wechat1;
-//    }
-//
-//    public void setWechat1(String wechat1) {
-//        this.wechat1 = wechat1;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "联系人1邮箱长度必须介于 0 和 50 之间")
-//    public String getContractEmail1() {
-//        return contractEmail1;
-//    }
-//
-//    public void setContractEmail1(String contractEmail1) {
-//        this.contractEmail1 = contractEmail1;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "联系人2长度必须介于 0 和 50 之间")
-//    public String getLinkMan2() {
-//        return linkMan2;
-//    }
-//
-//    public void setLinkMan2(String linkMan2) {
-//        this.linkMan2 = linkMan2;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "联系人2职务长度必须介于 0 和 50 之间")
-//    public String getDuty2() {
-//        return duty2;
-//    }
-//
-//    public void setDuty2(String duty2) {
-//        this.duty2 = duty2;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "联系人2固定电话长度必须介于 0 和 50 之间")
-//    public String getContractPhone2() {
-//        return contractPhone2;
-//    }
-//
-//    public void setContractPhone2(String contractPhone2) {
-//        this.contractPhone2 = contractPhone2;
-//    }
-//
-//    @Length(min = 0, max = 20, message = "联系人2手机号长度必须介于 0 和 20 之间")
-//    public String getContractMobile2() {
-//        return contractMobile2;
-//    }
-//
-//    public void setContractMobile2(String contractMobile2) {
-//        this.contractMobile2 = contractMobile2;
-//    }
-//
-//    @Length(min = 0, max = 20, message = "联系人2QQ长度必须介于 0 和 20 之间")
-//    public String getContractQQ2() {
-//        return contractQQ2;
-//    }
-//
-//    public void setContractQQ2(String contractQQ2) {
-//        this.contractQQ2 = contractQQ2;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "联系人2微信长度必须介于 0 和 50 之间")
-//    public String getWechat2() {
-//        return wechat2;
-//    }
-//
-//    public void setWechat2(String wechat2) {
-//        this.wechat2 = wechat2;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "联系人2邮箱长度必须介于 0 和 50 之间")
-//    public String getContractEmail2() {
-//        return contractEmail2;
-//    }
-//
-//    public void setContractEmail2(String contractEmail2) {
-//        this.contractEmail2 = contractEmail2;
-//    }
-//
-//    @Length(min = 0, max = 100, message = "scope长度必须介于 0 和 100 之间")
-//    public String getScope() {
-//        return scope;
-//    }
-//
-//    public void setScope(String scope) {
-//        this.scope = scope;
-//    }
-
-    @Length(min = 0, max = 5000, message = "介绍长度必须介于 0 和 5000 之间")
-    public String getInfo() {
-        return info;
-    }
-
-    public void setInfo(String info) {
-        this.info = info;
-    }
-
-    @Length(min = 0, max = 5000, message = "主打产品说明长度必须介于 0 和 5000 之间")
-    public String getProductDesc() {
-        return productDesc;
-    }
-
-    public void setProductDesc(String productDesc) {
-        this.productDesc = productDesc;
-    }
-
-//    public Double getLng() {
-//        return lng;
-//    }
-//
-//    public void setLng(Double lng) {
-//        this.lng = lng;
-//    }
-//
-//    public Double getLat() {
-//        return lat;
-//    }
-//
-//    public void setLat(Double lat) {
-//        this.lat = lat;
-//    }
-
-    @Length(min = 0, max = 19, message = "添加时间长度必须介于 0 和 19 之间")
-    public String getAddTime() {
-        return addTime;
-    }
-
-    public void setAddTime(String addTime) {
-        this.addTime = addTime;
-    }
-
-    @Length(min = 0, max = 1, message = "审核状态长度必须介于 0 和 1 之间")
-    public String getAuditStatus() {
-        return auditStatus;
-    }
-
-    public void setAuditStatus(String auditStatus) {
-        this.auditStatus = auditStatus;
-    }
-
-    @Length(min = 0, max = 19, message = "审核时间长度必须介于 0 和 19 之间")
-    public String getAuditTime() {
-        return auditTime;
-    }
-
-    public void setAuditTime(String auditTime) {
-        this.auditTime = auditTime;
-    }
-
-    @Length(min = 0, max = 100, message = "审核信息长度必须介于 0 和 100 之间")
-    public String getAuditNote() {
-        return auditNote;
-    }
-
-    public void setAuditNote(String auditNote) {
-        this.auditNote = auditNote;
-    }
-
-//    public Integer getFavoriteTimes() {
-//        return favoriteTimes;
-//    }
-//
-//    public void setFavoriteTimes(Integer favoriteTimes) {
-//        this.favoriteTimes = favoriteTimes;
-//    }
-
-    @Length(min = 0, max = 1, message = "是否可用,1可用长度必须介于 0 和 1 之间")
-    public String getValidFlag() {
-        return validFlag;
-    }
-
-    public void setValidFlag(String validFlag) {
-        this.validFlag = validFlag;
-    }
-
-//    @Length(min = 0, max = 1, message = "payFlag1长度必须介于 0 和 1 之间")
-//    public String getPayFlag1() {
-//        return payFlag1;
-//    }
-//
-//    public void setPayFlag1(String payFlag1) {
-//        this.payFlag1 = payFlag1;
-//    }
-//
-//    @Length(min = 0, max = 1, message = "auditFlag1长度必须介于 0 和 1 之间")
-//    public String getAuditFlag1() {
-//        return auditFlag1;
-//    }
-//
-//    public void setAuditFlag1(String auditFlag1) {
-//        this.auditFlag1 = auditFlag1;
-//    }
-//
-//    @Length(min = 0, max = 1, message = "payFlag2长度必须介于 0 和 1 之间")
-//    public String getPayFlag2() {
-//        return payFlag2;
-//    }
-//
-//    public void setPayFlag2(String payFlag2) {
-//        this.payFlag2 = payFlag2;
-//    }
-//
-//    @Length(min = 0, max = 1, message = "auditFlag2长度必须介于 0 和 1 之间")
-//    public String getAuditFlag2() {
-//        return auditFlag2;
-//    }
-//
-//    public void setAuditFlag2(String auditFlag2) {
-//        this.auditFlag2 = auditFlag2;
-//    }
-//
-//    @Length(min = 0, max = 1, message = "payFlag3长度必须介于 0 和 1 之间")
-//    public String getPayFlag3() {
-//        return payFlag3;
-//    }
-//
-//    public void setPayFlag3(String payFlag3) {
-//        this.payFlag3 = payFlag3;
-//    }
-//
-//    @Length(min = 0, max = 1, message = "auditFlag3长度必须介于 0 和 1 之间")
-//    public String getAuditFlag3() {
-//        return auditFlag3;
-//    }
-//
-//    public void setAuditFlag3(String auditFlag3) {
-//        this.auditFlag3 = auditFlag3;
-//    }
-
-    @Length(min = 0, max = 200, message = "note长度必须介于 0 和 200 之间")
-    public String getNote() {
-        return note;
-    }
-
-    public void setNote(String note) {
-        this.note = note;
-    }
-
-    public Integer getStatus() {
-        return status;
-    }
-
-    public void setStatus(Integer status) {
-        this.status = status;
-    }
-
-//    public Integer getSortIndex() {
-//        return sortIndex;
-//    }
-//
-//    public void setSortIndex(Integer sortIndex) {
-//        this.sortIndex = sortIndex;
-//    }
-//
-//    public Double getRate1() {
-//        return rate1;
-//    }
-//
-//    public void setRate1(Double rate1) {
-//        this.rate1 = rate1;
-//    }
-//
-//    public Double getRate2() {
-//        return rate2;
-//    }
-//
-//    public void setRate2(Double rate2) {
-//        this.rate2 = rate2;
-//    }
-//
-//    @Length(min = 0, max = 1, message = "masterFlag长度必须介于 0 和 1 之间")
-//    public String getMasterFlag() {
-//        return masterFlag;
-//    }
-//
-//    public void setMasterFlag(String masterFlag) {
-//        this.masterFlag = masterFlag;
-//    }
-//
-//    @Length(min = 0, max = 1, message = "erpFlag长度必须介于 0 和 1 之间")
-//    public String getErpFlag() {
-//        return erpFlag;
-//    }
-//
-//    public void setErpFlag(String erpFlag) {
-//        this.erpFlag = erpFlag;
-//    }
-//
-//    @Length(min = 0, max = 50, message = "shopSecret长度必须介于 0 和 50 之间")
-//    public String getShopSecret() {
-//        return shopSecret;
-//    }
-//
-//    public void setShopSecret(String shopSecret) {
-//        this.shopSecret = shopSecret;
-//    }
-//
-//    @Length(min = 0, max = 200, message = "masterLogo长度必须介于 0 和 200 之间")
-//    public String getMasterLogo() {
-//        return masterLogo;
-//    }
-//
-//    public void setMasterLogo(String masterLogo) {
-//        this.masterLogo = masterLogo;
-//    }
-//
-//    @Length(min = 0, max = 1, message = "cooperateFlag长度必须介于 0 和 1 之间")
-//    public String getCooperateFlag() {
-//        return cooperateFlag;
-//    }
-//
-//    public void setCooperateFlag(String cooperateFlag) {
-//        this.cooperateFlag = cooperateFlag;
-//    }
-//
-//    public Integer getBail() {
-//        return bail;
-//    }
-//
-//    public void setBail(Integer bail) {
-//        this.bail = bail;
-//    }
-
-    @Length(min = 0, max = 255, message = "经营范围长度必须介于 0 和 255 之间")
-    public String getBusinessScope() {
-        return businessScope;
-    }
-
-    public void setBusinessScope(String businessScope) {
-        this.businessScope = businessScope;
-    }
-
-    public String getAccount() {
-        return account;
-    }
-
-    public void setAccount(String account) {
-        this.account = account;
-    }
-
-    public Date getRegisterTime() {
-        return registerTime;
-    }
-
-    public void setRegisterTime(Date registerTime) {
-        this.registerTime = registerTime;
-    }
-
-    public String getTown() {
-        return town;
-    }
-
-    public void setTown(String town) {
-        this.town = town;
-    }
-
-    public String getCity() {
-        return city;
-    }
-
-    public void setCity(String city) {
-        this.city = city;
-    }
-
-    public String getProvince() {
-        return province;
-    }
-
-    public void setProvince(String province) {
-        this.province = province;
-    }
-
-    @Transient
-    public String getStartTime() {
-        return startTime;
-    }
-
-    public void setStartTime(String startTime) {
-        this.startTime = startTime;
-    }
-
-    @Transient
-    public String getEndTime() {
-        return endTime;
-    }
-
-    public void setEndTime(String endTime) {
-        this.endTime = endTime;
-    }
-
-    public String getFirstShopType() {
-        return firstShopType;
-    }
-
-    public void setFirstShopType(String firstShopType) {
-        this.firstShopType = firstShopType;
-    }
-
-    public String getSecondShopType() {
-        return secondShopType;
-    }
-
-    public void setSecondShopType(String secondShopType) {
-        this.secondShopType = secondShopType;
-    }
-
-    public String getMedicalPracticeLicenseImg1() {
-        return medicalPracticeLicenseImg1;
-    }
-
-    public void setMedicalPracticeLicenseImg1(String medicalPracticeLicenseImg1) {
-        this.medicalPracticeLicenseImg1 = medicalPracticeLicenseImg1;
-    }
-
-    public String getMedicalPracticeLicenseImg2() {
-        return medicalPracticeLicenseImg2;
-    }
-
-    public void setMedicalPracticeLicenseImg2(String medicalPracticeLicenseImg2) {
-        this.medicalPracticeLicenseImg2 = medicalPracticeLicenseImg2;
-    }
-
-    public String getMedicalPracticeLicenseImg3() {
-        return medicalPracticeLicenseImg3;
-    }
-
-    public void setMedicalPracticeLicenseImg3(String medicalPracticeLicenseImg3) {
-        this.medicalPracticeLicenseImg3 = medicalPracticeLicenseImg3;
-    }
-
-    public String getMainpro() {
-        return mainpro;
-    }
-
-    public void setMainpro(String mainpro) {
-        this.mainpro = mainpro;
-    }
-
-    public Double getRebateAmount() {
-        return rebateAmount;
-    }
-
-    public void setRebateAmount(Double rebateAmount) {
-        this.rebateAmount = rebateAmount;
-    }
-
-    public String getBankAccount() {
-        return bankAccount;
-    }
-
-    public void setBankAccount(String bankAccount) {
-        this.bankAccount = bankAccount;
-    }
-
-    public Double getAbleRebateAmount() {
-        return ableRebateAmount;
-    }
-
-    public void setAbleRebateAmount(Double ableRebateAmount) {
-        this.ableRebateAmount = ableRebateAmount;
-    }
-
-    public String getBankAccountName() {
-        return bankAccountName;
-    }
-
-    public void setBankAccountName(String bankAccountName) {
-        this.bankAccountName = bankAccountName;
-    }
-
-    public String getBankName() {
-        return bankName;
-    }
-
-    public void setBankName(String bankName) {
-        this.bankName = bankName;
-    }
-
-    public String getEmail() {
-        return email;
-    }
-
-    public void setEmail(String email) {
-        this.email = email;
-    }
-
-    public String getMaintenanceDate() {
-        return maintenanceDate;
-    }
-
-    public void setMaintenanceDate(String maintenanceDate) {
-        this.maintenanceDate = maintenanceDate;
-    }
-
-    public String getMaintenanceFee() {
-        return maintenanceFee;
-    }
-
-    public void setMaintenanceFee(String maintenanceFee) {
-        this.maintenanceFee = maintenanceFee;
-    }
-
-    public Integer getProvinceID() {
-        return provinceID;
-    }
-
-    public void setProvinceID(Integer provinceID) {
-        this.provinceID = provinceID;
-    }
-
-    public Integer getCityID() {
-        return cityID;
-    }
-
-    public void setCityID(Integer cityID) {
-        this.cityID = cityID;
-    }
-
-    public String getHonorCertificate1() {
-        return honorCertificate1;
-    }
-
-    public void setHonorCertificate1(String honorCertificate1) {
-        this.honorCertificate1 = honorCertificate1;
-    }
-
-    public String getHonorCertificate2() {
-        return honorCertificate2;
-    }
-
-    public void setHonorCertificate2(String honorCertificate2) {
-        this.honorCertificate2 = honorCertificate2;
-    }
-
-    public String getHonorCertificate3() {
-        return honorCertificate3;
-    }
-
-    public void setHonorCertificate3(String honorCertificate3) {
-        this.honorCertificate3 = honorCertificate3;
-    }
-
-    public String getHonorCertificate4() {
-        return honorCertificate4;
-    }
-
-    public void setHonorCertificate4(String honorCertificate4) {
-        this.honorCertificate4 = honorCertificate4;
-    }
-
-    public String getHonorCertificate5() {
-        return honorCertificate5;
-    }
-
-    public void setHonorCertificate5(String honorCertificate5) {
-        this.honorCertificate5 = honorCertificate5;
-    }
-
-    public String getProductCertificate() {
-        return productCertificate;
-    }
-
-    public void setProductCertificate(String productCertificate) {
-        this.productCertificate = productCertificate;
-    }
-
-    public String getProductionLicense() {
-        return productionLicense;
-    }
-
-    public void setProductionLicense(String productionLicense) {
-        this.productionLicense = productionLicense;
-    }
-
-    public String getSanitationPermit() {
-        return sanitationPermit;
-    }
-
-    public void setSanitationPermit(String sanitationPermit) {
-        this.sanitationPermit = sanitationPermit;
-    }
-
-    public String getTaxPermit() {
-        return taxPermit;
-    }
-
-    public void setTaxPermit(String taxPermit) {
-        this.taxPermit = taxPermit;
-    }
-
-    public String getEditStatus() {
-        return editStatus;
-    }
-
-    public void setEditStatus(String editStatus) {
-        this.editStatus = editStatus;
-    }
-
-    public String getSource() {
-        return source;
-    }
-
-    public void setSource(String source) {
-        this.source = source;
-    }
-
-    public List<SplitCode> getSplitCodes() {
-        return splitCodes;
-    }
-
-    public void setSplitCodes(List<SplitCode> splitCodes) {
-        this.splitCodes = splitCodes;
-    }
-
-    public String getSocialCreditCode() {
-        return socialCreditCode;
-    }
-
-    public void setSocialCreditCode(String socialCreditCode) {
-        this.socialCreditCode = socialCreditCode;
-    }
-
-    public String getWebsite() {
-        return website;
-    }
-
-    public void setWebsite(String website) {
-        this.website = website;
-    }
-
-    public String getWxOfficialAccount() {
-        return wxOfficialAccount;
-    }
-
-    public void setWxOfficialAccount(String wxOfficialAccount) {
-        this.wxOfficialAccount = wxOfficialAccount;
-    }
-
-    public String getWxApplets() {
-        return wxApplets;
-    }
-
-    public void setWxApplets(String wxApplets) {
-        this.wxApplets = wxApplets;
-    }
-
-    public Integer getChargeSupport() {
-        return chargeSupport;
-    }
-
-    public void setChargeSupport(Integer chargeSupport) {
-        this.chargeSupport = chargeSupport;
-    }
-
-    public Integer getAccountOwnership() {
-        return AccountOwnership;
-    }
-
-    public void setAccountOwnership(Integer accountOwnership) {
-        AccountOwnership = accountOwnership;
-    }
 }

+ 3 - 40
src/main/java/com/caimei/modules/user/entity/SplitCode.java

@@ -1,51 +1,14 @@
 package com.caimei.modules.user.entity;
 
 import com.thinkgem.jeesite.common.persistence.DataEntity;
+import lombok.Data;
 
+@Data
 public class SplitCode extends DataEntity<SplitCode> {
     private String splitCode;//分账商户号
     private String codeRemark;//账户备注
     private Integer shopId; //供应商ID
     private String email;
     private Integer weChatFlag; // 微信开户意愿确认 1开通 2未开通
-
-    public String getSplitCode() {
-        return splitCode;
-    }
-
-    public void setSplitCode(String splitCode) {
-        this.splitCode = splitCode;
-    }
-
-    public String getCodeRemark() {
-        return codeRemark;
-    }
-
-    public void setCodeRemark(String codeRemark) {
-        this.codeRemark = codeRemark;
-    }
-
-    public Integer getShopId() {
-        return shopId;
-    }
-
-    public void setShopId(Integer shopId) {
-        this.shopId = shopId;
-    }
-
-    public String getEmail() {
-        return email;
-    }
-
-    public void setEmail(String email) {
-        this.email = email;
-    }
-
-    public Integer getWeChatFlag() {
-        return weChatFlag;
-    }
-
-    public void setWeChatFlag(Integer weChatFlag) {
-        this.weChatFlag = weChatFlag;
-    }
+    private Integer aliPayFlag; // 微信开户意愿确认 1开通 2未开通
 }

+ 11 - 10
src/main/java/com/caimei/modules/user/web/NewCmShopController.java

@@ -196,23 +196,24 @@ public class NewCmShopController extends BaseController {
         //获取供应商证书信息
         newCmShop = newCmShopService.get(newCmShop.getShopID().toString());
         //去除银行账号空格
-        if(newCmShop!=null&&newCmShop.getBankAccount()!=null){
-            newCmShop.setBankAccount(newCmShop.getBankAccount().replaceAll(" ",""));
+        if (newCmShop != null && newCmShop.getBankAccount() != null) {
+            newCmShop.setBankAccount(newCmShop.getBankAccount().replaceAll(" ", ""));
         }
         model.addAttribute("newCmShop", newCmShop);
         return "modules/user/newCmShopSetForm";
     }
+
     @RequiresPermissions("user:newCmShop:edit")
     @RequestMapping(value = "updateShop")
     public String updateShop(NewCmShop newCmShop, Model model, RedirectAttributes redirectAttributes) {
-            if (newCmShop.getShopID()==null) {
-                addMessage(redirectAttributes, "保存失败");
-            }
-            if (newCmShopService.updateShop(newCmShop)>0) {
-                addMessage(redirectAttributes, "保存成功");
-            }else {
-                addMessage(redirectAttributes, "保存失败");
-            }
+        if (newCmShop.getShopID() == null) {
+            addMessage(redirectAttributes, "保存失败");
+        }
+        if (newCmShopService.updateShop(newCmShop) > 0) {
+            addMessage(redirectAttributes, "保存成功");
+        } else {
+            addMessage(redirectAttributes, "保存失败");
+        }
         return "redirect:" + Global.getAdminPath() + "/user/newCmShop";
     }
 

+ 6 - 4
src/main/resources/mappings/modules/user/NewCmShopMapper.xml

@@ -64,7 +64,8 @@
 		a.shopType AS "shopType",
 		a.cardNumber AS "cardNumber",
 		a.chargeSupport AS "chargeSupport",
-		d.name AS "province",c.name AS "city",b.name AS "town"
+		d.name AS "province",c.name AS "city",b.name AS "town",
+        a.CmAccountType
     </sql>
 
     <sql id="newCmShopJoins">
@@ -152,7 +153,7 @@
         </choose>
     </select>
     <select id="findSplitCode" resultType="com.caimei.modules.user.entity.SplitCode">
-        select shopId, commercialCode as splitCode, codeDetail as codeRemark, email as email, weChatFlag
+        select shopId, commercialCode as splitCode, codeDetail as codeRemark, email as email, weChatFlag,ifnull(aliPayFlag,2) as aliPayFlag
         from cm_shop_splitcode
         where shopId = #{shopID}
     </select>
@@ -262,8 +263,8 @@
     </insert>
     <insert id="insertSplitCode">
         insert into cm_shop_splitcode
-            (shopId, commercialCode, codeDetail, email, weChatFlag)
-        values (#{shopId}, #{splitCode}, #{codeRemark}, #{email}, #{weChatFlag})
+            (shopId, commercialCode, codeDetail, email, weChatFlag ,aliPayFlag)
+        values (#{shopId}, #{splitCode}, #{codeRemark}, #{email}, #{weChatFlag},#{aliPayFlag})
     </insert>
     <insert id="insertSepcial" parameterType="NewCmShop" keyProperty="shopID" useGeneratedKeys="true">
         insert into shop(name, linkMan, contractMobile, status, addTime, shopType)
@@ -665,6 +666,7 @@
             <if test="shopType != null and shopType != ''">shopType = #{shopType},</if>
             <if test="cardNumber != null and cardNumber != ''">cardNumber = #{cardNumber},</if>
 <!--            <if test="accountType != null and accountType != ''">accountType = #{accountType},</if>-->
+            <if test="CmAccountType != null and CmAccountType != ''">CmAccountType = #{CmAccountType},</if>
 <!--            <if test="banOfDeposit != null and banOfDeposit != ''">banOfDeposit = #{banOfDeposit},</if>-->
 <!--            <if test="accountName != null and accountName != ''">accountName = #{accountName},</if>-->
             <if test="chargeSupport != null and chargeSupport != ''">chargeSupport = #{chargeSupport},</if>

+ 13 - 1
src/main/webapp/WEB-INF/views/modules/order/cmPayShopChange.jsp

@@ -299,11 +299,23 @@
                                             style="margin-left: 20px"/>
                     </td>
                     <td>
-                        <b>第三方:</b><input type="number" id="shopOtherFee" name="shopOtherFee" onchange="inputnum(this)"
+                        <b>第三方中介费:</b><input type="number" id="shopOtherFee" name="shopOtherFee" onchange="inputnum(this)"
                                            value="${newShopOrder.shopOtherFee}"
                                            style="margin-left: 5px;" ${(!newShopOrder.payShopOtherFee || payShopOtherFee > 0) ? 'readonly="true"':""}/>
                     </td>
                 </tr>
+                <tr>
+                    <td>
+                        <font color="red">*</font>
+                        是否为返佣订单:
+                        <form:select path="" class="input-medium">
+                            <form:option value="0" label="否"/>
+                            <form:option value="1" label="是"/>
+                        </form:select>
+                        <br/>
+                        <font color="red">(若确定为返佣订单,则供应商运费,促销金额(平台类)和优惠券金额(平台类)都由平台服务费承担)</font>
+                    </td>
+                </tr>
                 <tr>
                     <td style="padding-top: 10px;">
                         <b>付供应商:</b><font color="red"><span

+ 313 - 235
src/main/webapp/WEB-INF/views/modules/order/cmPayShopChange1.jsp

@@ -1,32 +1,43 @@
 <%@ page contentType="text/html;charset=UTF-8" %>
-<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
+<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
 <html>
 <head>
-	<title>付款修改</title>
-	<meta name="decorator" content="default"/>
-	<style type="text/css">
-			.table th {text-align: center}
-		.table td {text-align: center}
-		#searchForm {
-			white-space: nowrap;
-		}
-		.pay-wrapper {
-			padding: 0 10px;
-		}
-		.pay-list-item {
-			margin-bottom: 30px;
-		}
-		.pay-table th {
-			background: #f9f9f9;
-		}
-		.pay-table tr:first-child th {
-			background: #eee !important;
-		}
-		.pay-table td {
-			background: #fff !important;
-		}
-
-       .form-horizontal .controls {
+    <title>付款修改</title>
+    <meta name="decorator" content="default"/>
+    <style type="text/css">
+        .table th {
+            text-align: center
+        }
+
+        .table td {
+            text-align: center
+        }
+
+        #searchForm {
+            white-space: nowrap;
+        }
+
+        .pay-wrapper {
+            padding: 0 10px;
+        }
+
+        .pay-list-item {
+            margin-bottom: 30px;
+        }
+
+        .pay-table th {
+            background: #f9f9f9;
+        }
+
+        .pay-table tr:first-child th {
+            background: #eee !important;
+        }
+
+        .pay-table td {
+            background: #fff !important;
+        }
+
+        .form-horizontal .controls {
             margin-left: 0;
         }
 
@@ -56,23 +67,29 @@
             text-align: center;
             white-space: nowrap;
         }
-        .controls{
+
+        .controls {
             font-size: 0;
         }
-        .controls .conList{
+
+        .controls .conList {
             display: inline-block;
             margin-right: 15px;
         }
-        .conList .btn:nth-of-type(1){
+
+        .conList .btn:nth-of-type(1) {
             margin-left: 25px;
         }
-        .select2-choice{
+
+        .select2-choice {
             width: 100px;
         }
+
         .upload-content {
             margin-top: -70px;
             display: inline-block;
         }
+
         .upload-content .conList .btn:nth-of-type(1) {
             width: 90px;
             height: 100px;
@@ -80,19 +97,23 @@
             background: #fff;
             position: relative;
         }
-        .upload-content .conList .btn:nth-of-type(1)>div {
+
+        .upload-content .conList .btn:nth-of-type(1) > div {
             position: absolute;
             top: 50%;
             left: 50%;
             transform: translate(-50%, -50%);
             color: #666;
         }
+
         .upload-content .conList .btn:nth-of-type(1) span {
             font-size: 35px;
         }
+
         .upload-content .conList .btn:nth-of-type(1) h5 {
             color: #666;
         }
+
         .cancel-upload {
             background: transparent;
             border: none;
@@ -103,7 +124,8 @@
             cursor: pointer;
             z-index: 100;
         }
-         .upload-content .conList ol li {
+
+        .upload-content .conList ol li {
             width: 114px;
             min-height: 80px;
             text-align: center;
@@ -112,19 +134,21 @@
             top: 120px;
             margin-left: 2px;
         }
+
         .hide-pic {
             display: none !important;
         }
+
         .upload-tips {
             margin: 10px 0;
         }
-	</style>
-	<script type="text/javascript">
+    </style>
+    <script type="text/javascript">
         var orderProducts = new Array();
-        $(document).ready(function() {
+        $(document).ready(function () {
             $("#inputForm").validate({
-                ignore:"",
-                submitHandler: function(form){
+                ignore: "",
+                submitHandler: function (form) {
                     var flag = setOrderProductInfo();
                     // var proportional = $("#proportional").val();// 子订单占比
                     var modifyShouldPayNote = $("#modifyShouldPayNote").val();//备注
@@ -134,7 +158,7 @@
                         alertx("比例不能为空");
                         return false;
                     }*/
-                    if(null == modifyShouldPayNote || ""  == modifyShouldPayNote){
+                    if (null == modifyShouldPayNote || "" == modifyShouldPayNote) {
                         alertx("请填写备注内容");
                         return false;
                     }
@@ -142,7 +166,7 @@
                         top.$.jBox.confirm("每个商品三个比例之和需要等于100%", '提示');
                         return false;
                     }
-                    console.log('orderProducts',orderProducts)
+                    console.log('orderProducts', orderProducts)
                     loading('正在提交,请稍等...');
                     <%--$.ajax({--%>
                     <%--    url: '${ctx}/order/cmPayShop/saveChangePayShopAmount',--%>
@@ -171,9 +195,9 @@
                     form.submit();
                 },
                 errorContainer: "#messageBox",
-                errorPlacement: function(error, element) {
+                errorPlacement: function (error, element) {
                     $("#messageBox").text("输入有误,请先更正。");
-                    if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
+                    if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
                         error.appendTo(element.parent().parent());
                     } else {
                         error.insertAfter(element);
@@ -182,6 +206,7 @@
             });
 
         });
+
         function setOrderProductInfo() {
             var flag = true;
             $('.tr_orderProduct').each(function (dom, index) {
@@ -197,10 +222,10 @@
                 var cmPercent = that.find('.cmPercent').val()
                 var organizePercent = that.find('.organizePercent').val()
                 var shopPercent = that.find('.shopPercent').val()
-                console.log('shopPercent'+shopPercent)
-                console.log('organizePercent'+organizePercent)
-                console.log('cmPercent'+cmPercent)
-                if (100 != (shopPercent*1 + organizePercent*1 + cmPercent*1)) {
+                console.log('shopPercent' + shopPercent)
+                console.log('organizePercent' + organizePercent)
+                console.log('cmPercent' + cmPercent)
+                if (100 != (shopPercent * 1 + organizePercent * 1 + cmPercent * 1)) {
                     top.$.jBox.confirm("每个商品三个比例之和需要等于100%", '提示');
                     flag = false;
                     return;
@@ -219,7 +244,8 @@
             })
             return flag;
         }
-        function page(n,s){
+
+        function page(n, s) {
             $("#pageNo").val(n);
             $("#pageSize").val(s);
             $("#searchForm").submit();
@@ -228,58 +254,74 @@
 
         //初始化默认清除本地本地Item数据
 
-	</script>
+    </script>
 </head>
 <body>
 <ul class="nav nav-tabs">
-		<%--<li><a href="${ctx}/order/cmPayShop">付款列表</a></li>--%>
-		<li><a href="${ctx}/shopOrder/payOrderList?operatingMode=1">申请付款</a></li>
-		<li class="active"><a href="${ctx}/shopOrder/toChangePayShopAmount?costType=2&shopOrderID=${shopOrderId}">修改应付</a></li>
+    <%--<li><a href="${ctx}/order/cmPayShop">付款列表</a></li>--%>
+    <li><a href="${ctx}/shopOrder/payOrderList?operatingMode=1">申请付款</a></li>
+    <li class="active"><a href="${ctx}/shopOrder/toChangePayShopAmount?costType=2&shopOrderID=${shopOrderId}">修改应付</a>
+    </li>
 </ul>
 
-<form:form id="inputForm" modelAttribute="newShopOrder" action="${ctx}/order/cmPayShop/saveChangePayShopAmount?id=${shopOrderId}&costType=2" method="post"
+<form:form id="inputForm" modelAttribute="newShopOrder"
+           action="${ctx}/order/cmPayShop/saveChangePayShopAmount?id=${shopOrderId}&costType=2" method="post"
            class="form-horizontal">
-		<ul class="nav nav-tabs" id="myTab">
-		<c:if test="${dbCostType eq 1 || empty dbCostType}">
-			<li><a href="${ctx}/shopOrder/toChangePayShopAmount?costType=1&shopOrderID=${shopOrderId}">固定成本修改</a></li>
-		</c:if>
-		<c:if test="${dbCostType eq 2 || empty dbCostType}">
-			<li  class="active"><a href="${ctx}/shopOrder/toChangePayShopAmount?costType=2&shopOrderID=${shopOrderId}">销售比例成本修改</a></li>
-		</c:if>
-		</ul>
-		<c:forEach items="${page.list}" var="newShopOrder">
-			<div>
-                <input id="shopOrderID" type="hidden"  name="shopOrderID" value="${newShopOrder.shopOrderID}">
-                <input id="orderID" type="hidden"  name="orderID" value="${newShopOrder.orderID}">
-                <input id="productAmount" type="hidden"  name="productAmount" value="${newShopOrder.productAmount}">
-                <table class="table table-striped table-bordered table-condensed" style="width: 80%">
-                    <thead>
-                        <tr>
-                            <th hidden>订单商品Id</th>
-                            <th>商品名</th>
-                            <th>规格</th>
-                            <th>供应商比例</th>
-                            <th>集团比例</th>
-                            <th>采美比例</th>
-                        </tr>
-                    </thead>
-                    <tbody>
-                        <c:forEach var="product" items="${newShopOrder.newOrderProducts}" varStatus="index">
-                            <tr class="tr_orderProduct">
-                                <td hidden><input id="num" name="newOrderProducts[${index.index}].num" class="num" value="${product.num - product.returnedNum}"></td>
-                                <td hidden><input id="presentNum" name="newOrderProducts[${index.index}].presentNum" class="presentNum" value="${product.presentNum}"></td>
-                                <td hidden><input id="name" name="newOrderProducts[${index.index}].name" class="name" value="${product.name}"></td>
-                                <td hidden><input id="orderProductID" name="newOrderProducts[${index.index}].orderProductID" class="orderProductID" value="${product.orderProductID}"></td>
-                                <td hidden><input id="includedTax${index.index}" class="includedTax" value="${product.includedTax}"></td>
-                                <td hidden><input id="productID${index.index}" class="productID" value="${product.productID}"></td>
-                                <td>${product.name}</td>
-                                <td>${product.productUnit}</td>
-                                <td><input id="shopPercent" type="number" name="newOrderProducts[${index.index}].shopPercent" class="shopPercent" value="${product.shopPercent}" style="width: 100px"/> %</td>
-                                <td><input id="organizePercent" type="number" name="newOrderProducts[${index.index}].organizePercent" class="organizePercent" value="${product.organizePercent}" style="width: 100px"/> %</td>
-                                <td><input id="cmPercent" type="number" name="newOrderProducts[${index.index}].cmPercent" class="cmPercent" value="${product.cmPercent}" style="width: 100px"/> %</td>
-                            </tr>
-                        </c:forEach>
-                    </tbody>
+    <ul class="nav nav-tabs" id="myTab">
+        <c:if test="${dbCostType eq 1 || empty dbCostType}">
+            <li><a href="${ctx}/shopOrder/toChangePayShopAmount?costType=1&shopOrderID=${shopOrderId}">固定成本修改</a></li>
+        </c:if>
+        <c:if test="${dbCostType eq 2 || empty dbCostType}">
+            <li class="active"><a href="${ctx}/shopOrder/toChangePayShopAmount?costType=2&shopOrderID=${shopOrderId}">销售比例成本修改</a>
+            </li>
+        </c:if>
+    </ul>
+    <c:forEach items="${page.list}" var="newShopOrder">
+        <div>
+            <input id="shopOrderID" type="hidden" name="shopOrderID" value="${newShopOrder.shopOrderID}">
+            <input id="orderID" type="hidden" name="orderID" value="${newShopOrder.orderID}">
+            <input id="productAmount" type="hidden" name="productAmount" value="${newShopOrder.productAmount}">
+            <table class="table table-striped table-bordered table-condensed" style="width: 80%">
+                <thead>
+                <tr>
+                    <th hidden>订单商品Id</th>
+                    <th>商品名</th>
+                    <th>规格</th>
+                    <th>供应商比例</th>
+                    <th>集团比例</th>
+                    <th>采美比例</th>
+                </tr>
+                </thead>
+                <tbody>
+                <c:forEach var="product" items="${newShopOrder.newOrderProducts}" varStatus="index">
+                    <tr class="tr_orderProduct">
+                        <td hidden><input id="num" name="newOrderProducts[${index.index}].num" class="num"
+                                          value="${product.num - product.returnedNum}"></td>
+                        <td hidden><input id="presentNum" name="newOrderProducts[${index.index}].presentNum"
+                                          class="presentNum" value="${product.presentNum}"></td>
+                        <td hidden><input id="name" name="newOrderProducts[${index.index}].name" class="name"
+                                          value="${product.name}"></td>
+                        <td hidden><input id="orderProductID" name="newOrderProducts[${index.index}].orderProductID"
+                                          class="orderProductID" value="${product.orderProductID}"></td>
+                        <td hidden><input id="includedTax${index.index}" class="includedTax"
+                                          value="${product.includedTax}"></td>
+                        <td hidden><input id="productID${index.index}" class="productID" value="${product.productID}">
+                        </td>
+                        <td>${product.name}</td>
+                        <td>${product.productUnit}</td>
+                        <td><input id="shopPercent" type="number" name="newOrderProducts[${index.index}].shopPercent"
+                                   class="shopPercent" value="${product.shopPercent}" style="width: 100px"/> %
+                        </td>
+                        <td><input id="organizePercent" type="number"
+                                   name="newOrderProducts[${index.index}].organizePercent" class="organizePercent"
+                                   value="${product.organizePercent}" style="width: 100px"/> %
+                        </td>
+                        <td><input id="cmPercent" type="number" name="newOrderProducts[${index.index}].cmPercent"
+                                   class="cmPercent" value="${product.cmPercent}" style="width: 100px"/> %
+                        </td>
+                    </tr>
+                </c:forEach>
+                </tbody>
                     <%--<tr>
                         <td colspan="2">
                         <input type="hidden" id="shopOrderAmount" name="shopOrderAmount" value="${newShopOrder.productAmount}">
@@ -312,194 +354,230 @@
                         </td>
                     </tr>--%>
 
-                </table>
-			</div>
+            </table>
+        </div>
 
-			<table>
-                <td>
-                    <b>供应商运费:</b>
-                </td>
-                <td>
-                    <input type="number" id="shopPostFee" name="shopPostFee"  onchange="changeShouldPay(this)"  value="${newShopOrder.shopPostFee}" style="margin-left: 20px"/>
-                </td>
+        <table>
+            <td>
+                <b>供应商运费:</b>
+            </td>
+            <td>
+                <input type="number" id="shopPostFee" name="shopPostFee" onchange="changeShouldPay(this)"
+                       value="${newShopOrder.shopPostFee}" style="margin-left: 20px"/>
+            </td>
+            <td>
+                <b>第三方中介费:</b>
+            </td>
+            <td>
+                <input type="number" id="shopOtherFee" name="shopOtherFee" onchange="changeShouldPay(this)"
+                       value="${newShopOrder.shopOtherFee}" style="margin-left: 20px"/>
+            </td>
+            <tr>
                 <td>
-                    <b>付第三方:</b>
+                    <font color="red">*</font>
+                    是否为返佣订单:
+                    <form:select class="input-medium">
+                        <form:option value="0" label="否"/>
+                        <form:option value="1" label="是"/>
+                    </form:select>
+                    <br/>
+                    <font color="red">(若确定为返佣订单,则供应商运费,促销金额(平台类)和优惠券金额(平台类)都由平台服务费承担)</font>
                 </td>
-                <td>
-                    <input type="number" id="shopOtherFee" name="shopOtherFee"  onchange="changeShouldPay(this)"  value="${newShopOrder.shopOtherFee}" style="margin-left: 20px"/>
+            </tr>
+            <tr>
+                <td style="padding-top: 10px;">
+                    <b>付供应商:</b><font color="red"><span id="div-supplier-fee">${newShopOrder.shouldPayShopAmount}</span></font>
                 </td>
-				<tr>
-					<td style="padding-top: 10px;">
-						<b>付供应商:</b><font color="red"><span id="div-supplier-fee">${newShopOrder.shouldPayShopAmount}</span></font>
-					</td>
-					<%--<td style="padding-top: 10px;padding-left: 87px">
-						<b>已付供应商:</b><font color="red"><span id="div-payedShopAmount">${newShopOrder.payedShopAmount}</span></font>
-					</td>--%>
-				</tr>
-			</table>
-			<div style="margin-top: 10px">
-				<div class="remark-title"><font color="red">*</font>备注内容:</div>
-				<textarea name="modifyShouldPayNote" id="modifyShouldPayNote" class="remark-textarea" maxlength="500" placeholder="建议填写修改原因和修改前后的金额对比,不超过500字" style="width: 600px;height: 150px;margin-left: 70px;margin-top: -20px"></textarea>
-			</div>
-		</div>
-
-		</c:forEach>
-
-		<div >
-			<div class="controls upload-content" style="margin: -91px 0px 0px 16px;" id="remarkImageBox">
-			        <label>图片:</label>
-                    <div class="conList">
-                        <form:hidden id="remarkImage1" path="remarkImage1" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage1" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                    <div class="conList hide-pic">
-                        <form:hidden id="remarkImage2" path="remarkImage2" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage2" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                    <div class="conList hide-pic">
-                        <form:hidden id="remarkImage3" path="remarkImage3" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage3" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                    <div class="conList hide-pic">
-                        <form:hidden id="remarkImage4" path="remarkImage4" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage4" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                    <div class="conList hide-pic">
-                        <form:hidden id="remarkImage5" path="remarkImage5" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage5" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                    <div class="conList hide-pic">
-                        <form:hidden id="remarkImage6" path="remarkImage6" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage6" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                    <div class="conList hide-pic">
-                        <form:hidden id="remarkImage7" path="remarkImage7" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage7" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                    <div class="conList hide-pic">
-                        <form:hidden id="remarkImage8" path="remarkImage8" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage8" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                    <div class="conList  hide-pic">
-                        <form:hidden id="remarkImage9" path="remarkImage9" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage9" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                    <div class="conList  hide-pic">
-                        <form:hidden id="remarkImage10" path="remarkImage10" htmlEscape="false" maxlength="255" class="input-xlarge"/>
-                        <sys:ckfinder input="remarkImage10" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
-                    </div>
-                </div>
-		</div>
-		<div class="form-actions">
-                <input id="btnSubmit" class="btn btn-primary" type="submit" value="确认"/>
-                <input id="btnCancel" class="btn" type="button" value="返回" onclick="history.go(-1)"/>
+                    <%--<td style="padding-top: 10px;padding-left: 87px">
+                        <b>已付供应商:</b><font color="red"><span id="div-payedShopAmount">${newShopOrder.payedShopAmount}</span></font>
+                    </td>--%>
+            </tr>
+        </table>
+        <div style="margin-top: 10px">
+            <div class="remark-title"><font color="red">*</font>备注内容:</div>
+            <textarea name="modifyShouldPayNote" id="modifyShouldPayNote" class="remark-textarea" maxlength="500"
+                      placeholder="建议填写修改原因和修改前后的金额对比,不超过500字"
+                      style="width: 600px;height: 150px;margin-left: 70px;margin-top: -20px"></textarea>
+        </div>
         </div>
+
+    </c:forEach>
+
+    <div>
+        <div class="controls upload-content" style="margin: -91px 0px 0px 16px;" id="remarkImageBox">
+            <label>图片:</label>
+            <div class="conList">
+                <form:hidden id="remarkImage1" path="remarkImage1" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage1" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+            <div class="conList hide-pic">
+                <form:hidden id="remarkImage2" path="remarkImage2" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage2" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+            <div class="conList hide-pic">
+                <form:hidden id="remarkImage3" path="remarkImage3" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage3" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+            <div class="conList hide-pic">
+                <form:hidden id="remarkImage4" path="remarkImage4" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage4" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+            <div class="conList hide-pic">
+                <form:hidden id="remarkImage5" path="remarkImage5" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage5" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+            <div class="conList hide-pic">
+                <form:hidden id="remarkImage6" path="remarkImage6" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage6" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+            <div class="conList hide-pic">
+                <form:hidden id="remarkImage7" path="remarkImage7" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage7" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+            <div class="conList hide-pic">
+                <form:hidden id="remarkImage8" path="remarkImage8" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage8" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+            <div class="conList  hide-pic">
+                <form:hidden id="remarkImage9" path="remarkImage9" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage9" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+            <div class="conList  hide-pic">
+                <form:hidden id="remarkImage10" path="remarkImage10" htmlEscape="false" maxlength="255"
+                             class="input-xlarge"/>
+                <sys:ckfinder input="remarkImage10" type="images" uploadPath="/photo" selectMultiple="false"
+                              maxWidth="100" maxHeight="100"/>
+            </div>
+        </div>
+    </div>
+    <div class="form-actions">
+        <input id="btnSubmit" class="btn btn-primary" type="submit" value="确认"/>
+        <input id="btnCancel" class="btn" type="button" value="返回" onclick="history.go(-1)"/>
+    </div>
 </form:form>
 
 <script>
 
-//图片初始化
-  $(function () {
+    //图片初始化
+    $(function () {
         $('.upload-content .conList .btn:nth-of-type(1)').html('<div><span>+</span><h5>选择图片</h5></div>');
         $('.upload-content .conList .btn:nth-of-type(2)').after('<img class="cancel-upload" src="/static/images/close-btn1.png">').remove();
         $('.upload-content .conList').find('.cancel-upload').hide();
         var observeEle = document.getElementsByClassName('upload-content')[0];
         var MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
-        var MutationObserverConfig={
+        var MutationObserverConfig = {
             childList: true,
             subtree: true,
             characterData: true
         };
-        var observer = new MutationObserver(function(mutations){
-            $.each(mutations, function(index,item) {
+        var observer = new MutationObserver(function (mutations) {
+            $.each(mutations, function (index, item) {
                 if (item.type === 'childList') {
                     // 在创建新的 element 时调用
                     var target = $(item.target),
                         thisWrapper = target.closest('.conList'),
                         nextEle = thisWrapper.next();
-                    thisWrapper.find('li').css('z-index',99);
+                    thisWrapper.find('li').css('z-index', 99);
                     thisWrapper.find('.cancel-upload').show();
-                    if(nextEle.hasClass('hide-pic')) {
+                    if (nextEle.hasClass('hide-pic')) {
                         nextEle.removeClass('hide-pic');
                     }
                 }
             })
         });
-        observer.observe(observeEle,MutationObserverConfig);
+        observer.observe(observeEle, MutationObserverConfig);
 
-        $('body').on('click','.upload-content li',function() {
+        $('body').on('click', '.upload-content li', function () {
             var index = $(this).closest('.conList').index() + 1,
-                str = 'remarkImage'+index+'FinderOpen';
-            eval(str+'()');
+                str = 'remarkImage' + index + 'FinderOpen';
+            eval(str + '()');
         });
-        $('body').on('click', '.cancel-upload',function() {
+        $('body').on('click', '.cancel-upload', function () {
             var wrapper = $(this).closest('.conList');
-            wrapper.find('li').css('z-index','-1');
+            wrapper.find('li').css('z-index', '-1');
             wrapper.find('input').val('');
             $(this).hide();
             if ($('.cancel-upload:visible').length < 9) {
                 wrapper.addClass("hide-pic");
-            }else{
+            } else {
                 wrapper.removeClass("hide-pic");
             }
             wrapper.parent().append(wrapper.clone());
             wrapper.remove();
-			$(".conList").each(function(i,ele){
-				if($(ele).find("input.input-xlarge").val()){
-					$(ele).next().removeClass("hide-pic")
-				}
-			})
+            $(".conList").each(function (i, ele) {
+                if ($(ele).find("input.input-xlarge").val()) {
+                    $(ele).next().removeClass("hide-pic")
+                }
+            })
+        });
+        $(window).on("load", function () {
+            setTimeout(function () {
+                $("#remarkImageBox").find("input.input-xlarge").each(function (i, ele) {
+                    if ($(ele).val()) {
+                        $(ele).next().find("li").css("z-index", "99");
+                        $(ele).parents(".conList").find(".cancel-upload").show();
+                        $(ele).parents(".conList").next().removeClass("hide-pic")
+                    }
+                })
+            }, 500);
         });
-		$(window).on("load", function(){
-			setTimeout(function(){
-				$("#remarkImageBox").find("input.input-xlarge").each(function(i,ele){
-					if($(ele).val()){
-						$(ele).next().find("li").css("z-index","99");
-						$(ele).parents(".conList").find(".cancel-upload").show();
-						$(ele).parents(".conList").next().removeClass("hide-pic")
-					}
-				})
-			},500);
-		});
     });
 
     // 输入框验证
-	function inputnum(obj){
-		obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
-		obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字
-		obj.value = obj.value.replace(/\.{2,}/g,""); //只保留第一个, 清除多余的
-		obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
-		obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
-		if(obj.value == null || obj.value == "" ){
-			obj.value = 0;
-		}
-	}
-
-	// 修改成本价
-	function changeShouldPay(eleThis) {
-		//修改不符合规则值
-		eleThis.value = eleThis.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
-		eleThis.value = eleThis.value.replace(/^\./g,""); //验证第一个字符是数字
-		eleThis.value = eleThis.value.replace(/\.{2,}/g,""); //只保留第一个, 清除多余的
-		eleThis.value = eleThis.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
-		eleThis.value = eleThis.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
-		if($(eleThis).val() == null || $(eleThis).val() == "" ){
-			$(eleThis).val(0);
-		}
-		var totalAmount = Number(0);
-		//获取供应商层信息
-		var proportional = $("#proportional").val();// 子订单占比
-		var shopOrderAmount = $("#shopOrderAmount").val();// 子订单总金额
-		var shopPostFee = $("#shopPostFee").val();// 运费
-		if(null == proportional)proportional = 0;
-		if(null == shopPostFee)shopPostFee = 0;
-
-		// 计算
-		totalAmount += Number(shopOrderAmount / 100 * proportional) + Number(shopPostFee);
-		// 四舍五入
-		var s = totalAmount.toFixed(2);
-		$("#div-supplier-fee").text(s);
-	}
+    function inputnum(obj) {
+        obj.value = obj.value.replace(/[^\d.]/g, ""); //清除"数字"和"."以外的字符
+        obj.value = obj.value.replace(/^\./g, ""); //验证第一个字符是数字
+        obj.value = obj.value.replace(/\.{2,}/g, ""); //只保留第一个, 清除多余的
+        obj.value = obj.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
+        obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
+        if (obj.value == null || obj.value == "") {
+            obj.value = 0;
+        }
+    }
+
+    // 修改成本价
+    function changeShouldPay(eleThis) {
+        //修改不符合规则值
+        eleThis.value = eleThis.value.replace(/[^\d.]/g, ""); //清除"数字"和"."以外的字符
+        eleThis.value = eleThis.value.replace(/^\./g, ""); //验证第一个字符是数字
+        eleThis.value = eleThis.value.replace(/\.{2,}/g, ""); //只保留第一个, 清除多余的
+        eleThis.value = eleThis.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
+        eleThis.value = eleThis.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
+        if ($(eleThis).val() == null || $(eleThis).val() == "") {
+            $(eleThis).val(0);
+        }
+        var totalAmount = Number(0);
+        //获取供应商层信息
+        var proportional = $("#proportional").val();// 子订单占比
+        var shopOrderAmount = $("#shopOrderAmount").val();// 子订单总金额
+        var shopPostFee = $("#shopPostFee").val();// 运费
+        if (null == proportional) proportional = 0;
+        if (null == shopPostFee) shopPostFee = 0;
+
+        // 计算
+        totalAmount += Number(shopOrderAmount / 100 * proportional) + Number(shopPostFee);
+        // 四舍五入
+        var s = totalAmount.toFixed(2);
+        $("#div-supplier-fee").text(s);
+    }
 
 </script>
 </body>

+ 0 - 312
src/main/webapp/WEB-INF/views/modules/order/orderList.jsp

@@ -1,312 +0,0 @@
-<%@ page contentType="text/html;charset=UTF-8" %>
-<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
-<html>
-<head>
-    <title>订单列表</title>
-    <meta name="decorator" content="default"/>
-    <%--<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>--%>
-    <style type="text/css">
-        *{margin: 0;padding: 0}
-        a{list-style: none;text-decoration: none}
-        body{background-color: rgb(228,228,228)}
-        h3{border-left: 3px solid #08c;line-height: 20px;padding-left: 15px;}
-        .filter-query{margin: 20px 0}
-        .about-query{background-color: rgb(242,242,242);line-height: 35px;overflow: hidden}
-        .about-query div{color: #666}
-        .about-query .left-query{float: left;margin-left: 35px}
-        .about-query .right-query{float: right;margin:2px 35px 0 0;background-color: rgb(215,215,215);padding: 5px 15px;line-height: normal;border-radius: 15px}
-        .info{background-color: #fff;padding: 20px 0 0 0;}
-        .info .orderDiv{display: inline-block}
-        .orderDiv{width: 150px;padding:0 10px 20px 0;}
-        .orderDiv label{font-size: 14px;line-height: 25px;}
-        .orderDiv input,select{width:85px;line-height: 25px;height: 25px}
-        .order-export{width: 280px}
-        .order-export input:nth-child(2){margin-right: 5px}
-        .data-list{font-size: 14px;color: rgb(51,51,51);background-color: #fff;height: 100%;}
-        .data-top{line-height: 40px;background-color: rgb(242,242,242);padding-left: 15px;}
-        .data-top a{display: inline-block;color: #000000; margin-left: 20px; padding: 3px 10px;text-align: center;border: 1px solid #ccc;line-height: normal;border-radius: 15px}
-        /*.data-title{width: 100%; display: table;}*/
-        /*.data-title ul li{display: table-cell; width: 6.25%;}*/
-        .data-title{width: 100%;display: table;}
-        .data-title ul li{word-break:break-all;display: table-cell;width:100px;border: 1px solid #000; text-align: center;height: 35px;vertical-align: middle;}
-        .data-title ul{}
-        .data-title ul li:last-of-type{width: 120px}
-        .data-title ul li:nth-child(6){width: 80px}
-        .spileOrder li:nth-of-type(1){position: relative}
-        .san{width:10px;height:10px;border-top: 2px solid #000;border-right: 2px solid #000;transform: rotate(45deg);position: absolute;right: -2px;top: 50%;margin-top: -5px;cursor:pointer}
-        .red-waring li{border-color: red !important;}
-
-    </style>
-    <script type="text/javascript">
-    window.onload = function(){
-        var _show = document.getElementsByClassName('spileOrder');
-        for(var i=0;i<_show.length;i++){
-            _show[i].onclick = function () {
-
-                console.log(this.getElementsByClassName('red-waring'));
-
-                var spileflag = this.getElementsByClassName('red-waring');
-
-                for(var i=0;i<spileflag.length;i++){
-                    if(spileflag.length > 0){
-                        spileflag[i].style.cssText='';
-                    }else {
-                        spileflag[i].style.cssText='display: none';
-                    }
-                }
-                if(this.classList.contains('flag')){
-                    console.log(22)
-                    this.classList.remove("flag");
-                    for(var i=0;i<spileflag.length;i++){
-                        spileflag[i].style.cssText='display: none';
-                    }
-
-                }else {
-                    console.log(33)
-                    this.classList.add("flag");
-                    for(var i=0;i<spileflag.length;i++){
-                        spileflag[i].style.cssText='';
-                    }
-
-                }
-
-            }
-        }
-    }
-
-
-    </script>
-</head>
-<body>
-<h3>订单列表</h3>
-<div class="filter-query">
-    <div class="about-query">
-        <div class="left-query">筛选查询</div>
-        <div class="right-query">查询</div>
-    </div>
-    <div class="info">
-        <div class="orderDiv order-num">
-            <label>订单编号</label>
-            <input type="text"/>
-        </div>
-        <div class="orderDiv order-status">
-            <label>订单状态</label>
-            <input type="text"/>
-        </div>
-        <div class="orderDiv order-people">
-            <label>收货人</label>
-            <input type="text"/>
-        </div>
-        <div class="orderDiv order-type">
-            <label>订单类型</label>
-            <select class="select">
-                <option>普通订单</option>
-                <option>采购订单</option>
-                <option>拆分订单</option>
-            </select>
-        </div>
-        <div class="orderDiv order-export">
-            <label>导出订单</label>
-            <input placeholder="开始时间" type="text"/>
-            <input placeholder="结束时间" type="text"/>
-        </div>
-    </div>
-</div>
-<div class="data-list">
-    <div class="data-top">
-        数据列表
-        <a href="">添加列表</a>
-    </div>
-    <div class="data-title">
-        <ul>
-            <li>订单编号</li>
-            <li>订单类型</li>
-            <li>供应商</li>
-            <li>收货人</li>
-            <li>买家</li>
-            <li>订单</li>
-            <li>支付</li>
-            <li>订单来源</li>
-            <li>下单方式</li>
-            <li>订单金额</li>
-            <li>已收时间</li>
-            <li>未收状态</li>
-            <li>已付</li>
-            <li>未付</li>
-            <li>佣金</li>
-            <li>操作</li>
-        </ul>
-        <ul class="spileOrder"><%--拆分订单--%>
-            <li>大数据库的金卡是聚隆科技的三<div class="san"></div></li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <li>12123</li>
-            <ul class="red-waring" style="display: none"><%--拆分订单的子订单--%>
-                <li>大数据库的金卡是聚隆科技的三</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-            </ul>
-            <ul class="red-waring" style="display: none"><%--拆分订单的子订单--%>
-                <li>大数据库的金卡是聚隆科技的三</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-                <li>12123</li>
-            </ul>
-        </ul>
-    </div>
-</div>
-</body>
-</html>
-<%--<table>--%>
-    <%--<tr>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:4.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">1dasdsaddsadsad短视的金卡手机登录sa1</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:6.25%">11</td>--%>
-        <%--<td style="width:8.25%">11</td>--%>
-    <%--</tr>--%>
-<%--</table>--%>
-<%--<table cellpadding="0" cellspacing="0" class="table">--%>
-    <%--<tr>--%>
-        <%--<th style="width:6.25%">订单编号</th>--%>
-        <%--<th style="width:6.25%">订单类型</th>--%>
-        <%--<th style="width:6.25%">供应商</th>--%>
-        <%--<th style="width:6.25%">收货人</th>--%>
-        <%--<th style="width:6.25%">买家</th>--%>
-        <%--<th style="width:4.25%">订单来源</th>--%>
-        <%--<th style="width:6.25%">支付方式</th>--%>
-        <%--<th style="width:6.25%">订单金额</th>--%>
-        <%--<th style="width:6.25%">下单时间</th>--%>
-        <%--<th style="width:6.25%">订单状态</th>--%>
-        <%--<th style="width:6.25%">已收</th>--%>
-        <%--<th style="width:6.25%">未收</th>--%>
-        <%--<th style="width:6.25%">已付</th>--%>
-        <%--<th style="width:6.25%">未付</th>--%>
-        <%--<th style="width:6.25%">佣金</th>--%>
-        <%--<th style="width:8.25%">操作</th>--%>
-    <%--</tr>--%>
-    <%--<tr>--%>
-        <%--<td>January</td>--%>
-        <%--<td>普通订单</td>--%>
-        <%--<td>采美</td>--%>
-        <%--<td>采美会所</td>--%>
-        <%--<td>蔡妹妹妹妹会所</td>--%>
-        <%--<td>crm</td>--%>
-        <%--<td>线下支付</td>--%>
-        <%--<td>$200运费10</td>--%>
-        <%--<td>2018-06-02 12:12:00</td>--%>
-        <%--<td>代发货</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td class="td-a">--%>
-            <%--<a href="">发货</a>--%>
-            <%--<a href="">订单详情</a>--%>
-            <%--<a href="">打印发货单</a>--%>
-            <%--<a href="">发货</a>--%>
-            <%--<a href="">发货</a>--%>
-        <%--</td>&lt;%&ndash;操作根据状态判断&ndash;%&gt;--%>
-    <%--</tr>--%>
-    <%--<tr class="spileOrder">&lt;%&ndash;如果是拆分订单就在tr 加上这个class&ndash;%&gt;--%>
-        <%--<td>January<div class="san"></div></td>--%>
-        <%--<td>拆分订单</td>--%>
-        <%--<td>采美</td>--%>
-        <%--<td>采美会所</td>--%>
-        <%--<td>蔡妹妹妹妹会所</td>--%>
-        <%--<td>crm</td>--%>
-        <%--<td>线下支付</td>--%>
-        <%--<td>$200运费10</td>--%>
-        <%--<td>2018-06-02 12:12:00</td>--%>
-        <%--<td>代发货</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td>$100</td>--%>
-        <%--<td class="td-a">--%>
-            <%--<a href="">发货</a>--%>
-            <%--<a href="">订单详情</a>--%>
-            <%--<a href="">打印发货单</a>--%>
-            <%--<a href="">发货</a>--%>
-            <%--<a href="">发货</a>--%>
-        <%--</td>&lt;%&ndash;操作根据状态判断&ndash;%&gt;--%>
-    <%--</tr>--%>
-    <%--<tr class="chrendlist" style="">&lt;%&ndash;拆分订单的子订单就用这个tr&ndash;%&gt;--%>
-        <%--<td colspan="16" style="border: 0">--%>
-            <%--<ul>--%>
-                <%--<li>12312</li>--%>
-                <%--<li>12312</li>--%>
-                <%--<li>12312</li>--%>
-                <%--<li>12312</li>--%>
-                <%--<li>12312</li>--%>
-                <%--<li>12312</li>--%>
-
-            <%--</ul>--%>
-        <%--</td>--%>
-
-    <%--</tr>--%>
-
-<%--</table>--%>
-<%--.table{width: 100%; color: rgb(51,51,51); background-color: #fff;border-collapse: collapse;}--%>
-<%--.table tr th{font-weight: normal;}--%>
-<%--.table td,.table th{border: 1px solid #000;font-size: 13px;text-align: center}--%>
-<%--/*.table th:first-of-type{width: 10%}*/--%>
-<%--.table th:last-of-type{width: 10%}--%>
-<%--.td-a{padding: 5px}--%>
-<%--.td-a a{ color: rgb(0, 100, 180);}--%>
-<%--/*.split-order td{border-color: red;height: 35px;}*/--%>
-<%--.spileOrder td:nth-child(1){position: relative}--%>
-<%--.san{width:10px;height:10px;border-top: 2px solid #000;border-right: 2px solid #000;transform: rotate(45deg);    position: absolute;--%>
-<%--right: -2px;top: 50%;margin-top: -5px;cursor:pointer}--%>
-<%--.chrendlist table{width: 100%; color: rgb(51,51,51); background-color: #fff;border-collapse: collapse;margin-top: -1px}--%>
-<%--.chrendlist td{border-color: red;height: 35px;}--%>

+ 295 - 205
src/main/webapp/WEB-INF/views/modules/product-new/productEdit.jsp

@@ -8,12 +8,13 @@
     <meta name="decorator" content="default"/>
     <link type="text/css" rel="stylesheet" href="${ctxStatic}/bootstrap-select/css/bootstrap-select.css"></link>
     <style>
-        .sku-item-li{
+        .sku-item-li {
             width: 100%;
             height: auto;
             float: left;
             margin-bottom: 5px;
         }
+
         .sku {
             display: flex;
             align-items: center;
@@ -24,12 +25,14 @@
             margin-top: 10px;
             width: 1000px;
         }
-        .sku-item-delete{
+
+        .sku-item-delete {
             width: 40%;
             height: auto;
             float: left;
             margin-left: 10px;
         }
+
         .sku .sku-item {
             float: left;
             margin-right: 12px;
@@ -305,16 +308,16 @@
     <c:if test="${not empty product.id}">
         <li class="active"><a href="${ctx}/product/new/productEdit?id=${product.id}">商品信息编辑</a></li>
     </c:if>
-<%--    <c:if test="${empty product.id}">--%>
-<%--        <li class="active"><a href="${ctx}/product/new/productEdit?id=${product.id}">发布特殊供应商商品</a></li>--%>
-<%--    </c:if>--%>
+    <%--    <c:if test="${empty product.id}">--%>
+    <%--        <li class="active"><a href="${ctx}/product/new/productEdit?id=${product.id}">发布特殊供应商商品</a></li>--%>
+    <%--    </c:if>--%>
 </ul>
 <form:form id="inputForm" modelAttribute="product"
            action="${ctx}/product/new/productSave?searchShopID=${product.searchShopID}&searchShopName=${product.searchShopName}&searchBigTypeID=${product.searchBigTypeID}&searchSmallTypeID=${product.searchSmallTypeID}&searchTinyTypeID=${product.searchTinyTypeID}&searchValidFlag=${product.searchValidFlag}&searchActStatus=${product.searchActStatus}&searchProductType=${product.searchProductType}&searchBrandID=${product.searchBrandID}&searchPreferredFlag=${product.searchPreferredFlag}&searchProductCategory=${product.searchProductCategory}&editFlag=${product.editFlag}&shopType=${product.shopType}&ladderPriceFlag=${product.ladderPriceFlag}"
            method="post" class="form-horizontal">
     <form:hidden path="id"/>
     <form:hidden path="searchName"/>
-    <form:hidden path="shopID" id="shopId" />
+    <form:hidden path="shopID" id="shopId"/>
     <sys:message content="${message}"/>
     <table border="0" cellspacing="0" cellpadding="0" width="100%">
         <tr>
@@ -370,7 +373,8 @@
                 </select>&nbsp;&nbsp;&nbsp;&nbsp;
                 <c:if test="${!empty product.keywords}">
                     <span style="display: inline-block; width: 120px">供应商关联标签:(${product.shopName})</span>
-                    <span><textarea rows="6" style="width: 700px; pointer-events: none">${product.keywords}</textarea></span>
+                    <span><textarea rows="6"
+                                    style="width: 700px; pointer-events: none">${product.keywords}</textarea></span>
                 </c:if>
             </td>
         </tr>
@@ -612,8 +616,8 @@
             <th><span class="red">*</span>上架平台:</th>
 
             <td>
-                <input id="caimei" type="checkbox" name="groundMall" value="0" >【采美】平台
-                <input id="bcc" type="checkbox" name="groundMall" value="4" >【丽格集采联盟】平台
+                <input id="caimei" type="checkbox" name="groundMall" value="0">【采美】平台
+                <input id="bcc" type="checkbox" name="groundMall" value="4">【丽格集采联盟】平台
             </td>
         </tr>
         <tr id="groundSkuCaimei">
@@ -747,8 +751,8 @@
             <th><span class="red">*</span>能否退货:</th>
             <td colspan="3">
                 <form:select path="returnGoodsStutas" class="input-large required" id="goods">
-<%--                    ${product.returnGoodsStutas=="1" ? "selected" : ""}--%>
-                    <form:option value="1" label="能" />
+                    <%--                    ${product.returnGoodsStutas=="1" ? "selected" : ""}--%>
+                    <form:option value="1" label="能"/>
                     <form:option value="2" label="不能"/>
                 </form:select>
             </td>
@@ -839,7 +843,7 @@
         <tr>
             <th><span class="red">*</span>资质机构商品详情:</th>
             <td><span style="color: red">(适用于资质机构)</span></td>
-            <th  style="position: relative ;right: 500px"><span class="red">*</span>普通机构商品详情:</th>
+            <th style="position: relative ;right: 500px"><span class="red">*</span>普通机构商品详情:</th>
             <td style="position: relative ;right: 500px"><span style="color: red">(适用于游客和个人机构,可选择是否和资质机构商品详情相同,不相同的话需要编辑内容)</span>
                 <label>
                     <input type="radio"
@@ -856,7 +860,7 @@
         </tr>
         <tr>
             <td colspan="2" style="vertical-align: top;">
-                <div class="detailInfoEditor"  style="width: 620px;">
+                <div class="detailInfoEditor" style="width: 620px;">
                     <form:textarea path="detailInfo" htmlEscape="false" class="input-xlarge required hide"/>
                     <!-- 富文本编辑器 -->
                     <div id="detailInfoEditor">${product.detailInfo}</div>
@@ -913,24 +917,30 @@
             </div>
         </div>
         <div class="sku-item-li">
-<%--            <div class="sku-item sku-costCheckFlag">--%>
-<%--                <span class="red">*</span>成本类型:--%>
-<%--                <label><input type="radio" name="costCheckFlag" value="1" checked/>固定成本</label>--%>
-<%--                <b class="line">|</b>--%>
-<%--                <label><input type="radio" name="costCheckFlag" value="2"/>比例成本</label>--%>
-<%--            </div>--%>
+            <%--            <div class="sku-item sku-costCheckFlag">--%>
+            <%--                <span class="red">*</span>成本类型:--%>
+            <%--                <label><input type="radio" name="costCheckFlag" value="1" checked/>固定成本</label>--%>
+            <%--                <b class="line">|</b>--%>
+            <%--                <label><input type="radio" name="costCheckFlag" value="2"/>比例成本</label>--%>
+            <%--            </div>--%>
             <div class="sku-item sku-costPrice">
                 <span class="red">*</span>
                 <span class="costFlagText">成本价</span>:
-                供应商:<input style="width: 60px" name="costPrice" type="number" maxlength="11" class="short costPrice"/>
-                集团:<input style="width: 60px" name="organizeCostPrice" type="number" maxlength="11" class="short organizeCostPrice"/>
-                采美:<input style="width: 60px" name="cmCostPrice" type="number" maxlength="11" class="short cmCostPrice"/>
+                供应商分帐:<input style="width: 60px" name="costPrice" type="number" maxlength="11" class="short costPrice"/>
+                集团服务费:<input style="width: 60px" name="organizeCostPrice" type="number" maxlength="11"
+                             class="short organizeCostPrice"/>
+                采美服务费:<input style="width: 60px" name="cmCostPrice" type="number" maxlength="11"
+                             class="short cmCostPrice"/>
+                <p style="color: red;display: inline-block" class="ownCostPrice">自营利润:¥ 0</p>
             </div>
             <div class="sku-item sku-shopPercent" style="display: none;">
                 <span class="red">*</span>佣金比例:
-                供应商:<input style="width: 50px" name="shopPercent" type="number" maxlength="11" class="short shopPercent"/>%
-                集团:<input style="width: 50px" name="organizePercent" type="number" maxlength="11" class="short organizePercent"/>%
-                采美:<input style="width: 50px" name="cmPercent" type="number" maxlength="11" class="short cmPercent"/>%
+                供应商分帐:<input style="width: 50px" name="shopPercent" type="number" maxlength="11"
+                             class="short shopPercent"/>%
+                集团服务费:<input style="width: 50px" name="organizePercent" type="number" maxlength="11"
+                             class="short organizePercent"/>%
+                采美服务费:<input style="width: 50px" name="cmPercent" type="number" maxlength="11" class="short cmPercent"/>%
+                <p style="color: red;display: inline-block" class="ownPrice">自营利润:¥ 0</p>
             </div>
         </div>
         <div class="sku-item-li sku-item-delete">
@@ -942,7 +952,8 @@
                 <label> <input type="radio" name="ladderPriceFlag" value="1"/>使用阶梯价格</label>
             </div>
         </div>
-        <div class="sku-item-delete"><span><button class="deleteSku" onclick="deleteDiv(this)">删除SKU</button></span></div>
+        <div class="sku-item-delete"><span><button class="deleteSku" onclick="deleteDiv(this)">删除SKU</button></span>
+        </div>
         <div class="ladderPriceBox" style="display: none;">
             <div class="ladderPrice">
                 起订量:
@@ -985,9 +996,9 @@
 <script type="text/javascript">
     $('#caimei').change(function () {
         var item = $('#caimei').val()
-        console.log('item---'+item)
+        console.log('item---' + item)
         var check = $(this).prop('checked')
-        console.log('check---'+check)
+        console.log('check---' + check)
         if (check) {
             $("#groundSkuCaimei").show(100)
         } else {
@@ -997,9 +1008,9 @@
 
     $('#bcc').change(function () {
         var item = $('#bcc').val()
-        console.log('item---'+item)
+        console.log('item---' + item)
         var checkBcc = $(this).prop('checked')
-        console.log('checkBcc---'+checkBcc)
+        console.log('checkBcc---' + checkBcc)
         if (checkBcc) {
             $("#groundSkuBcc").show(100)
         } else {
@@ -1024,7 +1035,7 @@
         // return ['三全鲜食(北新泾店)', 'Hot honey 首尔炸鸡(仙霞路)', '新旺角茶餐厅', '泷千家(天山西路店)', '胖仙女纸杯蛋糕(上海凌空店)', '贡茶', '豪大大香鸡排超级奶爸', '茶芝兰(奶茶,手抓饼)', '十二泷町', '星移浓缩咖啡', '阿姨奶茶/豪大大', '新麦甜四季甜品炸鸡', 'Monica摩托主题咖啡店', '浮生若茶(凌空soho店)', 'NONO JUICE  鲜榨果汁', 'CoCo都可(北新泾店)', '快乐柠檬(神州智慧店)', 'Merci Paul cafe', '猫山王(西郊百联店)', '枪会山', '纵食', '钱记', '壹杯加', '唦哇嘀咖', '爱茜茜里(西郊百联)', '爱茜茜里(近铁广场)', '鲜果榨汁(金沙江路和美广店)', '开心丽果(缤谷店)', '超级鸡车(丰庄路店)', '妙生活果园(北新泾店)', '香宜度麻辣香锅', '凡仔汉堡(老真北路店)', '港式小铺', '蜀香源麻辣香锅(剑河路店)', '北京饺子馆', '饭典*新简餐(凌空SOHO店)', '焦耳·川式快餐(金钟路店)', '动力鸡车', '浏阳蒸菜', '四海游龙(天山西路店)', '樱花食堂(凌空店)', '壹分米客家传统调制米粉(天山店)', '福荣祥烧腊(平溪路店)', '速记黄焖鸡米饭', '红辣椒麻辣烫', '(小杨生煎)西郊百联餐厅', '阳阳麻辣烫', '南拳妈妈龙虾盖浇饭'].filter(function (item) {
         //     return text && item.indexOf(text) > -1;
         // });
-        var keywordlist=new Array();
+        var keywordlist = new Array();
         <c:forEach items="${SearchFrequencyVo}" var="search">
         keywordlist.push("${search.keyword}")
         </c:forEach>
@@ -1074,17 +1085,18 @@
             $("#commodityDetailsFlag").prop("disabled", false);
         }
     }
+
     $('.costCheckFlag').on('change', function () {
         var skus = $("#skus")
         if ($(this).val() == 1) {
-            skus.each(function() {
+            skus.each(function () {
                 skus.find('.sku-shopPercent').hide();
                 skus.find('.sku-costPrice').show();
             })
             //shopPercent.parent('.sku-shopPercent').hide();
             //costPrice.parent('.sku-costPrice').show();
         } else {
-            skus.each(function() {
+            skus.each(function () {
                 skus.find('.sku-shopPercent').show();
                 skus.find('.sku-costPrice').hide();
             })
@@ -1096,12 +1108,12 @@
         console.log('333333')
         var mallSkus = $("#mallSkus")
         if ($(this).val() == 1) {
-            mallSkus.each(function() {
+            mallSkus.each(function () {
                 mallSkus.find('.sku-shopPercent').hide(); // shopPercent.parent('.sku-shopPercent').hide();
                 mallSkus.find('.sku-costPrice').show();
             })
         } else {
-            mallSkus.each(function() {
+            mallSkus.each(function () {
                 mallSkus.find('.sku-shopPercent').show(); // shopPercent.parent('.sku-shopPercent').hide();
                 mallSkus.find('.sku-costPrice').hide();
             })
@@ -1163,7 +1175,7 @@
             submitHandler: function (form) {
                 event.preventDefault()
                 var flag = true;
-                var shopId = $("#shopId").val()*1;
+                var shopId = $("#shopId").val() * 1;
                 var commodityType = $("input[name='commodityType']:checked").val();
                 if (commodityType == '' || commodityType == null) {
                     alertx("请选择商品属性");
@@ -1177,132 +1189,132 @@
                 var costCheckFlag = $("input[name='costCheckFlag']:checked").val();
                 var skus = $("#skus .sku")
                 if (skus.length > 0) {
-                    skus.each(function() {
-                    var cost = $(this)
-                    if (costCheckFlag * 1 === 1) {
-                        var costPrice = cost.find(".costPrice").val()
-                        var organizeCostPrice = cost.find(".organizeCostPrice").val()
-                        var cmCostPrice = cost.find(".cmCostPrice").val()
-                        var price = cost.find(".computedPrice").val()*1
-                        if (costPrice == '') {
-                            alertx("请输入供应商成本价");
-                            flag = false;
-                        }
-                        if (organizeCostPrice == '') {
-                            alertx("请输入集团成本价");
-                            flag = false;
-                        }
-                        if (cmCostPrice == '') {
-                            alertx("请输入采美成本价");
-                            flag = false;
-                        }
-                        const num = costPrice*1 + organizeCostPrice*1 + cmCostPrice*1
-                        if (shopId != 1161 ) {
-                            if (num != price) {
-                                alertx("采美固定成本之和需为机构价")
+                    skus.each(function () {
+                        var cost = $(this)
+                        if (costCheckFlag * 1 === 1) {
+                            var costPrice = cost.find(".costPrice").val()
+                            var organizeCostPrice = cost.find(".organizeCostPrice").val()
+                            var cmCostPrice = cost.find(".cmCostPrice").val()
+                            var price = cost.find(".computedPrice").val() * 1
+                            if (costPrice == '') {
+                                alertx("请输入供应商成本价");
                                 flag = false;
                             }
-                        }else {
-                            if (num > price) {
-                                alertx("采美固定成本之和不能大于机构价")
+                            if (organizeCostPrice == '') {
+                                alertx("请输入集团成本价");
                                 flag = false;
                             }
-                        }
-                    } else {
-                        var shopPercent = cost.find(".shopPercent").val()
-                        var organizePercent = cost.find(".organizePercent").val()
-                        var cmPercent = cost.find(".cmPercent").val()
-                        if (shopPercent == '') {
-                            alertx("请输入成本比例");
-                            flag = false;
-                        }
-                        if (organizePercent == '') {
-                            alertx("请输入集团比例");
-                            flag = false;
-                        }
-                        if (cmPercent == '') {
-                            alertx("请输入供应商比例");
-                            flag = false;
-                        }
-                        const num = shopPercent*1 + organizePercent*1 + cmPercent*1
-                        if (shopId != 1161 ) {
-                            if (num != 100) {
-                                alertx("采美佣金比例之和需为100")
+                            if (cmCostPrice == '') {
+                                alertx("请输入采美成本价");
+                                flag = false;
+                            }
+                            const num = costPrice * 1 + organizeCostPrice * 1 + cmCostPrice * 1
+                            // if (shopId != 1161) {
+                            //     if (num != price) {
+                            //         alertx("采美固定成本之和需为机构价")
+                            //         flag = false;
+                            //     }
+                            // } else {
+                            //     if (num > price) {
+                            //         alertx("采美固定成本之和不能大于机构价")
+                            //         flag = false;
+                            //     }
+                            // }
+                        } else {
+                            var shopPercent = cost.find(".shopPercent").val()
+                            var organizePercent = cost.find(".organizePercent").val()
+                            var cmPercent = cost.find(".cmPercent").val()
+                            if (shopPercent == '') {
+                                alertx("请输入成本比例");
                                 flag = false;
                             }
-                        }else {
-                            if (num > 100) {
-                                alertx("采美佣金比例之和不能大于100")
+                            if (organizePercent == '') {
+                                alertx("请输入集团比例");
                                 flag = false;
                             }
+                            if (cmPercent == '') {
+                                alertx("请输入供应商比例");
+                                flag = false;
+                            }
+                            const num = shopPercent * 1 + organizePercent * 1 + cmPercent * 1
+                            // if (shopId != 1161) {
+                            //     if (num != 100) {
+                            //         alertx("采美佣金比例之和需为100")
+                            //         flag = false;
+                            //     }
+                            // } else {
+                            //     if (num > 100) {
+                            //         alertx("采美佣金比例之和不能大于100")
+                            //         flag = false;
+                            //     }
+                            // }
                         }
-                    }
-                })
+                    })
                 }
                 var mallCostCheckFlag = $("input[name='mallCostCheckFlag']:checked").val();
                 var mallSkus = $("#mallSkus .sku")
                 if (mallSkus.length > 0) {
-                    mallSkus.each(function() {
-                    var mallCost = $(this)
-                    if (mallCostCheckFlag * 1 === 1) {
-                        var mallCostPrice = mallCost.find(".costPrice").val()
-                        var mallOrganizeCostPrice = mallCost.find(".organizeCostPrice").val()
-                        var mallCmCostPrice = mallCost.find(".cmCostPrice").val()
-                        var mallprice = mallCost.find(".computedPrice").val()*1
-                        if (mallCostPrice == '') {
-                            alertx("请输入供应商成本价");
-                            flag = false;
-                        }
-                        if (mallOrganizeCostPrice == '') {
-                            alertx("请输入集团成本价");
-                            flag = false;
-                        }
-                        if (mallCmCostPrice == '') {
-                            alertx("请输入采美成本价");
-                            flag = false;
-                        }
-                        const num = mallCostPrice*1 + mallOrganizeCostPrice*1 + mallCmCostPrice*1
-                        if (shopId != 1161 ) {
-                            if (num != mallprice) {
-                                alertx("丽格固定成本之和需为机构价");
+                    mallSkus.each(function () {
+                        var mallCost = $(this)
+                        if (mallCostCheckFlag * 1 === 1) {
+                            var mallCostPrice = mallCost.find(".costPrice").val()
+                            var mallOrganizeCostPrice = mallCost.find(".organizeCostPrice").val()
+                            var mallCmCostPrice = mallCost.find(".cmCostPrice").val()
+                            var mallprice = mallCost.find(".computedPrice").val() * 1
+                            if (mallCostPrice == '') {
+                                alertx("请输入供应商成本价");
                                 flag = false;
                             }
-                        } else {
-                            if (num > mallprice) {
-                                alertx("丽格固定成本之和不能大于机构价")
+                            if (mallOrganizeCostPrice == '') {
+                                alertx("请输入集团成本价");
                                 flag = false;
                             }
-                        }
-                    } else {
-                        var mallShopPercent = mallCost.find(".shopPercent").val()
-                        var mallOrganizePercent = mallCost.find(".organizePercent").val()
-                        var mallCmPercent = mallCost.find(".cmPercent").val()
-                        if (mallShopPercent == '') {
-                            alertx("请输入成本比例");
-                            flag = false;
-                        }
-                        if (mallOrganizePercent == '') {
-                            alertx("请输入集团比例");
-                            flag = false;
-                        }
-                        if (mallCmPercent == '') {
-                            alertx("请输入供应商比例");
-                            flag = false;
-                        }
-                        const num = mallShopPercent*1 + mallOrganizePercent*1 + mallCmPercent*1
-                        if (shopId != 1161 ) {
-                            if (num != 100) {
-                                alertx("丽格佣金比例之和需为100");
+                            if (mallCmCostPrice == '') {
+                                alertx("请输入采美成本价");
                                 flag = false;
                             }
+                            const num = mallCostPrice * 1 + mallOrganizeCostPrice * 1 + mallCmCostPrice * 1
+                            if (shopId != 1161) {
+                                if (num != mallprice) {
+                                    alertx("丽格固定成本之和需为机构价");
+                                    flag = false;
+                                }
+                            } else {
+                                if (num > mallprice) {
+                                    alertx("丽格固定成本之和不能大于机构价")
+                                    flag = false;
+                                }
+                            }
                         } else {
-                            if (num > 100) {
-                                alertx("丽格佣金比例之和不能大于100")
+                            var mallShopPercent = mallCost.find(".shopPercent").val()
+                            var mallOrganizePercent = mallCost.find(".organizePercent").val()
+                            var mallCmPercent = mallCost.find(".cmPercent").val()
+                            if (mallShopPercent == '') {
+                                alertx("请输入成本比例");
+                                flag = false;
+                            }
+                            if (mallOrganizePercent == '') {
+                                alertx("请输入集团比例");
                                 flag = false;
                             }
+                            if (mallCmPercent == '') {
+                                alertx("请输入供应商比例");
+                                flag = false;
+                            }
+                            const num = mallShopPercent * 1 + mallOrganizePercent * 1 + mallCmPercent * 1
+                            if (shopId != 1161) {
+                                if (num != 100) {
+                                    alertx("丽格佣金比例之和需为100");
+                                    flag = false;
+                                }
+                            } else {
+                                if (num > 100) {
+                                    alertx("丽格佣金比例之和不能大于100")
+                                    flag = false;
+                                }
+                            }
                         }
-                    }
-                })
+                    })
                 }
                 if ($('#minBuyNumber:visible').length > 0) {
                     var minBuyNumber = $('#minBuyNumber').val();
@@ -1361,10 +1373,10 @@
                 if (includedTax != ${product.includedTax} || invoiceType != ${product.invoiceType}) {
                     top.$.jBox.confirm("目前含税信息为:${product.includedTax eq 0?'不含税':product.includedTax eq 1?'含税':'未知'}${product.includedTax eq 2?'':product.invoiceType eq 1?'-开增值税专用发票':product.invoiceType eq 2?'-开增值税普通发票':'不开发票'},确定修改为:" + (includedTax == 0 ? '不含税' : includedTax == 1 ? '含税' : '未知') + (includedTax == 2 ? '' : invoiceType == 1 ? '-开增值税专用发票' : invoiceType == 2 ? '-开增值税普通发票' : '-不能开票') + "吗?", '保存商品提示', function (v, h, f) {
                         if (v == 'ok') {
-                            if(!$('#caimei').prop('checked')){
+                            if (!$('#caimei').prop('checked')) {
                                 $("#groundSkuCaimei").remove()
                             }
-                            if(!$('#bcc').prop('checked')){
+                            if (!$('#bcc').prop('checked')) {
                                 $("#groundSkuBcc").remove()
                             }
                             // 提交订单
@@ -1381,10 +1393,10 @@
                         }
                     });
                 } else {
-                    if(!$('#caimei').prop('checked')){
+                    if (!$('#caimei').prop('checked')) {
                         $("#groundSkuCaimei").remove()
                     }
-                    if(!$('#bcc').prop('checked')){
+                    if (!$('#bcc').prop('checked')) {
                         $("#groundSkuBcc").remove()
                     }
                     if (flag) {
@@ -1405,13 +1417,13 @@
         });
         // 初始化上平台sku显示
         if (-1 != groundMall.indexOf("0")) {
-            $('#caimei').attr('checked',true)
+            $('#caimei').attr('checked', true)
             $('#groundSkuCaimei').show(100)
         } else {
             $('#groundSkuCaimei').hide(100)
         }
         if (-1 != groundMall.indexOf("4")) {
-            $('#bcc').attr('checked',true)
+            $('#bcc').attr('checked', true)
             $('#groundSkuBcc').show(100)
         } else {
             $('#groundSkuBcc').hide(100)
@@ -1424,7 +1436,7 @@
         initLabelSelects();
     });
 
-    function initLabelSelects(){
+    function initLabelSelects() {
         var labelSelectBox = $('#labelSelectBox');
         labelSelectBox.selectpicker({
             liveSearch: true,
@@ -1434,11 +1446,12 @@
         });
         // 回显操作
         var str = '${product.labelIds}';
-        if(!str) return;
+        if (!str) return;
         var arr = str.split(',');
         console.log(arr);
         labelSelectBox.selectpicker('val', arr);
     }
+
     <%--// 商品可见度--%>
     <%--/*$(function() {--%>
     <%--    var initValue = ${(product.visibility <= 0) ? 3 : ((product.visibility >= 3) ? 3 : product.visibility)}--%>
@@ -1968,8 +1981,10 @@
         loadSmallType();
         trainingShow();
     }
-    var conn=0;
-    var insertStatus='${product.insertStatus}';
+
+    var conn = 0;
+    var insertStatus = '${product.insertStatus}';
+
     function loadSmallType(id) {
         if (id) {
             $("#bigType").val(id);
@@ -2011,11 +2026,11 @@
             document.getElementById("s2id_smallType").style.cssText = "display: none";
         }
         loadTinyType();
-        if(insertStatus==1){
-            conn=1;
+        if (insertStatus == 1) {
+            conn = 1;
             loadGoods(conn);
             insertStatus++;
-        }else{
+        } else {
             loadGoods(conn);
         }
     }
@@ -2054,47 +2069,49 @@
             $("#tinyType").removeClass("required");
         }
     }
-    function loadGoods(id){
-            var bigType=null;
-            if(id==1){
-                if(typeof (bigType) != "undefined" && bigType != ""){
-                    bigType='${product.returnGoodsStutas}'
-                    $("#goods").html("");
-                    $("#goods").prev().find(".select2-chosen").text("请选择");
-                    $("#goods").append("<option value=''>请选择</option>");
-                    var not='不能';
-                    var ye='能';
-                    if(bigType=='2'){
-                        $("#goods").append("<option value='1'>" + '能' + "</option>");
-                        $("#goods").append("<option selected value='2'>" + not + "</option>");
-                        $("#goods").prev().find(".select2-chosen").text(not);
-                    }else{
-                        $("#goods").append("<option selected value='1'>" + ye + "</option>");
-                        $("#goods").append("<option value='2'>" + '不能' + "</option>");
-                        $("#goods").prev().find(".select2-chosen").text(ye);
-                    }
+
+    function loadGoods(id) {
+        var bigType = null;
+        if (id == 1) {
+            if (typeof (bigType) != "undefined" && bigType != "") {
+                bigType = '${product.returnGoodsStutas}'
+                $("#goods").html("");
+                $("#goods").prev().find(".select2-chosen").text("请选择");
+                $("#goods").append("<option value=''>请选择</option>");
+                var not = '不能';
+                var ye = '能';
+                if (bigType == '2') {
+                    $("#goods").append("<option value='1'>" + '能' + "</option>");
+                    $("#goods").append("<option selected value='2'>" + not + "</option>");
+                    $("#goods").prev().find(".select2-chosen").text(not);
+                } else {
+                    $("#goods").append("<option selected value='1'>" + ye + "</option>");
+                    $("#goods").append("<option value='2'>" + '不能' + "</option>");
+                    $("#goods").prev().find(".select2-chosen").text(ye);
                 }
-            }else{
-                if(typeof (bigType) != "undefined" && bigType != ""){
-                    bigType = $("#bigType").val();
-                    $("#goods").html("");
-                    $("#goods").prev().find(".select2-chosen").text("请选择");
-                    $("#goods").append("<option value=''>请选择</option>");
-                    var not='不能';
-                    var ye='能';
-                    if(bigType=='1014'||bigType=='1016'||bigType=='1021'||bigType=='1023'){
-                        $("#goods").append("<option value='1'>" + '能' + "</option>");
-                        $("#goods").append("<option selected value='2'>" + not + "</option>");
-                        $("#goods").prev().find(".select2-chosen").text(not);
-                    }else{
-                        $("#goods").append("<option selected value='1'>" + ye + "</option>");
-                        $("#goods").append("<option value='2'>" + '不能' + "</option>");
-                        $("#goods").prev().find(".select2-chosen").text(ye);
-                    }
+            }
+        } else {
+            if (typeof (bigType) != "undefined" && bigType != "") {
+                bigType = $("#bigType").val();
+                $("#goods").html("");
+                $("#goods").prev().find(".select2-chosen").text("请选择");
+                $("#goods").append("<option value=''>请选择</option>");
+                var not = '不能';
+                var ye = '能';
+                if (bigType == '1014' || bigType == '1016' || bigType == '1021' || bigType == '1023') {
+                    $("#goods").append("<option value='1'>" + '能' + "</option>");
+                    $("#goods").append("<option selected value='2'>" + not + "</option>");
+                    $("#goods").prev().find(".select2-chosen").text(not);
+                } else {
+                    $("#goods").append("<option selected value='1'>" + ye + "</option>");
+                    $("#goods").append("<option value='2'>" + '不能' + "</option>");
+                    $("#goods").prev().find(".select2-chosen").text(ye);
                 }
             }
-            conn++;
+        }
+        conn++;
     }
+
     <%--window.onload=function () {--%>
     <%--    console.log('-----------------------onload')--%>
     <%--    $("#goods").val('${product.returnGoodsStutas}')--%>
@@ -2168,11 +2185,11 @@
 
     var skuIndex = 0;
     var productJson = ${productJson};
-    console.log("productJson",productJson);
+    console.log("productJson", productJson);
     var skuList = productJson.skuList;
     var mallSkuList = productJson.mallSkuList;
     var groundMall = productJson.groundMall;
-    console.log("groundMall",groundMall)
+    console.log("groundMall", groundMall)
 
     if (skuList === undefined) {
         skuList = ""
@@ -2185,13 +2202,13 @@
         var costCheckFlag = $("input[name='costCheckFlag']:checked").val();
         $("#skus").append(skuTemplate).show();
         var current = $("#skus").find('.sku').eq(-1);
-        if(skuList.length>0 || mallSkuList.length >0){
+        if (skuList.length > 0 || mallSkuList.length > 0) {
             skuIndexNum = ++skuIndex;
-        }else{
+        } else {
             skuIndexNum = 0;
         }
         var product = {
-            skuIndex: ++skuIndex-1,
+            skuIndex: ++skuIndex - 1,
             costCheckFlag: costCheckFlag,
             ladderPriceFlag: '0'
         }
@@ -2204,13 +2221,13 @@
         var mallCostCheckFlag = $("input[name='mallCostCheckFlag']:checked").val();
         $("#mallSkus").append(skuTemplate).show();
         var current = $("#mallSkus").find('.sku').eq(-1);
-        if(skuList.length>0 || mallSkuList.length >0){
+        if (skuList.length > 0 || mallSkuList.length > 0) {
             skuIndexNum = ++skuIndex;
-        }else{
+        } else {
             skuIndexNum = 0;
         }
         var product = {
-            skuIndex: ++skuIndex-1,
+            skuIndex: ++skuIndex - 1,
             costCheckFlag: mallCostCheckFlag,
             ladderPriceFlag: '0'
         }
@@ -2218,7 +2235,7 @@
         skuEventBind(current, product);
     })
 
-    function deleteDiv(el){
+    function deleteDiv(el) {
         el.parentNode.parentNode.parentNode.parentNode.removeChild(el.parentNode.parentNode.parentNode);
     }
 
@@ -2245,14 +2262,15 @@
         //     skuEventBind(current, product);
         // }
     }
+
     function insertDefaultMallSkuRow() {
         console.log('mallSkuList', mallSkuList);
         if (mallSkuList) {
-            for (var i = skuList.length; i < mallSkuList.length+skuList.length; i++) {
+            for (var i = skuList.length; i < mallSkuList.length + skuList.length; i++) {
                 var skuTemplate = $('#skuTemplate').html();
                 $("#mallSkus").append(skuTemplate).show();
                 var current = $("#mallSkus").find('.sku').eq(-1);
-                var product = mallSkuList[i-skuList.length];
+                var product = mallSkuList[i - skuList.length];
                 product.skuIndex = i;
                 setSkuPrototypeValues(current, product, product.organizeId);
                 skuEventBind(current, product);
@@ -2272,7 +2290,7 @@
 
     /* 设置新增sku属性值 */
     function setSkuPrototypeValues(el, product, organize) {
-        console.log(product);
+        console.log("prodcut-------------->" + product);
         if (!product) return;
         var skuIndex = product.skuIndex;
         var organizeId = el.find('input[name$="organizeId"]');
@@ -2284,8 +2302,8 @@
         var index = el.find('input[name$="index"]');
         index.val(skuIndex);
 
-        if(product.skuId){
-            var skuId=el.find('input[name$="skuId"]');
+        if (product.skuId) {
+            var skuId = el.find('input[name$="skuId"]');
             skuId.val(product.skuId);
             skuId.attr('name', 'skuList[' + skuIndex + '].skuId');
         }
@@ -2380,7 +2398,7 @@
             buyNum.attr('name', 'skuList[' + skuIndex + '].ladderPriceList[' + index + '].buyNum');
 
             console.log('buyNum---', ladderPrice.buyNum)
-            if(ladderPrice.buyNum!=null){
+            if (ladderPrice.buyNum != null) {
                 $(this).show()
             }
             // 价格
@@ -2397,6 +2415,16 @@
             delFlag.attr('name', 'skuList[' + skuIndex + '].ladderPriceList[' + index + '].delFlag');
         });
 
+        var ownPrice = el.find('p[class$="ownPrice"]');
+        var ownCostPrice = el.find('p[class$="ownCostPrice"]');
+        ownPrice.attr('ckass', 'skuList[' + skuIndex + '].ownPrice');
+        ownCostPrice.attr('class', 'skuList[' + skuIndex + '].ownCostPrice');
+        // 固定成本  机构价 - 供应商 - 集团服务费 - 采美服务费
+        var owp = price.val() - costPrice.val() - organizeCostPrice.val() - cmCostPrice.val();
+        ownCostPrice.val("自营利润:¥ " + owp);
+        // 比例
+        var owpi = price.val() - price.val() * shopPercent.val() / 100 - price.val() * organizePercent.val() / 100 - price.val() * cmPercent.val() / 100;
+        ownPrice.val("自营利润:¥ " + owpi);
         skuIndex++;
     }
 
@@ -2506,7 +2534,7 @@
             $(this).parent('.ladderPrice').prev().find('.delBtn').show();
         })
 
-        if(product.ladderPriceFlag == 1){
+        if (product.ladderPriceFlag == 1) {
             ladderPriceBox.find('.ladderPrice').each(function (index, item) {
                 var ladderPrice = product.ladderPriceList[index]
                 var delFlag = 1
@@ -2533,6 +2561,68 @@
                 costPrice.parent('.sku-costPrice').hide();
             }
         })
+
+        var ownPrice = el.find('p[class$="ownPrice"]');
+        var ownCostPrice = el.find('p[class$="ownCostPrice"]');
+        var price = el.find('input[name$="price"]');
+        var organizeCostPrice = el.find('input[name$="organizeCostPrice"]');
+        var cmCostPrice = el.find('input[name$="cmCostPrice"]');
+        costPrice.on('change', function () {
+            // 固定成本  机构价 - 供应商 - 集团服务费 - 采美服务费
+            var owp = price.val() - costPrice.val() - organizeCostPrice.val() - cmCostPrice.val();
+            ownCostPrice.text("自营利润:¥ " + owp);
+            // 比例
+            var owpi = price.val() - price.val() * shopPercent.val() / 100 - price.val() * organizePercent.val() / 100 - price.val() * cmPercent.val() / 100;
+            ownPrice.text("自营利润:¥ " + owpi);
+        });
+        organizeCostPrice.on('change', function () {
+            // 固定成本  机构价 - 供应商 - 集团服务费 - 采美服务费
+            var owp = price.val() - costPrice.val() - organizeCostPrice.val() - cmCostPrice.val();
+            ownCostPrice.text("自营利润:¥ " + owp);
+            // 比例
+            var owpi = price.val() - price.val() * shopPercent.val() / 100 - price.val() * organizePercent.val() / 100 - price.val() * cmPercent.val() / 100;
+            ownPrice.text("自营利润:¥ " + owpi);
+        });
+        cmCostPrice.on('change', function () {
+            // 固定成本  机构价 - 供应商 - 集团服务费 - 采美服务费
+            var owp = price.val() - costPrice.val() - organizeCostPrice.val() - cmCostPrice.val();
+            ownCostPrice.text("自营利润:¥ " + owp);
+            // 比例
+            var owpi = price.val() - price.val() * shopPercent.val() / 100 - price.val() * organizePercent.val() / 100 - price.val() * cmPercent.val() / 100;
+            ownPrice.text("自营利润:¥ " + owpi);
+        });
+        price.on('change', function () {
+            // 固定成本  机构价 - 供应商 - 集团服务费 - 采美服务费
+            var owp = price.val() - costPrice.val() - organizeCostPrice.val() - cmCostPrice.val();
+            ownCostPrice.text("自营利润:¥ " + owp);
+            // 比例
+            var owpi = price.val() - price.val() * shopPercent.val() / 100 - price.val() * organizePercent.val() / 100 - price.val() * cmPercent.val() / 100;
+            ownPrice.text("自营利润:¥ " + owpi);
+        });
+        shopPercent.on('change', function () {
+            // 固定成本  机构价 - 供应商 - 集团服务费 - 采美服务费
+            var owp = price.val() - costPrice.val() - organizeCostPrice.val() - cmCostPrice.val();
+            ownCostPrice.text("自营利润:¥ " + owp);
+            // 比例
+            var owpi = price.val() - price.val() * shopPercent.val() / 100 - price.val() * organizePercent.val() / 100 - price.val() * cmPercent.val() / 100;
+            ownPrice.text("自营利润:¥ " + owpi);
+        });
+        organizePercent.on('change', function () {
+            // 固定成本  机构价 - 供应商 - 集团服务费 - 采美服务费
+            var owp = price.val() - costPrice.val() - organizeCostPrice.val() - cmCostPrice.val();
+            ownCostPrice.text("自营利润:¥ " + owp);
+            // 比例
+            var owpi = price.val() - price.val() * shopPercent.val() / 100 - price.val() * organizePercent.val() / 100 - price.val() * cmPercent.val() / 100;
+            ownPrice.text("自营利润:¥ " + owpi);
+        });
+        cmPercent.on('change', function () {
+            // 固定成本  机构价 - 供应商 - 集团服务费 - 采美服务费
+            var owp = price.val() - costPrice.val() - organizeCostPrice.val() - cmCostPrice.val();
+            ownCostPrice.text("自营利润:¥ " + owp);
+            // 比例
+            var owpi = price.val() - price.val() * shopPercent.val() / 100 - price.val() * organizePercent.val() / 100 - price.val() * cmPercent.val() / 100;
+            ownPrice.text("自营利润:¥ " + owpi);
+        });
     }
 
 

+ 52 - 23
src/main/webapp/WEB-INF/views/modules/user/newCmShopForm.jsp

@@ -760,22 +760,22 @@
                     </c:if>
                 </td>
 
-<%--                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
-<%--                    <span><b><font color="red">*</font>是否已缴纳维护费:</b></span>--%>
-<%--                    <form:select path="maintenanceFee" class="input-medium required" onclick="changeMaintenceFee()">--%>
-<%--                        <form:option value="" label="请选择"/>--%>
-<%--                        <form:option value="1" label="已缴纳"/>--%>
-<%--                        <form:option value="0" label="未缴纳"/>--%>
-<%--                    </form:select>--%>
-<%--                </td>--%>
-<%--                <td>&nbsp;&nbsp;--%>
-<%--                    <span class="maintenanceDate1">--%>
-<%--							<span><b>缴纳时间:</b></span>--%>
-<%--							<form:input path="maintenanceDate" type="text" maxlength="21" class="input-medium Wdate"--%>
-<%--                                        value="${maintenanceDate}"--%>
-<%--                                        onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>--%>
-<%--						</span>--%>
-<%--                </td>--%>
+                    <%--                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
+                    <%--                    <span><b><font color="red">*</font>是否已缴纳维护费:</b></span>--%>
+                    <%--                    <form:select path="maintenanceFee" class="input-medium required" onclick="changeMaintenceFee()">--%>
+                    <%--                        <form:option value="" label="请选择"/>--%>
+                    <%--                        <form:option value="1" label="已缴纳"/>--%>
+                    <%--                        <form:option value="0" label="未缴纳"/>--%>
+                    <%--                    </form:select>--%>
+                    <%--                </td>--%>
+                    <%--                <td>&nbsp;&nbsp;--%>
+                    <%--                    <span class="maintenanceDate1">--%>
+                    <%--							<span><b>缴纳时间:</b></span>--%>
+                    <%--							<form:input path="maintenanceDate" type="text" maxlength="21" class="input-medium Wdate"--%>
+                    <%--                                        value="${maintenanceDate}"--%>
+                    <%--                                        onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>--%>
+                    <%--						</span>--%>
+                    <%--                </td>--%>
             </tr>
         </table>
     </div>
@@ -797,16 +797,24 @@
                     <c:forEach items="${newCmShop.splitCodes}" var="item" varStatus="varIndex">
                         <div id="paramsItem" class="paramsItem">
                             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<form:input
-                                path="splitCodes[${varIndex.index}].splitCode" id="paramsName" maxlength="15" class="input-small"/>
-                            <form:input path="splitCodes[${varIndex.index}].email" id="email" cssStyle="width: 150px" class="input-small"/>
-                            <form:input path="splitCodes[${varIndex.index}].codeRemark" id="paramsContent" maxlength="15" class="input-small"/>
-                            <input name="splitCodes[${varIndex.index}].weChatFlag" type="checkbox" ${item.weChatFlag eq 1 ? 'checked':''} value="1">已确认微信支付开户意愿</input>
+                                path="splitCodes[${varIndex.index}].splitCode" id="paramsName" maxlength="15"
+                                class="input-small"/>
+                            <form:input path="splitCodes[${varIndex.index}].email" id="email" cssStyle="width: 150px"
+                                        class="input-small"/>
+                            <form:input path="splitCodes[${varIndex.index}].codeRemark" id="paramsContent"
+                                        maxlength="15" class="input-small"/>
+                            <input id="weChatCheck" name="splitCodes[${varIndex.index}].weChatFlag"
+                                   type="checkbox" ${item.weChatFlag eq 1 ? 'checked':''} onchange="setCheckVal(this)">已确认微信支付开户意愿</input>
+                            <input id="aliCheck" name="splitCodes[${varIndex.index}].aliPayFlag"
+                                   type="checkbox" ${item.aliPayFlag eq 1 ? 'checked':''} onchange="setCheckVal(this)">已确认支付宝开户意愿</input>
                             <span type="button" style="cursor: pointer;color: #0B61A4"
                                   onclick="deleteParams(this)">删除</span>
                         </div>
                     </c:forEach>
                 </div>
-                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button class="addParams" onclick="return false">添加分帐号</button>
+                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button
+                    class="addParams" onclick="return false">添加分帐号
+            </button>
             </td>
         </tr>
     </div>
@@ -883,7 +891,7 @@
                 </td>
                 <td>
                     <span>注册资本:</span>
-                    ¥<form:input path="registeredCapital" htmlEscape="false"  maxlength="20" placeholder="请填写公司注册资本"
+                    ¥<form:input path="registeredCapital" htmlEscape="false" maxlength="20" placeholder="请填写公司注册资本"
                                  class="input-xlarge"/>
                 </td>
                 <td>
@@ -1198,7 +1206,20 @@
 
 
 <script>
-
+    $(document).ready(function () {
+        var we = document.getElementById("weChatCheck");
+        var al = document.getElementById("aliCheck");
+        if (we.checked) {
+            we.value = 1;
+        } else {
+            we.value = 2;
+        }
+        if (al.checked) {
+            al.value = 1;
+        } else {
+            al.value = 2;
+        }
+    })
     var productParametersIndex = $('#productParametersLength').val() - 1;
     $(".addParams").click(function () {
         var val = $("#paramsName").val();
@@ -1227,6 +1248,14 @@
             $('.addParams').show();
         }
     }
+
+    function setCheckVal(el) {
+        if (el.checked) {
+            el.value = 1;
+        } else {
+            el.value = 2;
+        }
+    }
 </script>
 </body>
 </html>

+ 11 - 0
src/main/webapp/WEB-INF/views/modules/user/newCmShopSetForm.jsp

@@ -39,12 +39,14 @@
 			if ($('#AccountOwnership').val() == 1) {
 				$('#AccountOwnership1').show()
 				$('#AccountOwnership0').hide()
+				$('#account-type').hide();
 				// $('#bankAccount').val("")
 				// $('#bankAccountName').val("")
 				// $('#bankName').val("")
 			} else {
 				$('#AccountOwnership0').show()
 				$('#AccountOwnership1').hide()
+				$('#account-type').show();
 				// $('#cmBankAccount').val("")
 				// $('#cmBankAccountName').val("")
 				// $('#cmBankName').val("")
@@ -72,6 +74,15 @@
 			</form:select>
 		</div>
 	</div>
+	<div class="control-group" id="account-type">
+		<label class="control-label"><font color="red">*</font>账号类型:</label>
+		<div class="controls">
+			<form:select path="CmAccountType" placeholder="请选择" class="input-xlarge required">
+				<form:option value="0" label="公账"/>
+				<form:option value="1" label="私账"/>
+			</form:select>
+		</div>
+	</div>
 	<div id="AccountOwnership1">
 		<div class="control-group">
 			<label class="control-label"><font color="red">*</font>开户行:</label>