Commit 2e5cdb9c by liuyang

2024-08-26

1.发货单需求:发货单零件和构件选择按照项目显示,原材料和耗材选库存有的
2.采购合同数据校验调整和添加项目查询条件
3.销售开票添加项目查询条件
4、采购计划添加项目查询条件
5、采购收货添加项目查询条件
parent 7f6e4cc2
...@@ -179,7 +179,7 @@ public enum DdynamicEnum { ...@@ -179,7 +179,7 @@ public enum DdynamicEnum {
* 用途:调拨单下拉框 * 用途:调拨单下拉框
* 编写:ly * 编写:ly
*/ */
WH_RECORD_BOX_BLOCK_ID("wh_record_box_block_id", "whCode", "whName","companyCode","companyName", "HGKC010.queryWhCodeBox", WH_RECORD_BOX_BLOCK_ID("wh_record_box_block_id", "whCode", "whName","companyCode","companyName","whType","whTypeName", "HGKC010.queryWhCodeBox",
new HashMap<String,Object>(){{ new HashMap<String,Object>(){{
put("deleteFlag", CommonConstant.YesNo.NO_0); put("deleteFlag", CommonConstant.YesNo.NO_0);
}}), }}),
......
...@@ -256,8 +256,8 @@ public class ServiceHGCG002 extends ServiceBase { ...@@ -256,8 +256,8 @@ public class ServiceHGCG002 extends ServiceBase {
String contractNo = fCg002.getContractNo(); String contractNo = fCg002.getContractNo();
HGCG002 dbCg002 = dbCg002AMap.get(contractNo); HGCG002 dbCg002 = dbCg002AMap.get(contractNo);
AssertUtils.isNull(dbCg002, String.format("合同[%s]不存在", contractNo)); AssertUtils.isNull(dbCg002, String.format("合同[%s]不存在", contractNo));
AssertUtils.isTrue(StringUtils.isBlank(dbCg002.getSupName()), String.format("合同[%s]供应商为空", contractNo)); AssertUtils.isTrue(StringUtils.isBlank(fCg002.getSupName()), String.format("合同[%s]供应商为空", contractNo));
AssertUtils.isTrue(StringUtils.isBlank(dbCg002.getPurUserName()), String.format("合同[%s]采购员为空", contractNo)); AssertUtils.isTrue(StringUtils.isBlank(fCg002.getPurUserName()), String.format("合同[%s]采购员为空", contractNo));
AssertUtils.isNotEquals(HGConstant.CgContractStatus.S_0, dbCg002.getStatus(), AssertUtils.isNotEquals(HGConstant.CgContractStatus.S_0, dbCg002.getStatus(),
String.format("合同[%s]状态不是\"待审核\",不允许操作", contractNo)); String.format("合同[%s]状态不是\"待审核\",不允许操作", contractNo));
AssertUtils.isTrue(fCg002.getAmount().compareTo(BigDecimal.ZERO) <= 0, String.format("合同[%s]不含税金额小于等于0,不允许操作", contractNo)); AssertUtils.isTrue(fCg002.getAmount().compareTo(BigDecimal.ZERO) <= 0, String.format("合同[%s]不含税金额小于等于0,不允许操作", contractNo));
......
...@@ -10,6 +10,8 @@ import com.baosight.hggp.hg.cw.domain.*; ...@@ -10,6 +10,8 @@ import com.baosight.hggp.hg.cw.domain.*;
import com.baosight.hggp.hg.cw.domain.HGCW010; import com.baosight.hggp.hg.cw.domain.HGCW010;
import com.baosight.hggp.hg.cw.tools.HGCWTools; import com.baosight.hggp.hg.cw.tools.HGCWTools;
import com.baosight.hggp.hg.cw.vo.UserVO; import com.baosight.hggp.hg.cw.vo.UserVO;
import com.baosight.hggp.hg.sb.domain.HGSB001;
import com.baosight.hggp.hg.sb.tools.HGSBTools;
import com.baosight.hggp.hg.sc.domain.HGSC001; import com.baosight.hggp.hg.sc.domain.HGSC001;
import com.baosight.hggp.hg.sc.tools.HGSCTools; import com.baosight.hggp.hg.sc.tools.HGSCTools;
import com.baosight.hggp.hg.xs.domain.Company; import com.baosight.hggp.hg.xs.domain.Company;
...@@ -45,8 +47,14 @@ public class ServiceHGCW010 extends ServiceBase { ...@@ -45,8 +47,14 @@ public class ServiceHGCW010 extends ServiceBase {
@OperationLogAnnotation(operModul = "销售开票",operType = "查询",operDesc = "初始化") @OperationLogAnnotation(operModul = "销售开票",operType = "查询",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.SUP_RECORD_BLOCK_ID, /*CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.SUP_RECORD_BLOCK_ID,
DdynamicEnum.PROJ_RECORD_BLOCK_ID), null, false); DdynamicEnum.PROJ_RECORD_BLOCK_ID), null, false);*/
List<String> roleCompanyCode = HGSBTools.getRoleCompanyCode();
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.PROJ_RECORD_BLOCK_ID),
new HashMap<String,Object>(){{
put(HGSB001.FIELD_COMPANY_CODES,roleCompanyCode);
}}
);
EiInfoUtils.addBlock(inInfo,"roleCompany", UserSessionUtils.getRoleCompany(), Company.class); EiInfoUtils.addBlock(inInfo,"roleCompany", UserSessionUtils.getRoleCompany(), Company.class);
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGCW010().eiMetadata); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGCW010().eiMetadata);
} catch (Exception e) { } catch (Exception e) {
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
COMPANY_NAME = #companyName# COMPANY_NAME = #companyName#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="projName"> <isNotEmpty prepend=" AND " property="projName">
PROJ_NAME = #projName# PROJ_NAME like CONCAT('%',#projName#,'%')
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode"> <isNotEmpty prepend=" AND " property="projCode">
PROJ_CODE = #projCode# PROJ_CODE = #projCode#
......
...@@ -251,11 +251,22 @@ ...@@ -251,11 +251,22 @@
<!--仓库公司下拉框--> <!--仓库公司下拉框-->
<select id="queryWhCodeBox" resultClass="java.util.HashMap"> <select id="queryWhCodeBox" resultClass="java.util.HashMap">
SELECT distinct SELECT distinct
COMPANY_CODE as "companyCode", <!-- 公司编码 --> A.COMPANY_CODE as "companyCode",
COMPANY_NAME as "companyName", <!-- 公司名称 --> A.COMPANY_NAME as "companyName",
WH_CODE as "whCode", <!-- 仓库编码 --> A.WH_CODE as "whCode",
WH_NAME as "whName" <!-- 仓库名称 --> A.WH_NAME as "whName",
FROM ${hggpSchema}.HGKC010 B.wh_Type as "whType",
B.WH_TYPE_NAME as "whTypeName"
FROM ${hggpSchema}.HGKC010 A
left join (
select distinct
A.WH_CODE,
A.WH_NAME,
B.WH_TYPE,
B.WH_TYPE_NAME
FROM ${hggpSchema}.HGPZ007 A
INNER JOIN ${hggpSchema}.HGPZ006 B on A.WH_TYPE = B.WH_TYPE
) B on A.WH_CODE = B.wh_Code
WHERE 1=1 WHERE 1=1
<include refid="condition"/> <include refid="condition"/>
</select> </select>
......
...@@ -134,6 +134,20 @@ public class HGPZTools { ...@@ -134,6 +134,20 @@ public class HGPZTools {
} }
public static class HgPz006 {
public static HGPZ006 getWhCode(String wHCode) {
HGPZ007 pz007 = HGPZTools.HgPz007.get(wHCode);
if (pz007 == null) {
return null;
}
Map queryMap = new HashMap();
queryMap.put(HGPZ006.FIELD_WH_TYPE, pz007.getWhType());
List<HGPZ006> results = DaoBase.getInstance().query(HGPZ006.QUERY, queryMap);
return CollectionUtils.isEmpty(results) ? null : results.get(0);
}
}
/** /**
* 仓库管理 * 仓库管理
* HPPZ007 公共DAO定义 * HPPZ007 公共DAO定义
......
...@@ -48,7 +48,7 @@ public class HGYX001 extends DaoEPBase { ...@@ -48,7 +48,7 @@ public class HGYX001 extends DaoEPBase {
public static final String FIELD_RECE_NAME = "receName"; /* 收货方名称*/ public static final String FIELD_RECE_NAME = "receName"; /* 收货方名称*/
public static final String FIELD_RECE_ADDR = "receAddr"; /* 收货地址*/ public static final String FIELD_RECE_ADDR = "receAddr"; /* 收货地址*/
public static final String FIELD_RECE_USER_PHONE = "receUserPhone"; /* 收货人电话*/ public static final String FIELD_RECE_USER_PHONE = "receUserPhone"; /* 收货人电话*/
public static final String FIELD_TRAN_TYPE = "tranType"; /* 运输方式*/ public static final String FIELD_TRAN_TYPE = "tranType"; /* 车辆性质*/
public static final String FIELD_NUM_PLATE = "numPlate"; /* 车号*/ public static final String FIELD_NUM_PLATE = "numPlate"; /* 车号*/
public static final String FIELD_CONS_QUANTITY = "consQuantity"; /* 发货数量*/ public static final String FIELD_CONS_QUANTITY = "consQuantity"; /* 发货数量*/
public static final String FIELD_CONS_WEIGHT = "consWeight"; /* 发货重量*/ public static final String FIELD_CONS_WEIGHT = "consWeight"; /* 发货重量*/
...@@ -79,7 +79,7 @@ public class HGYX001 extends DaoEPBase { ...@@ -79,7 +79,7 @@ public class HGYX001 extends DaoEPBase {
public static final String COL_RECE_NAME = "RECE_NAME"; /* 收货方名称*/ public static final String COL_RECE_NAME = "RECE_NAME"; /* 收货方名称*/
public static final String COL_RECE_ADDR = "RECE_ADDR"; /* 收货地址*/ public static final String COL_RECE_ADDR = "RECE_ADDR"; /* 收货地址*/
public static final String COL_RECE_USER_PHONE = "RECE_USER_PHONE"; /* 收货人电话*/ public static final String COL_RECE_USER_PHONE = "RECE_USER_PHONE"; /* 收货人电话*/
public static final String COL_TRAN_TYPE = "TRAN_TYPE"; /* 运输方式*/ public static final String COL_TRAN_TYPE = "TRAN_TYPE"; /* 车辆性质*/
public static final String COL_NUM_PLATE = "NUM_PLATE"; /* 车号*/ public static final String COL_NUM_PLATE = "NUM_PLATE"; /* 车号*/
public static final String COL_CONS_QUANTITY = "CONS_QUANTITY"; /* 发货数量*/ public static final String COL_CONS_QUANTITY = "CONS_QUANTITY"; /* 发货数量*/
public static final String COL_CONS_WEIGHT = "CONS_WEIGHT"; /* 发货重量*/ public static final String COL_CONS_WEIGHT = "CONS_WEIGHT"; /* 发货重量*/
...@@ -119,7 +119,7 @@ public class HGYX001 extends DaoEPBase { ...@@ -119,7 +119,7 @@ public class HGYX001 extends DaoEPBase {
private String receName = " "; /* 收货方名称*/ private String receName = " "; /* 收货方名称*/
private String receAddr = " "; /* 收货地址*/ private String receAddr = " "; /* 收货地址*/
private String receUserPhone = " "; /* 收货人电话*/ private String receUserPhone = " "; /* 收货人电话*/
private Integer tranType = 0; /* 运输方式*/ private Integer tranType = 0; /* 车辆性质*/
private String numPlate = " "; /* 车号*/ private String numPlate = " "; /* 车号*/
private BigDecimal consQuantity = new BigDecimal("0"); /* 发货数量*/ private BigDecimal consQuantity = new BigDecimal("0"); /* 发货数量*/
private BigDecimal consWeight = new BigDecimal("0"); /* 发货重量*/ private BigDecimal consWeight = new BigDecimal("0"); /* 发货重量*/
...@@ -233,7 +233,7 @@ public class HGYX001 extends DaoEPBase { ...@@ -233,7 +233,7 @@ public class HGYX001 extends DaoEPBase {
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_TRAN_TYPE); eiColumn = new EiColumn(FIELD_TRAN_TYPE);
eiColumn.setDescName("运输方式"); eiColumn.setDescName("车辆性质");
eiMetadata.addMeta(eiColumn); eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_NUM_PLATE); eiColumn = new EiColumn(FIELD_NUM_PLATE);
...@@ -669,7 +669,7 @@ public class HGYX001 extends DaoEPBase { ...@@ -669,7 +669,7 @@ public class HGYX001 extends DaoEPBase {
this.receUserPhone = receUserPhone; this.receUserPhone = receUserPhone;
} }
/** /**
* get the tranType - 运输方式. * get the tranType - 车辆性质.
* @return the tranType * @return the tranType
*/ */
public Integer getTranType() { public Integer getTranType() {
...@@ -677,9 +677,9 @@ public class HGYX001 extends DaoEPBase { ...@@ -677,9 +677,9 @@ public class HGYX001 extends DaoEPBase {
} }
/** /**
* set the tranType - 运输方式. * set the tranType - 车辆性质.
* *
* @param tranType - 运输方式 * @param tranType - 车辆性质
*/ */
public void setTranType(Integer tranType) { public void setTranType(Integer tranType) {
this.tranType = tranType; this.tranType = tranType;
......
...@@ -7,8 +7,11 @@ import com.baosight.hggp.hg.cw.tools.HGCWTools; ...@@ -7,8 +7,11 @@ import com.baosight.hggp.hg.cw.tools.HGCWTools;
import com.baosight.hggp.hg.cw.vo.UserVO; import com.baosight.hggp.hg.cw.vo.UserVO;
import com.baosight.hggp.hg.kc.domain.HGKC010; import com.baosight.hggp.hg.kc.domain.HGKC010;
import com.baosight.hggp.hg.pz.domain.HGPZ004; import com.baosight.hggp.hg.pz.domain.HGPZ004;
import com.baosight.hggp.hg.pz.domain.HGPZ006;
import com.baosight.hggp.hg.pz.tools.HGPZTools;
import com.baosight.hggp.hg.sb.domain.HGSB001; import com.baosight.hggp.hg.sb.domain.HGSB001;
import com.baosight.hggp.hg.sb.tools.HGSBTools; import com.baosight.hggp.hg.sb.tools.HGSBTools;
import com.baosight.hggp.hg.sc.domain.HGSC004;
import com.baosight.hggp.hg.yx.domain.HGYX001; import com.baosight.hggp.hg.yx.domain.HGYX001;
import com.baosight.hggp.hg.yx.domain.HGYX001C; import com.baosight.hggp.hg.yx.domain.HGYX001C;
import com.baosight.hggp.util.CommonMethod; import com.baosight.hggp.util.CommonMethod;
...@@ -21,6 +24,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceEPBase; ...@@ -21,6 +24,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Objects;
/** /**
* @author LiuYang * @author LiuYang
...@@ -36,7 +40,16 @@ public class ServiceHGYX001C extends ServiceEPBase { ...@@ -36,7 +40,16 @@ public class ServiceHGYX001C extends ServiceEPBase {
String[] specIdArray = specIds.split(","); String[] specIdArray = specIds.split(",");
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, "specIds", specIdArray); inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, "specIds", specIdArray);
} }
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGPZ004.FIELD_INVENT_TYPE_DETAILS, InventTypeDetailEnum.getInentTypeTwo()); String whcode = inInfo.getCellStr(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGKC010.FIELD_WH_CODE);
if (StringUtils.isNotEmpty(whcode)) {
HGPZ006 hgpz006 = HGPZTools.HgPz006.getWhCode(whcode);
if (Objects.nonNull(hgpz006)){
if ("耗材".equals(hgpz006.getWhTypeName()) || "原材料".equals(hgpz006.getWhTypeName())) {
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGSC004.FIELD_proj_code, null);
}
}
}
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGPZ004.FIELD_INVENT_TYPE_DETAILS, InventTypeDetailEnum.getProdTypeFour());
inInfo = super.query(inInfo, HGYX001C.QUERY, new HGYX001C()); inInfo = super.query(inInfo, HGYX001C.QUERY, new HGYX001C());
CommonMethod.initBlock(inInfo, CommonMethod.initBlock(inInfo,
Arrays.asList( Arrays.asList(
...@@ -44,7 +57,7 @@ public class ServiceHGYX001C extends ServiceEPBase { ...@@ -44,7 +57,7 @@ public class ServiceHGYX001C extends ServiceEPBase {
DdynamicEnum.INVENT_RECORD_BLOCK_ID, DdynamicEnum.INVENT_RECORD_BLOCK_ID,
DdynamicEnum.SPEC_NAME_BLOCK_ID), DdynamicEnum.SPEC_NAME_BLOCK_ID),
new HashMap<String, Object>(){{ new HashMap<String, Object>(){{
put(HGPZ004.FIELD_INVENT_TYPE_DETAILS, InventTypeDetailEnum.getInentTypeTwo()); put(HGPZ004.FIELD_INVENT_TYPE_DETAILS, InventTypeDetailEnum.getProdTypeFour());
}}); }});
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGYX001C().eiMetadata); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HGYX001C().eiMetadata);
...@@ -54,7 +67,7 @@ public class ServiceHGYX001C extends ServiceEPBase { ...@@ -54,7 +67,7 @@ public class ServiceHGYX001C extends ServiceEPBase {
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGYX001.FIELD_DELETE_FLAG, CommonConstant.YesNo.NO_0); inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGYX001.FIELD_DELETE_FLAG, CommonConstant.YesNo.NO_0);
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGPZ004.FIELD_INVENT_TYPE_DETAILS, InventTypeDetailEnum.getInentTypeTwo()); inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HGPZ004.FIELD_INVENT_TYPE_DETAILS, InventTypeDetailEnum.getProdTypeFour());
return super.query(inInfo, HGYX001C.QUERY,new HGYX001C()); return super.query(inInfo, HGYX001C.QUERY,new HGYX001C());
} }
} }
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
RECE_NAME as "receName", <!-- 收货方名称 --> RECE_NAME as "receName", <!-- 收货方名称 -->
RECE_ADDR as "receAddr", <!-- 收货地址 --> RECE_ADDR as "receAddr", <!-- 收货地址 -->
RECE_USER_PHONE as "receUserPhone", <!-- 收货人电话 --> RECE_USER_PHONE as "receUserPhone", <!-- 收货人电话 -->
TRAN_TYPE as "tranType", <!-- 运输方式 --> TRAN_TYPE as "tranType", <!-- 车辆性质 -->
NUM_PLATE as "numPlate", <!-- 车号 --> NUM_PLATE as "numPlate", <!-- 车号 -->
CONS_QUANTITY as "consQuantity", <!-- 发货数量 --> CONS_QUANTITY as "consQuantity", <!-- 发货数量 -->
CONS_WEIGHT as "consWeight", <!-- 发货重量 --> CONS_WEIGHT as "consWeight", <!-- 发货重量 -->
...@@ -307,7 +307,7 @@ ...@@ -307,7 +307,7 @@
RECE_NAME, <!-- 收货方名称 --> RECE_NAME, <!-- 收货方名称 -->
RECE_ADDR, <!-- 收货地址 --> RECE_ADDR, <!-- 收货地址 -->
RECE_USER_PHONE, <!-- 收货人电话 --> RECE_USER_PHONE, <!-- 收货人电话 -->
TRAN_TYPE, <!-- 运输方式 --> TRAN_TYPE, <!-- 车辆性质 -->
NUM_PLATE, <!-- 车号 --> NUM_PLATE, <!-- 车号 -->
CONS_QUANTITY, <!-- 发货数量 --> CONS_QUANTITY, <!-- 发货数量 -->
CONS_WEIGHT, <!-- 发货重量 --> CONS_WEIGHT, <!-- 发货重量 -->
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
RECE_NAME = #receName#, <!-- 收货方名称 --> RECE_NAME = #receName#, <!-- 收货方名称 -->
RECE_ADDR = #receAddr#, <!-- 收货地址 --> RECE_ADDR = #receAddr#, <!-- 收货地址 -->
RECE_USER_PHONE = #receUserPhone#, <!-- 收货人电话 --> RECE_USER_PHONE = #receUserPhone#, <!-- 收货人电话 -->
TRAN_TYPE = #tranType#, <!-- 运输方式 --> TRAN_TYPE = #tranType#, <!-- 车辆性质 -->
NUM_PLATE = #numPlate#, <!-- 车号 --> NUM_PLATE = #numPlate#, <!-- 车号 -->
CONS_QUANTITY = #consQuantity#, <!-- 发货数量 --> CONS_QUANTITY = #consQuantity#, <!-- 发货数量 -->
CONS_WEIGHT = #consWeight#, <!-- 发货重量 --> CONS_WEIGHT = #consWeight#, <!-- 发货重量 -->
......
...@@ -122,6 +122,25 @@ ...@@ -122,6 +122,25 @@
FROM ${hggpSchema}.HGKC010 FROM ${hggpSchema}.HGKC010
WHERE 1=1 AND INV_QTY >0 WHERE 1=1 AND INV_QTY >0
<include refid="condition"/> <include refid="condition"/>
<isNotEmpty prepend=" AND " property="projCode">
INVENT_CODE IN (
SELECT distinct trim(product_code)
FROM ${hggpSchema}.HGSC004A
WHERE PROJ_CODE = #projCode#
<isNotEmpty prepend=" AND " property="productStatus">
product_status = #productStatus#
</isNotEmpty>
<isEmpty prepend=" AND " property="productStatus">
product_status = '1'
</isEmpty>
<isNotEmpty prepend=" AND " property="approvalStatus">
approval_status = #approvalStatus#
</isNotEmpty>
<isEmpty prepend=" AND " property="approvalStatus">
approval_status = '1'
</isEmpty>
)
</isNotEmpty>
<include refid="orderBy"/> <include refid="orderBy"/>
</select> </select>
......
...@@ -15,12 +15,11 @@ ...@@ -15,12 +15,11 @@
filter="contains" optionLabel="全部" defultValue=""> filter="contains" optionLabel="全部" defultValue="">
<EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/> <EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/>
</EF:EFSelect> </EF:EFSelect>
<EF:EFInput cname="项目名称" blockId="inqu_status" ename="projName" row="0" colWidth="3" placeholder="模糊查询项目名称"/>
<EF:EFSelect cname="状态" blockId="inqu_status" ename="status" row="0" colWidth="3" optionLabel="全部" <EF:EFSelect cname="状态" blockId="inqu_status" ename="status" row="0" colWidth="3" optionLabel="全部"
defultValue=""> defultValue="">
<EF:EFCodeOption codeName="hggp.hgcg.planStatus" condition="ITEM_CODE IN ('0', '2', '4')"/> <EF:EFCodeOption codeName="hggp.hgcg.planStatus" condition="ITEM_CODE IN ('0', '2', '4')"/>
</EF:EFSelect> </EF:EFSelect>
</div>
<div class="row">
<EF:EFSelect cname="数据来源" blockId="inqu_status" ename="source" row="0" colWidth="3" optionLabel="全部" <EF:EFSelect cname="数据来源" blockId="inqu_status" ename="source" row="0" colWidth="3" optionLabel="全部"
defultValue=""> defultValue="">
<EF:EFCodeOption codeName="hggp.hpcg.receiveSource"/> <EF:EFCodeOption codeName="hggp.hpcg.receiveSource"/>
......
...@@ -16,12 +16,11 @@ ...@@ -16,12 +16,11 @@
defultValue=""> defultValue="">
<EF:EFCodeOption codeName="hggp.hgcg.contractStatus" condition="ITEM_CODE IN ('0','2','4','5')"/> <EF:EFCodeOption codeName="hggp.hgcg.contractStatus" condition="ITEM_CODE IN ('0','2','4','5')"/>
</EF:EFSelect> </EF:EFSelect>
</div>
<div class="row">
<EF:EFSelect cname="公司名称" blockId="inqu_status" ename="companyCode" row="0" colWidth="3" <EF:EFSelect cname="公司名称" blockId="inqu_status" ename="companyCode" row="0" colWidth="3"
filter="contains" optionLabel="全部" defultValue=""> filter="contains" optionLabel="全部" defultValue="">
<EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/> <EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/>
</EF:EFSelect> </EF:EFSelect>
<EF:EFInput cname="项目名称" blockId="inqu_status" ename="projName" row="0" colWidth="3" placeholder="模糊查询项目名称"/>
<EF:EFSelect cname="供应商名称" blockId="inqu_status" ename="supCode" row="0" colWidth="3" <EF:EFSelect cname="供应商名称" blockId="inqu_status" ename="supCode" row="0" colWidth="3"
filter="contains" optionLabel="全部" defultValue=""> filter="contains" optionLabel="全部" defultValue="">
<EF:EFOptions blockId="sup_record_block_id" textField="textField" valueField="valueField"/> <EF:EFOptions blockId="sup_record_block_id" textField="textField" valueField="valueField"/>
...@@ -30,8 +29,6 @@ ...@@ -30,8 +29,6 @@
startName="createdTimeFrom" endName="createdTimeTo" row="0" role="datetime" startName="createdTimeFrom" endName="createdTimeTo" row="0" role="datetime"
format="yyyy-MM-dd HH:mm:ss" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="true"> format="yyyy-MM-dd HH:mm:ss" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="true">
</EF:EFDateSpan> </EF:EFDateSpan>
</div>
<div class="row">
<EF:EFSelect cname="数据来源" blockId="inqu_status" ename="source" row="0" colWidth="3" optionLabel="全部" <EF:EFSelect cname="数据来源" blockId="inqu_status" ename="source" row="0" colWidth="3" optionLabel="全部"
defultValue=""> defultValue="">
<EF:EFCodeOption codeName="hggp.hpcg.receiveSource"/> <EF:EFCodeOption codeName="hggp.hpcg.receiveSource"/>
......
...@@ -16,13 +16,11 @@ ...@@ -16,13 +16,11 @@
defultValue=""> defultValue="">
<EF:EFCodeOption codeName="hggp.hgcg.receiveStatus"/> <EF:EFCodeOption codeName="hggp.hgcg.receiveStatus"/>
</EF:EFSelect> </EF:EFSelect>
</div>
<div class="row">
<EF:EFSelect cname="公司名称" blockId="inqu_status" ename="companyCode" row="0" colWidth="3" <EF:EFSelect cname="公司名称" blockId="inqu_status" ename="companyCode" row="0" colWidth="3"
filter="contains" optionLabel="全部" defultValue=""> filter="contains" optionLabel="全部" defultValue="">
<EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/> <EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/>
</EF:EFSelect> </EF:EFSelect>
<EF:EFInput cname="项目名称" blockId="inqu_status" ename="projName" row="0" colWidth="3" placeholder="模糊查询项目名称"/>
<EF:EFSelect cname="供应商名称" blockId="inqu_status" ename="supCode" row="0" colWidth="3" <EF:EFSelect cname="供应商名称" blockId="inqu_status" ename="supCode" row="0" colWidth="3"
filter="contains" optionLabel="全部" defultValue=""> filter="contains" optionLabel="全部" defultValue="">
<EF:EFOptions blockId="sup_record_block_id" textField="textField" valueField="valueField"/> <EF:EFOptions blockId="sup_record_block_id" textField="textField" valueField="valueField"/>
...@@ -31,8 +29,6 @@ ...@@ -31,8 +29,6 @@
defultValue=""> defultValue="">
<EF:EFCodeOption codeName="hggp.hpcg.receiveSource"/> <EF:EFCodeOption codeName="hggp.hpcg.receiveSource"/>
</EF:EFSelect> </EF:EFSelect>
</div>
<div>
<EF:EFDateSpan startCname="创建时间(从)" endCname="至" blockId="inqu_status" <EF:EFDateSpan startCname="创建时间(从)" endCname="至" blockId="inqu_status"
startName="createdTimeFrom" endName="createdTimeTo" row="0" role="datetime" startName="createdTimeFrom" endName="createdTimeTo" row="0" role="datetime"
format="yyyy-MM-dd HH:mm:ss" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="true"> format="yyyy-MM-dd HH:mm:ss" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="true">
......
...@@ -14,16 +14,21 @@ ...@@ -14,16 +14,21 @@
<EF:EFOption label="全部" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/> <EF:EFOptions blockId="roleCompany" textField="companyName" valueField="companyCode"/>
</EF:EFSelect> </EF:EFSelect>
<EF:EFInput cname="项目名称" blockId="inqu_status" ename="projName" row="0" colWidth="3" placeholder="模糊查询项目名称"/>
<%--<EF:EFSelect blockId="inqu_status" row="0" ename="projCode" cname="项目名称" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="proj_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>--%>
<EF:EFDateSpan startCname="开票日期(从)" endCname="至" blockId="inqu_status" <EF:EFDateSpan startCname="开票日期(从)" endCname="至" blockId="inqu_status"
startName="signingDateFrom" endName="signingDateTo" row="0" role="date" startName="signingDateFrom" endName="signingDateTo" row="0" role="date"
format="yyyy-MM-dd" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="true"> format="yyyy-MM-dd" ratio="3:3" satrtRatio="4:8" endRatio="4:8" readonly="true">
</EF:EFDateSpan> </EF:EFDateSpan>
<EF:EFInput cname="客户名称" ename="partyA" blockId="inqu_status" row="0" colWidth="3" /> <EF:EFInput cname="客户名称" ename="partyA" blockId="inqu_status" row="0" colWidth="3" placeholder="模糊查询客户名称"/>
<EF:EFSelect cname="票据类型" ename="inqu_status-0-billTybe" colWidth="3" filter="contains"> <EF:EFSelect cname="票据类型" ename="inqu_status-0-billTybe" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.cw.billTybe"/> <EF:EFCodeOption codeName="hggp.cw.billTybe"/>
</EF:EFSelect> </EF:EFSelect>
<EF:EFInput cname="发票号" ename="billNumber" blockId="inqu_status" row="0" colWidth="3" /> <EF:EFInput cname="发票号" ename="billNumber" blockId="inqu_status" row="0" colWidth="3" placeholder="模糊查询发票号"/>
<EF:EFSelect cname="开票状态" ename="inqu_status-0-billState" colWidth="3" filter="contains"> <EF:EFSelect cname="开票状态" ename="inqu_status-0-billState" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.cw.billState"/> <EF:EFCodeOption codeName="hggp.cw.billState"/>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<EF:EFInput blockId="inqu_status" row="0" ename="projName" cname="项目名称" placeholder="模糊查询" colWidth="3"/> <EF:EFInput blockId="inqu_status" row="0" ename="projName" cname="项目名称" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="deliveryCode" cname="发货单号" placeholder="模糊查询" colWidth="3"/> <EF:EFInput blockId="inqu_status" row="0" ename="deliveryCode" cname="发货单号" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="outboundCode" cname="出库单号" placeholder="模糊查询" colWidth="3"/> <EF:EFInput blockId="inqu_status" row="0" ename="outboundCode" cname="出库单号" placeholder="模糊查询" colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="tranType" cname="运输方式" colWidth="3" filter="contains"> <EF:EFSelect blockId="inqu_status" row="0" ename="tranType" cname="车辆性质" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.hgyx.tranType"/> <EF:EFCodeOption codeName="hggp.hgyx.tranType"/>
</EF:EFSelect> </EF:EFSelect>
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFColumn ename="receAddr" cname="收货地址" enable="true" readonly="true" width="200" align="center"/> <EF:EFColumn ename="receAddr" cname="收货地址" enable="true" readonly="true" width="200" align="center"/>
<EF:EFColumn ename="receUserPhone" cname="收货人电话" enable="true" readonly="true" width="120" align="center" data-rules="mobile_phone"/> <EF:EFColumn ename="receUserPhone" cname="收货人电话" enable="true" readonly="true" width="120" align="center" data-rules="mobile_phone"/>
<EF:EFComboColumn ename="tranType" cname="运输方式" width="80" align="center" enable="true" readonly="true" required="true"> <EF:EFComboColumn ename="tranType" cname="车辆性质" width="150" align="center" enable="true" readonly="true" required="true">
<EF:EFCodeOption codeName="hggp.hgyx.tranType"/> <EF:EFCodeOption codeName="hggp.hgyx.tranType"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFColumn ename="numPlate" cname="车牌号" enable="true" readonly="true" width="120" align="center"/> <EF:EFColumn ename="numPlate" cname="车牌号" enable="true" readonly="true" width="120" align="center"/>
......
...@@ -375,11 +375,17 @@ function detail() { ...@@ -375,11 +375,17 @@ function detail() {
ids.push(item.inventRecordId) ids.push(item.inventRecordId)
}); });
} }
let projCode = $("#inqu_status-0-projCode").val();
if(isBlank(projCode)){
message("请选择项目!");
return false;
}
let consCode = $("#inqu_status-0-consCode").val(); let consCode = $("#inqu_status-0-consCode").val();
if(isBlank(consCode)){ if(isBlank(consCode)){
message("请选择发货方!"); message("请选择发货方!");
return false; return false;
} }
let consWhCode = $("#inqu_status-0-consWhCode").val(); let consWhCode = $("#inqu_status-0-consWhCode").val();
if(isBlank(consWhCode)){ if(isBlank(consWhCode)){
message("请选择发货仓库!"); message("请选择发货仓库!");
...@@ -387,7 +393,7 @@ function detail() { ...@@ -387,7 +393,7 @@ function detail() {
} }
JSColorbox.open({ JSColorbox.open({
href: "HGYX001C?methodName=initLoad&inqu_status-0-companyCode="+consCode+"&inqu_status-0-whCode="+consWhCode+"&inqu_status-0-specIds="+ids.join(','), href: "HGYX001C?methodName=initLoad&inqu_status-0-companyCode="+consCode+"&inqu_status-0-projCode="+projCode+"&inqu_status-0-whCode="+consWhCode+"&inqu_status-0-specIds="+ids.join(','),
title: "<div style='text-align: center;'>选择发货明细</div>", title: "<div style='text-align: center;'>选择发货明细</div>",
width: "90%", width: "90%",
height: "80%", height: "80%",
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="row"> <div class="row">
<EF:EFInput blockId="inqu_status" row="0" ename="receAddr" cname="收货地址" placeholder="请输入收货地址" required="true" colWidth="3"/> <EF:EFInput blockId="inqu_status" row="0" ename="receAddr" cname="收货地址" placeholder="请输入收货地址" required="true" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="receUserPhone" cname="收货人电话" required="true" data-rules="mobile_phone" placeholder="请输入电话号码" colWidth="3"/> <EF:EFInput blockId="inqu_status" row="0" ename="receUserPhone" cname="收货人电话" required="true" data-rules="mobile_phone" placeholder="请输入电话号码" colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="tranType" cname="运输方式" required="true" placeholder="请选择运输方式" colWidth="3" filter="contains"> <EF:EFSelect blockId="inqu_status" row="0" ename="tranType" cname="车辆性质" required="true" placeholder="请选择运输方式" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.hgyx.tranType"/> <EF:EFCodeOption codeName="hggp.hgyx.tranType"/>
</EF:EFSelect> </EF:EFSelect>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="row"> <div class="row">
<EF:EFInput blockId="inqu_status" row="0" ename="receAddr" cname="收货地址" disabled="true" placeholder="请输入收货地址" required="true" colWidth="3"/> <EF:EFInput blockId="inqu_status" row="0" ename="receAddr" cname="收货地址" disabled="true" placeholder="请输入收货地址" required="true" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="receUserPhone" cname="收货人电话" disabled="true" required="true" data-rules="mobile_phone" placeholder="请输入电话号码" colWidth="3"/> <EF:EFInput blockId="inqu_status" row="0" ename="receUserPhone" cname="收货人电话" disabled="true" required="true" data-rules="mobile_phone" placeholder="请输入电话号码" colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="tranType" cname="运输方式" disabled="true" required="true" placeholder="请选择运输方式" colWidth="3" filter="contains"> <EF:EFSelect blockId="inqu_status" row="0" ename="tranType" cname="车辆性质" disabled="true" required="true" placeholder="请选择运输方式" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.hgyx.tranType"/> <EF:EFCodeOption codeName="hggp.hgyx.tranType"/>
</EF:EFSelect> </EF:EFSelect>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment