jg-waiwang-pro
XI_TENG\xixi_ 8 months ago
commit f2da3a23d1

@ -2,6 +2,77 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="jnpf.mapper.BusinessOrderMapper"> <mapper namespace="jnpf.mapper.BusinessOrderMapper">
<resultMap id="contractList" type="jnpf.entity.ContractLEntity">
<id column="id" property="id"/>
<result column="contract_status" property="contractStatus"/>
<result column="contract_type" property="contractType"/>
<result column="contract_number" property="contractNumber"/>
<result column="contract_name" property="contractName"/>
<result column="contract_period_time" property="contractPeriodTime"/>
<result column="contract_period_time_end" property="contractPeriodTimeEnd"/>
<result column="currency" property="currency"/>
<result column="procurement_model" property="procurementModel"/>
<result column="pricing_model" property="pricingModel"/>
<result column="delivery_time" property="deliveryTime"/>
<result column="delivery_time_end" property="deliveryTimeEnd"/>
<result column="delivery_model" property="deliveryModel"/>
<result column="delivery_method" property="deliveryMethod"/>
<result column="delivery_location" property="deliveryLocation"/>
<result column="mode_transport" property="modeTransport"/>
<result column="cost_bearing_mian" property="costBearingMian"/>
<result column="firstCustomName" property="firstCustomName"/>
<result column="enterpriseName" property="enterpriseName"/>
<result column="relatedContractName" property="relatedContractName"/>
<result column="secondCustomName" property="secondCustomName"/>
<result column="subject" property="subject"/>
<result column="dept_id" property="deptId"/>
</resultMap>
<select id="querySaleContract" resultMap="contractList">
SELECT
a.*,
b.name AS firstCustomName,
c.f_full_name AS enterpriseName,
d.contract_name AS relatedContractName,
e.name AS secondCustomName
FROM
jg_contract a
LEFT JOIN jg_subject_basic b ON a.subject = b.id
AND b.f_delete_mark IS NULL
LEFT JOIN base_organize c ON a.dept_id = c.f_id
AND c.f_delete_mark IS NULL
LEFT JOIN jg_contract d ON a.related_contract_id = d.id
AND d.f_delete_mark IS NULL
LEFT JOIN jg_subject_basic e ON a.subject2 = e.id
AND e.f_delete_mark IS NULL
WHERE
a.contract_type = '2'
AND a.f_delete_mark IS NULL
</select>
<select id="queryPurchaseContract" resultMap="contractList">
SELECT
a.*,
b.name AS firstSupplyName,
c.f_full_name AS enterpriseName,
d.contract_name AS relatedContractName,
e.name AS secondSupplyName,
f.name AS thirdSupplyName
FROM
jg_contract a
LEFT JOIN jg_subject_basic b ON a.subject = b.id
AND b.f_delete_mark IS NULL
LEFT JOIN base_organize c ON a.dept_id = c.f_id
AND c.f_delete_mark IS NULL
LEFT JOIN jg_contract d ON a.related_contract_id = d.id
AND d.f_delete_mark IS NULL
LEFT JOIN jg_subject_basic e ON a.subject2 = e.id
AND e.f_delete_mark IS NULL
LEFT JOIN jg_subject_basic f ON a.subject2 = f.id
AND f.f_delete_mark IS NULL
WHERE
a.contract_type = '1'
AND a.f_delete_mark IS NULL
</select>
</mapper> </mapper>

@ -69,5 +69,68 @@
AND a.document_type = '2' AND a.document_type = '2'
</select> </select>
<select id="querySaleReceiptVoucher" resultMap="voucherList">
SELECT
a.*,
b.driver_name,
c.product_id,
c.spec,
c.unit,
c.gross_weight,
c.tare_weight,
c.buckle_weight,
c.net_weight,
c.remark
FROM
jg_voucher a
LEFT JOIN jg_voucher_vehicle b ON b.voucher_id = a.id AND b.f_delete_mark IS NULL
LEFT JOIN jg_voucher_product c ON c.voucher_id = a.id AND c.f_delete_mark IS NULL
WHERE
a.business_type = '2'
AND a.document_type = '1'
</select>
<select id="queryPurchaseReceiptVoucher" resultMap="voucherList">
SELECT
a.*,
b.driver_name,
c.product_id,
c.spec,
c.unit,
c.gross_weight,
c.tare_weight,
c.buckle_weight,
c.net_weight,
c.remark
FROM
jg_voucher a
LEFT JOIN jg_voucher_vehicle b ON b.voucher_id = a.id AND b.f_delete_mark IS NULL
LEFT JOIN jg_voucher_product c ON c.voucher_id = a.id AND c.f_delete_mark IS NULL
WHERE
a.business_type = '1'
AND a.document_type = '1'
</select>
<select id="queryPurchaseDeliveryVoucher" resultMap="voucherList">
SELECT
a.*,
b.driver_name,
c.product_id,
c.spec,
c.unit,
c.gross_weight,
c.tare_weight,
c.buckle_weight,
c.net_weight,
c.remark
FROM
jg_voucher a
LEFT JOIN jg_voucher_vehicle b ON b.voucher_id = a.id AND b.f_delete_mark IS NULL
LEFT JOIN jg_voucher_product c ON c.voucher_id = a.id AND c.f_delete_mark IS NULL
WHERE
a.business_type = '1'
AND a.document_type = '2'
</select>
</mapper> </mapper>

@ -3,6 +3,9 @@ package jnpf.mapper;
import jnpf.entity.BusinessOrderEntity; import jnpf.entity.BusinessOrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jnpf.entity.ContractLEntity;
import java.util.List;
/** /**
* businessOrder * businessOrder
@ -13,4 +16,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/ */
public interface BusinessOrderMapper extends BaseMapper<BusinessOrderEntity> { public interface BusinessOrderMapper extends BaseMapper<BusinessOrderEntity> {
List<ContractLEntity> querySaleContract();
List<ContractLEntity> queryPurchaseContract();
} }

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLCommodityMapper extends BaseMapper<ContractLCommodityEntity> { public interface ContractLCommodityMapper extends BaseMapper<ContractLCommodityEntity> {

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLFeeClauseMapper extends BaseMapper<ContractLFeeClauseEntity> { public interface ContractLFeeClauseMapper extends BaseMapper<ContractLFeeClauseEntity> {

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLMapper extends BaseMapper<ContractLEntity> { public interface ContractLMapper extends BaseMapper<ContractLEntity> {

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLPaymentMapper extends BaseMapper<ContractLPaymentEntity> { public interface ContractLPaymentMapper extends BaseMapper<ContractLPaymentEntity> {

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLPriceFormulaMapper extends BaseMapper<ContractLPriceFormulaEntity> { public interface ContractLPriceFormulaMapper extends BaseMapper<ContractLPriceFormulaEntity> {

@ -16,4 +16,7 @@ import java.util.List;
public interface VoucherMapper extends BaseMapper<VoucherEntity> { public interface VoucherMapper extends BaseMapper<VoucherEntity> {
List<VoucherEntity> querySaleDeliveryVoucher(); List<VoucherEntity> querySaleDeliveryVoucher();
List<VoucherEntity> querySaleReceiptVoucher();
List<VoucherEntity> queryPurchaseReceiptVoucher();
List<VoucherEntity> queryPurchaseDeliveryVoucher();
} }

@ -40,4 +40,10 @@ public interface BusinessOrderService extends IService<BusinessOrderEntity> {
void saveOrUpdate(BusinessOrderForm businessOrderForm,String id, boolean isSave) throws Exception; void saveOrUpdate(BusinessOrderForm businessOrderForm,String id, boolean isSave) throws Exception;
//查询销售合同
List<ContractLEntity> querySaleContractInfo();
//查询采购合同
List<ContractLEntity> queryPurchaseContractInfo();
} }

@ -11,7 +11,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLCommodityService extends IService<ContractLCommodityEntity> { public interface ContractLCommodityService extends IService<ContractLCommodityEntity> {
QueryWrapper<ContractLCommodityEntity> getChild(ContractLPagination pagination,QueryWrapper<ContractLCommodityEntity> contractLCommodityQueryWrapper); QueryWrapper<ContractLCommodityEntity> getChild(ContractLPagination pagination,QueryWrapper<ContractLCommodityEntity> contractLCommodityQueryWrapper);

@ -11,7 +11,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLFeeClauseService extends IService<ContractLFeeClauseEntity> { public interface ContractLFeeClauseService extends IService<ContractLFeeClauseEntity> {
QueryWrapper<ContractLFeeClauseEntity> getChild(ContractLPagination pagination,QueryWrapper<ContractLFeeClauseEntity> contractLFeeClauseQueryWrapper); QueryWrapper<ContractLFeeClauseEntity> getChild(ContractLPagination pagination,QueryWrapper<ContractLFeeClauseEntity> contractLFeeClauseQueryWrapper);

@ -11,7 +11,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLPaymentService extends IService<ContractLPaymentEntity> { public interface ContractLPaymentService extends IService<ContractLPaymentEntity> {
QueryWrapper<ContractLPaymentEntity> getChild(ContractLPagination pagination,QueryWrapper<ContractLPaymentEntity> contractLPaymentQueryWrapper); QueryWrapper<ContractLPaymentEntity> getChild(ContractLPagination pagination,QueryWrapper<ContractLPaymentEntity> contractLPaymentQueryWrapper);

@ -11,7 +11,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLPriceFormulaService extends IService<ContractLPriceFormulaEntity> { public interface ContractLPriceFormulaService extends IService<ContractLPriceFormulaEntity> {
QueryWrapper<ContractLPriceFormulaEntity> getChild(ContractLPagination pagination,QueryWrapper<ContractLPriceFormulaEntity> contractLPriceFormulaQueryWrapper); QueryWrapper<ContractLPriceFormulaEntity> getChild(ContractLPagination pagination,QueryWrapper<ContractLPriceFormulaEntity> contractLPriceFormulaQueryWrapper);

@ -11,7 +11,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
public interface ContractLService extends IService<ContractLEntity> { public interface ContractLService extends IService<ContractLEntity> {
List<ContractLEntity> getList(ContractLPagination contractLPagination); List<ContractLEntity> getList(ContractLPagination contractLPagination);

@ -43,4 +43,13 @@ public interface VoucherService extends IService<VoucherEntity> {
//查询销售发货凭证 //查询销售发货凭证
List<VoucherEntity> querySaleDeliveryVoucherInfo(); List<VoucherEntity> querySaleDeliveryVoucherInfo();
//查询销售收货凭证
List<VoucherEntity> querySaleReceiptVoucherInfo();
//查询采购收货凭证
List<VoucherEntity> queryPurchaseReceiptVoucherInfo();
//查询采购发货凭证
List<VoucherEntity> queryPurchaseDeliveryVoucherInfo();
} }

@ -30,6 +30,9 @@ import jnpf.util.*;
import java.util.*; import java.util.*;
import jnpf.base.UserInfo; import jnpf.base.UserInfo;
import jnpf.permission.entity.UserEntity; import jnpf.permission.entity.UserEntity;
import javax.annotation.Resource;
/** /**
* *
* businessOrder * businessOrder
@ -50,6 +53,9 @@ public class BusinessOrderServiceImpl extends ServiceImpl<BusinessOrderMapper, B
private SettlementInfoService settlementInfoService; private SettlementInfoService settlementInfoService;
@Autowired @Autowired
private BusinessOrderProductRelationalService businessOrderProductRelationalService; private BusinessOrderProductRelationalService businessOrderProductRelationalService;
@Resource
private BusinessOrderMapper businessOrderMapper;
@Override @Override
public List<BusinessOrderEntity> getList(BusinessOrderPagination businessOrderPagination){ public List<BusinessOrderEntity> getList(BusinessOrderPagination businessOrderPagination){
return getTypeList(businessOrderPagination,businessOrderPagination.getDataType()); return getTypeList(businessOrderPagination,businessOrderPagination.getDataType());
@ -577,4 +583,14 @@ public class BusinessOrderServiceImpl extends ServiceImpl<BusinessOrderMapper, B
} }
} }
} }
@Override
public List<ContractLEntity> querySaleContractInfo() {
return businessOrderMapper.querySaleContract();
}
@Override
public List<ContractLEntity> queryPurchaseContractInfo() {
return businessOrderMapper.queryPurchaseContract();
}
} }

@ -33,7 +33,7 @@ import jnpf.permission.entity.UserEntity;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
@Service @Service
public class ContractLCommodityServiceImpl extends ServiceImpl<ContractLCommodityMapper, ContractLCommodityEntity> implements ContractLCommodityService{ public class ContractLCommodityServiceImpl extends ServiceImpl<ContractLCommodityMapper, ContractLCommodityEntity> implements ContractLCommodityService{

@ -33,7 +33,7 @@ import jnpf.permission.entity.UserEntity;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
@Service @Service
public class ContractLFeeClauseServiceImpl extends ServiceImpl<ContractLFeeClauseMapper, ContractLFeeClauseEntity> implements ContractLFeeClauseService{ public class ContractLFeeClauseServiceImpl extends ServiceImpl<ContractLFeeClauseMapper, ContractLFeeClauseEntity> implements ContractLFeeClauseService{

@ -33,7 +33,7 @@ import jnpf.permission.entity.UserEntity;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
@Service @Service
public class ContractLPaymentServiceImpl extends ServiceImpl<ContractLPaymentMapper, ContractLPaymentEntity> implements ContractLPaymentService{ public class ContractLPaymentServiceImpl extends ServiceImpl<ContractLPaymentMapper, ContractLPaymentEntity> implements ContractLPaymentService{

@ -33,7 +33,7 @@ import jnpf.permission.entity.UserEntity;
* V3.5 * V3.5
* https://www.jnpfsoft.com * https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
@Service @Service
public class ContractLPriceFormulaServiceImpl extends ServiceImpl<ContractLPriceFormulaMapper, ContractLPriceFormulaEntity> implements ContractLPriceFormulaService{ public class ContractLPriceFormulaServiceImpl extends ServiceImpl<ContractLPriceFormulaMapper, ContractLPriceFormulaEntity> implements ContractLPriceFormulaService{

@ -428,17 +428,32 @@ public class DeliveryOrderServiceImpl extends ServiceImpl<DeliveryOrderMapper, D
generaterSwapUtil.swapDatetime(DeliveryOrderConstant.getFormData(),deliveryOrderForm),DeliveryOrderForm.class); generaterSwapUtil.swapDatetime(DeliveryOrderConstant.getFormData(),deliveryOrderForm),DeliveryOrderForm.class);
DeliveryOrderEntity entity = JsonUtil.getJsonToBean(deliveryOrderForm, DeliveryOrderEntity.class); DeliveryOrderEntity entity = JsonUtil.getJsonToBean(deliveryOrderForm, DeliveryOrderEntity.class);
if(isSave){ if (entity.getDeliveryType().equals("2")) {
String mainId = id ; if (isSave) {
entity.setDeliveryCode(generaterSwapUtil.getBillNumber("ssfh", false)); String mainId = id;
entity.setPreparationTime(DateUtil.getNowDate()); entity.setDeliveryCode(generaterSwapUtil.getBillNumber("ssfh", false));
entity.setId(mainId); entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(deliveryOrderForm.getFlowId()); entity.setId(mainId);
entity.setVersion(0); entity.setFlowId(deliveryOrderForm.getFlowId());
}else{ entity.setVersion(0);
entity.setDeliveryCode(generaterSwapUtil.getBillNumber("ssfh", false)); } else {
entity.setPreparationTime(DateUtil.getNowDate()); entity.setDeliveryCode(generaterSwapUtil.getBillNumber("ssfh", false));
entity.setFlowId(deliveryOrderForm.getFlowId()); entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(deliveryOrderForm.getFlowId());
}
}else if(entity.getDeliveryType().equals("1")){
if (isSave) {
String mainId = id;
entity.setDeliveryCode(generaterSwapUtil.getBillNumber("cgfh", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setId(mainId);
entity.setFlowId(deliveryOrderForm.getFlowId());
entity.setVersion(0);
} else {
entity.setDeliveryCode(generaterSwapUtil.getBillNumber("cgfh", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(deliveryOrderForm.getFlowId());
}
} }
this.saveOrUpdate(entity); this.saveOrUpdate(entity);

@ -428,17 +428,32 @@ public class ReceiptOrderServiceImpl extends ServiceImpl<ReceiptOrderMapper, Rec
generaterSwapUtil.swapDatetime(ReceiptOrderConstant.getFormData(),receiptOrderForm),ReceiptOrderForm.class); generaterSwapUtil.swapDatetime(ReceiptOrderConstant.getFormData(),receiptOrderForm),ReceiptOrderForm.class);
ReceiptOrderEntity entity = JsonUtil.getJsonToBean(receiptOrderForm, ReceiptOrderEntity.class); ReceiptOrderEntity entity = JsonUtil.getJsonToBean(receiptOrderForm, ReceiptOrderEntity.class);
if(isSave){ if (entity.getReceiptType().equals("2")) {
String mainId = id ; if (isSave) {
entity.setReceiptCode(generaterSwapUtil.getBillNumber("sssh", false)); String mainId = id;
entity.setPreparationTime(DateUtil.getNowDate()); entity.setReceiptCode(generaterSwapUtil.getBillNumber("sssh", false));
entity.setId(mainId); entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(receiptOrderForm.getFlowId()); entity.setId(mainId);
entity.setVersion(0); entity.setFlowId(receiptOrderForm.getFlowId());
}else{ entity.setVersion(0);
entity.setReceiptCode(generaterSwapUtil.getBillNumber("sssh", false)); } else {
entity.setPreparationTime(DateUtil.getNowDate()); entity.setReceiptCode(generaterSwapUtil.getBillNumber("sssh", false));
entity.setFlowId(receiptOrderForm.getFlowId()); entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(receiptOrderForm.getFlowId());
}
}else if(entity.getReceiptType().equals("1")){
if (isSave) {
String mainId = id;
entity.setReceiptCode(generaterSwapUtil.getBillNumber("cgsh", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setId(mainId);
entity.setFlowId(receiptOrderForm.getFlowId());
entity.setVersion(0);
} else {
entity.setReceiptCode(generaterSwapUtil.getBillNumber("cgsh", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(receiptOrderForm.getFlowId());
}
} }
this.saveOrUpdate(entity); this.saveOrUpdate(entity);

@ -428,17 +428,32 @@ public class ReturnCargoOrderServiceImpl extends ServiceImpl<ReturnCargoOrderMap
generaterSwapUtil.swapDatetime(ReturnCargoOrderConstant.getFormData(),returnCargoOrderForm),ReturnCargoOrderForm.class); generaterSwapUtil.swapDatetime(ReturnCargoOrderConstant.getFormData(),returnCargoOrderForm),ReturnCargoOrderForm.class);
ReturnCargoOrderEntity entity = JsonUtil.getJsonToBean(returnCargoOrderForm, ReturnCargoOrderEntity.class); ReturnCargoOrderEntity entity = JsonUtil.getJsonToBean(returnCargoOrderForm, ReturnCargoOrderEntity.class);
if(isSave){ if (entity.getDocumentType().equals("2")) {
String mainId = id ; if (isSave) {
entity.setReturnCargoCode(generaterSwapUtil.getBillNumber("sssh", false)); String mainId = id;
entity.setPreparationTime(DateUtil.getNowDate()); entity.setReturnCargoCode(generaterSwapUtil.getBillNumber("ssth", false));
entity.setId(mainId); entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(returnCargoOrderForm.getFlowId()); entity.setId(mainId);
entity.setVersion(0); entity.setFlowId(returnCargoOrderForm.getFlowId());
}else{ entity.setVersion(0);
entity.setReturnCargoCode(generaterSwapUtil.getBillNumber("sssh", false)); } else {
entity.setPreparationTime(DateUtil.getNowDate()); entity.setReturnCargoCode(generaterSwapUtil.getBillNumber("ssth", false));
entity.setFlowId(returnCargoOrderForm.getFlowId()); entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(returnCargoOrderForm.getFlowId());
}
}else if(entity.getDocumentType().equals("1")){
if (isSave) {
String mainId = id;
entity.setReturnCargoCode(generaterSwapUtil.getBillNumber("cgth", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setId(mainId);
entity.setFlowId(returnCargoOrderForm.getFlowId());
entity.setVersion(0);
} else {
entity.setReturnCargoCode(generaterSwapUtil.getBillNumber("cgth", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(returnCargoOrderForm.getFlowId());
}
} }
this.saveOrUpdate(entity); this.saveOrUpdate(entity);

@ -553,4 +553,19 @@ public class VoucherServiceImpl extends ServiceImpl<VoucherMapper, VoucherEntity
public List<VoucherEntity> querySaleDeliveryVoucherInfo() { public List<VoucherEntity> querySaleDeliveryVoucherInfo() {
return voucherMapper.querySaleDeliveryVoucher(); return voucherMapper.querySaleDeliveryVoucher();
} }
@Override
public List<VoucherEntity> querySaleReceiptVoucherInfo() {
return voucherMapper.querySaleReceiptVoucher();
}
@Override
public List<VoucherEntity> queryPurchaseReceiptVoucherInfo() {
return voucherMapper.queryPurchaseReceiptVoucher();
}
@Override
public List<VoucherEntity> queryPurchaseDeliveryVoucherInfo() {
return voucherMapper.queryPurchaseDeliveryVoucher();
}
} }

@ -342,17 +342,59 @@ public class WarehousingNotificationServiceImpl extends ServiceImpl<WarehousingN
generaterSwapUtil.swapDatetime(WarehousingNotificationConstant.getFormData(),warehousingNotificationForm),WarehousingNotificationForm.class); generaterSwapUtil.swapDatetime(WarehousingNotificationConstant.getFormData(),warehousingNotificationForm),WarehousingNotificationForm.class);
WarehousingNotificationEntity entity = JsonUtil.getJsonToBean(warehousingNotificationForm, WarehousingNotificationEntity.class); WarehousingNotificationEntity entity = JsonUtil.getJsonToBean(warehousingNotificationForm, WarehousingNotificationEntity.class);
if(isSave){
String mainId = id ; if (entity.getWarehousingType().equals("1")) {
entity.setWarehousingCode(generaterSwapUtil.getBillNumber("cktz", false)); if (isSave) {
entity.setPreparationTime(DateUtil.getNowDate()); String mainId = id;
entity.setId(mainId); entity.setWarehousingCode(generaterSwapUtil.getBillNumber("cgrk", false));
entity.setFlowId(warehousingNotificationForm.getFlowId()); entity.setPreparationTime(DateUtil.getNowDate());
entity.setVersion(0); entity.setId(mainId);
}else{ entity.setFlowId(warehousingNotificationForm.getFlowId());
entity.setWarehousingCode(generaterSwapUtil.getBillNumber("cktz", false)); entity.setVersion(0);
entity.setPreparationTime(DateUtil.getNowDate()); } else {
entity.setFlowId(warehousingNotificationForm.getFlowId()); entity.setWarehousingCode(generaterSwapUtil.getBillNumber("cgrk", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(warehousingNotificationForm.getFlowId());
}
}else if(entity.getWarehousingType().equals("2")){
if (isSave) {
String mainId = id;
entity.setWarehousingCode(generaterSwapUtil.getBillNumber("ssrk", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setId(mainId);
entity.setFlowId(warehousingNotificationForm.getFlowId());
entity.setVersion(0);
} else {
entity.setWarehousingCode(generaterSwapUtil.getBillNumber("ssrk", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(warehousingNotificationForm.getFlowId());
}
}else if(entity.getWarehousingType().equals("7")){
if (isSave) {
String mainId = id;
entity.setWarehousingCode(generaterSwapUtil.getBillNumber("cgck", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setId(mainId);
entity.setFlowId(warehousingNotificationForm.getFlowId());
entity.setVersion(0);
} else {
entity.setWarehousingCode(generaterSwapUtil.getBillNumber("cgck", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(warehousingNotificationForm.getFlowId());
}
}else if(entity.getWarehousingType().equals("8")){
if (isSave) {
String mainId = id;
entity.setWarehousingCode(generaterSwapUtil.getBillNumber("ssck", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setId(mainId);
entity.setFlowId(warehousingNotificationForm.getFlowId());
entity.setVersion(0);
} else {
entity.setWarehousingCode(generaterSwapUtil.getBillNumber("ssck", false));
entity.setPreparationTime(DateUtil.getNowDate());
entity.setFlowId(warehousingNotificationForm.getFlowId());
}
} }
this.saveOrUpdate(entity); this.saveOrUpdate(entity);

@ -80,6 +80,14 @@ public class BusinessOrderController {
@Autowired @Autowired
private ConfigValueUtil configValueUtil; private ConfigValueUtil configValueUtil;
@Autowired
private ContractLCommodityService contractLCommodityService;
@Autowired
private SubjectbasicService subjectbasicService;
@Autowired
private BusinessLineService businessLineService;
/** /**
* *
* *
@ -573,8 +581,18 @@ public class BusinessOrderController {
List<BusinessOrderEntity> businessOrderEntityList = businessOrderService.list(businessOrderQueryWrapper); List<BusinessOrderEntity> businessOrderEntityList = businessOrderService.list(businessOrderQueryWrapper);
// List<Map<String, Object>> realList=new ArrayList<>(); // List<Map<String, Object>> realList=new ArrayList<>();
for (BusinessOrderEntity entity: businessOrderEntityList) { for (BusinessOrderEntity entity: businessOrderEntityList) {
Map<String, Object> businessOrderMap=JsonUtil.entityToMap(entity); if (StringUtil.isNotEmpty(entity.getSecondSubjectBasicId())){
businessOrderMap.put("id", businessOrderMap.get("id")); SubjectbasicEntity subjectbasicEntity = subjectbasicService.getInfo(entity.getSecondSubjectBasicId());
if (subjectbasicEntity != null) {
entity.setSecondCustomName(subjectbasicEntity.getName());
}
}
if (StringUtil.isNotEmpty(entity.getBusinessLineId())){
BusinessLineEntity businessLineEntity = businessLineService.getInfo(entity.getBusinessLineId());
if (businessLineEntity != null){
entity.setBusinessLineName(businessLineEntity.getName());
}
}
//副表数据 //副表数据
//子表数据 //子表数据
List<SettlementInfoEntity> settlementInfoList = businessOrderService.getSettlementInfoList(entity.getId()); List<SettlementInfoEntity> settlementInfoList = businessOrderService.getSettlementInfoList(entity.getId());
@ -603,8 +621,24 @@ public class BusinessOrderController {
List<BusinessOrderEntity> businessOrderEntityList = businessOrderService.list(businessOrderQueryWrapper); List<BusinessOrderEntity> businessOrderEntityList = businessOrderService.list(businessOrderQueryWrapper);
// List<Map<String, Object>> realList=new ArrayList<>(); // List<Map<String, Object>> realList=new ArrayList<>();
for (BusinessOrderEntity entity: businessOrderEntityList) { for (BusinessOrderEntity entity: businessOrderEntityList) {
Map<String, Object> businessOrderMap=JsonUtil.entityToMap(entity); if (StringUtil.isNotEmpty(entity.getSecondSubjectBasicId())){
businessOrderMap.put("id", businessOrderMap.get("id")); SubjectbasicEntity subjectbasicEntity = subjectbasicService.getInfo(entity.getSecondSubjectBasicId());
if (subjectbasicEntity != null) {
entity.setSecondSupplyName(subjectbasicEntity.getName());
}
}
if (StringUtil.isNotEmpty(entity.getThirdSubjectBasicId())){
SubjectbasicEntity subjectbasicEntity = subjectbasicService.getInfo(entity.getThirdSubjectBasicId());
if (subjectbasicEntity != null) {
entity.setThirdSupplyName(subjectbasicEntity.getName());
}
}
if (StringUtil.isNotEmpty(entity.getBusinessLineId())){
BusinessLineEntity businessLineEntity = businessLineService.getInfo(entity.getBusinessLineId());
if (businessLineEntity != null){
entity.setBusinessLineName(businessLineEntity.getName());
}
}
//副表数据 //副表数据
//子表数据 //子表数据
List<SettlementInfoEntity> settlementInfoList = businessOrderService.getSettlementInfoList(entity.getId()); List<SettlementInfoEntity> settlementInfoList = businessOrderService.getSettlementInfoList(entity.getId());
@ -619,4 +653,41 @@ public class BusinessOrderController {
// realList = generaterSwapUtil.swapDataList(realList, BusinessOrderConstant.getFormData(), BusinessOrderConstant.getColumnData(), "522690032352364805",false); // realList = generaterSwapUtil.swapDataList(realList, BusinessOrderConstant.getFormData(), BusinessOrderConstant.getColumnData(), "522690032352364805",false);
return ActionResult.success(businessOrderEntityList); return ActionResult.success(businessOrderEntityList);
} }
/**
*
*
* @return
*/
@Operation(summary = "获取销售合同列表")
@GetMapping("/getSaleContractList")
public ActionResult list2()throws IOException{
List<ContractLEntity> list= businessOrderService.querySaleContractInfo();
for (ContractLEntity entity : list){
QueryWrapper<ContractLCommodityEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ContractLCommodityEntity::getContractId,entity.getId());
List<ContractLCommodityEntity> commodityList = contractLCommodityService.list(queryWrapper);
entity.setContractLCommodityEntityList(commodityList);
}
return ActionResult.success(list);
}
/**
*
*
* @return
*/
@Operation(summary = "获取采购合同列表")
@GetMapping("/getPurchaseContractList")
public ActionResult list3()throws IOException{
List<ContractLEntity> list= businessOrderService.queryPurchaseContractInfo();
for (ContractLEntity entity : list){
QueryWrapper<ContractLCommodityEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ContractLCommodityEntity::getContractId,entity.getId());
List<ContractLCommodityEntity> commodityList = contractLCommodityService.list(queryWrapper);
entity.setContractLCommodityEntityList(commodityList);
}
return ActionResult.success(list);
}
} }

@ -54,7 +54,7 @@ import org.springframework.transaction.annotation.Transactional;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-02-22 * @ 2024-02-27
*/ */
@Slf4j @Slf4j
@RestController @RestController
@ -273,6 +273,12 @@ public class ContractLController {
case "pricingModel" : case "pricingModel" :
entitys.add(new ExcelExportEntity("定价模式 " ,"pricingModel")); entitys.add(new ExcelExportEntity("定价模式 " ,"pricingModel"));
break; break;
case "totalAmount" :
entitys.add(new ExcelExportEntity("合计金额(人民币)" ,"totalAmount"));
break;
case "amountCapitalization" :
entitys.add(new ExcelExportEntity("大写金额(人民币)" ,"amountCapitalization"));
break;
case "contractRequirement" : case "contractRequirement" :
entitys.add(new ExcelExportEntity("合同要求" ,"contractRequirement")); entitys.add(new ExcelExportEntity("合同要求" ,"contractRequirement"));
break; break;
@ -354,12 +360,12 @@ public class ContractLController {
case "tableField177-fundRate": case "tableField177-fundRate":
tableField177List.add(new ExcelExportEntity("资金利率" ,"fundRate")); tableField177List.add(new ExcelExportEntity("资金利率" ,"fundRate"));
break; break;
case "tableField135-commodityName":
tableField135List.add(new ExcelExportEntity("商品名称" ,"commodityName"));
break;
case "tableField135-commodityCode": case "tableField135-commodityCode":
tableField135List.add(new ExcelExportEntity("商品编码" ,"commodityCode")); tableField135List.add(new ExcelExportEntity("商品编码" ,"commodityCode"));
break; break;
case "tableField135-commodityName":
tableField135List.add(new ExcelExportEntity("商品名称" ,"commodityName"));
break;
case "tableField135-specifications": case "tableField135-specifications":
tableField135List.add(new ExcelExportEntity("商品规格" ,"specifications")); tableField135List.add(new ExcelExportEntity("商品规格" ,"specifications"));
break; break;

@ -557,7 +557,7 @@ public class ReturnCargoOrderController {
* @return * @return
*/ */
@Operation(summary = "获取销售退货列表") @Operation(summary = "获取销售退货列表")
@PostMapping("/getSaleReturnCargoList") @GetMapping("/getSaleReturnCargoList")
public ActionResult list()throws IOException{ public ActionResult list()throws IOException{
QueryWrapper<ReturnCargoOrderEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<ReturnCargoOrderEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ReturnCargoOrderEntity::getDocumentType,"2"); queryWrapper.lambda().eq(ReturnCargoOrderEntity::getDocumentType,"2");
@ -574,7 +574,7 @@ public class ReturnCargoOrderController {
// returnCargoOrderMap.put("tableField144",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(deliveryProductRelationList))); // returnCargoOrderMap.put("tableField144",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(deliveryProductRelationList)));
// realList.add(returnCargoOrderMap); // realList.add(returnCargoOrderMap);
entity.setDeliveryVoucherRelationEntityList(deliveryVoucherRelationList); entity.setDeliveryVoucherRelationEntityList(deliveryVoucherRelationList);
entity.setDeliveryProductRelationEntityLisy(deliveryProductRelationList); entity.setDeliveryProductRelationEntityList(deliveryProductRelationList);
} }
//数据转换 //数据转换
@ -592,7 +592,7 @@ public class ReturnCargoOrderController {
* @return * @return
*/ */
@Operation(summary = "获取采购退货列表") @Operation(summary = "获取采购退货列表")
@PostMapping("/getPurchaseReturnCargoList") @GetMapping("/getPurchaseReturnCargoList")
public ActionResult list1()throws IOException{ public ActionResult list1()throws IOException{
QueryWrapper<ReturnCargoOrderEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<ReturnCargoOrderEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ReturnCargoOrderEntity::getDocumentType,"1"); queryWrapper.lambda().eq(ReturnCargoOrderEntity::getDocumentType,"1");
@ -609,7 +609,7 @@ public class ReturnCargoOrderController {
// returnCargoOrderMap.put("tableField144",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(deliveryProductRelationList))); // returnCargoOrderMap.put("tableField144",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(deliveryProductRelationList)));
// realList.add(returnCargoOrderMap); // realList.add(returnCargoOrderMap);
entity.setDeliveryVoucherRelationEntityList(deliveryVoucherRelationList); entity.setDeliveryVoucherRelationEntityList(deliveryVoucherRelationList);
entity.setDeliveryProductRelationEntityLisy(deliveryProductRelationList); entity.setDeliveryProductRelationEntityList(deliveryProductRelationList);
} }
//数据转换 //数据转换

@ -554,7 +554,7 @@ public class VoucherController {
* @param * @param
* @return * @return
*/ */
@Operation(summary = "获取列表") @Operation(summary = "获取销售发货凭证列表")
@GetMapping("/getSaleDeliveryVoucherList") @GetMapping("/getSaleDeliveryVoucherList")
public ActionResult list()throws IOException{ public ActionResult list()throws IOException{
//查询销售发货凭证 //查询销售发货凭证
@ -564,10 +564,105 @@ public class VoucherController {
QueryWrapper<ProductWarehouseEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<ProductWarehouseEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ProductWarehouseEntity::getId,entity.getProductId()); queryWrapper.lambda().eq(ProductWarehouseEntity::getId,entity.getProductId());
List<ProductWarehouseEntity> productWarehouseEntity = productWarehouseService.list(queryWrapper); List<ProductWarehouseEntity> productWarehouseEntity = productWarehouseService.list(queryWrapper);
for (ProductWarehouseEntity productEntity : productWarehouseEntity) {
productEntity.setUnit(entity.getUnit());
productEntity.setGrossWeight(entity.getGrossWeight());
productEntity.setTareWeight(entity.getTareWeight());
productEntity.setBuckleWeight(entity.getBuckleWeight());
productEntity.setNetWeight(entity.getNetWeight());
}
entity.setProductWarehouseEntityList(productWarehouseEntity); entity.setProductWarehouseEntityList(productWarehouseEntity);
} }
} }
return ActionResult.success(list); return ActionResult.success(list);
} }
/**
*
*
* @param
* @return
*/
@Operation(summary = "获取销售收货凭证列表")
@GetMapping("/getSaleReceiptVoucherList")
public ActionResult list1()throws IOException{
//查询销售收货凭证
List<VoucherEntity> list= voucherService.querySaleReceiptVoucherInfo();
for (VoucherEntity entity : list) {
if (StringUtil.isNotEmpty(entity.getProductId())){
QueryWrapper<ProductWarehouseEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ProductWarehouseEntity::getId,entity.getProductId());
List<ProductWarehouseEntity> productWarehouseEntity = productWarehouseService.list(queryWrapper);
for (ProductWarehouseEntity productEntity : productWarehouseEntity) {
productEntity.setUnit(entity.getUnit());
productEntity.setGrossWeight(entity.getGrossWeight());
productEntity.setTareWeight(entity.getTareWeight());
productEntity.setBuckleWeight(entity.getBuckleWeight());
productEntity.setNetWeight(entity.getNetWeight());
}
entity.setProductWarehouseEntityList(productWarehouseEntity);
}
}
return ActionResult.success(list);
}
/**
*
*
* @param
* @return
*/
@Operation(summary = "获取采购收货凭证列表")
@GetMapping("/getPurchaseReceiptVoucherList")
public ActionResult list2()throws IOException{
//查询采购收货凭证
List<VoucherEntity> list= voucherService.queryPurchaseReceiptVoucherInfo();
for (VoucherEntity entity : list) {
if (StringUtil.isNotEmpty(entity.getProductId())){
QueryWrapper<ProductWarehouseEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ProductWarehouseEntity::getId,entity.getProductId());
List<ProductWarehouseEntity> productWarehouseEntity = productWarehouseService.list(queryWrapper);
for (ProductWarehouseEntity productEntity : productWarehouseEntity) {
productEntity.setUnit(entity.getUnit());
productEntity.setGrossWeight(entity.getGrossWeight());
productEntity.setTareWeight(entity.getTareWeight());
productEntity.setBuckleWeight(entity.getBuckleWeight());
productEntity.setNetWeight(entity.getNetWeight());
}
entity.setProductWarehouseEntityList(productWarehouseEntity);
}
}
return ActionResult.success(list);
}
/**
*
*
* @param
* @return
*/
@Operation(summary = "获取采购发货凭证列表")
@GetMapping("/getPurchaseDeliveryVoucherList")
public ActionResult list3()throws IOException{
//查询采购发货凭证
List<VoucherEntity> list= voucherService.queryPurchaseDeliveryVoucherInfo();
for (VoucherEntity entity : list) {
if (StringUtil.isNotEmpty(entity.getProductId())){
QueryWrapper<ProductWarehouseEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.lambda().eq(ProductWarehouseEntity::getId,entity.getProductId());
List<ProductWarehouseEntity> productWarehouseEntity = productWarehouseService.list(queryWrapper);
for (ProductWarehouseEntity productEntity : productWarehouseEntity) {
productEntity.setUnit(entity.getUnit());
productEntity.setGrossWeight(entity.getGrossWeight());
productEntity.setTareWeight(entity.getTareWeight());
productEntity.setBuckleWeight(entity.getBuckleWeight());
productEntity.setNetWeight(entity.getNetWeight());
}
entity.setProductWarehouseEntityList(productWarehouseEntity);
}
}
return ActionResult.success(list);
}
} }

@ -27,6 +27,26 @@ import java.io.IOException;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import jnpf.engine.entity.FlowTaskEntity; import jnpf.engine.entity.FlowTaskEntity;
import jnpf.exception.WorkFlowException; import jnpf.exception.WorkFlowException;
import org.springframework.web.multipart.MultipartFile;
import cn.afterturn.easypoi.excel.ExcelExportUtil;
import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.entity.ExportParams;
import cn.afterturn.easypoi.excel.entity.ImportParams;
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import java.io.File;
import jnpf.onlinedev.model.ExcelImFieldModel;
import jnpf.onlinedev.model.OnlineImport.ImportDataModel;
import jnpf.onlinedev.model.OnlineImport.ImportFormCheckUniqueModel;
import jnpf.onlinedev.model.OnlineImport.ExcelImportModel;
import jnpf.onlinedev.model.OnlineImport.VisualImportModel;
import cn.xuyanwu.spring.file.storage.FileInfo;
import lombok.Cleanup;
import jnpf.model.visualJson.config.HeaderModel;
import jnpf.base.model.ColumnDataModel;
import jnpf.base.util.VisualUtils;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
/** /**
@ -34,7 +54,7 @@ import org.springframework.transaction.annotation.Transactional;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-02-20 * @ 2024-02-19
*/ */
@Slf4j @Slf4j
@RestController @RestController
@ -51,7 +71,12 @@ public class WarehousingNotificationController {
@Autowired @Autowired
private WarehousingNotificationService warehousingNotificationService; private WarehousingNotificationService warehousingNotificationService;
@Autowired
private WarehousingProductService warehousingProductService;
@Autowired
private ConfigValueUtil configValueUtil;
/** /**
* *
@ -69,6 +94,8 @@ public class WarehousingNotificationController {
warehousingNotificationMap.put("id", warehousingNotificationMap.get("id")); warehousingNotificationMap.put("id", warehousingNotificationMap.get("id"));
//副表数据 //副表数据
//子表数据 //子表数据
List<WarehousingProductEntity> warehousingProductList = warehousingNotificationService.getWarehousingProductList(entity.getId(),warehousingNotificationPagination);
warehousingNotificationMap.put("tableField121",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(warehousingProductList)));
realList.add(warehousingNotificationMap); realList.add(warehousingNotificationMap);
} }
//数据转换 //数据转换
@ -122,6 +149,223 @@ public class WarehousingNotificationController {
return ActionResult.success("创建成功"); return ActionResult.success("创建成功");
} }
/** /**
* Excel
*
* @return
*/
@Operation(summary = "导出Excel")
@PostMapping("/Actions/Export")
public ActionResult Export(@RequestBody WarehousingNotificationPagination warehousingNotificationPagination) throws IOException {
if (StringUtil.isEmpty(warehousingNotificationPagination.getSelectKey())){
return ActionResult.fail("请选择导出字段");
}
List<WarehousingNotificationEntity> list= warehousingNotificationService.getList(warehousingNotificationPagination);
List<Map<String, Object>> realList=new ArrayList<>();
for (WarehousingNotificationEntity entity : list) {
Map<String, Object> warehousingNotificationMap=JsonUtil.entityToMap(entity);
warehousingNotificationMap.put("id", warehousingNotificationMap.get("id"));
//副表数据
//子表数据
List<WarehousingProductEntity> warehousingProductList = warehousingNotificationService.getWarehousingProductList(entity.getId(),warehousingNotificationPagination);
warehousingNotificationMap.put("tableField121",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(warehousingProductList)));
realList.add(warehousingNotificationMap);
}
//数据转换
realList = generaterSwapUtil.swapDataList(realList, WarehousingNotificationConstant.getFormData(), WarehousingNotificationConstant.getColumnData(), warehousingNotificationPagination.getModuleId(),false);
String[]keys=!StringUtil.isEmpty(warehousingNotificationPagination.getSelectKey())?warehousingNotificationPagination.getSelectKey():new String[0];
UserInfo userInfo=userProvider.get();
DownloadVO vo=this.creatModelExcel(configValueUtil.getTemporaryFilePath(),realList,keys,userInfo);
return ActionResult.success(vo);
}
/**
*
*/
public DownloadVO creatModelExcel(String path,List<Map<String, Object>>list,String[]keys,UserInfo userInfo){
DownloadVO vo=DownloadVO.builder().build();
List<ExcelExportEntity> entitys=new ArrayList<>();
if(keys.length>0){
ExcelExportEntity tableField121ExcelEntity = new ExcelExportEntity("","tableField121");
List<ExcelExportEntity> tableField121List = new ArrayList<>();
for(String key:keys){
switch(key){
case "warehousingType" :
entitys.add(new ExcelExportEntity("" ,"warehousingType"));
break;
case "warehousingCode" :
entitys.add(new ExcelExportEntity("通知编号" ,"warehousingCode"));
break;
case "preparationTime" :
entitys.add(new ExcelExportEntity("制单时间" ,"preparationTime"));
break;
case "businessId" :
entitys.add(new ExcelExportEntity("销售订单" ,"businessId"));
break;
case "subjectBasicId" :
entitys.add(new ExcelExportEntity("客户名称" ,"subjectBasicId"));
break;
case "shippingAddress" :
entitys.add(new ExcelExportEntity("收货地址" ,"shippingAddress"));
break;
case "enterpriseId" :
entitys.add(new ExcelExportEntity("机构名称" ,"enterpriseId"));
break;
case "warehouseId" :
entitys.add(new ExcelExportEntity("发货仓库" ,"warehouseId"));
break;
case "deliveryAddress" :
entitys.add(new ExcelExportEntity("发货地址" ,"deliveryAddress"));
break;
case "remark" :
entitys.add(new ExcelExportEntity("备注" ,"remark"));
break;
case "tableField121-productName":
tableField121List.add(new ExcelExportEntity("商品名称" ,"productName"));
break;
case "tableField121-spec":
tableField121List.add(new ExcelExportEntity("规格" ,"spec"));
break;
case "tableField121-inventoryUnitId":
tableField121List.add(new ExcelExportEntity("库存单位" ,"inventoryUnitId"));
break;
case "tableField121-purchaseUnitId":
tableField121List.add(new ExcelExportEntity("销售单位" ,"purchaseUnitId"));
break;
case "tableField121-purchaseNum":
tableField121List.add(new ExcelExportEntity("销售数量" ,"purchaseNum"));
break;
case "tableField121-storageAreaId":
tableField121List.add(new ExcelExportEntity("出库货区" ,"storageAreaId"));
break;
case "tableField121-warehousingUnitId":
tableField121List.add(new ExcelExportEntity("出库单位" ,"warehousingUnitId"));
break;
case "tableField121-barCode":
tableField121List.add(new ExcelExportEntity("包装条码" ,"barCode"));
break;
case "tableField121-notificationStorageNumber":
tableField121List.add(new ExcelExportEntity("通知出库数量" ,"notificationStorageNumber"));
break;
case "tableField121-volume":
tableField121List.add(new ExcelExportEntity("体积" ,"volume"));
break;
case "tableField121-batchNo":
tableField121List.add(new ExcelExportEntity("批次号" ,"batchNo"));
break;
case "tableField121-produceDate":
tableField121List.add(new ExcelExportEntity("生产日期" ,"produceDate"));
break;
case "tableField121-remark":
tableField121List.add(new ExcelExportEntity("备注" ,"remark"));
break;
default:
break;
}
}
if(tableField121List.size() > 0){
tableField121ExcelEntity.setList(tableField121List);
entitys.add(tableField121ExcelEntity);
}
}
ExportParams exportParams = new ExportParams(null, "表单信息");
exportParams.setType(ExcelType.XSSF);
try{
@Cleanup Workbook workbook = new HSSFWorkbook();
if (entitys.size()>0){
if (list.size()==0){
list.add(new HashMap<>());
}
//去除空数据
List<Map<String, Object>> dataList = new ArrayList<>();
for (Map<String, Object> map : list) {
int i = 0;
for (String key : keys) {
//子表
if (key.toLowerCase().startsWith("tablefield")) {
String tableField = key.substring(0, key.indexOf("-" ));
String field = key.substring(key.indexOf("-" ) + 1);
Object o = map.get(tableField);
if (o != null) {
List<Map<String, Object>> childList = (List<Map<String, Object>>) o;
for (Map<String, Object> childMap : childList) {
if (childMap.get(field) != null) {
i++;
}
}
}
} else {
Object o = map.get(key);
if (o != null) {
i++;
}
}
}
if (i > 0) {
dataList.add(map);
}
}
//复杂表头-表头和数据处理
ColumnDataModel columnDataModel = JsonUtil.getJsonToBean(WarehousingNotificationConstant.getColumnData(), ColumnDataModel.class);
List<HeaderModel> complexHeaderList = columnDataModel.getComplexHeaderList();
if (!Objects.equals(columnDataModel.getType(), 3) && !Objects.equals(columnDataModel.getType(), 5)) {
entitys = VisualUtils.complexHeaderHandel(entitys, complexHeaderList);
dataList = VisualUtils.complexHeaderDataHandel(dataList, complexHeaderList);
}
workbook = ExcelExportUtil.exportExcel(exportParams, entitys, dataList);
}
String fileName = "表单信息" + DateUtil.dateNow("yyyyMMdd") + "_" + RandomUtil.uuId() + ".xlsx";
MultipartFile multipartFile = ExcelUtil.workbookToCommonsMultipartFile(workbook, fileName);
String temporaryFilePath = configValueUtil.getTemporaryFilePath();
FileInfo fileInfo = FileUploadUtils.uploadFile(multipartFile, temporaryFilePath, fileName);
vo.setName(fileInfo.getFilename());
vo.setUrl(UploaderUtil.uploaderFile(fileInfo.getFilename() + "#" + "Temporary") + "&name=" + fileName);
} catch (Exception e) {
log.error("信息导出Excel错误:{}", e.getMessage());
e.printStackTrace();
}
return vo;
}
/**
*
* @param ids
* @return
*/
@DeleteMapping("/batchRemove")
@Transactional
@Operation(summary = "批量删除")
public ActionResult batchRemove(@RequestBody String ids){
List<String> idList = JsonUtil.getJsonToList(ids, String.class);
List<String> columnIdList = new ArrayList<>(20);
int i =0;
String errInfo = "";
for (String allId : idList){
FlowTaskEntity taskEntity = generaterSwapUtil.getInfoSubmit(allId, FlowTaskEntity::getId, FlowTaskEntity::getStatus);
if (taskEntity==null){
columnIdList.add(allId);
this.delete(allId);
}else if (taskEntity.getStatus().equals(0) || taskEntity.getStatus().equals(4)){
try {
generaterSwapUtil.deleteFlowTask(taskEntity);
columnIdList.add(allId);
this.delete(allId);
i++;
} catch (WorkFlowException e) {
errInfo = e.getMessage();
e.printStackTrace();
}
}
}
if (i == 0 && columnIdList.size()==0){
return ActionResult.fail("流程已发起,无法删除");
}
if (StringUtil.isNotEmpty(errInfo)){
return ActionResult.fail(errInfo);
}
return ActionResult.success("删除成功");
}
/**
* *
* @param id * @param id
* @param warehousingNotificationForm * @param warehousingNotificationForm
@ -203,7 +447,6 @@ public class WarehousingNotificationController {
}else if(entity.getWarehousingType().equals("7")){ }else if(entity.getWarehousingType().equals("7")){
warehousingNotificationMap = generaterSwapUtil.swapDataDetail(warehousingNotificationMap,WarehousingNotificationConstant.getFormData(),"1760495861864787969",false); warehousingNotificationMap = generaterSwapUtil.swapDataDetail(warehousingNotificationMap,WarehousingNotificationConstant.getFormData(),"1760495861864787969",false);
} }
return ActionResult.success(warehousingNotificationMap); return ActionResult.success(warehousingNotificationMap);
} }
/** /**
@ -223,6 +466,8 @@ public class WarehousingNotificationController {
warehousingNotificationMap.put("id", warehousingNotificationMap.get("id")); warehousingNotificationMap.put("id", warehousingNotificationMap.get("id"));
//副表数据 //副表数据
//子表数据 //子表数据
List<WarehousingProductEntity> warehousingProductList = warehousingNotificationService.getWarehousingProductList(entity.getId());
warehousingNotificationMap.put("warehousingProductList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(warehousingProductList)));
warehousingNotificationMap = generaterSwapUtil.swapDataForm(warehousingNotificationMap,WarehousingNotificationConstant.getFormData(),WarehousingNotificationConstant.TABLEFIELDKEY,WarehousingNotificationConstant.TABLERENAMES); warehousingNotificationMap = generaterSwapUtil.swapDataForm(warehousingNotificationMap,WarehousingNotificationConstant.getFormData(),WarehousingNotificationConstant.TABLEFIELDKEY,WarehousingNotificationConstant.TABLERENAMES);
return ActionResult.success(warehousingNotificationMap); return ActionResult.success(warehousingNotificationMap);
} }

@ -119,6 +119,14 @@ public class BusinessOrderEntity {
@TableField("DEPARTMENT_ID") @TableField("DEPARTMENT_ID")
private String departmentId; private String departmentId;
@TableField(exist = false)
private String secondCustomName;
@TableField(exist = false)
private String businessLineName;
@TableField(exist = false)
private String secondSupplyName;
@TableField(exist = false)
private String thirdSupplyName;
@TableField(exist = false) @TableField(exist = false)
private List<SettlementInfoEntity> settlementInfoList; private List<SettlementInfoEntity> settlementInfoList;
@TableField(exist = false) @TableField(exist = false)

@ -13,7 +13,7 @@ import java.math.BigDecimal;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-02-22 * @ 2024-02-27
*/ */
@Data @Data
@TableName("jg_contract_commodity") @TableName("jg_contract_commodity")

@ -4,13 +4,15 @@ import com.baomidou.mybatisplus.annotation.*;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.List;
/** /**
* *
* *
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-02-22 * @ 2024-02-27
*/ */
@Data @Data
@TableName("jg_contract") @TableName("jg_contract")
@ -75,9 +77,9 @@ public class ContractLEntity {
private String modeTransport; private String modeTransport;
@TableField(value = "COST_BEARING_MIAN" , updateStrategy = FieldStrategy.IGNORED) @TableField(value = "COST_BEARING_MIAN" , updateStrategy = FieldStrategy.IGNORED)
private String costBearingMian; private String costBearingMian;
@TableField("TOTAL_AMOUNT") @TableField(value = "TOTAL_AMOUNT" , updateStrategy = FieldStrategy.IGNORED)
private BigDecimal totalAmount; private BigDecimal totalAmount;
@TableField("AMOUNT_CAPITALIZATION") @TableField(value = "AMOUNT_CAPITALIZATION" , updateStrategy = FieldStrategy.IGNORED)
private String amountCapitalization; private String amountCapitalization;
@TableField(value = "CONTRACT_REQUIREMENT" , updateStrategy = FieldStrategy.IGNORED) @TableField(value = "CONTRACT_REQUIREMENT" , updateStrategy = FieldStrategy.IGNORED)
private String contractRequirement; private String contractRequirement;
@ -121,4 +123,20 @@ public class ContractLEntity {
private String flowId; private String flowId;
@TableField("F_VERSION") @TableField("F_VERSION")
private Integer version; private Integer version;
@TableField(exist = false)
private String firstCustomName;
@TableField(exist = false)
private String enterpriseName;
@TableField(exist = false)
private String relatedContractName;
@TableField(exist = false)
private String secondCustomName;
@TableField(exist = false)
private String firstSupplyName;
@TableField(exist = false)
private String secondSupplyName;
@TableField(exist = false)
private String thirdSupplyName;
@TableField(exist = false)
private List<ContractLCommodityEntity> contractLCommodityEntityList;
} }

@ -10,7 +10,7 @@ import java.math.BigDecimal;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-02-22 * @ 2024-02-27
*/ */
@Data @Data
@TableName("jg_contract_fee_clause") @TableName("jg_contract_fee_clause")

@ -10,7 +10,7 @@ import java.math.BigDecimal;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-02-22 * @ 2024-02-27
*/ */
@Data @Data
@TableName("jg_contract_payment") @TableName("jg_contract_payment")

@ -27,7 +27,7 @@ import java.math.BigDecimal;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-02-22 * @ 2024-02-27
*/ */
@Data @Data
@TableName("jg_contract_price_formula") @TableName("jg_contract_price_formula")

@ -2,6 +2,8 @@ package jnpf.entity;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.*;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
/** /**
* *
@ -216,4 +218,18 @@ public class ProductWarehouseEntity {
private String flowId; private String flowId;
@TableField("F_VERSION") @TableField("F_VERSION")
private Integer version; private Integer version;
/**
*
*/
@TableField(exist = false)
private String unit;
@TableField(exist = false)
private BigDecimal grossWeight;
@TableField(exist = false)
private BigDecimal tareWeight;
@TableField(exist = false)
private BigDecimal buckleWeight;
@TableField(exist = false)
private BigDecimal netWeight;
} }

@ -88,5 +88,5 @@ public class ReturnCargoOrderEntity {
@TableField(exist = false) @TableField(exist = false)
private List<DeliveryVoucherRelationEntity> deliveryVoucherRelationEntityList; private List<DeliveryVoucherRelationEntity> deliveryVoucherRelationEntityList;
@TableField(exist = false) @TableField(exist = false)
private List<DeliveryProductRelationEntity> deliveryProductRelationEntityLisy; private List<DeliveryProductRelationEntity> deliveryProductRelationEntityList;
} }

@ -14,16 +14,16 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* V3.5 * V3.5
* : https://www.jnpfsoft.com * : https://www.jnpfsoft.com
* JNPF * JNPF
* 2024-02-22 * 2024-02-27
*/ */
@Data @Data
public class ContractLCommodityModel { public class ContractLCommodityModel {
/** 商品名称 **/
@JSONField(name = "commodityName")
private String commodityName;
/** 商品编码 **/ /** 商品编码 **/
@JSONField(name = "commodityCode") @JSONField(name = "commodityCode")
private String commodityCode; private String commodityCode;
/** 商品名称 **/
@JSONField(name = "commodityName")
private String commodityName;
/** 商品规格 **/ /** 商品规格 **/
@JSONField(name = "specifications") @JSONField(name = "specifications")
private String specifications; private String specifications;

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

@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-02-22 * @ 2024-02-27
*/ */
@Data @Data
public class ContractLForm { public class ContractLForm {
@ -95,6 +95,12 @@ public class ContractLForm {
/** 定价模式 **/ /** 定价模式 **/
@JsonProperty("pricingModel") @JsonProperty("pricingModel")
private Object pricingModel; private Object pricingModel;
/** 合计金额(人民币) **/
@JsonProperty("totalAmount")
private BigDecimal totalAmount;
/** 大写金额(人民币) **/
@JsonProperty("amountCapitalization")
private String amountCapitalization;
/** 合同要求 **/ /** 合同要求 **/
@JsonProperty("contractRequirement") @JsonProperty("contractRequirement")
private String contractRequirement; private String contractRequirement;

@ -11,7 +11,7 @@ import java.util.List;
* @ V3.5 * @ V3.5
* @ https://www.jnpfsoft.com * @ https://www.jnpfsoft.com
* @ JNPF * @ JNPF
* @ 2024-02-22 * @ 2024-02-27
*/ */
@Data @Data
public class ContractLPagination extends Pagination { public class ContractLPagination extends Pagination {
@ -36,6 +36,4 @@ public class ContractLPagination extends Pagination {
/** 合同名称 */ /** 合同名称 */
@JsonProperty("contractName") @JsonProperty("contractName")
private Object contractName; private Object contractName;
/** 查询id */
private String[] ids;
} }

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

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

@ -80,4 +80,8 @@ public class DeliveryProductRelationModel {
/** 备注 **/ /** 备注 **/
@JSONField(name = "remark") @JSONField(name = "remark")
private String remark; private String remark;
/** 业务类型 **/
@JSONField(name = "businessType")
private String businessType;
} }

@ -63,4 +63,8 @@ public class DeliveryVoucherRelationModel {
/** 备注 **/ /** 备注 **/
@JSONField(name = "remark") @JSONField(name = "remark")
private String remark; private String remark;
/** 业务类型 **/
@JSONField(name = "businessType")
private String businessType;
} }

@ -80,4 +80,8 @@ public class DeliveryProductRelationModel {
/** 备注 **/ /** 备注 **/
@JSONField(name = "remark") @JSONField(name = "remark")
private String remark; private String remark;
/** 业务类型 **/
@JSONField(name = "businessType")
private String businessType;
} }

@ -63,4 +63,8 @@ public class DeliveryVoucherRelationModel {
/** 备注 **/ /** 备注 **/
@JSONField(name = "remark") @JSONField(name = "remark")
private String remark; private String remark;
/** 业务类型 **/
@JSONField(name = "businessType")
private String businessType;
} }

@ -80,4 +80,8 @@ public class DeliveryProductRelationModel {
/** 备注 **/ /** 备注 **/
@JSONField(name = "remark") @JSONField(name = "remark")
private String remark; private String remark;
/** 业务类型 **/
@JSONField(name = "businessType")
private String businessType;
} }

@ -63,4 +63,8 @@ public class DeliveryVoucherRelationModel {
/** 备注 **/ /** 备注 **/
@JSONField(name = "remark") @JSONField(name = "remark")
private String remark; private String remark;
/** 业务类型 **/
@JSONField(name = "businessType")
private String businessType;
} }

@ -458,14 +458,12 @@ export default {
} }
}, },
getUserIds(val, val2) { getUserIds(val, val2) {
debugger
let data = { let data = {
businessLineId: '', businessLineId: '',
userIds: [] userIds: []
} }
data.businessLineId = this.treeActiveId data.businessLineId = this.treeActiveId
data.userIds = val data.userIds = val
debugger
request({ request({
url: `/api/scm/BusinessUserRelational/create`, url: `/api/scm/BusinessUserRelational/create`,
method: 'post', method: 'post',

@ -462,7 +462,6 @@ export default {
changeDataList(model, row) { changeDataList(model, row) {
this.dataForm.mobilePhone = row.mobilePhone this.dataForm.mobilePhone = row.mobilePhone
this.dataForm.organize = row.organize this.dataForm.organize = row.organize
debugger
}, },
changeData(model, index) { changeData(model, index) {

@ -165,6 +165,14 @@
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</template> </template>
<!-- <jnpf-form-tip-item label="乙方主体" v-if="judgeShow('subject')" prop="subject">
<JnpfPopupSelect v-model="dataForm.subject" @change="changeData('subject', -1)" :rowIndex="null"
:formData="dataForm" :templateJson="interfaceRes.subject" placeholder="请选择"
:disabled="judgeWrite('subject')" propsValue="id" popupWidth="800px" popupTitle="选择数据"
popupType="dialog" relationField='name' field='subject' interfaceId="523869248829799685"
:pageSize="20" :columnOptions="subjectcolumnOptions" clearable :style='{ "width": "100%" }'>
</JnpfPopupSelect>
</jnpf-form-tip-item> -->
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
@ -249,6 +257,12 @@
</template> </template>
<template v-else> <template v-else>
</template> </template>
<!-- <jnpf-form-tip-item label="采购模式" v-if="judgeShow('procurementModel')" prop="procurementModel">
<JnpfSelect v-model="dataForm.procurementModel" @change="changeData('procurementModel', -1)"
placeholder="请选择" :disabled="judgeWrite('procurementModel')" clearable
:style='{ "width": "100%" }' :options="procurementModelOptions" :props="procurementModelProps">
</JnpfSelect>
</jnpf-form-tip-item> -->
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('relatedContractId')"> <el-col :span="8" v-if="judgeShow('relatedContractId')">
<template v-if="dataForm.procurementModel == 1"> <template v-if="dataForm.procurementModel == 1">
@ -264,6 +278,16 @@
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</template> </template>
<!-- <jnpf-form-tip-item label="关联销售合同" v-if="judgeShow('relatedContractId')" prop="relatedContractId">
<JnpfPopupSelect v-model="dataForm.relatedContractId"
@change="changeData('relatedContractId', -1)" :rowIndex="null" :formData="dataForm"
:templateJson="interfaceRes.relatedContractId" placeholder="请选择"
:disabled="judgeWrite('relatedContractId')" propsValue="id" popupWidth="800px"
popupTitle="选择数据" popupType="dialog" relationField='contract_name' field='relatedContractId'
interfaceId="529270998021701701" :pageSize="20"
:columnOptions="relatedContractIdcolumnOptions" clearable :style='{ "width": "100%" }'>
</JnpfPopupSelect>
</jnpf-form-tip-item> -->
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('subject2')"> <el-col :span="8" v-if="judgeShow('subject2')">
<template v-if="dataForm.contractType == 1"> <template v-if="dataForm.contractType == 1">
@ -290,6 +314,15 @@
</template> </template>
<template v-else> <template v-else>
</template> </template>
<!-- <jnpf-form-tip-item label="乙方主体二级" v-if="judgeShow('subject2')" prop="subject2">
<JnpfPopupSelect v-model="dataForm.subject2" @change="changeData('subject2', -1)"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.subject2"
placeholder="请选择" :disabled="judgeWrite('subject2')" propsValue="id" popupWidth="800px"
popupTitle="选择数据" popupType="dialog" relationField='name' field='subject2'
interfaceId="523869248829799685" :pageSize="20" :columnOptions="subject2columnOptions"
clearable :style='{ "width": "100%" }'>
</JnpfPopupSelect>
</jnpf-form-tip-item> -->
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('subject3')"> <el-col :span="8" v-if="judgeShow('subject3')">
<template v-if="dataForm.contractType == 1"> <template v-if="dataForm.contractType == 1">
@ -307,6 +340,15 @@
</template> </template>
<template v-else> <template v-else>
</template> </template>
<!-- <jnpf-form-tip-item label="乙方主体三级" v-if="judgeShow('subject3')" prop="subject3">
<JnpfPopupSelect v-model="dataForm.subject3" @change="changeData('subject3', -1)"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.subject3"
placeholder="请选择" :disabled="judgeWrite('subject3')" propsValue="id" popupWidth="800px"
popupTitle="选择数据" popupType="dialog" relationField='name' field='subject3'
interfaceId="523869248829799685" :pageSize="20" :columnOptions="subject3columnOptions"
clearable :style='{ "width": "100%" }'>
</JnpfPopupSelect>
</jnpf-form-tip-item> -->
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
@ -700,37 +742,37 @@
<jnpf-form-tip-item label-width="0"> <jnpf-form-tip-item label-width="0">
<el-table :data="dataForm.contractLCommodityList" size='mini'> <el-table :data="dataForm.contractLCommodityList" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" /> <el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="商品名称" v-if="judgeShow('contractlcommodity-commodityName')" <el-table-column label="商品编码" v-if="judgeShow('contractlcommodity-commodityCode')"
prop="commodityName"> prop="commodityCode">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('contractlcommodityList-commodityName')">*</span>商品名称 v-if="judgeRequired('contractlcommodityList-commodityCode')">*</span>商品编码
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.commodityName" <JnpfPopupSelect v-model="scope.row.commodityCode"
@change="changeData('contractlcommodity-commodityName', scope.$index)" @change="changeData('contractlcommodity-commodityCode', scope.$index)"
:rowIndex="scope.$index" :formData="dataForm" :rowIndex="scope.$index" :formData="dataForm"
:templateJson="interfaceRes.contractlcommoditycommodityName" placeholder="请选择" :templateJson="interfaceRes.contractlcommoditycommodityCode" placeholder="请选择"
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-commodityName')" :disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-commodityCode')"
propsValue="name" popupWidth="800px" popupTitle="选择数据" popupType="dialog" propsValue="code" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='name' :field="'commodityName' + scope.$index" relationField='code' :field="'commodityCode' + scope.$index"
interfaceId="530288111456878597" :pageSize="20" interfaceId="530288111456878597" :pageSize="20"
:columnOptions="contractlcommoditycommodityNamecolumnOptions" clearable :columnOptions="contractlcommoditycommodityCodecolumnOptions" clearable
:style='{ "width": "100%" }'> :style='{ "width": "100%" }'>
</JnpfPopupSelect> </JnpfPopupSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="商品编码" v-if="judgeShow('contractlcommodity-commodityCode')" <el-table-column label="商品名称" v-if="judgeShow('contractlcommodity-commodityName')"
prop="commodityCode"> prop="commodityName">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('contractlcommodityList-commodityCode')">*</span>商品编码 v-if="judgeRequired('contractlcommodityList-commodityName')">*</span>商品名称
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.commodityCode" <JnpfInput v-model="scope.row.commodityName"
@change="changeData('contractlcommodity-commodityCode', scope.$index)" @change="changeData('contractlcommodity-commodityName', scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-commodityCode')" :disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-commodityName')"
clearable :style='{ "width": "100%" }'> clearable :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput>
</template> </template>
@ -757,12 +799,20 @@
v-if="judgeRequired('contractlcommodityList-inventoryUnit')">*</span>库存单位 v-if="judgeRequired('contractlcommodityList-inventoryUnit')">*</span>库存单位
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.inventoryUnit" <!-- <JnpfInput v-model="scope.row.inventoryUnit"
@change="changeData('contractlcommodity-inventoryUnit', scope.$index)" @change="changeData('contractlcommodity-inventoryUnit', scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-inventoryUnit')" :disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-inventoryUnit')"
clearable :style='{ "width": "100%" }'> clearable :style='{ "width": "100%" }'>
</JnpfInput> </JnpfInput> -->
<JnpfSelect v-model="scope.row.inventoryUnit"
@change="changeData('contractlcommodity-inventoryUnit', scope.$index)"
placeholder="请选择"
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-inventoryUnit')"
clearable :style='{ "width": "100%" }'
:options="contractlcommodityinventoryUnitOptions"
:props="contractlcommodityinventoryUnitProps">
</JnpfSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="采购单位" v-if="judgeShow('contractlcommodity-procureUnit')" <el-table-column label="采购单位" v-if="judgeShow('contractlcommodity-procureUnit')"
@ -776,7 +826,7 @@
@change="changeData('contractlcommodity-procureUnit', scope.$index)" @change="changeData('contractlcommodity-procureUnit', scope.$index)"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-procureUnit')" :disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-procureUnit')"
clearable :style='{ "width": "100%" }' :style='{ "width": "100%" }'
:options="contractlcommodityprocureUnitOptions" :options="contractlcommodityprocureUnitOptions"
:props="contractlcommodityprocureUnitProps"> :props="contractlcommodityprocureUnitProps">
</JnpfSelect> </JnpfSelect>
@ -891,7 +941,7 @@
@change="changeData('contractlfeeclause-price', scope.$index)" @change="changeData('contractlfeeclause-price', scope.$index)"
placeholder="数字文本" placeholder="数字文本"
:disabled="judgeWrite('contractlfeeclauseList') || judgeWrite('contractlfeeclauseList-price')" :disabled="judgeWrite('contractlfeeclauseList') || judgeWrite('contractlfeeclauseList-price')"
:precision="1" addonAfter="元" :step="1"> :precision="2" addonAfter="元" :step="1">
</JnpfInputNumber> </JnpfInputNumber>
</template> </template>
</el-table-column> </el-table-column>
@ -992,7 +1042,7 @@
<JnpfInputNumber v-model="scope.row.price" <JnpfInputNumber v-model="scope.row.price"
@change="changeData('contractlpayment-price', scope.$index)" placeholder="请输入" @change="changeData('contractlpayment-price', scope.$index)" placeholder="请输入"
:disabled="judgeWrite('contractlpaymentList') || judgeWrite('contractlpaymentList-price')" :disabled="judgeWrite('contractlpaymentList') || judgeWrite('contractlpaymentList-price')"
:precision="1" addonAfter="元" :step="1"> :precision="2" addonAfter="元" :step="1">
</JnpfInputNumber> </JnpfInputNumber>
</template> </template>
</el-table-column> </el-table-column>
@ -1022,6 +1072,23 @@
</div> </div>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="12" v-if="judgeShow('totalAmount')">
<jnpf-form-tip-item label="合计金额(人民币)" v-if="judgeShow('totalAmount')" prop="totalAmount">
<JnpfInputNumber v-model="dataForm.totalAmount" @change="changeData('totalAmount', -1)"
placeholder="数字文本" :disabled="judgeWrite('totalAmount')" :precision="2" addonAfter="元"
:step="1">
</JnpfInputNumber>
</jnpf-form-tip-item>
</el-col>
<el-col :span="12" v-if="judgeShow('amountCapitalization')">
<jnpf-form-tip-item label="大写金额(人民币)" v-if="judgeShow('amountCapitalization')"
prop="amountCapitalization">
<JnpfInput v-model="dataForm.amountCapitalization"
@change="changeData('amountCapitalization', -1)" placeholder="请输入"
:disabled="judgeWrite('amountCapitalization')" clearable :style='{ "width": "100%" }'>
</JnpfInput>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfText <JnpfText
@ -1208,10 +1275,10 @@ export default {
enabledmark: undefined enabledmark: undefined
}, },
contractLCommodityList: { contractLCommodityList: {
commodityName: '',
commodityNameOptions: [],
commodityCode: '', commodityCode: '',
commodityCodeOptions: [], commodityCodeOptions: [],
commodityName: '',
commodityNameOptions: [],
specifications: '', specifications: '',
specificationsOptions: [], specificationsOptions: [],
inventoryUnit: '', inventoryUnit: '',
@ -1270,6 +1337,8 @@ export default {
modeTransport: undefined, modeTransport: undefined,
costBearingMian: undefined, costBearingMian: undefined,
pricingModel: undefined, pricingModel: undefined,
totalAmount: undefined,
amountCapitalization: undefined,
contractRequirement: undefined, contractRequirement: undefined,
remark: undefined, remark: undefined,
contractAppendices: [], contractAppendices: [],
@ -1356,6 +1425,20 @@ export default {
trigger: 'change' trigger: 'change'
}, },
], ],
totalAmount: [
{
required: true,
message: '请至少选择一个',
trigger: ["blur", "change"]
},
],
amountCapitalization: [
{
required: true,
message: '请输入',
trigger: 'blur'
},
],
}, },
contractTypeOptions: [], contractTypeOptions: [],
contractTypeProps: { "label": "fullName", "value": "enCode" }, contractTypeProps: { "label": "fullName", "value": "enCode" },
@ -1379,9 +1462,11 @@ export default {
contractLabelProps: { "label": "fullName", "value": "enCode" }, contractLabelProps: { "label": "fullName", "value": "enCode" },
contractlpriceformulapriceFormulaTypeOptions: [], contractlpriceformulapriceFormulaTypeOptions: [],
contractlpriceformulapriceFormulaTypeProps: { "label": "fullName", "value": "enCode" }, contractlpriceformulapriceFormulaTypeProps: { "label": "fullName", "value": "enCode" },
contractlcommoditycommodityNamecolumnOptions: [{ "label": "商品名称", "value": "name" }, { "label": "商品编码", "value": "code" }, { "label": "商品图片", "value": "photo" }, { "label": "商品规格", "value": "spec" }, { "label": "库存单位", "value": "inventory_unit_id" }, { "label": "采购单位", "value": "order_main_unit_id" }, { "label": "销售单位", "value": "sales_main_unit_id" },], contractlcommoditycommodityCodecolumnOptions: [{ "label": "商品编码", "value": "code" }, { "label": "商品名称", "value": "name" }, { "label": "商品规格", "value": "spec" }, { "label": "库存单位", "value": "inventory_unit_name" }, { "label": "采购单位", "value": "order_main_unit_name" }, { "label": "销售单位", "value": "sales_main_unit_name" },],
contractlcommodityprocureUnitOptions: [{ "fullName": "选项一", "id": "1" }, { "fullName": "选项二", "id": "2" }], contractlcommodityprocureUnitOptions: [],
contractlcommodityprocureUnitProps: { "label": "fullName", "value": "id" }, contractlcommodityprocureUnitProps: { "label": "fullName", "value": "id" },
contractlcommodityinventoryUnitOptions: [],
contractlcommodityinventoryUnitProps: { "label": "fullName", "value": "id" },
contractlfeeclausefeeTypeOptions: [], contractlfeeclausefeeTypeOptions: [],
contractlfeeclausefeeTypeProps: { "label": "fullName", "value": "enCode" }, contractlfeeclausefeeTypeProps: { "label": "fullName", "value": "enCode" },
contractlpaymentpaymentNodeOptions: [], contractlpaymentpaymentNodeOptions: [],
@ -1411,6 +1496,8 @@ export default {
modeTransport: [], modeTransport: [],
costBearingMian: [], costBearingMian: [],
pricingModel: [], pricingModel: [],
totalAmount: [],
amountCapitalization: [],
contractRequirement: [], contractRequirement: [],
remark: [], remark: [],
contractAppendices: [], contractAppendices: [],
@ -1438,8 +1525,8 @@ export default {
contractlpriceformulataxRateYellowBull: [], contractlpriceformulataxRateYellowBull: [],
contractlpriceformulataxRateInvoicingCompany: [], contractlpriceformulataxRateInvoicingCompany: [],
contractlpriceformulafundRate: [], contractlpriceformulafundRate: [],
contractlcommoditycommodityName: [],
contractlcommoditycommodityCode: [], contractlcommoditycommodityCode: [],
contractlcommoditycommodityName: [],
contractlcommodityspecifications: [], contractlcommodityspecifications: [],
contractlcommodityinventoryUnit: [], contractlcommodityinventoryUnit: [],
contractlcommodityprocureUnit: [], contractlcommodityprocureUnit: [],
@ -1481,6 +1568,10 @@ export default {
}, },
'dataForm.subject': function (val, oldVal) { 'dataForm.subject': function (val, oldVal) {
this.getSubjectInfo() this.getSubjectInfo()
},
'dataForm.commodityCode': function (val, oldVal) {
console.log(val)
console.log(oldVal)
} }
}, },
created() { created() {
@ -1516,7 +1607,34 @@ export default {
}) })
}).catch(() => { }) }).catch(() => { })
}, },
getProductInfoChg(index) {
let interfaceId = "530288111456878597"
let query = {
...this.listQuery
}
if (this.dataForm.contractLCommodityList[index]) {
getDataInterfaceDataSelect(interfaceId, query).then(res => {
if (res.code == 200) {
let productInfo = res.data.list.filter(o1 => {
return o1.code == this.dataForm.contractLCommodityList[index]['commodityCode']
})[0]
this.dataForm.contractLCommodityList[index]['commodityName'] = productInfo.name
this.dataForm.contractLCommodityList[index]['specifications'] = productInfo.spec
this.dataForm.contractLCommodityList[index]['inventoryUnit'] = productInfo.inventory_unit_id
this.contractlcommodityinventoryUnitOptions = [{ "fullName": productInfo.inventory_unit_name, "id": productInfo.inventory_unit_id }]
let procureUnitOptionsArr = []
for (let i = 0; i < JSON.parse(productInfo.order_main_unit_id).length; i++) {
procureUnitOptionsArr.push({ "fullName": JSON.parse(productInfo.order_main_unit_name)[i], "id": JSON.parse(productInfo.order_main_unit_id)[i] })
}
this.contractlcommodityprocureUnitOptions = procureUnitOptionsArr
}
}).catch(() => { })
}
},
changeData(model, index) { changeData(model, index) {
if (model == 'contractlcommodity-commodityCode') {
this.getProductInfoChg(index)
}
this.isEdit = false this.isEdit = false
this.childIndex = index this.childIndex = index
let modelAll = model.split("-"); let modelAll = model.split("-");
@ -1778,8 +1896,8 @@ export default {
}, },
addcontractLCommodityList() { addcontractLCommodityList() {
let item = { let item = {
commodityName: '', commodityCode: '',
commodityCode: undefined, commodityName: undefined,
specifications: undefined, specifications: undefined,
inventoryUnit: undefined, inventoryUnit: undefined,
procureUnit: '', procureUnit: '',

File diff suppressed because it is too large Load Diff

@ -55,12 +55,13 @@
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('businessId')"> <el-col :span="8" v-if="judgeShow('businessId')">
<jnpf-form-tip-item label="退货单" v-if="judgeShow('businessId')" prop="businessId"> <jnpf-form-tip-item label="退货单" v-if="judgeShow('businessId')" prop="businessId">
<JnpfPopupSelect v-model="dataForm.businessId" @change="changeData('businessId',-1)" <JnpfPopupSelect v-model="dataForm.businessId" @change="getPurchaseReturnCargoOrder"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId"
placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id" placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id"
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code' popupWidth="800px" popupTitle="选择数据" popupType="dialog"
field='businessId' interfaceId="531493393713334021" :pageSize="20" relationField='returnCargoCode' field='businessId' interfaceId="531493393713334021"
:columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'> :pageSize="20" :columnOptions="businessIdcolumnOptions" clearable
:style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -77,6 +78,213 @@
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
<jnpf-form-tip-item label-width="0">
<div class="JNPF-common-title">
<h2></h2>
</div>
<el-table :data="dataForm.purchaseReturnCargoOrderInfo" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="采购退货订单" v-if="judgeShow('warehousingproduct-productName')"
prop="code">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-productName')">*</span>采购退货订单
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.returnCargoCode"
@change="changeData('warehousingproduct-productName',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-productName')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<!-- <el-table-column label="订单类型" v-if="judgeShow('warehousingproduct-spec')"
prop="spec">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-spec')">*</span>订单类型
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.spec"
@change="changeData('warehousingproduct-spec',scope.$index)" placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-spec')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>期望送达时间
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.inventoryUnitId"
@change="changeData('warehousingproduct-inventoryUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-inventoryUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联客户(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseUnitId"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联业务线" v-if="judgeShow('warehousingproduct-purchaseNum')"
prop="purchaseNum">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseNum"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="业务类型" v-if="judgeShow('warehousingproduct-storageAreaId')"
prop="storageAreaId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-storageAreaId')">*</span>业务类型
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.storageAreaId"
@change="changeData('warehousingproduct-storageAreaId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-storageAreaId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="币种" v-if="judgeShow('warehousingproduct-warehousingUnitId')"
prop="warehousingUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-warehousingUnitId')">*</span>币种
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.warehousingUnitId"
@change="changeData('warehousingproduct-warehousingUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-warehousingUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="销售模式" v-if="judgeShow('warehousingproduct-barCode')"
prop="barCode">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-barCode')">*</span>销售模式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.barCode"
@change="changeData('warehousingproduct-barCode',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-barCode')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="交货方式"
v-if="judgeShow('warehousingproduct-notificationStorageNumber')"
prop="notificationStorageNumber">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-notificationStorageNumber')">*</span>交货方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.notificationStorageNumber"
@change="changeData('warehousingproduct-notificationStorageNumber',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-notificationStorageNumber')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="配送方式" v-if="judgeShow('warehousingproduct-volume')"
prop="volume">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-volume')">*</span>配送方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.volume"
@change="changeData('warehousingproduct-volume',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-volume')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="运输方式" v-if="judgeShow('warehousingproduct-batchNo')"
prop="batchNo">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-batchNo')">*</span>运输方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.batchNo"
@change="changeData('warehousingproduct-batchNo',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-batchNo')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="生产日期" v-if="judgeShow('warehousingproduct-produceDate')"
prop="produceDate">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-produceDate')">*</span>生产日期
</template>
<template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.produceDate"
@change="changeData('warehousingproduct-produceDate',scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')"
placeholder="请选择"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-produceDate')"
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</template>
</el-table-column>
<el-table-column label="备注" v-if="judgeShow('warehousingproduct-remark')"
prop="remark">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-remark')">*</span>备注
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.remark"
@change="changeData('warehousingproduct-remark',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-remark')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column> -->
</el-table>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfGroupTitle content="收货信息" contentPosition="left"> <JnpfGroupTitle content="收货信息" contentPosition="left">
@ -84,12 +292,12 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('subjectId')"> <el-col :span="8" v-if="judgeShow('subjectId')">
<jnpf-form-tip-item label="客户名称" v-if="judgeShow('subjectId')" prop="subjectId"> <jnpf-form-tip-item label="供应商名称" v-if="judgeShow('subjectId')" prop="subjectId">
<JnpfPopupSelect v-model="dataForm.subjectId" @change="changeData('subjectId',-1)" <JnpfPopupSelect v-model="dataForm.subjectId" @change="changeData('subjectId',-1)"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.subjectId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.subjectId"
placeholder="请选择" :disabled="judgeWrite('subjectId')" propsValue="id" placeholder="请选择" :disabled="judgeWrite('subjectId')" propsValue="id"
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name' popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name'
field='subjectId' interfaceId="522693551289534725" :pageSize="20" field='subjectId' interfaceId="530001731111617029" :pageSize="20"
:columnOptions="subjectIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="subjectIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -180,14 +388,14 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.voucherId" <JnpfPopupSelect v-model="scope.row.voucherId"
@change="changeData('deliveryvoucherrelation-voucherId',scope.$index)" @change="getPurchaseDeliveryVoucher" :rowIndex="scope.$index"
:rowIndex="scope.$index" :formData="dataForm" :formData="dataForm"
:templateJson="interfaceRes.deliveryvoucherrelationvoucherId" :templateJson="interfaceRes.deliveryvoucherrelationvoucherId"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')" :disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')"
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='voucher_code' :field="'voucherId'+scope.$index" relationField='voucherCode' :field="'voucherId'+scope.$index"
interfaceId="530666910480598149" :pageSize="20" interfaceId="531823039369709893" :pageSize="20"
:columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable :columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable
:style='{"width":"100%"}'> :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
@ -892,6 +1100,7 @@ export default {
deliveryVoucherRelationList: [], deliveryVoucherRelationList: [],
deliveryProductRelationList: [], deliveryProductRelationList: [],
version: 0, version: 0,
purchaseReturnCargoOrderInfo: [],
}, },
tableRequiredData: {}, tableRequiredData: {},
dataRule: dataRule:
@ -941,13 +1150,13 @@ export default {
}, },
deliveryTypeOptions: [{ "fullName": "退供发货", "id": "1" }], deliveryTypeOptions: [{ "fullName": "退供发货", "id": "1" }],
deliveryTypeProps: { "label": "fullName", "value": "id" }, deliveryTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "returnCargoCode" },],
reservedFields1columnOptions: [{ "label": "业务线编码", "value": "code" }, { "label": "业务线名称", "value": "name" },], reservedFields1columnOptions: [{ "label": "业务线编码", "value": "code" }, { "label": "业务线名称", "value": "name" },],
subjectIdcolumnOptions: [{ "label": "客户编码", "value": "code" }, { "label": "客户名称", "value": "name" },], subjectIdcolumnOptions: [{ "label": "客户编码", "value": "code" }, { "label": "客户名称", "value": "name" },],
enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },], enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },],
warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },], warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },],
shippingAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },], shippingAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },],
deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucher_code" }, { "label": "单据类型", "value": "document_type" }, { "label": "磅单编号", "value": "pound_code" },], deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucherCode" }, { "label": "单据类型", "value": "documentType" }, { "label": "磅单编号", "value": "poundCode" },],
deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }], deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }],
deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" }, deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" },
deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }], deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }],
@ -1023,6 +1232,31 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
getPurchaseDeliveryVoucher(val, val2) {
debugger
val2.voucherId = val2.id
val2.businessType = "3"
this.dataForm.deliveryVoucherRelationList.push(val2)
this.dataForm.deliveryVoucherRelationList.splice(0, 1)
val2.productWarehouseEntityList.forEach((item, index) => {
item.productId = item.id
item.businessType = "3"
})
this.dataForm.deliveryProductRelationList.push(val2.productWarehouseEntityList[0])
},
getPurchaseReturnCargoOrder(val, val2) {
this.dataForm.purchaseReturnCargoOrderInfo = []
this.dataForm.purchaseReturnCargoOrderInfo[0] = val2
this.dataForm.subjectId = val2.subjectId
this.dataForm.shippingAddress = val2.deliveryAddress
this.dataForm.enterpriseId = val2.enterpriseId
this.dataForm.warehouseId = val2.warehouseId
this.dataForm.deliveryAddress = val2.shippingAddress
val2.deliveryProductRelationEntityList.forEach((item, index) => {
item.businessType = "3"
})
this.dataForm.deliveryProductRelationList = val2.deliveryProductRelationEntityList
},
changeData(model, index) { changeData(model, index) {
this.isEdit = false this.isEdit = false
this.childIndex = index this.childIndex = index

@ -53,11 +53,11 @@
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('businessId')"> <el-col :span="8" v-if="judgeShow('businessId')">
<jnpf-form-tip-item label="采购订单" v-if="judgeShow('businessId')" prop="businessId"> <jnpf-form-tip-item label="采购订单" v-if="judgeShow('businessId')" prop="businessId">
<JnpfPopupSelect v-model="dataForm.businessId" @change="getSaleOrder" :rowIndex="null" <JnpfPopupSelect v-model="dataForm.businessId" @change="getPurchaseOrder"
:formData="dataForm" :templateJson="interfaceRes.businessId" placeholder="请选择" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId"
:disabled="judgeWrite('businessId')" propsValue="id" popupWidth="800px" placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id"
popupTitle="选择数据" popupType="dialog" relationField='code' field='businessId' popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code'
interfaceId="530042614796255877" :pageSize="20" field='businessId' interfaceId="530042614796255877" :pageSize="20"
:columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -67,38 +67,36 @@
<div class="JNPF-common-title"> <div class="JNPF-common-title">
<h2></h2> <h2></h2>
</div> </div>
<el-table :data="dataForm.saleOrderInfo" size='mini'> <el-table :data="dataForm.purchaseOrderInfo" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" /> <el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="销售订单" v-if="judgeShow('warehousingproduct-productName')" <el-table-column label="采购订单" v-if="judgeShow('warehousingproduct-productName')"
prop="code"> prop="code">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-productName')">*</span>销售订单 v-if="judgeRequired('warehousingproductList-productName')">*</span>采购订单
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.code" <JnpfInput v-model="scope.row.code"
@change="changeData('warehousingproduct-productName',scope.$index)" @change="changeData('warehousingproduct-productName',scope.$index)"
placeholder="请输入" placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-productName')"
clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="订单类型" v-if="judgeShow('warehousingproduct-spec')" <el-table-column label="订单类型"
prop="spec"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-spec')">*</span>订单类型 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>订单类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.spec" <JnpfSelect v-model="scope.row.orderType"
@change="changeData('warehousingproduct-spec',scope.$index)" placeholder="请输入" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-spec')" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
clearable :style='{"width":"100%"}'> :options="orderTypeOptions" :props="orderTypeProps">
</JnpfInput> </JnpfSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="期望送达时间" <!-- <el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId"> v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
@ -112,160 +110,116 @@
clearable :style='{"width":"100%"}'> clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="关联客户(二级)" <el-table-column label="关联供应商(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId"> v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级) v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联供应商(二级)
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseUnitId" <JnpfInput v-model="scope.row.secondSupplyName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)" @change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="关联业务线" v-if="judgeShow('warehousingproduct-purchaseNum')" <el-table-column label="关联供应商(三级)"
prop="purchaseNum"> v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线 v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联供应商(三级)
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseNum" <JnpfInput v-model="scope.row.thirdSupplyName"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)" @change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')"
clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="业务类型" v-if="judgeShow('warehousingproduct-storageAreaId')" <el-table-column label="关联业务线" v-if="judgeShow('warehousingproduct-purchaseNum')"
prop="storageAreaId"> prop="purchaseNum">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-storageAreaId')">*</span>业务类型 v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.storageAreaId" <JnpfInput v-model="scope.row.businessLineName"
@change="changeData('warehousingproduct-storageAreaId',scope.$index)" @change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入" placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-storageAreaId')"
clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="币种" v-if="judgeShow('warehousingproduct-warehousingUnitId')" <el-table-column label="业务类型"
prop="warehousingUnitId"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-warehousingUnitId')">*</span>币种 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>业务类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.warehousingUnitId" <JnpfSelect v-model="scope.row.businessOrderType"
@change="changeData('warehousingproduct-warehousingUnitId',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-warehousingUnitId')" :options="businessOrderTypeOptions" :props="businessOrderTypeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="销售模式" v-if="judgeShow('warehousingproduct-barCode')" <el-table-column label="币种"
prop="barCode"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-barCode')">*</span>销售模式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>币种
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.barCode" <JnpfSelect v-model="scope.row.currency"
@change="changeData('warehousingproduct-barCode',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-barCode')" :options="currencyOptions" :props="currencyProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交货方式" <el-table-column label="采购模式"
v-if="judgeShow('warehousingproduct-notificationStorageNumber')" v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
prop="notificationStorageNumber">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-notificationStorageNumber')">*</span>交货方 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>采购模
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.notificationStorageNumber" <JnpfSelect v-model="scope.row.saleMode"
@change="changeData('warehousingproduct-notificationStorageNumber',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-notificationStorageNumber')" :options="saleModeOptions" :props="saleModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="配送方式" v-if="judgeShow('warehousingproduct-volume')" <el-table-column label="交货方式"
prop="volume"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-volume')">*</span>配送方式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>交货方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.volume" <JnpfSelect v-model="scope.row.transactionMode"
@change="changeData('warehousingproduct-volume',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-volume')" :options="transactionModeOptions" :props="transactionModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="运输方式" v-if="judgeShow('warehousingproduct-batchNo')" <el-table-column label="运输方式"
prop="batchNo"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-batchNo')">*</span>运输方式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>运输方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.batchNo" <JnpfSelect v-model="scope.row.transportMode"
@change="changeData('warehousingproduct-batchNo',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-batchNo')" :options="transportModeOptions" :props="transportModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="生产日期" v-if="judgeShow('warehousingproduct-produceDate')"
prop="produceDate">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-produceDate')">*</span>生产日期
</template>
<template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.produceDate"
@change="changeData('warehousingproduct-produceDate',scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')"
placeholder="请选择"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-produceDate')"
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</template>
</el-table-column>
<el-table-column label="备注" v-if="judgeShow('warehousingproduct-remark')"
prop="remark">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-remark')">*</span>备注
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.remark"
@change="changeData('warehousingproduct-remark',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-remark')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column> -->
</el-table> </el-table>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -289,7 +243,7 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('shippingAddress')"> <el-col :span="8" v-if="judgeShow('shippingAddress')">
<jnpf-form-tip-item label="货地址" v-if="judgeShow('shippingAddress')" <jnpf-form-tip-item label="货地址" v-if="judgeShow('shippingAddress')"
prop="shippingAddress"> prop="shippingAddress">
<JnpfInput v-model="dataForm.shippingAddress" <JnpfInput v-model="dataForm.shippingAddress"
@change="changeData('shippingAddress',-1)" placeholder="请输入" @change="changeData('shippingAddress',-1)" placeholder="请输入"
@ -316,7 +270,7 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('warehouseId')"> <el-col :span="8" v-if="judgeShow('warehouseId')">
<jnpf-form-tip-item label="货仓库" v-if="judgeShow('warehouseId')" prop="warehouseId"> <jnpf-form-tip-item label="货仓库" v-if="judgeShow('warehouseId')" prop="warehouseId">
<JnpfPopupSelect v-model="dataForm.warehouseId" @change="changeData('warehouseId',-1)" <JnpfPopupSelect v-model="dataForm.warehouseId" @change="changeData('warehouseId',-1)"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.warehouseId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.warehouseId"
placeholder="请选择" :disabled="judgeWrite('warehouseId')" propsValue="id" placeholder="请选择" :disabled="judgeWrite('warehouseId')" propsValue="id"
@ -327,7 +281,7 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('deliveryAddress')"> <el-col :span="8" v-if="judgeShow('deliveryAddress')">
<jnpf-form-tip-item label="货地址" v-if="judgeShow('deliveryAddress')" <jnpf-form-tip-item label="货地址" v-if="judgeShow('deliveryAddress')"
prop="deliveryAddress"> prop="deliveryAddress">
<JnpfPopupSelect v-model="dataForm.deliveryAddress" <JnpfPopupSelect v-model="dataForm.deliveryAddress"
@change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm" @change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm"
@ -669,13 +623,25 @@ export default {
deliveryAddress: undefined, deliveryAddress: undefined,
remark: undefined, remark: undefined,
warehousingProductList: [], warehousingProductList: [],
saleOrderInfo: [], purchaseOrderInfo: [],
version: 0, version: 0,
}, },
tableRequiredData: {}, tableRequiredData: {},
dataRule: dataRule:
{ {
}, },
orderTypeOptions: [{ "fullName": "标准采购", "id": "1" }, { "fullName": "计划采购", "id": "2" }, { "fullName": "合同采购", "id": "3" }, { "fullName": "其他采购", "id": "4" }],
orderTypeProps: { "label": "fullName", "value": "id" },
businessOrderTypeOptions: [{ "fullName": "钢材类", "id": "1" }, { "fullName": "设备类", "id": "2" }, { "fullName": "废钢类", "id": "3" }, { "fullName": "低值易耗品", "id": "4" }, { "fullName": "合金类", "id": "5" }, { "fullName": "矿产类", "id": "6" }],
businessOrderTypeProps: { "label": "fullName", "value": "id" },
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
saleModeProps: { "label": "fullName", "value": "id" },
transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }],
transactionModeProps: { "label": "fullName", "value": "id" },
transportModeOptions: [{ "fullName": "公路", "id": "1" }, { "fullName": "铁路", "id": "2" }, { "fullName": "轮船", "id": "3" }, { "fullName": "空运", "id": "4" }, { "fullName": "无", "id": "5" }],
transportModeProps: { "label": "fullName", "value": "id" },
warehousingTypeOptions: [{ "fullName": "采购入库", "id": "1" }], warehousingTypeOptions: [{ "fullName": "采购入库", "id": "1" }],
warehousingTypeProps: { "label": "fullName", "value": "id" }, warehousingTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },],
@ -727,14 +693,14 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
getSaleOrder(val, val2) { getPurchaseOrder(val, val2) {
debugger this.dataForm.purchaseOrderInfo = []
this.dataForm.saleOrderInfo[0] = val2 this.dataForm.purchaseOrderInfo[0] = val2
this.dataForm.subjectBasicId = val2.firstSubjectBasicId this.dataForm.subjectBasicId = val2.firstSubjectBasicId
this.dataForm.shippingAddress = val2.receiveAddress this.dataForm.deliveryAddress = val2.receiveAddress
this.dataForm.enterpriseId = val2.enterpriseId this.dataForm.enterpriseId = val2.enterpriseId
this.dataForm.warehouseId = val2.deliveryWarehouse this.dataForm.warehouseId = val2.deliveryWarehouse
this.dataForm.deliveryAddress = val2.deliveryAddress this.dataForm.shippingAddress = val2.deliveryAddress
val2.businessOrderProductRelationalList.forEach((item, index) => { val2.businessOrderProductRelationalList.forEach((item, index) => {
item.productName = item.name item.productName = item.name
item.purchaseUnitId = item.salesMainUnitId item.purchaseUnitId = item.salesMainUnitId

@ -503,7 +503,6 @@ export default {
}); });
}, },
goBack() { goBack() {
debugger
this.visible = false this.visible = false
this.$router.go(-1) this.$router.go(-1)
// this.$emit('refreshDataList', true) // this.$emit('refreshDataList', true)
@ -570,7 +569,6 @@ export default {
this.dataForm.orderNum = data.length this.dataForm.orderNum = data.length
let list = [] let list = []
data.forEach((item, index) => { data.forEach((item, index) => {
debugger
console.log("2", item.businessOrderProductRelationalList); console.log("2", item.businessOrderProductRelationalList);
this.dataForm.businessOrderList.push(item) this.dataForm.businessOrderList.push(item)
this.dataForm.businessorderproductrelationalList = [...item.businessOrderProductRelationalList, ...this.dataForm.businessorderproductrelationalList] this.dataForm.businessorderproductrelationalList = [...item.businessOrderProductRelationalList, ...this.dataForm.businessorderproductrelationalList]

@ -514,7 +514,6 @@ export default {
}); });
}, },
goBack() { goBack() {
debugger
this.visible = false this.visible = false
this.$router.go(-1) this.$router.go(-1)
// this.$emit('refreshDataList', true) // this.$emit('refreshDataList', true)
@ -581,7 +580,6 @@ export default {
this.dataForm.orderNum = data.length this.dataForm.orderNum = data.length
let list = [] let list = []
data.forEach((item, index) => { data.forEach((item, index) => {
debugger
console.log("2", item.businessOrderProductRelationalList); console.log("2", item.businessOrderProductRelationalList);
this.dataForm.businessOrderList.push(item) this.dataForm.businessOrderList.push(item)
this.dataForm.businessorderproductrelationalList = [...item.businessOrderProductRelationalList, ...this.dataForm.businessorderproductrelationalList] this.dataForm.businessorderproductrelationalList = [...item.businessOrderProductRelationalList, ...this.dataForm.businessorderproductrelationalList]

@ -105,8 +105,8 @@
<JnpfPopupSelect v-model="dataForm.contractId" @change="contractInfo" <JnpfPopupSelect v-model="dataForm.contractId" @change="contractInfo"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.contractId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.contractId"
placeholder="请选择" propsValue="id" popupWidth="800px" popupTitle="选择数据" placeholder="请选择" propsValue="id" popupWidth="800px" popupTitle="选择数据"
popupType="dialog" relationField='contract_name' field='contractId' popupType="dialog" relationField='contractName' field='contractId'
interfaceId="529986018724545029" :pageSize="20" interfaceId="532102642638261189" :pageSize="20"
:columnOptions="contractIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="contractIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -122,12 +122,133 @@
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.contractName" <JnpfInput v-model="scope.row.contractName"
@change="changeData('businessorderproductrelational-tax',scope.$index)" @change="changeData('businessorderproductrelational-tax',scope.$index)"
placeholder="请输入" placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
:disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-tax')"
clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="币种" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>币种
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.currency"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="currencyOptions" :props="currencyProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="销售模式" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>销售模式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.procurementModel"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="saleModeOptions" :props="saleModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="关联销售合同" v-if="judgeShow('businessorderproductrelational-tax')"
prop="tax">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('businessorderproductrelationalList-tax')"></span>关联销售合同
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.relatedContractName"
@change="changeData('businessorderproductrelational-tax',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="定价模式" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>定价模式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.pricingModel"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="fixPriceModeOptions" :props="fixPriceModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="关联供应商(二级)"
v-if="judgeShow('businessorderproductrelational-tax')" prop="tax">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('businessorderproductrelationalList-tax')"></span>关联供应商(二级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.secondSupplyName"
@change="changeData('businessorderproductrelational-tax',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联供应商(三级)"
v-if="judgeShow('businessorderproductrelational-tax')" prop="tax">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('businessorderproductrelationalList-tax')"></span>关联供应商(三级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.thirdSupplyName"
@change="changeData('businessorderproductrelational-tax',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="交货方式" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>交货方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.deliveryModel"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transactionModeOptions" :props="transactionModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="运输方式" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>运输方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.modeTransport"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transportModeOptions" :props="transportModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="费用承担主体" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>费用承担主体
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.costBearingMian"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="costBearingMianOptions" :props="costBearingMianProps">
</JnpfSelect>
</template>
</el-table-column>
</el-table> </el-table>
</template> </template>
<template v-if="dataForm.orderType == 1"> <template v-if="dataForm.orderType == 1">
@ -207,7 +328,7 @@
</template> </template>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfGroupTitle content="货信息" contentPosition="left"> <JnpfGroupTitle content="货信息" contentPosition="left">
</JnpfGroupTitle> </JnpfGroupTitle>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -235,17 +356,17 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('receiveAddress')"> <el-col :span="8" v-if="judgeShow('receiveAddress')">
<jnpf-form-tip-item label="货地址" v-if="judgeShow('receiveAddress')" <jnpf-form-tip-item label="货地址" v-if="judgeShow('receiveAddress')"
prop="receiveAddress"> prop="receiveAddress">
<JnpfInput v-model="dataForm.receiveAddress" @change="changeData('receiveAddress',-1)" <JnpfInput v-model="dataForm.deliveryAddress"
placeholder="请输入" :disabled="judgeWrite('receiveAddress')" clearable @change="changeData('receiveAddress',-1)" placeholder="请输入"
:style='{"width":"100%"}'> :disabled="judgeWrite('receiveAddress')" clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfGroupTitle content="货信息" contentPosition="left"> <JnpfGroupTitle content="货信息" contentPosition="left">
</JnpfGroupTitle> </JnpfGroupTitle>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -262,7 +383,7 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('deliveryWarehouse')"> <el-col :span="8" v-if="judgeShow('deliveryWarehouse')">
<jnpf-form-tip-item label="货仓库" v-if="judgeShow('deliveryWarehouse')" <jnpf-form-tip-item label="货仓库" v-if="judgeShow('deliveryWarehouse')"
prop="deliveryWarehouse"> prop="deliveryWarehouse">
<JnpfPopupSelect v-model="dataForm.deliveryWarehouse" <JnpfPopupSelect v-model="dataForm.deliveryWarehouse"
@change="changeData('deliveryWarehouse',-1)" :rowIndex="null" :formData="dataForm" @change="changeData('deliveryWarehouse',-1)" :rowIndex="null" :formData="dataForm"
@ -275,9 +396,9 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('deliveryAddress')"> <el-col :span="8" v-if="judgeShow('deliveryAddress')">
<jnpf-form-tip-item label="货地址" v-if="judgeShow('deliveryAddress')" <jnpf-form-tip-item label="货地址" v-if="judgeShow('deliveryAddress')"
prop="deliveryAddress"> prop="deliveryAddress">
<JnpfPopupSelect v-model="dataForm.deliveryAddress" <JnpfPopupSelect v-model="dataForm.receiveAddress"
@change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm" @change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm"
:templateJson="interfaceRes.deliveryAddress" placeholder="请选择" :templateJson="interfaceRes.deliveryAddress" placeholder="请选择"
:disabled="judgeWrite('deliveryAddress')" propsValue="id" popupWidth="800px" :disabled="judgeWrite('deliveryAddress')" propsValue="id" popupWidth="800px"
@ -315,11 +436,11 @@
</div> </div>
<el-table :data="dataForm.settlementInfoList" size='mini'> <el-table :data="dataForm.settlementInfoList" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" /> <el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="客户名称" v-if="judgeShow('settlementinfo-subjectBasicId')" <el-table-column label="供应商名称" v-if="judgeShow('settlementinfo-subjectBasicId')"
prop="subjectBasicId"> prop="subjectBasicId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('settlementinfoList-subjectBasicId')">*</span>客户名称 v-if="judgeRequired('settlementinfoList-subjectBasicId')">*</span>供应商名称
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.subjectBasicId" <JnpfInput v-model="scope.row.subjectBasicId"
@ -1115,7 +1236,7 @@ export default {
Vmodel: "", Vmodel: "",
currVmodel: "", currVmodel: "",
dataForm: { dataForm: {
orderType: "1", orderType: "2",
code: undefined, code: undefined,
businessLineId: undefined, businessLineId: undefined,
counterpartOrderCode: undefined, counterpartOrderCode: undefined,
@ -1274,7 +1395,7 @@ export default {
urgentOrderProps: { "label": "fullName", "value": "id" }, urgentOrderProps: { "label": "fullName", "value": "id" },
deliveryTypeOptions: [{ "fullName": "无", "id": "1" }, { "fullName": "仓配", "id": "2" }, { "fullName": "直达", "id": "3" }], deliveryTypeOptions: [{ "fullName": "无", "id": "1" }, { "fullName": "仓配", "id": "2" }, { "fullName": "直达", "id": "3" }],
deliveryTypeProps: { "label": "fullName", "value": "id" }, deliveryTypeProps: { "label": "fullName", "value": "id" },
contractIdcolumnOptions: [{ "label": "合同编码", "value": "contract_number" }, { "label": "合同名称", "value": "contract_name" },], contractIdcolumnOptions: [{ "label": "合同编码", "value": "contractNumber" }, { "label": "合同名称", "value": "contractName" },],
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }], currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" }, currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }], saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
@ -1283,7 +1404,7 @@ export default {
fixPriceModeOptions: [{ "fullName": "锁价模式", "id": "1" }, { "fullName": "后结算模式", "id": "2" }], fixPriceModeOptions: [{ "fullName": "锁价模式", "id": "1" }, { "fullName": "后结算模式", "id": "2" }],
fixPriceModeProps: { "label": "fullName", "value": "id" }, fixPriceModeProps: { "label": "fullName", "value": "id" },
secondSubjectBasicIdcolumnOptions: [{ "label": "客户编码", "value": "code" }, { "label": "客户名称", "value": "name" },], secondSubjectBasicIdcolumnOptions: [{ "label": "客户编码", "value": "code" }, { "label": "客户名称", "value": "name" },],
firstSubjectBasicIdcolumnOptions: [{ "label": "客户编码", "value": "code" }, { "label": "客户名称", "value": "name" },], firstSubjectBasicIdcolumnOptions: [{ "label": "供应商编码", "value": "code" }, { "label": "供应商名称", "value": "name" },],
transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }], transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }],
transactionModeProps: { "label": "fullName", "value": "id" }, transactionModeProps: { "label": "fullName", "value": "id" },
enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },], enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },],
@ -1309,6 +1430,8 @@ export default {
businessorderproductrelationalproductIdcolumnOptions2: [{ "label": "商品编码", "value": "code" }, { "label": "商品名称", "value": "name" }, { "label": "商品规格", "value": "spec" },], businessorderproductrelationalproductIdcolumnOptions2: [{ "label": "商品编码", "value": "code" }, { "label": "商品名称", "value": "name" }, { "label": "商品规格", "value": "spec" },],
businessorderproductrelationalsalesMainUnitIdOptions: [{ "fullName": "选项一", "id": "1" }, { "fullName": "选项二", "id": "2" }], businessorderproductrelationalsalesMainUnitIdOptions: [{ "fullName": "选项一", "id": "1" }, { "fullName": "选项二", "id": "2" }],
businessorderproductrelationalsalesMainUnitIdProps: { "label": "fullName", "value": "id" }, businessorderproductrelationalsalesMainUnitIdProps: { "label": "fullName", "value": "id" },
costBearingMianOptions: [{ "fullName": "甲方", "id": "1" }, { "fullName": "乙方", "id": "2" }],
costBearingMianProps: { "label": "fullName", "value": "id" },
childIndex: -1, childIndex: -1,
isEdit: false, isEdit: false,
interfaceRes: { interfaceRes: {
@ -1381,28 +1504,25 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
productInfo(val, val2) { productInfo(val, val2) {
debugger
// this.dataForm.businessOrderProductRelationalList = [] // this.dataForm.businessOrderProductRelationalList = []
this.dataForm.businessOrderProductRelationalList.push(val2) this.dataForm.businessOrderProductRelationalList.push(val2)
this.dataForm.businessOrderProductRelationalList.splice(0, 1) this.dataForm.businessOrderProductRelationalList.splice(0, 1)
}, },
productInfo2(val, val2) { productInfo2(val, val2) {
debugger
// this.dataForm.businessOrderProductRelationalList = [] // this.dataForm.businessOrderProductRelationalList = []
this.dataForm.businessOrderProductRelationalList.push(val2) this.dataForm.businessOrderProductRelationalList.push(val2)
this.dataForm.businessOrderProductRelationalList.splice(0, 1) this.dataForm.businessOrderProductRelationalList.splice(0, 1)
}, },
contractInfo(val, val2) { contractInfo(val, val2) {
debugger
this.dataForm.contractList = [] this.dataForm.contractList = []
this.dataForm.contractList[0] = val2 this.dataForm.contractList[0] = val2
this.dataForm.firstSubjectBasicId = val2.supplyName this.dataForm.firstSubjectBasicId = val2.subject
this.dataForm.enterpriseId = val2.enterpriseName this.dataForm.enterpriseId = val2.deptId
this.dataForm.receiveAddress = val2.delivery_location this.dataForm.receiveAddress = val2.deliveryLocation
this.dataForm.transportMode = val2.mode_transport this.dataForm.transportMode = val2.modeTransport
this.dataForm.transactionMode = val2.deliveryModel
}, },
getSupplyName(val, val2) { getSupplyName(val, val2) {
debugger
this.dataForm.settlementInfoList = []; this.dataForm.settlementInfoList = [];
val2.businessType = '1'; val2.businessType = '1';
this.dataForm.settlementInfoList[0] = val2; this.dataForm.settlementInfoList[0] = val2;

@ -541,7 +541,6 @@ export default {
return return
} }
const data = this.multipleSelectionItem const data = this.multipleSelectionItem
debugger
this.boundCheckVisible = true this.boundCheckVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.BoundCheck.init(data) this.$refs.BoundCheck.init(data)

@ -53,11 +53,11 @@
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('businessId')"> <el-col :span="8" v-if="judgeShow('businessId')">
<jnpf-form-tip-item label="采购订单" v-if="judgeShow('businessId')" prop="businessId"> <jnpf-form-tip-item label="采购订单" v-if="judgeShow('businessId')" prop="businessId">
<JnpfPopupSelect v-model="dataForm.businessId" @change="getSaleOrder" :rowIndex="null" <JnpfPopupSelect v-model="dataForm.businessId" @change="getPurchaseOrder"
:formData="dataForm" :templateJson="interfaceRes.businessId" placeholder="请选择" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId"
:disabled="judgeWrite('businessId')" propsValue="id" popupWidth="800px" placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id"
popupTitle="选择数据" popupType="dialog" relationField='code' field='businessId' popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code'
interfaceId="530042614796255877" :pageSize="20" field='businessId' interfaceId="530042614796255877" :pageSize="20"
:columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -67,13 +67,13 @@
<div class="JNPF-common-title"> <div class="JNPF-common-title">
<h2></h2> <h2></h2>
</div> </div>
<el-table :data="dataForm.saleOrderInfo" size='mini'> <el-table :data="dataForm.purchaseOrderInfo" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" /> <el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="销售订单" v-if="judgeShow('warehousingproduct-productName')" <el-table-column label="采购订单" v-if="judgeShow('warehousingproduct-productName')"
prop="code"> prop="code">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-productName')">*</span>销售订单 v-if="judgeRequired('warehousingproductList-productName')">*</span>采购订单
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.code" <JnpfInput v-model="scope.row.code"
@ -84,21 +84,21 @@
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="订单类型" v-if="judgeShow('warehousingproduct-spec')" <el-table-column label="订单类型"
prop="spec"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-spec')">*</span>订单类型 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>订单类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.spec" <JnpfSelect v-model="scope.row.orderType"
@change="changeData('warehousingproduct-spec',scope.$index)" placeholder="请输入" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-spec')" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
clearable :style='{"width":"100%"}'> :options="orderTypeOptions" :props="orderTypeProps">
</JnpfInput> </JnpfSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="期望送达时间" <!-- <el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId"> v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
@ -112,160 +112,116 @@
clearable :style='{"width":"100%"}'> clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="关联客户(二级)" <el-table-column label="关联供应商(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId"> v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级) v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联供应商(二级)
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseUnitId" <JnpfInput v-model="scope.row.secondSupplyName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)" @change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联业务线" v-if="judgeShow('warehousingproduct-purchaseNum')"
prop="purchaseNum">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseNum"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')"
clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="业务类型" v-if="judgeShow('warehousingproduct-storageAreaId')" <el-table-column label="关联供应商(三级)"
prop="storageAreaId"> v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-storageAreaId')">*</span>业务类型 v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联供应商(三级)
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.storageAreaId" <JnpfInput v-model="scope.row.thirdSupplyName"
@change="changeData('warehousingproduct-storageAreaId',scope.$index)" @change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-storageAreaId')"
clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="币种" v-if="judgeShow('warehousingproduct-warehousingUnitId')" <el-table-column label="关联业务线" v-if="judgeShow('warehousingproduct-purchaseNum')"
prop="warehousingUnitId"> prop="purchaseNum">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-warehousingUnitId')">*</span>币种 v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.warehousingUnitId" <JnpfInput v-model="scope.row.businessLineName"
@change="changeData('warehousingproduct-warehousingUnitId',scope.$index)" @change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入" placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-warehousingUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="销售模式" v-if="judgeShow('warehousingproduct-barCode')" <el-table-column label="业务类型"
prop="barCode"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-barCode')">*</span>销售模式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>业务类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.barCode" <JnpfSelect v-model="scope.row.businessOrderType"
@change="changeData('warehousingproduct-barCode',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-barCode')" :options="businessOrderTypeOptions" :props="businessOrderTypeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交货方式" <el-table-column label="币种"
v-if="judgeShow('warehousingproduct-notificationStorageNumber')" v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
prop="notificationStorageNumber">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-notificationStorageNumber')">*</span>交货方式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>币种
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.notificationStorageNumber" <JnpfSelect v-model="scope.row.currency"
@change="changeData('warehousingproduct-notificationStorageNumber',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-notificationStorageNumber')" :options="currencyOptions" :props="currencyProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="配送方式" v-if="judgeShow('warehousingproduct-volume')" <el-table-column label="采购模式"
prop="volume"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-volume')">*</span>配送方 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>采购模
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.volume" <JnpfSelect v-model="scope.row.saleMode"
@change="changeData('warehousingproduct-volume',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-volume')" :options="saleModeOptions" :props="saleModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="运输方式" v-if="judgeShow('warehousingproduct-batchNo')" <el-table-column label="交货方式"
prop="batchNo"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-batchNo')">*</span>运输方式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>交货方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.batchNo" <JnpfSelect v-model="scope.row.transactionMode"
@change="changeData('warehousingproduct-batchNo',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-batchNo')" :options="transactionModeOptions" :props="transactionModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="运输方式"
<el-table-column label="生产日期" v-if="judgeShow('warehousingproduct-produceDate')" v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
prop="produceDate">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-produceDate')">*</span>生产日期 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>运输方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.produceDate" <JnpfSelect v-model="scope.row.transportMode"
@change="changeData('warehousingproduct-produceDate',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
placeholder="请选择" :options="transportModeOptions" :props="transportModeProps">
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-produceDate')" </JnpfSelect>
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" v-if="judgeShow('warehousingproduct-remark')"
prop="remark">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-remark')">*</span>备注
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.remark"
@change="changeData('warehousingproduct-remark',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-remark')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column> -->
</el-table> </el-table>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -291,7 +247,7 @@
<el-col :span="8" v-if="judgeShow('shippingAddress')"> <el-col :span="8" v-if="judgeShow('shippingAddress')">
<jnpf-form-tip-item label="收货地址" v-if="judgeShow('shippingAddress')" <jnpf-form-tip-item label="收货地址" v-if="judgeShow('shippingAddress')"
prop="shippingAddress"> prop="shippingAddress">
<JnpfInput v-model="dataForm.shippingAddress" <JnpfInput v-model="dataForm.deliveryAddress"
@change="changeData('shippingAddress',-1)" placeholder="请输入" @change="changeData('shippingAddress',-1)" placeholder="请输入"
:disabled="judgeWrite('shippingAddress')" clearable :style='{"width":"100%"}'> :disabled="judgeWrite('shippingAddress')" clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
@ -329,7 +285,7 @@
<el-col :span="8" v-if="judgeShow('deliveryAddress')"> <el-col :span="8" v-if="judgeShow('deliveryAddress')">
<jnpf-form-tip-item label="发货地址" v-if="judgeShow('deliveryAddress')" <jnpf-form-tip-item label="发货地址" v-if="judgeShow('deliveryAddress')"
prop="deliveryAddress"> prop="deliveryAddress">
<JnpfPopupSelect v-model="dataForm.deliveryAddress" <JnpfPopupSelect v-model="dataForm.shippingAddress"
@change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm" @change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm"
:templateJson="interfaceRes.deliveryAddress" placeholder="请选择" :templateJson="interfaceRes.deliveryAddress" placeholder="请选择"
:disabled="judgeWrite('deliveryAddress')" propsValue="id" popupWidth="800px" :disabled="judgeWrite('deliveryAddress')" propsValue="id" popupWidth="800px"
@ -669,13 +625,25 @@ export default {
deliveryAddress: undefined, deliveryAddress: undefined,
remark: undefined, remark: undefined,
warehousingProductList: [], warehousingProductList: [],
saleOrderInfo: [], purchaseOrderInfo: [],
version: 0, version: 0,
}, },
tableRequiredData: {}, tableRequiredData: {},
dataRule: dataRule:
{ {
}, },
orderTypeOptions: [{ "fullName": "标准采购", "id": "1" }, { "fullName": "计划采购", "id": "2" }, { "fullName": "合同采购", "id": "3" }, { "fullName": "其他采购", "id": "4" }],
orderTypeProps: { "label": "fullName", "value": "id" },
businessOrderTypeOptions: [{ "fullName": "钢材类", "id": "1" }, { "fullName": "设备类", "id": "2" }, { "fullName": "废钢类", "id": "3" }, { "fullName": "低值易耗品", "id": "4" }, { "fullName": "合金类", "id": "5" }, { "fullName": "矿产类", "id": "6" }],
businessOrderTypeProps: { "label": "fullName", "value": "id" },
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
saleModeProps: { "label": "fullName", "value": "id" },
transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }],
transactionModeProps: { "label": "fullName", "value": "id" },
transportModeOptions: [{ "fullName": "公路", "id": "1" }, { "fullName": "铁路", "id": "2" }, { "fullName": "轮船", "id": "3" }, { "fullName": "空运", "id": "4" }, { "fullName": "无", "id": "5" }],
transportModeProps: { "label": "fullName", "value": "id" },
warehousingTypeOptions: [{ "fullName": "退货出库", "id": "7" }], warehousingTypeOptions: [{ "fullName": "退货出库", "id": "7" }],
warehousingTypeProps: { "label": "fullName", "value": "id" }, warehousingTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },],
@ -727,9 +695,9 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
getSaleOrder(val, val2) { getPurchaseOrder(val, val2) {
debugger this.dataForm.purchaseOrderInfo = []
this.dataForm.saleOrderInfo[0] = val2 this.dataForm.purchaseOrderInfo[0] = val2
this.dataForm.subjectBasicId = val2.firstSubjectBasicId this.dataForm.subjectBasicId = val2.firstSubjectBasicId
this.dataForm.shippingAddress = val2.receiveAddress this.dataForm.shippingAddress = val2.receiveAddress
this.dataForm.enterpriseId = val2.enterpriseId this.dataForm.enterpriseId = val2.enterpriseId

File diff suppressed because one or more lines are too long

@ -55,11 +55,11 @@
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('businessId')"> <el-col :span="8" v-if="judgeShow('businessId')">
<jnpf-form-tip-item label="采购订单" v-if="judgeShow('businessId')" prop="businessId"> <jnpf-form-tip-item label="采购订单" v-if="judgeShow('businessId')" prop="businessId">
<JnpfPopupSelect v-model="dataForm.businessId" @change="changeData('businessId',-1)" <JnpfPopupSelect v-model="dataForm.businessId" @change="getPurchaseOrder"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId"
placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id" placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id"
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code' popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code'
field='businessId' interfaceId="529638640356183877" :pageSize="20" field='businessId' interfaceId="530042614796255877" :pageSize="20"
:columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -77,6 +77,169 @@
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
<jnpf-form-tip-item label-width="0">
<div class="JNPF-common-title">
<h2></h2>
</div>
<el-table :data="dataForm.purchaseOrderInfo" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="采购订单" v-if="judgeShow('warehousingproduct-productName')"
prop="code">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-productName')">*</span>采购订单
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.code"
@change="changeData('warehousingproduct-productName',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-productName')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="订单类型"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>订单类型
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.orderType"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="orderTypeOptions" :props="orderTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<!-- <el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>期望送达时间
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.inventoryUnitId"
@change="changeData('warehousingproduct-inventoryUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-inventoryUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column> -->
<el-table-column label="关联供应商(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联供应商(二级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.secondSupplyName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联供应商(三级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联供应商(三级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.thirdSupplyName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联业务线" v-if="judgeShow('warehousingproduct-purchaseNum')"
prop="purchaseNum">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.businessLineName"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="业务类型"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>业务类型
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.businessOrderType"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="businessOrderTypeOptions" :props="businessOrderTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="币种"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>币种
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.currency"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="currencyOptions" :props="currencyProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="采购模式"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>采购模式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.saleMode"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="saleModeOptions" :props="saleModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="交货方式"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>交货方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.transactionMode"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transactionModeOptions" :props="transactionModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="运输方式"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>运输方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.transportMode"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transportModeOptions" :props="transportModeProps">
</JnpfSelect>
</template>
</el-table-column>
</el-table>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfGroupTitle content="发货信息" contentPosition="left"> <JnpfGroupTitle content="发货信息" contentPosition="left">
@ -84,12 +247,12 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('subjectId')"> <el-col :span="8" v-if="judgeShow('subjectId')">
<jnpf-form-tip-item label="客户名称" v-if="judgeShow('subjectId')" prop="subjectId"> <jnpf-form-tip-item label="供应商名称" v-if="judgeShow('subjectId')" prop="subjectId">
<JnpfPopupSelect v-model="dataForm.subjectId" @change="changeData('subjectId',-1)" <JnpfPopupSelect v-model="dataForm.subjectId" @change="changeData('subjectId',-1)"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.subjectId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.subjectId"
placeholder="请选择" :disabled="judgeWrite('subjectId')" propsValue="id" placeholder="请选择" :disabled="judgeWrite('subjectId')" propsValue="id"
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name' popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name'
field='subjectId' interfaceId="522693551289534725" :pageSize="20" field='subjectId' interfaceId="530001731111617029" :pageSize="20"
:columnOptions="subjectIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="subjectIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -180,14 +343,14 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.voucherId" <JnpfPopupSelect v-model="scope.row.voucherId"
@change="changeData('deliveryvoucherrelation-voucherId',scope.$index)" @change="getPurchaseReceiptVoucher" :rowIndex="scope.$index"
:rowIndex="scope.$index" :formData="dataForm" :formData="dataForm"
:templateJson="interfaceRes.deliveryvoucherrelationvoucherId" :templateJson="interfaceRes.deliveryvoucherrelationvoucherId"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')" :disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')"
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='voucher_code' :field="'voucherId'+scope.$index" relationField='voucherCode' :field="'voucherId'+scope.$index"
interfaceId="530666910480598149" :pageSize="20" interfaceId="531790337677461573" :pageSize="20"
:columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable :columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable
:style='{"width":"100%"}'> :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
@ -892,6 +1055,7 @@ export default {
deliveryVoucherRelationList: [], deliveryVoucherRelationList: [],
deliveryProductRelationList: [], deliveryProductRelationList: [],
version: 0, version: 0,
purchaseOrderInfo: [],
}, },
tableRequiredData: {}, tableRequiredData: {},
dataRule: dataRule:
@ -939,6 +1103,18 @@ export default {
}, },
], ],
}, },
orderTypeOptions: [{ "fullName": "标准采购", "id": "1" }, { "fullName": "计划采购", "id": "2" }, { "fullName": "合同采购", "id": "3" }, { "fullName": "其他采购", "id": "4" }],
orderTypeProps: { "label": "fullName", "value": "id" },
businessOrderTypeOptions: [{ "fullName": "钢材类", "id": "1" }, { "fullName": "设备类", "id": "2" }, { "fullName": "废钢类", "id": "3" }, { "fullName": "低值易耗品", "id": "4" }, { "fullName": "合金类", "id": "5" }, { "fullName": "矿产类", "id": "6" }],
businessOrderTypeProps: { "label": "fullName", "value": "id" },
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
saleModeProps: { "label": "fullName", "value": "id" },
transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }],
transactionModeProps: { "label": "fullName", "value": "id" },
transportModeOptions: [{ "fullName": "公路", "id": "1" }, { "fullName": "铁路", "id": "2" }, { "fullName": "轮船", "id": "3" }, { "fullName": "空运", "id": "4" }, { "fullName": "无", "id": "5" }],
transportModeProps: { "label": "fullName", "value": "id" },
receiptTypeOptions: [{ "fullName": "采购收货", "id": "1" }], receiptTypeOptions: [{ "fullName": "采购收货", "id": "1" }],
receiptTypeProps: { "label": "fullName", "value": "id" }, receiptTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },],
@ -947,7 +1123,7 @@ export default {
enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },], enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },],
warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },], warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },],
deliveryAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },], deliveryAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },],
deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucher_code" }, { "label": "单据类型", "value": "document_type" }, { "label": "磅单编号", "value": "pound_code" },], deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucherCode" }, { "label": "单据类型", "value": "documentType" }, { "label": "磅单编号", "value": "poundCode" },],
deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }], deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }],
deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" }, deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" },
deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }], deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }],
@ -1023,6 +1199,35 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
getPurchaseReceiptVoucher(val, val2) {
debugger
val2.voucherId = val2.id
val2.businessType = "1"
this.dataForm.deliveryVoucherRelationList.push(val2)
this.dataForm.deliveryVoucherRelationList.splice(0, 1)
val2.productWarehouseEntityList.forEach((item, index) => {
item.productId = item.id
item.businessType = "1"
})
this.dataForm.deliveryProductRelationList.push(val2.productWarehouseEntityList[0])
},
getPurchaseOrder(val, val2) {
this.dataForm.purchaseOrderInfo = []
this.dataForm.purchaseOrderInfo[0] = val2
this.dataForm.subjectId = val2.firstSubjectBasicId
this.dataForm.deliveryAddress = val2.receiveAddress
this.dataForm.enterpriseId = val2.enterpriseId
this.dataForm.warehouseId = val2.deliveryWarehouse
this.dataForm.shippingAddress = val2.deliveryAddress
this.dataForm.reservedFields1 = val2.businessLineId
val2.businessOrderProductRelationalList.forEach((item, index) => {
item.productName = item.name
item.purchaseUnitId = item.salesMainUnitId
item.purchaseNum = item.businessNum
item.businessType = "1"
})
this.dataForm.deliveryProductRelationList = val2.businessOrderProductRelationalList
},
changeData(model, index) { changeData(model, index) {
this.isEdit = false this.isEdit = false
this.childIndex = index this.childIndex = index

@ -69,11 +69,11 @@
{{ scope.row.receiptType}} {{ scope.row.receiptType}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="businessId" label="退货单" align="left"> <el-table-column prop="businessId" label="采购订单" align="left">
</el-table-column> </el-table-column>
<el-table-column prop="reservedFields1" label="业务线" align="left"> <el-table-column prop="reservedFields1" label="业务线" align="left">
</el-table-column> </el-table-column>
<el-table-column prop="subjectId" label="客户名称" align="left"> <el-table-column prop="subjectId" label="供应商名称" align="left">
</el-table-column> </el-table-column>
<el-table-column prop="deliveryAddress" label="收货地址" align="left"> <el-table-column prop="deliveryAddress" label="收货地址" align="left">
</el-table-column> </el-table-column>

@ -55,12 +55,12 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('businessId')"> <el-col :span="8" v-if="judgeShow('businessId')">
<jnpf-form-tip-item label="销售订单" v-if="judgeShow('businessId')" prop="businessId"> <jnpf-form-tip-item label="采购订单" v-if="judgeShow('businessId')" prop="businessId">
<JnpfPopupSelect v-model="dataForm.businessId" @change="changeData('businessId',-1)" <JnpfPopupSelect v-model="dataForm.businessId" @change="getPurchaseOrder"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId"
placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id" placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id"
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code' popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code'
field='businessId' interfaceId="529638640356183877" :pageSize="20" field='businessId' interfaceId="530042614796255877" :pageSize="20"
:columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -78,6 +78,169 @@
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
<jnpf-form-tip-item label-width="0">
<div class="JNPF-common-title">
<h2></h2>
</div>
<el-table :data="dataForm.purchaseOrderInfo" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="采购订单" v-if="judgeShow('warehousingproduct-productName')"
prop="code">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-productName')">*</span>采购订单
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.code"
@change="changeData('warehousingproduct-productName',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-productName')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="订单类型"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>订单类型
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.orderType"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="orderTypeOptions" :props="orderTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<!-- <el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>期望送达时间
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.inventoryUnitId"
@change="changeData('warehousingproduct-inventoryUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-inventoryUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column> -->
<el-table-column label="关联供应商(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联供应商(二级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.secondSupplyName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联供应商(三级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联供应商(三级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.thirdSupplyName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联业务线" v-if="judgeShow('warehousingproduct-purchaseNum')"
prop="purchaseNum">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.businessLineName"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="业务类型"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>业务类型
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.businessOrderType"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="businessOrderTypeOptions" :props="businessOrderTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="币种"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>币种
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.currency"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="currencyOptions" :props="currencyProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="采购模式"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>采购模式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.saleMode"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="saleModeOptions" :props="saleModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="交货方式"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>交货方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.transactionMode"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transactionModeOptions" :props="transactionModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="运输方式"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>运输方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.transportMode"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transportModeOptions" :props="transportModeProps">
</JnpfSelect>
</template>
</el-table-column>
</el-table>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfGroupTitle content="发货信息" contentPosition="left"> <JnpfGroupTitle content="发货信息" contentPosition="left">
@ -85,20 +248,20 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('subjectId')"> <el-col :span="8" v-if="judgeShow('subjectId')">
<jnpf-form-tip-item label="客户名称" v-if="judgeShow('subjectId')" prop="subjectId"> <jnpf-form-tip-item label="供应商名称" v-if="judgeShow('subjectId')" prop="subjectId">
<JnpfPopupSelect v-model="dataForm.subjectId" @change="changeData('subjectId',-1)" <JnpfPopupSelect v-model="dataForm.subjectId" @change="changeData('subjectId',-1)"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.subjectId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.subjectId"
placeholder="请选择" :disabled="judgeWrite('subjectId')" propsValue="id" placeholder="请选择" :disabled="judgeWrite('subjectId')" propsValue="id"
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name' popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name'
field='subjectId' interfaceId="522693551289534725" :pageSize="20" field='subjectId' interfaceId="530001731111617029" :pageSize="20"
:columnOptions="subjectIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="subjectIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('shippingAddress')"> <el-col :span="8" v-if="judgeShow('shippingAddress')">
<jnpf-form-tip-item label="货地址" v-if="judgeShow('shippingAddress')" <jnpf-form-tip-item label="货地址" v-if="judgeShow('shippingAddress')"
prop="shippingAddress"> prop="shippingAddress">
<JnpfInput v-model="dataForm.shippingAddress" <JnpfInput v-model="dataForm.deliveryAddress"
@change="changeData('shippingAddress',-1)" placeholder="请输入" @change="changeData('shippingAddress',-1)" placeholder="请输入"
:disabled="judgeWrite('shippingAddress')" clearable :style='{"width":"100%"}'> :disabled="judgeWrite('shippingAddress')" clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
@ -134,11 +297,11 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('deliveryAddress')"> <el-col :span="8" v-if="judgeShow('deliveryAddress')">
<jnpf-form-tip-item label="货地址" v-if="judgeShow('deliveryAddress')" <jnpf-form-tip-item label="货地址" v-if="judgeShow('deliveryAddress')"
prop="deliveryAddress"> prop="deliveryAddress">
<JnpfPopupSelect v-model="dataForm.deliveryAddress" <JnpfPopupSelect v-model="dataForm.deliveryAddress"
@change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm" @change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm"
:templateJson="interfaceRes.deliveryAddress" placeholder="请选择" :templateJson="interfaceRes.shippingAddress" placeholder="请选择"
:disabled="judgeWrite('deliveryAddress')" propsValue="id" popupWidth="800px" :disabled="judgeWrite('deliveryAddress')" propsValue="id" popupWidth="800px"
popupTitle="选择数据" popupType="dialog" relationField='addressDetail' popupTitle="选择数据" popupType="dialog" relationField='addressDetail'
field='deliveryAddress' interfaceId="522724961224231173" :pageSize="20" field='deliveryAddress' interfaceId="522724961224231173" :pageSize="20"
@ -181,14 +344,14 @@
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.voucherId" <JnpfPopupSelect v-model="scope.row.voucherId"
@change="changeData('deliveryvoucherrelation-voucherId',scope.$index)" @change="getPurchaseReceiptVoucher" :rowIndex="scope.$index"
:rowIndex="scope.$index" :formData="dataForm" :formData="dataForm"
:templateJson="interfaceRes.deliveryvoucherrelationvoucherId" :templateJson="interfaceRes.deliveryvoucherrelationvoucherId"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')" :disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')"
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='voucher_code' :field="'voucherId'+scope.$index" relationField='voucherCode' :field="'voucherId'+scope.$index"
interfaceId="530666910480598149" :pageSize="20" interfaceId="531790337677461573" :pageSize="20"
:columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable :columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable
:style='{"width":"100%"}'> :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
@ -893,6 +1056,7 @@ export default {
deliveryVoucherRelationList: [], deliveryVoucherRelationList: [],
deliveryProductRelationList: [], deliveryProductRelationList: [],
version: 0, version: 0,
purchaseOrderInfo: [],
}, },
tableRequiredData: {}, tableRequiredData: {},
dataRule: dataRule:
@ -940,6 +1104,18 @@ export default {
}, },
], ],
}, },
orderTypeOptions: [{ "fullName": "标准采购", "id": "1" }, { "fullName": "计划采购", "id": "2" }, { "fullName": "合同采购", "id": "3" }, { "fullName": "其他采购", "id": "4" }],
orderTypeProps: { "label": "fullName", "value": "id" },
businessOrderTypeOptions: [{ "fullName": "钢材类", "id": "1" }, { "fullName": "设备类", "id": "2" }, { "fullName": "废钢类", "id": "3" }, { "fullName": "低值易耗品", "id": "4" }, { "fullName": "合金类", "id": "5" }, { "fullName": "矿产类", "id": "6" }],
businessOrderTypeProps: { "label": "fullName", "value": "id" },
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
saleModeProps: { "label": "fullName", "value": "id" },
transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }],
transactionModeProps: { "label": "fullName", "value": "id" },
transportModeOptions: [{ "fullName": "公路", "id": "1" }, { "fullName": "铁路", "id": "2" }, { "fullName": "轮船", "id": "3" }, { "fullName": "空运", "id": "4" }, { "fullName": "无", "id": "5" }],
transportModeProps: { "label": "fullName", "value": "id" },
documentTypeOptions: [{ "fullName": "采购退货", "id": "1" }], documentTypeOptions: [{ "fullName": "采购退货", "id": "1" }],
documentTypeProps: { "label": "fullName", "value": "id" }, documentTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },],
@ -948,7 +1124,7 @@ export default {
enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },], enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },],
warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },], warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },],
deliveryAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },], deliveryAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },],
deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucher_code" }, { "label": "单据类型", "value": "document_type" }, { "label": "磅单编号", "value": "pound_code" },], deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucherCode" }, { "label": "单据类型", "value": "documentType" }, { "label": "磅单编号", "value": "poundCode" },],
deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }], deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }],
deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" }, deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" },
deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }], deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }],
@ -1024,6 +1200,34 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
getPurchaseReceiptVoucher(val, val2) {
val2.voucherId = val2.id
val2.businessType = "2"
this.dataForm.deliveryVoucherRelationList.push(val2)
this.dataForm.deliveryVoucherRelationList.splice(0, 1)
val2.productWarehouseEntityList.forEach((item, index) => {
item.productId = item.id
item.businessType = "2"
})
this.dataForm.deliveryProductRelationList.push(val2.productWarehouseEntityList[0])
},
getPurchaseOrder(val, val2) {
this.dataForm.purchaseOrderInfo = []
this.dataForm.purchaseOrderInfo[0] = val2
this.dataForm.subjectId = val2.firstSubjectBasicId
this.dataForm.deliveryAddress = val2.receiveAddress
this.dataForm.enterpriseId = val2.enterpriseId
this.dataForm.warehouseId = val2.deliveryWarehouse
this.dataForm.shippingAddress = val2.deliveryAddress
this.dataForm.reservedFields1 = val2.businessLineId
val2.businessOrderProductRelationalList.forEach((item, index) => {
item.productName = item.name
item.purchaseUnitId = item.salesMainUnitId
item.purchaseNum = item.businessNum
item.businessType = "2"
})
this.dataForm.deliveryProductRelationList = val2.businessOrderProductRelationalList
},
changeData(model, index) { changeData(model, index) {
this.isEdit = false this.isEdit = false
this.childIndex = index this.childIndex = index

@ -69,11 +69,11 @@
{{ scope.row.documentType}} {{ scope.row.documentType}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="businessId" label="销售订单" align="left"> <el-table-column prop="businessId" label="采购订单" align="left">
</el-table-column> </el-table-column>
<el-table-column prop="reservedFields1" label="业务线" align="left"> <el-table-column prop="reservedFields1" label="业务线" align="left">
</el-table-column> </el-table-column>
<el-table-column prop="subjectId" label="客户名称" align="left"> <el-table-column prop="subjectId" label="供应商名称" align="left">
</el-table-column> </el-table-column>
<el-table-column prop="deliveryAddress" label="收货地址" align="left"> <el-table-column prop="deliveryAddress" label="收货地址" align="left">
</el-table-column> </el-table-column>

@ -64,6 +64,19 @@
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('reservedFields1')">
<jnpf-form-tip-item label="业务线" v-if="judgeShow('reservedFields1')"
prop="reservedFields1">
<JnpfPopupSelect v-model="dataForm.reservedFields1"
@change="changeData('reservedFields1',-1)" :rowIndex="null" :formData="dataForm"
:templateJson="interfaceRes.reservedFields1" placeholder="请选择" :disabled="true"
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='name' field='reservedFields1' interfaceId="517979330417001669"
:pageSize="20" :columnOptions="reservedFields1columnOptions" clearable
:style='{"width":"100%"}'>
</JnpfPopupSelect>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24" v-if="judgeShow('-${html.relationField}')"> <el-col :span="24" v-if="judgeShow('-${html.relationField}')">
<jnpf-form-tip-item label-width="0"> <jnpf-form-tip-item label-width="0">
<div class="JNPF-common-title"> <div class="JNPF-common-title">
@ -86,21 +99,21 @@
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="订单类型" v-if="judgeShow('warehousingproduct-spec')" <el-table-column label="订单类型"
prop="spec"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-spec')">*</span>订单类型 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>订单类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.spec" <JnpfSelect v-model="scope.row.orderType"
@change="changeData('warehousingproduct-spec',scope.$index)" placeholder="请输入" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-spec')" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
clearable :style='{"width":"100%"}'> :options="orderTypeOptions" :props="orderTypeProps">
</JnpfInput> </JnpfSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="期望送达时间" <!-- <el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId"> v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
@ -114,7 +127,7 @@
clearable :style='{"width":"100%"}'> clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="关联客户(二级)" <el-table-column label="关联客户(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId"> v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header"> <template slot="header">
@ -122,7 +135,7 @@
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级) v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级)
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseUnitId" <JnpfInput v-model="scope.row.secondCustomName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)" @change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')" :disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')"
@ -137,7 +150,7 @@
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线 v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseNum" <JnpfInput v-model="scope.row.businessLineName"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)" @change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')" :disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')"
@ -145,145 +158,79 @@
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="业务类型" v-if="judgeShow('warehousingproduct-storageAreaId')" <el-table-column label="业务类型"
prop="storageAreaId"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-storageAreaId')">*</span>业务类型 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>业务类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.storageAreaId" <JnpfSelect v-model="scope.row.businessOrderType"
@change="changeData('warehousingproduct-storageAreaId',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-storageAreaId')" :options="businessOrderTypeOptions" :props="businessOrderTypeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="币种" v-if="judgeShow('warehousingproduct-warehousingUnitId')" <el-table-column label="币种"
prop="warehousingUnitId"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-warehousingUnitId')">*</span>币种 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>币种
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.warehousingUnitId" <JnpfSelect v-model="scope.row.currency"
@change="changeData('warehousingproduct-warehousingUnitId',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-warehousingUnitId')" :options="currencyOptions" :props="currencyProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="销售模式" v-if="judgeShow('warehousingproduct-barCode')" <el-table-column label="销售模式"
prop="barCode"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-barCode')">*</span>销售模式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>销售模式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.barCode" <JnpfSelect v-model="scope.row.saleMode"
@change="changeData('warehousingproduct-barCode',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-barCode')" :options="saleModeOptions" :props="saleModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交货方式" <el-table-column label="交货方式"
v-if="judgeShow('warehousingproduct-notificationStorageNumber')" v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
prop="notificationStorageNumber">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-notificationStorageNumber')">*</span>交货方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.notificationStorageNumber"
@change="changeData('warehousingproduct-notificationStorageNumber',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-notificationStorageNumber')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="配送方式" v-if="judgeShow('warehousingproduct-volume')"
prop="volume">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-volume')">*</span>配送方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.volume"
@change="changeData('warehousingproduct-volume',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-volume')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="运输方式" v-if="judgeShow('warehousingproduct-batchNo')"
prop="batchNo">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-batchNo')">*</span>运输方式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>交货方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.batchNo" <JnpfSelect v-model="scope.row.transactionMode"
@change="changeData('warehousingproduct-batchNo',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-batchNo')" :options="transactionModeOptions" :props="transactionModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="运输方式"
<el-table-column label="生产日期" v-if="judgeShow('warehousingproduct-produceDate')" v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
prop="produceDate">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-produceDate')">*</span>生产日期 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>运输方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.produceDate" <JnpfSelect v-model="scope.row.transportMode"
@change="changeData('warehousingproduct-produceDate',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
placeholder="请选择" :options="transportModeOptions" :props="transportModeProps">
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-produceDate')" </JnpfSelect>
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" v-if="judgeShow('warehousingproduct-remark')"
prop="remark">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-remark')">*</span>备注
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.remark"
@change="changeData('warehousingproduct-remark',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-remark')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column> -->
</el-table> </el-table>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('reservedFields1')">
<jnpf-form-tip-item label="业务线" v-if="judgeShow('reservedFields1')"
prop="reservedFields1">
<JnpfPopupSelect v-model="dataForm.reservedFields1"
@change="changeData('reservedFields1',-1)" :rowIndex="null" :formData="dataForm"
:templateJson="interfaceRes.reservedFields1" placeholder="请选择"
:disabled="judgeWrite('reservedFields1')" propsValue="id" popupWidth="800px"
popupTitle="选择数据" popupType="dialog" relationField='name' field='reservedFields1'
interfaceId="517979330417001669" :pageSize="20"
:columnOptions="reservedFields1columnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfGroupTitle content="收货信息" contentPosition="left"> <JnpfGroupTitle content="收货信息" contentPosition="left">
@ -386,14 +333,13 @@
v-if="judgeRequired('deliveryvoucherrelationList-voucherId')">*</span>凭证编号 v-if="judgeRequired('deliveryvoucherrelationList-voucherId')">*</span>凭证编号
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.voucherId" <JnpfPopupSelect v-model="scope.row.voucherId" @change="getSaleDeliveryVoucher"
@change="changeData('deliveryvoucherrelation-voucherId',scope.$index)"
:rowIndex="scope.$index" :formData="dataForm" :rowIndex="scope.$index" :formData="dataForm"
:templateJson="interfaceRes.deliveryvoucherrelationvoucherId" :templateJson="interfaceRes.deliveryvoucherrelationvoucherId"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')" :disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')"
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='voucher_code' :field="'voucherId'+scope.$index" relationField='voucherCode' :field="'voucherId'+scope.$index"
interfaceId="530666910480598149" :pageSize="20" interfaceId="530666910480598149" :pageSize="20"
:columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable :columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable
:style='{"width":"100%"}'> :style='{"width":"100%"}'>
@ -953,10 +899,10 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="table-actions" @click="adddeliveryproductrelationList()" <!-- <div class="table-actions" @click="adddeliveryproductrelationList()"
v-if="!judgeWrite('deliveryproductrelationList')"> v-if="!judgeWrite('deliveryproductrelationList')">
<el-button type="text" icon="el-icon-plus">添加</el-button> <el-button type="text" icon="el-icon-plus">添加</el-button>
</div> </div> -->
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<!-- 表单结束 --> <!-- 表单结束 -->
@ -1147,6 +1093,18 @@ export default {
}, },
], ],
}, },
orderTypeOptions: [{ "fullName": "标准销售", "id": "1" }, { "fullName": "计划销售", "id": "2" }, { "fullName": "合同销售", "id": "3" }, { "fullName": "其他销售", "id": "4" }],
orderTypeProps: { "label": "fullName", "value": "id" },
businessOrderTypeOptions: [{ "fullName": "钢材类", "id": "1" }, { "fullName": "设备类", "id": "2" }, { "fullName": "废钢类", "id": "3" }, { "fullName": "低值易耗品", "id": "4" }, { "fullName": "合金类", "id": "5" }, { "fullName": "矿产类", "id": "6" }],
businessOrderTypeProps: { "label": "fullName", "value": "id" },
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
saleModeProps: { "label": "fullName", "value": "id" },
transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }],
transactionModeProps: { "label": "fullName", "value": "id" },
transportModeOptions: [{ "fullName": "公路", "id": "1" }, { "fullName": "铁路", "id": "2" }, { "fullName": "轮船", "id": "3" }, { "fullName": "空运", "id": "4" }, { "fullName": "无", "id": "5" }],
transportModeProps: { "label": "fullName", "value": "id" },
deliveryTypeOptions: [{ "fullName": "销售发货", "id": "2" }], deliveryTypeOptions: [{ "fullName": "销售发货", "id": "2" }],
deliveryTypeProps: { "label": "fullName", "value": "id" }, deliveryTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },],
@ -1155,7 +1113,7 @@ export default {
enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },], enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },],
warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },], warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },],
shippingAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },], shippingAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },],
deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucher_code" }, { "label": "单据类型", "value": "document_type" }, { "label": "磅单编号", "value": "pound_code" },], deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucherCode" }, { "label": "单据类型", "value": "documentType" }, { "label": "磅单编号", "value": "poundCode" },],
deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }], deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }],
deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" }, deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" },
deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }], deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }],
@ -1231,18 +1189,31 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
getSaleDeliveryVoucher(val, val2) {
val2.voucherId = val2.id
val2.businessType = "4"
this.dataForm.deliveryVoucherRelationList.push(val2)
this.dataForm.deliveryVoucherRelationList.splice(0, 1)
val2.productWarehouseEntityList.forEach((item, index) => {
item.productId = item.id
item.businessType = "4"
})
this.dataForm.deliveryProductRelationList.push(val2.productWarehouseEntityList[0])
},
getSaleOrder(val, val2) { getSaleOrder(val, val2) {
debugger this.dataForm.saleOrderInfo = []
this.dataForm.saleOrderInfo[0] = val2 this.dataForm.saleOrderInfo[0] = val2
this.dataForm.subjectBasicId = val2.firstSubjectBasicId this.dataForm.subjectId = val2.firstSubjectBasicId
this.dataForm.deliveryAddress = val2.receiveAddress this.dataForm.deliveryAddress = val2.receiveAddress
this.dataForm.enterpriseId = val2.enterpriseId this.dataForm.enterpriseId = val2.enterpriseId
this.dataForm.warehouseId = val2.deliveryWarehouse this.dataForm.warehouseId = val2.deliveryWarehouse
this.dataForm.shippingAddress = val2.deliveryAddress this.dataForm.shippingAddress = val2.deliveryAddress
this.dataForm.reservedFields1 = val2.businessLineId
val2.businessOrderProductRelationalList.forEach((item, index) => { val2.businessOrderProductRelationalList.forEach((item, index) => {
item.productName = item.name item.productName = item.name
item.purchaseUnitId = item.salesMainUnitId item.purchaseUnitId = item.salesMainUnitId
item.purchaseNum = item.businessNum item.purchaseNum = item.businessNum
item.businessType = "4"
}) })
this.dataForm.deliveryProductRelationList = val2.businessOrderProductRelationalList this.dataForm.deliveryProductRelationList = val2.businessOrderProductRelationalList
}, },

@ -55,12 +55,13 @@
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('businessId')"> <el-col :span="8" v-if="judgeShow('businessId')">
<jnpf-form-tip-item label="退货单" v-if="judgeShow('businessId')" prop="businessId"> <jnpf-form-tip-item label="退货单" v-if="judgeShow('businessId')" prop="businessId">
<JnpfPopupSelect v-model="dataForm.businessId" @change="changeData('businessId',-1)" <JnpfPopupSelect v-model="dataForm.businessId" @change="getSaleReturnCargoOrder"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId"
placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id" placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id"
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code' popupWidth="800px" popupTitle="选择数据" popupType="dialog"
field='businessId' interfaceId="531492712415758085" :pageSize="20" relationField='returnCargoCode' field='businessId' interfaceId="531492712415758085"
:columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'> :pageSize="20" :columnOptions="businessIdcolumnOptions" clearable
:style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -77,6 +78,213 @@
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
<jnpf-form-tip-item label-width="0">
<div class="JNPF-common-title">
<h2></h2>
</div>
<el-table :data="dataForm.saleReturnCargoOrderInfo" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="销售退货订单" v-if="judgeShow('warehousingproduct-productName')"
prop="code">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-productName')">*</span>销售退货订单
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.returnCargoCode"
@change="changeData('warehousingproduct-productName',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-productName')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<!-- <el-table-column label="订单类型" v-if="judgeShow('warehousingproduct-spec')"
prop="spec">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-spec')">*</span>订单类型
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.spec"
@change="changeData('warehousingproduct-spec',scope.$index)" placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-spec')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>期望送达时间
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.inventoryUnitId"
@change="changeData('warehousingproduct-inventoryUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-inventoryUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联客户(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseUnitId"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联业务线" v-if="judgeShow('warehousingproduct-purchaseNum')"
prop="purchaseNum">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseNum"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="业务类型" v-if="judgeShow('warehousingproduct-storageAreaId')"
prop="storageAreaId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-storageAreaId')">*</span>业务类型
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.storageAreaId"
@change="changeData('warehousingproduct-storageAreaId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-storageAreaId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="币种" v-if="judgeShow('warehousingproduct-warehousingUnitId')"
prop="warehousingUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-warehousingUnitId')">*</span>币种
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.warehousingUnitId"
@change="changeData('warehousingproduct-warehousingUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-warehousingUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="销售模式" v-if="judgeShow('warehousingproduct-barCode')"
prop="barCode">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-barCode')">*</span>销售模式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.barCode"
@change="changeData('warehousingproduct-barCode',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-barCode')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="交货方式"
v-if="judgeShow('warehousingproduct-notificationStorageNumber')"
prop="notificationStorageNumber">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-notificationStorageNumber')">*</span>交货方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.notificationStorageNumber"
@change="changeData('warehousingproduct-notificationStorageNumber',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-notificationStorageNumber')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="配送方式" v-if="judgeShow('warehousingproduct-volume')"
prop="volume">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-volume')">*</span>配送方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.volume"
@change="changeData('warehousingproduct-volume',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-volume')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="运输方式" v-if="judgeShow('warehousingproduct-batchNo')"
prop="batchNo">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-batchNo')">*</span>运输方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.batchNo"
@change="changeData('warehousingproduct-batchNo',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-batchNo')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="生产日期" v-if="judgeShow('warehousingproduct-produceDate')"
prop="produceDate">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-produceDate')">*</span>生产日期
</template>
<template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.produceDate"
@change="changeData('warehousingproduct-produceDate',scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')"
placeholder="请选择"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-produceDate')"
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</template>
</el-table-column>
<el-table-column label="备注" v-if="judgeShow('warehousingproduct-remark')"
prop="remark">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-remark')">*</span>备注
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.remark"
@change="changeData('warehousingproduct-remark',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-remark')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column> -->
</el-table>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfGroupTitle content="发货信息" contentPosition="left"> <JnpfGroupTitle content="发货信息" contentPosition="left">
@ -179,15 +387,14 @@
v-if="judgeRequired('deliveryvoucherrelationList-voucherId')">*</span>凭证编号 v-if="judgeRequired('deliveryvoucherrelationList-voucherId')">*</span>凭证编号
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.voucherId" <JnpfPopupSelect v-model="scope.row.voucherId" @change="getSaleReceiptVoucher"
@change="changeData('deliveryvoucherrelation-voucherId',scope.$index)"
:rowIndex="scope.$index" :formData="dataForm" :rowIndex="scope.$index" :formData="dataForm"
:templateJson="interfaceRes.deliveryvoucherrelationvoucherId" :templateJson="interfaceRes.deliveryvoucherrelationvoucherId"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')" :disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')"
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='voucher_code' :field="'voucherId'+scope.$index" relationField='voucherCode' :field="'voucherId'+scope.$index"
interfaceId="530666910480598149" :pageSize="20" interfaceId="531821041316530501" :pageSize="20"
:columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable :columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable
:style='{"width":"100%"}'> :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
@ -892,6 +1099,7 @@ export default {
deliveryVoucherRelationList: [], deliveryVoucherRelationList: [],
deliveryProductRelationList: [], deliveryProductRelationList: [],
version: 0, version: 0,
saleReturnCargoOrderInfo: [],
}, },
tableRequiredData: {}, tableRequiredData: {},
dataRule: dataRule:
@ -941,13 +1149,13 @@ export default {
}, },
receiptTypeOptions: [{ "fullName": "退货收货", "id": "2" }], receiptTypeOptions: [{ "fullName": "退货收货", "id": "2" }],
receiptTypeProps: { "label": "fullName", "value": "id" }, receiptTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "returnCargoCode" },],
reservedFields1columnOptions: [{ "label": "业务线编码", "value": "code" }, { "label": "业务线名称", "value": "name" },], reservedFields1columnOptions: [{ "label": "业务线编码", "value": "code" }, { "label": "业务线名称", "value": "name" },],
subjectIdcolumnOptions: [{ "label": "客户编码", "value": "code" }, { "label": "客户名称", "value": "name" },], subjectIdcolumnOptions: [{ "label": "客户编码", "value": "code" }, { "label": "客户名称", "value": "name" },],
enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },], enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },],
warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },], warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },],
deliveryAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },], deliveryAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },],
deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucher_code" }, { "label": "单据类型", "value": "document_type" }, { "label": "磅单编号", "value": "pound_code" },], deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucherCode" }, { "label": "单据类型", "value": "documentType" }, { "label": "磅单编号", "value": "poundCode" },],
deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }], deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }],
deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" }, deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" },
deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }], deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }],
@ -1023,6 +1231,31 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
getSaleReceiptVoucher(val, val2) {
val2.voucherId = val2.id
val2.businessType = "6"
this.dataForm.deliveryVoucherRelationList.push(val2)
this.dataForm.deliveryVoucherRelationList.splice(0, 1)
val2.productWarehouseEntityList.forEach((item, index) => {
item.productId = item.id
item.businessType = "6"
})
this.dataForm.deliveryProductRelationList.push(val2.productWarehouseEntityList[0])
},
getSaleReturnCargoOrder(val, val2) {
debugger
this.dataForm.saleReturnCargoOrderInfo = []
this.dataForm.saleReturnCargoOrderInfo[0] = val2
this.dataForm.subjectId = val2.subjectId
this.dataForm.deliveryAddress = val2.deliveryAddress
this.dataForm.enterpriseId = val2.enterpriseId
this.dataForm.warehouseId = val2.warehouseId
this.dataForm.shippingAddress = val2.shippingAddress
val2.deliveryProductRelationEntityList.forEach((item, index) => {
item.businessType = "6"
})
this.dataForm.deliveryProductRelationList = val2.deliveryProductRelationEntityList
},
changeData(model, index) { changeData(model, index) {
this.isEdit = false this.isEdit = false
this.childIndex = index this.childIndex = index

@ -56,11 +56,11 @@
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('businessId')"> <el-col :span="8" v-if="judgeShow('businessId')">
<jnpf-form-tip-item label="销售订单" v-if="judgeShow('businessId')" prop="businessId"> <jnpf-form-tip-item label="销售订单" v-if="judgeShow('businessId')" prop="businessId">
<JnpfPopupSelect v-model="dataForm.businessId" @change="changeData('businessId',-1)" <JnpfPopupSelect v-model="dataForm.businessId" @change="getSaleOrder" :rowIndex="null"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessId" :formData="dataForm" :templateJson="interfaceRes.businessId" placeholder="请选择"
placeholder="请选择" :disabled="judgeWrite('businessId')" propsValue="id" :disabled="judgeWrite('businessId')" propsValue="id" popupWidth="800px"
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code' popupTitle="选择数据" popupType="dialog" relationField='code' field='businessId'
field='businessId' interfaceId="529638640356183877" :pageSize="20" interfaceId="529638640356183877" :pageSize="20"
:columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="businessIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -78,6 +78,160 @@
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
<jnpf-form-tip-item label-width="0">
<div class="JNPF-common-title">
<h2></h2>
</div>
<el-table :data="dataForm.saleOrderInfo" size='mini'>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column label="销售订单" v-if="judgeShow('warehousingproduct-productName')"
prop="code">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-productName')">*</span>销售订单
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.code"
@change="changeData('warehousingproduct-productName',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-productName')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="订单类型"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>订单类型
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.orderType"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="orderTypeOptions" :props="orderTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<!-- <el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>期望送达时间
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.inventoryUnitId"
@change="changeData('warehousingproduct-inventoryUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-inventoryUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column> -->
<el-table-column label="关联客户(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.secondCustomName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="关联业务线" v-if="judgeShow('warehousingproduct-purchaseNum')"
prop="purchaseNum">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.businessLineName"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="业务类型"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>业务类型
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.businessOrderType"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="businessOrderTypeOptions" :props="businessOrderTypeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="币种"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>币种
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.currency"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="currencyOptions" :props="currencyProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="销售模式"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>销售模式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.saleMode"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="saleModeOptions" :props="saleModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="交货方式"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>交货方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.transactionMode"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transactionModeOptions" :props="transactionModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="运输方式"
v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>运输方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.transportMode"
@change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transportModeOptions" :props="transportModeProps">
</JnpfSelect>
</template>
</el-table-column>
</el-table>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
<JnpfGroupTitle content="发货信息" contentPosition="left"> <JnpfGroupTitle content="发货信息" contentPosition="left">
@ -180,14 +334,13 @@
v-if="judgeRequired('deliveryvoucherrelationList-voucherId')">*</span>凭证编号 v-if="judgeRequired('deliveryvoucherrelationList-voucherId')">*</span>凭证编号
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfPopupSelect v-model="scope.row.voucherId" <JnpfPopupSelect v-model="scope.row.voucherId" @change="getSaleDeliveryVoucher"
@change="changeData('deliveryvoucherrelation-voucherId',scope.$index)"
:rowIndex="scope.$index" :formData="dataForm" :rowIndex="scope.$index" :formData="dataForm"
:templateJson="interfaceRes.deliveryvoucherrelationvoucherId" :templateJson="interfaceRes.deliveryvoucherrelationvoucherId"
placeholder="请选择" placeholder="请选择"
:disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')" :disabled="judgeWrite('deliveryvoucherrelationList')||judgeWrite('deliveryvoucherrelationList-voucherId')"
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
relationField='voucher_code' :field="'voucherId'+scope.$index" relationField='voucherCode' :field="'voucherId'+scope.$index"
interfaceId="530666910480598149" :pageSize="20" interfaceId="530666910480598149" :pageSize="20"
:columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable :columnOptions="deliveryvoucherrelationvoucherIdcolumnOptions" clearable
:style='{"width":"100%"}'> :style='{"width":"100%"}'>
@ -893,6 +1046,7 @@ export default {
deliveryVoucherRelationList: [], deliveryVoucherRelationList: [],
deliveryProductRelationList: [], deliveryProductRelationList: [],
version: 0, version: 0,
saleOrderInfo: [],
}, },
tableRequiredData: {}, tableRequiredData: {},
dataRule: dataRule:
@ -940,6 +1094,18 @@ export default {
}, },
], ],
}, },
orderTypeOptions: [{ "fullName": "标准销售", "id": "1" }, { "fullName": "计划销售", "id": "2" }, { "fullName": "合同销售", "id": "3" }, { "fullName": "其他销售", "id": "4" }],
orderTypeProps: { "label": "fullName", "value": "id" },
businessOrderTypeOptions: [{ "fullName": "钢材类", "id": "1" }, { "fullName": "设备类", "id": "2" }, { "fullName": "废钢类", "id": "3" }, { "fullName": "低值易耗品", "id": "4" }, { "fullName": "合金类", "id": "5" }, { "fullName": "矿产类", "id": "6" }],
businessOrderTypeProps: { "label": "fullName", "value": "id" },
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
saleModeProps: { "label": "fullName", "value": "id" },
transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }],
transactionModeProps: { "label": "fullName", "value": "id" },
transportModeOptions: [{ "fullName": "公路", "id": "1" }, { "fullName": "铁路", "id": "2" }, { "fullName": "轮船", "id": "3" }, { "fullName": "空运", "id": "4" }, { "fullName": "无", "id": "5" }],
transportModeProps: { "label": "fullName", "value": "id" },
documentTypeOptions: [{ "fullName": "销售退货", "id": "2" }], documentTypeOptions: [{ "fullName": "销售退货", "id": "2" }],
documentTypeProps: { "label": "fullName", "value": "id" }, documentTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },],
@ -948,7 +1114,7 @@ export default {
enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },], enterpriseIdcolumnOptions: [{ "label": "机构编码", "value": "f_en_code" }, { "label": "机构名称", "value": "f_full_name" },],
warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },], warehouseIdcolumnOptions: [{ "label": "仓库编码", "value": "code" }, { "label": "仓库名称", "value": "name" },],
deliveryAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },], deliveryAddresscolumnOptions: [{ "label": "业务类型", "value": "address_type" }, { "label": "国家", "value": "country" }, { "label": "详细地址", "value": "addressDetail" },],
deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucher_code" }, { "label": "单据类型", "value": "document_type" }, { "label": "磅单编号", "value": "pound_code" },], deliveryvoucherrelationvoucherIdcolumnOptions: [{ "label": "凭证编号", "value": "voucherCode" }, { "label": "单据类型", "value": "documentType" }, { "label": "磅单编号", "value": "poundCode" },],
deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }], deliveryvoucherrelationdocumentTypeOptions: [{ "fullName": "收货凭证", "id": "1" }, { "fullName": "发货凭证", "id": "2" }],
deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" }, deliveryvoucherrelationdocumentTypeProps: { "label": "fullName", "value": "id" },
deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }], deliveryvoucherrelationvoucherTypeOptions: [{ "fullName": "磅单", "id": "1" }, { "fullName": "收据", "id": "2" }, { "fullName": "其他", "id": "3" }],
@ -1024,6 +1190,34 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
getSaleDeliveryVoucher(val, val2) {
val2.voucherId = val2.id
val2.businessType = "5"
this.dataForm.deliveryVoucherRelationList.push(val2)
this.dataForm.deliveryVoucherRelationList.splice(0, 1)
val2.productWarehouseEntityList.forEach((item, index) => {
item.productId = item.id
item.businessType = "5"
})
this.dataForm.deliveryProductRelationList.push(val2.productWarehouseEntityList[0])
},
getSaleOrder(val, val2) {
this.dataForm.saleOrderInfo = []
this.dataForm.saleOrderInfo[0] = val2
this.dataForm.subjectId = val2.firstSubjectBasicId
this.dataForm.shippingAddress = val2.receiveAddress
this.dataForm.enterpriseId = val2.enterpriseId
this.dataForm.warehouseId = val2.deliveryWarehouse
this.dataForm.deliveryAddress = val2.deliveryAddress
this.dataForm.reservedFields1 = val2.businessLineId
val2.businessOrderProductRelationalList.forEach((item, index) => {
item.productName = item.name
item.purchaseUnitId = item.salesMainUnitId
item.purchaseNum = item.businessNum
item.businessType = "5"
})
this.dataForm.deliveryProductRelationList = val2.businessOrderProductRelationalList
},
changeData(model, index) { changeData(model, index) {
this.isEdit = false this.isEdit = false
this.childIndex = index this.childIndex = index

@ -84,21 +84,21 @@
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="订单类型" v-if="judgeShow('warehousingproduct-spec')" <el-table-column label="订单类型"
prop="spec"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-spec')">*</span>订单类型 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>订单类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.spec" <JnpfSelect v-model="scope.row.orderType"
@change="changeData('warehousingproduct-spec',scope.$index)" placeholder="请输入" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-spec')" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
clearable :style='{"width":"100%"}'> :options="orderTypeOptions" :props="orderTypeProps">
</JnpfInput> </JnpfSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="期望送达时间" <!-- <el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId"> v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
@ -112,7 +112,7 @@
clearable :style='{"width":"100%"}'> clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="关联客户(二级)" <el-table-column label="关联客户(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId"> v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header"> <template slot="header">
@ -120,7 +120,7 @@
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级) v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级)
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseUnitId" <JnpfInput v-model="scope.row.secondCustomName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)" @change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')" :disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')"
@ -135,7 +135,7 @@
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线 v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseNum" <JnpfInput v-model="scope.row.businessLineName"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)" @change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')" :disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')"
@ -143,127 +143,102 @@
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="业务类型" v-if="judgeShow('warehousingproduct-storageAreaId')" <el-table-column label="业务类型"
prop="storageAreaId"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-storageAreaId')">*</span>业务类型 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>业务类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.storageAreaId" <JnpfSelect v-model="scope.row.businessOrderType"
@change="changeData('warehousingproduct-storageAreaId',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-storageAreaId')" :options="businessOrderTypeOptions" :props="businessOrderTypeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="币种" v-if="judgeShow('warehousingproduct-warehousingUnitId')" <el-table-column label="币种"
prop="warehousingUnitId"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-warehousingUnitId')">*</span>币种 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>币种
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.warehousingUnitId" <JnpfSelect v-model="scope.row.currency"
@change="changeData('warehousingproduct-warehousingUnitId',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-warehousingUnitId')" :options="currencyOptions" :props="currencyProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="销售模式" v-if="judgeShow('warehousingproduct-barCode')" <el-table-column label="销售模式"
prop="barCode"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-barCode')">*</span>销售模式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>销售模式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.barCode" <JnpfSelect v-model="scope.row.saleMode"
@change="changeData('warehousingproduct-barCode',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-barCode')" :options="saleModeOptions" :props="saleModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交货方式" <el-table-column label="交货方式"
v-if="judgeShow('warehousingproduct-notificationStorageNumber')" v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
prop="notificationStorageNumber">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-notificationStorageNumber')">*</span>交货方式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>交货方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.notificationStorageNumber" <JnpfSelect v-model="scope.row.transactionMode"
@change="changeData('warehousingproduct-notificationStorageNumber',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-notificationStorageNumber')" :options="transactionModeOptions" :props="transactionModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="配送方式" v-if="judgeShow('warehousingproduct-volume')" <el-table-column label="运输方式"
prop="volume"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-volume')">*</span>配送方式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>运输方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.volume" <JnpfSelect v-model="scope.row.transportMode"
@change="changeData('warehousingproduct-volume',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-volume')" :options="transportModeOptions" :props="transportModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="运输方式" v-if="judgeShow('warehousingproduct-batchNo')" <!-- <el-table-column label="承运方式"
prop="batchNo"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-batchNo')">*</span>运输方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.batchNo"
@change="changeData('warehousingproduct-batchNo',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-batchNo')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="生产日期" v-if="judgeShow('warehousingproduct-produceDate')"
prop="produceDate">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-produceDate')">*</span>生产日期 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>承运方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.produceDate" <JnpfSelect v-model="scope.row.carriageMode"
@change="changeData('warehousingproduct-produceDate',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
placeholder="请选择" :options="saleModeOptions" :props="saleModeProps">
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-produceDate')" </JnpfSelect>
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" v-if="judgeShow('warehousingproduct-remark')" <el-table-column label="承运商"
prop="remark"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-remark')">*</span>备注 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>承运商
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.remark" <JnpfSelect v-model="scope.row.carrier"
@change="changeData('warehousingproduct-remark',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-remark')" :options="saleModeOptions" :props="saleModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> --> </el-table-column> -->
</el-table> </el-table>
@ -289,7 +264,7 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('shippingAddress')"> <el-col :span="8" v-if="judgeShow('shippingAddress')">
<jnpf-form-tip-item label="货地址" v-if="judgeShow('shippingAddress')" <jnpf-form-tip-item label="货地址" v-if="judgeShow('shippingAddress')"
prop="shippingAddress"> prop="shippingAddress">
<JnpfInput v-model="dataForm.shippingAddress" <JnpfInput v-model="dataForm.shippingAddress"
@change="changeData('shippingAddress',-1)" placeholder="请输入" @change="changeData('shippingAddress',-1)" placeholder="请输入"
@ -316,7 +291,7 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('warehouseId')"> <el-col :span="8" v-if="judgeShow('warehouseId')">
<jnpf-form-tip-item label="货仓库" v-if="judgeShow('warehouseId')" prop="warehouseId"> <jnpf-form-tip-item label="货仓库" v-if="judgeShow('warehouseId')" prop="warehouseId">
<JnpfPopupSelect v-model="dataForm.warehouseId" @change="changeData('warehouseId',-1)" <JnpfPopupSelect v-model="dataForm.warehouseId" @change="changeData('warehouseId',-1)"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.warehouseId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.warehouseId"
placeholder="请选择" :disabled="judgeWrite('warehouseId')" propsValue="id" placeholder="请选择" :disabled="judgeWrite('warehouseId')" propsValue="id"
@ -327,7 +302,7 @@
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('deliveryAddress')"> <el-col :span="8" v-if="judgeShow('deliveryAddress')">
<jnpf-form-tip-item label="货地址" v-if="judgeShow('deliveryAddress')" <jnpf-form-tip-item label="货地址" v-if="judgeShow('deliveryAddress')"
prop="deliveryAddress"> prop="deliveryAddress">
<JnpfPopupSelect v-model="dataForm.deliveryAddress" <JnpfPopupSelect v-model="dataForm.deliveryAddress"
@change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm" @change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm"
@ -676,6 +651,18 @@ export default {
dataRule: dataRule:
{ {
}, },
orderTypeOptions: [{ "fullName": "标准销售", "id": "1" }, { "fullName": "计划销售", "id": "2" }, { "fullName": "合同销售", "id": "3" }, { "fullName": "其他销售", "id": "4" }],
orderTypeProps: { "label": "fullName", "value": "id" },
businessOrderTypeOptions: [{ "fullName": "钢材类", "id": "1" }, { "fullName": "设备类", "id": "2" }, { "fullName": "废钢类", "id": "3" }, { "fullName": "低值易耗品", "id": "4" }, { "fullName": "合金类", "id": "5" }, { "fullName": "矿产类", "id": "6" }],
businessOrderTypeProps: { "label": "fullName", "value": "id" },
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
saleModeProps: { "label": "fullName", "value": "id" },
transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }],
transactionModeProps: { "label": "fullName", "value": "id" },
transportModeOptions: [{ "fullName": "公路", "id": "1" }, { "fullName": "铁路", "id": "2" }, { "fullName": "轮船", "id": "3" }, { "fullName": "空运", "id": "4" }, { "fullName": "无", "id": "5" }],
transportModeProps: { "label": "fullName", "value": "id" },
warehousingTypeOptions: [{ "fullName": "退货入库", "id": "2" }], warehousingTypeOptions: [{ "fullName": "退货入库", "id": "2" }],
warehousingTypeProps: { "label": "fullName", "value": "id" }, warehousingTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },],
@ -728,7 +715,7 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
getSaleOrder(val, val2) { getSaleOrder(val, val2) {
debugger this.dataForm.saleOrderInfo = []
this.dataForm.saleOrderInfo[0] = val2 this.dataForm.saleOrderInfo[0] = val2
this.dataForm.subjectBasicId = val2.firstSubjectBasicId this.dataForm.subjectBasicId = val2.firstSubjectBasicId
this.dataForm.shippingAddress = val2.receiveAddress this.dataForm.shippingAddress = val2.receiveAddress

@ -503,7 +503,6 @@ export default {
}); });
}, },
goBack() { goBack() {
debugger
this.visible = false this.visible = false
this.$router.go(-1) this.$router.go(-1)
// this.$emit('refreshDataList', true) // this.$emit('refreshDataList', true)
@ -570,7 +569,6 @@ export default {
this.dataForm.orderNum = data.length this.dataForm.orderNum = data.length
let list = [] let list = []
data.forEach((item, index) => { data.forEach((item, index) => {
debugger
console.log("2", item.businessOrderProductRelationalList); console.log("2", item.businessOrderProductRelationalList);
this.dataForm.businessOrderList.push(item) this.dataForm.businessOrderList.push(item)
this.dataForm.businessorderproductrelationalList = [...item.businessOrderProductRelationalList, ...this.dataForm.businessorderproductrelationalList] this.dataForm.businessorderproductrelationalList = [...item.businessOrderProductRelationalList, ...this.dataForm.businessorderproductrelationalList]

@ -520,7 +520,6 @@ export default {
}); });
}, },
goBack() { goBack() {
debugger
this.visible = false this.visible = false
this.$router.go(-1) this.$router.go(-1)
// this.$emit('refreshDataList', true) // this.$emit('refreshDataList', true)
@ -587,7 +586,6 @@ export default {
this.dataForm.orderNum = data.length this.dataForm.orderNum = data.length
let list = [] let list = []
data.forEach((item, index) => { data.forEach((item, index) => {
debugger
console.log("2", item.businessOrderProductRelationalList); console.log("2", item.businessOrderProductRelationalList);
this.dataForm.businessOrderList.push(item) this.dataForm.businessOrderList.push(item)
this.dataForm.businessorderproductrelationalList = [...item.businessOrderProductRelationalList, ...this.dataForm.businessorderproductrelationalList] this.dataForm.businessorderproductrelationalList = [...item.businessOrderProductRelationalList, ...this.dataForm.businessorderproductrelationalList]

@ -85,14 +85,14 @@
</JnpfOpenData> </JnpfOpenData>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('deliveryType')"> <!-- <el-col :span="8" v-if="judgeShow('deliveryType')">
<jnpf-form-tip-item label="配送方式" v-if="judgeShow('deliveryType')" prop="deliveryType"> <jnpf-form-tip-item label="配送方式" v-if="judgeShow('deliveryType')" prop="deliveryType">
<JnpfSelect v-model="dataForm.deliveryType" @change="changeData('deliveryType',-1)" <JnpfSelect v-model="dataForm.deliveryType" @change="changeData('deliveryType',-1)"
placeholder="请选择" :disabled="judgeWrite('deliveryType')" clearable placeholder="请选择" :disabled="judgeWrite('deliveryType')" clearable
:style='{"width":"100%"}' :options="deliveryTypeOptions" :props="deliveryTypeProps"> :style='{"width":"100%"}' :options="deliveryTypeOptions" :props="deliveryTypeProps">
</JnpfSelect> </JnpfSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col> -->
<template v-if="dataForm.orderType == 2"> <template v-if="dataForm.orderType == 2">
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item> <jnpf-form-tip-item>
@ -105,8 +105,8 @@
<JnpfPopupSelect v-model="dataForm.contractId" @change="contractInfo" <JnpfPopupSelect v-model="dataForm.contractId" @change="contractInfo"
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.contractId" :rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.contractId"
placeholder="请选择" propsValue="id" popupWidth="800px" popupTitle="选择数据" placeholder="请选择" propsValue="id" popupWidth="800px" popupTitle="选择数据"
popupType="dialog" relationField='contract_name' field='contractId' popupType="dialog" relationField='contractName' field='contractId'
interfaceId="523139566396246597" :pageSize="20" interfaceId="531872211288459717" :pageSize="20"
:columnOptions="contractIdcolumnOptions" clearable :style='{"width":"100%"}'> :columnOptions="contractIdcolumnOptions" clearable :style='{"width":"100%"}'>
</JnpfPopupSelect> </JnpfPopupSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
@ -122,12 +122,120 @@
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.contractName" <JnpfInput v-model="scope.row.contractName"
@change="changeData('businessorderproductrelational-tax',scope.$index)" @change="changeData('businessorderproductrelational-tax',scope.$index)"
placeholder="请输入" placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
:disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-tax')" </JnpfInput>
clearable :style='{"width":"100%"}'> </template>
</el-table-column>
<el-table-column label="币种" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>币种
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.currency"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="currencyOptions" :props="currencyProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="销售模式" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>销售模式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.procurementModel"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="saleModeOptions" :props="saleModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="关联销售合同" v-if="judgeShow('businessorderproductrelational-tax')"
prop="tax">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('businessorderproductrelationalList-tax')"></span>关联销售合同
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.relatedContractName"
@change="changeData('businessorderproductrelational-tax',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="定价模式" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>定价模式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.pricingModel"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="fixPriceModeOptions" :props="fixPriceModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="关联客户(二级)"
v-if="judgeShow('businessorderproductrelational-tax')" prop="tax">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('businessorderproductrelationalList-tax')"></span>关联客户(二级)
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.secondCustomName"
@change="changeData('businessorderproductrelational-tax',scope.$index)"
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交货方式" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>交货方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.deliveryModel"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transactionModeOptions" :props="transactionModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="运输方式" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>运输方式
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.modeTransport"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="transportModeOptions" :props="transportModeProps">
</JnpfSelect>
</template>
</el-table-column>
<el-table-column label="费用承担主体" v-if="judgeShow('settlementinfo-underpaymentMethod')"
prop="underpaymentMethod">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('settlementinfoList-underpaymentMethod')">*</span>费用承担主体
</template>
<template slot-scope="scope">
<JnpfSelect v-model="scope.row.costBearingMian"
@change="changeData('settlementinfo-underpaymentMethod',scope.$index)"
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:options="costBearingMianOptions" :props="costBearingMianProps">
</JnpfSelect>
</template>
</el-table-column>
</el-table> </el-table>
</template> </template>
<template v-if="dataForm.orderType == 1"> <template v-if="dataForm.orderType == 1">
@ -153,20 +261,22 @@
</JnpfSelect> </JnpfSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8" v-if="judgeShow('correlatedOrderId')"> <template v-if="this.dataForm.saleMode == '1'">
<jnpf-form-tip-item label="关联采购" v-if="judgeShow('correlatedOrderId')" <el-col :span="8" v-if="judgeShow('correlatedOrderId')">
prop="correlatedOrderId"> <jnpf-form-tip-item label="关联采购" v-if="judgeShow('correlatedOrderId')"
<JnpfPopupSelect v-model="dataForm.correlatedOrderId" prop="correlatedOrderId">
@change="changeData('correlatedOrderId',-1)" :rowIndex="null" :formData="dataForm" <JnpfPopupSelect v-model="dataForm.correlatedOrderId"
:templateJson="interfaceRes.correlatedOrderId" placeholder="请选择" @change="changeData('correlatedOrderId',-1)" :rowIndex="null"
:disabled="judgeWrite('correlatedOrderId')" propsValue="id" popupWidth="800px" :formData="dataForm" :templateJson="interfaceRes.correlatedOrderId"
popupTitle="选择数据" popupType="dialog" relationField='code' placeholder="请选择" :disabled="judgeWrite('correlatedOrderId')" propsValue="id"
field='correlatedOrderId' interfaceId="522687073317030149" :pageSize="20" popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='code'
:columnOptions="correlatedOrderIdcolumnOptions" clearable field='correlatedOrderId' interfaceId="522687073317030149" :pageSize="20"
:style='{"width":"100%"}'> :columnOptions="correlatedOrderIdcolumnOptions" clearable
</JnpfPopupSelect> :style='{"width":"100%"}'>
</jnpf-form-tip-item> </JnpfPopupSelect>
</el-col> </jnpf-form-tip-item>
</el-col>
</template>
<el-col :span="8" v-if="judgeShow('fixPriceMode')"> <el-col :span="8" v-if="judgeShow('fixPriceMode')">
<jnpf-form-tip-item label="定价模式" v-if="judgeShow('fixPriceMode')" prop="fixPriceMode"> <jnpf-form-tip-item label="定价模式" v-if="judgeShow('fixPriceMode')" prop="fixPriceMode">
<JnpfSelect v-model="dataForm.fixPriceMode" @change="changeData('fixPriceMode',-1)" <JnpfSelect v-model="dataForm.fixPriceMode" @change="changeData('fixPriceMode',-1)"
@ -646,7 +756,7 @@
@change="changeData('businessorderproductrelational-businessNum',scope.$index)" @change="changeData('businessorderproductrelational-businessNum',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-businessNum')" :disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-businessNum')"
addonAfter="吨" clearable :style='{"width":"100%"}'> clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -662,7 +772,7 @@
@change="changeData('businessorderproductrelational-businessPrice',scope.$index)" @change="changeData('businessorderproductrelational-businessPrice',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-businessPrice')" :disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-businessPrice')"
addonAfter="吨" clearable :style='{"width":"100%"}'> clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -877,7 +987,7 @@
@change="changeData('businessorderproductrelational-businessNum',scope.$index)" @change="changeData('businessorderproductrelational-businessNum',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-businessNum')" :disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-businessNum')"
addonAfter="吨" clearable :style='{"width":"100%"}'> clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -893,7 +1003,7 @@
@change="changeData('businessorderproductrelational-businessPrice',scope.$index)" @change="changeData('businessorderproductrelational-businessPrice',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-businessPrice')" :disabled="judgeWrite('businessorderproductrelationalList')||judgeWrite('businessorderproductrelationalList-businessPrice')"
addonAfter="吨" clearable :style='{"width":"100%"}'> clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
@ -1102,14 +1212,14 @@ export default {
Vmodel: "", Vmodel: "",
currVmodel: "", currVmodel: "",
dataForm: { dataForm: {
orderType: "1", orderType: "2",
code: undefined, code: undefined,
businessLineId: undefined, businessLineId: undefined,
counterpartOrderCode: undefined, counterpartOrderCode: undefined,
urgentOrder: "1", urgentOrder: "1",
expectArriveDateStart: undefined, expectArriveDateStart: undefined,
createOrderDate: undefined, createOrderDate: undefined,
deliveryType: undefined, deliveryType: "1",
contractId: undefined, contractId: undefined,
currency: undefined, currency: undefined,
saleMode: undefined, saleMode: undefined,
@ -1253,7 +1363,7 @@ export default {
urgentOrderProps: { "label": "fullName", "value": "id" }, urgentOrderProps: { "label": "fullName", "value": "id" },
deliveryTypeOptions: [{ "fullName": "无", "id": "1" }, { "fullName": "仓配", "id": "2" }, { "fullName": "直达", "id": "3" }], deliveryTypeOptions: [{ "fullName": "无", "id": "1" }, { "fullName": "仓配", "id": "2" }, { "fullName": "直达", "id": "3" }],
deliveryTypeProps: { "label": "fullName", "value": "id" }, deliveryTypeProps: { "label": "fullName", "value": "id" },
contractIdcolumnOptions: [{ "label": "合同编码", "value": "contract_number" }, { "label": "合同名称", "value": "contract_name" },], contractIdcolumnOptions: [{ "label": "合同编码", "value": "contractNumber" }, { "label": "合同名称", "value": "contractName" },],
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }], currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" }, currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }], saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
@ -1288,6 +1398,8 @@ export default {
businessorderproductrelationalproductIdcolumnOptions2: [{ "label": "商品编码", "value": "code" }, { "label": "商品名称", "value": "name" }, { "label": "商品规格", "value": "spec" },], businessorderproductrelationalproductIdcolumnOptions2: [{ "label": "商品编码", "value": "code" }, { "label": "商品名称", "value": "name" }, { "label": "商品规格", "value": "spec" },],
businessorderproductrelationalsalesMainUnitIdOptions: [{ "fullName": "选项一", "id": "1" }, { "fullName": "选项二", "id": "2" }], businessorderproductrelationalsalesMainUnitIdOptions: [{ "fullName": "选项一", "id": "1" }, { "fullName": "选项二", "id": "2" }],
businessorderproductrelationalsalesMainUnitIdProps: { "label": "fullName", "value": "id" }, businessorderproductrelationalsalesMainUnitIdProps: { "label": "fullName", "value": "id" },
costBearingMianOptions: [{ "fullName": "甲方", "id": "1" }, { "fullName": "乙方", "id": "2" }],
costBearingMianProps: { "label": "fullName", "value": "id" },
childIndex: -1, childIndex: -1,
isEdit: false, isEdit: false,
interfaceRes: { interfaceRes: {
@ -1359,24 +1471,24 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
productInfo(val, val2) { productInfo(val, val2) {
debugger
// this.dataForm.businessOrderProductRelationalList = [] // this.dataForm.businessOrderProductRelationalList = []
this.dataForm.businessOrderProductRelationalList.push(val2) this.dataForm.businessOrderProductRelationalList.push(val2)
this.dataForm.businessOrderProductRelationalList.splice(0, 1) this.dataForm.businessOrderProductRelationalList.splice(0, 1)
}, },
productInfo2(val, val2) { productInfo2(val, val2) {
debugger
// this.dataForm.businessOrderProductRelationalList = [] // this.dataForm.businessOrderProductRelationalList = []
this.dataForm.businessOrderProductRelationalList.push(val2) this.dataForm.businessOrderProductRelationalList.push(val2)
this.dataForm.businessOrderProductRelationalList.splice(0, 1) this.dataForm.businessOrderProductRelationalList.splice(0, 1)
}, },
contractInfo(val, val2) { contractInfo(val, val2) {
debugger
this.dataForm.contractList = [] this.dataForm.contractList = []
this.dataForm.contractList[0] = val2 this.dataForm.contractList[0] = val2
this.dataForm.firstSubjectBasicId = val2.customName this.dataForm.firstSubjectBasicId = val2.subject
this.dataForm.enterpriseId = val2.enterpriseName this.dataForm.enterpriseId = val2.deptId
this.dataForm.receiveAddress = val2.delivery_location this.dataForm.receiveAddress = val2.deliveryLocation
this.dataForm.transportMode = val2.mode_transport this.dataForm.transportMode = val2.modeTransport
this.dataForm.transactionMode = val2.deliveryMethod
}, },
getCustomName(val, val2) { getCustomName(val, val2) {
this.dataForm.settlementInfoList = []; this.dataForm.settlementInfoList = [];

@ -548,7 +548,6 @@ export default {
return return
} }
const data = this.multipleSelectionItem const data = this.multipleSelectionItem
debugger
this.boundCheckVisible = true this.boundCheckVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.BoundCheck.init(data) this.$refs.BoundCheck.init(data)

@ -675,12 +675,10 @@ export default {
}, },
init(data) { init(data) {
debugger
this.dataForm.deliveryWarehouse = data[0].deliveryWarehouse; this.dataForm.deliveryWarehouse = data[0].deliveryWarehouse;
this.dataForm.orderNum = data.length this.dataForm.orderNum = data.length
let list = [] let list = []
data.forEach((item, index) => { data.forEach((item, index) => {
debugger
console.log("2", item.businessOrderProductRelationalList); console.log("2", item.businessOrderProductRelationalList);
this.dataForm.redeliveryoriginalorderrelationList.push(item) this.dataForm.redeliveryoriginalorderrelationList.push(item)
this.dataForm.redeliveryproductrelationList = [...item.businessOrderProductRelationalList, ...this.dataForm.redeliveryproductrelationList] this.dataForm.redeliveryproductrelationList = [...item.businessOrderProductRelationalList, ...this.dataForm.redeliveryproductrelationList]

@ -84,21 +84,21 @@
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="订单类型" v-if="judgeShow('warehousingproduct-spec')" <el-table-column label="订单类型"
prop="spec"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-spec')">*</span>订单类型 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>订单类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.spec" <JnpfSelect v-model="scope.row.orderType"
@change="changeData('warehousingproduct-spec',scope.$index)" placeholder="请输入" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-spec')" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
clearable :style='{"width":"100%"}'> :options="orderTypeOptions" :props="orderTypeProps">
</JnpfInput> </JnpfSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="期望送达时间" <!-- <el-table-column label="期望送达时间"
v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId"> v-if="judgeShow('warehousingproduct-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
@ -112,7 +112,7 @@
clearable :style='{"width":"100%"}'> clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="关联客户(二级)" <el-table-column label="关联客户(二级)"
v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId"> v-if="judgeShow('warehousingproduct-purchaseUnitId')" prop="purchaseUnitId">
<template slot="header"> <template slot="header">
@ -120,7 +120,7 @@
v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级) v-if="judgeRequired('warehousingproductList-purchaseUnitId')">*</span>关联客户(二级)
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseUnitId" <JnpfInput v-model="scope.row.secondCustomName"
@change="changeData('warehousingproduct-purchaseUnitId',scope.$index)" @change="changeData('warehousingproduct-purchaseUnitId',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')" :disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseUnitId')"
@ -135,7 +135,7 @@
v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线 v-if="judgeRequired('warehousingproductList-purchaseNum')">*</span>关联业务线
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.purchaseNum" <JnpfInput v-model="scope.row.businessLineName"
@change="changeData('warehousingproduct-purchaseNum',scope.$index)" @change="changeData('warehousingproduct-purchaseNum',scope.$index)"
placeholder="请输入" placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')" :disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-purchaseNum')"
@ -143,127 +143,102 @@
</JnpfInput> </JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="业务类型" v-if="judgeShow('warehousingproduct-storageAreaId')" <el-table-column label="业务类型"
prop="storageAreaId"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-storageAreaId')">*</span>业务类型 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>业务类型
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.storageAreaId" <JnpfSelect v-model="scope.row.businessOrderType"
@change="changeData('warehousingproduct-storageAreaId',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-storageAreaId')" :options="businessOrderTypeOptions" :props="businessOrderTypeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="币种" v-if="judgeShow('warehousingproduct-warehousingUnitId')" <el-table-column label="币种"
prop="warehousingUnitId"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-warehousingUnitId')">*</span>币种 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>币种
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.warehousingUnitId" <JnpfSelect v-model="scope.row.currency"
@change="changeData('warehousingproduct-warehousingUnitId',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-warehousingUnitId')" :options="currencyOptions" :props="currencyProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="销售模式" v-if="judgeShow('warehousingproduct-barCode')" <el-table-column label="销售模式"
prop="barCode"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-barCode')">*</span>销售模式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>销售模式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.barCode" <JnpfSelect v-model="scope.row.saleMode"
@change="changeData('warehousingproduct-barCode',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-barCode')" :options="saleModeOptions" :props="saleModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="交货方式" <el-table-column label="交货方式"
v-if="judgeShow('warehousingproduct-notificationStorageNumber')" v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
prop="notificationStorageNumber">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-notificationStorageNumber')">*</span>交货方式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>交货方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.notificationStorageNumber" <JnpfSelect v-model="scope.row.transactionMode"
@change="changeData('warehousingproduct-notificationStorageNumber',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-notificationStorageNumber')" :options="transactionModeOptions" :props="transactionModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="配送方式" v-if="judgeShow('warehousingproduct-volume')" <el-table-column label="运输方式"
prop="volume"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-volume')">*</span>配送方式 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>运输方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.volume" <JnpfSelect v-model="scope.row.transportMode"
@change="changeData('warehousingproduct-volume',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-volume')" :options="transportModeOptions" :props="transportModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="运输方式" v-if="judgeShow('warehousingproduct-batchNo')" <!-- <el-table-column label="承运方式"
prop="batchNo"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header">
<span class="required-sign"
v-if="judgeRequired('warehousingproductList-batchNo')">*</span>运输方式
</template>
<template slot-scope="scope">
<JnpfInput v-model="scope.row.batchNo"
@change="changeData('warehousingproduct-batchNo',scope.$index)"
placeholder="请输入"
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-batchNo')"
clearable :style='{"width":"100%"}'>
</JnpfInput>
</template>
</el-table-column>
<el-table-column label="生产日期" v-if="judgeShow('warehousingproduct-produceDate')"
prop="produceDate">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-produceDate')">*</span>生产日期 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>承运方式
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfDatePicker v-model="scope.row.produceDate" <JnpfSelect v-model="scope.row.carriageMode"
@change="changeData('warehousingproduct-produceDate',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
placeholder="请选择" :options="saleModeOptions" :props="saleModeProps">
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-produceDate')" </JnpfSelect>
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
</JnpfDatePicker>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" v-if="judgeShow('warehousingproduct-remark')" <el-table-column label="承运商"
prop="remark"> v-if="judgeShow('warehousingproductList-inventoryUnitId')" prop="inventoryUnitId">
<template slot="header"> <template slot="header">
<span class="required-sign" <span class="required-sign"
v-if="judgeRequired('warehousingproductList-remark')">*</span>备注 v-if="judgeRequired('warehousingproductList-inventoryUnitId')">*</span>承运商
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<JnpfInput v-model="scope.row.remark" <JnpfSelect v-model="scope.row.carrier"
@change="changeData('warehousingproduct-remark',scope.$index)" @change="changeData('warehousingproductList-inventoryUnitId',scope.$index)"
placeholder="请输入" placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
:disabled="judgeWrite('warehousingproductList')||judgeWrite('warehousingproductList-remark')" :options="saleModeOptions" :props="saleModeProps">
clearable :style='{"width":"100%"}'> </JnpfSelect>
</JnpfInput>
</template> </template>
</el-table-column> --> </el-table-column> -->
</el-table> </el-table>
@ -291,7 +266,7 @@
<el-col :span="8" v-if="judgeShow('shippingAddress')"> <el-col :span="8" v-if="judgeShow('shippingAddress')">
<jnpf-form-tip-item label="收货地址" v-if="judgeShow('shippingAddress')" <jnpf-form-tip-item label="收货地址" v-if="judgeShow('shippingAddress')"
prop="shippingAddress"> prop="shippingAddress">
<JnpfInput v-model="dataForm.shippingAddress" <JnpfInput v-model="dataForm.deliveryAddress"
@change="changeData('shippingAddress',-1)" placeholder="请输入" @change="changeData('shippingAddress',-1)" placeholder="请输入"
:disabled="judgeWrite('shippingAddress')" clearable :style='{"width":"100%"}'> :disabled="judgeWrite('shippingAddress')" clearable :style='{"width":"100%"}'>
</JnpfInput> </JnpfInput>
@ -329,7 +304,7 @@
<el-col :span="8" v-if="judgeShow('deliveryAddress')"> <el-col :span="8" v-if="judgeShow('deliveryAddress')">
<jnpf-form-tip-item label="发货地址" v-if="judgeShow('deliveryAddress')" <jnpf-form-tip-item label="发货地址" v-if="judgeShow('deliveryAddress')"
prop="deliveryAddress"> prop="deliveryAddress">
<JnpfPopupSelect v-model="dataForm.deliveryAddress" <JnpfPopupSelect v-model="dataForm.shippingAddress"
@change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm" @change="changeData('deliveryAddress',-1)" :rowIndex="null" :formData="dataForm"
:templateJson="interfaceRes.deliveryAddress" placeholder="请选择" :templateJson="interfaceRes.deliveryAddress" placeholder="请选择"
:disabled="judgeWrite('deliveryAddress')" propsValue="id" popupWidth="800px" :disabled="judgeWrite('deliveryAddress')" propsValue="id" popupWidth="800px"
@ -676,6 +651,18 @@ export default {
dataRule: dataRule:
{ {
}, },
orderTypeOptions: [{ "fullName": "标准销售", "id": "1" }, { "fullName": "计划销售", "id": "2" }, { "fullName": "合同销售", "id": "3" }, { "fullName": "其他销售", "id": "4" }],
orderTypeProps: { "label": "fullName", "value": "id" },
businessOrderTypeOptions: [{ "fullName": "钢材类", "id": "1" }, { "fullName": "设备类", "id": "2" }, { "fullName": "废钢类", "id": "3" }, { "fullName": "低值易耗品", "id": "4" }, { "fullName": "合金类", "id": "5" }, { "fullName": "矿产类", "id": "6" }],
businessOrderTypeProps: { "label": "fullName", "value": "id" },
currencyOptions: [{ "fullName": "人民币", "id": "1" }, { "fullName": "港元", "id": "2" }, { "fullName": "美元", "id": "3" }, { "fullName": "欧元", "id": "4" }, { "fullName": "加币", "id": "5" }, { "fullName": "日元", "id": "6" }, { "fullName": "台币", "id": "7" }],
currencyProps: { "label": "fullName", "value": "id" },
saleModeOptions: [{ "fullName": "以销定采", "id": "1" }, { "fullName": "以采定销", "id": "2" }],
saleModeProps: { "label": "fullName", "value": "id" },
transactionModeOptions: [{ "fullName": "快递交货", "id": "1" }, { "fullName": "送货上门", "id": "2" }, { "fullName": "上门提货", "id": "3" }],
transactionModeProps: { "label": "fullName", "value": "id" },
transportModeOptions: [{ "fullName": "公路", "id": "1" }, { "fullName": "铁路", "id": "2" }, { "fullName": "轮船", "id": "3" }, { "fullName": "空运", "id": "4" }, { "fullName": "无", "id": "5" }],
transportModeProps: { "label": "fullName", "value": "id" },
warehousingTypeOptions: [{ "fullName": "销售出库", "id": "8" }], warehousingTypeOptions: [{ "fullName": "销售出库", "id": "8" }],
warehousingTypeProps: { "label": "fullName", "value": "id" }, warehousingTypeProps: { "label": "fullName", "value": "id" },
businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },], businessIdcolumnOptions: [{ "label": "订单编号", "value": "code" },],
@ -728,13 +715,13 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
getSaleOrder(val, val2) { getSaleOrder(val, val2) {
debugger this.dataForm.saleOrderInfo = []
this.dataForm.saleOrderInfo[0] = val2 this.dataForm.saleOrderInfo[0] = val2
this.dataForm.subjectBasicId = val2.firstSubjectBasicId this.dataForm.subjectBasicId = val2.firstSubjectBasicId
this.dataForm.shippingAddress = val2.receiveAddress this.dataForm.deliveryAddress = val2.receiveAddress
this.dataForm.enterpriseId = val2.enterpriseId this.dataForm.enterpriseId = val2.enterpriseId
this.dataForm.warehouseId = val2.deliveryWarehouse this.dataForm.warehouseId = val2.deliveryWarehouse
this.dataForm.deliveryAddress = val2.deliveryAddress this.dataForm.shippingAddress = val2.deliveryAddress
val2.businessOrderProductRelationalList.forEach((item, index) => { val2.businessOrderProductRelationalList.forEach((item, index) => {
item.productName = item.name item.productName = item.name
item.purchaseUnitId = item.salesMainUnitId item.purchaseUnitId = item.salesMainUnitId

@ -614,8 +614,6 @@ export default {
flowId: item.id, flowId: item.id,
opType: '-1' opType: '-1'
} }
// debugger
// console.log(item.id);
this.flowListVisible = false this.flowListVisible = false
this.flowVisible = true this.flowVisible = true
this.$nextTick(() => { this.$nextTick(() => {

@ -728,7 +728,6 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
getSaleOrder(val, val2) { getSaleOrder(val, val2) {
debugger
this.dataForm.saleOrderInfo[0] = val2 this.dataForm.saleOrderInfo[0] = val2
this.dataForm.subjectBasicId = val2.firstSubjectBasicId this.dataForm.subjectBasicId = val2.firstSubjectBasicId
this.dataForm.shippingAddress = val2.receiveAddress this.dataForm.shippingAddress = val2.receiveAddress

@ -244,7 +244,6 @@ export default {
// this.multipleSelectionItem.warehousingId = this.multipleSelectionItem.id // this.multipleSelectionItem.warehousingId = this.multipleSelectionItem.id
// console.log(this.multipleSelectionItem); // console.log(this.multipleSelectionItem);
// debugger
this.flowListVisible = true this.flowListVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.purRouter.init(data) this.$refs.purRouter.init(data)

@ -728,7 +728,6 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
getSaleOrder(val, val2) { getSaleOrder(val, val2) {
debugger
this.dataForm.saleOrderInfo[0] = val2 this.dataForm.saleOrderInfo[0] = val2
this.dataForm.subjectBasicId = val2.first_subject_basic_id this.dataForm.subjectBasicId = val2.first_subject_basic_id
this.dataForm.shippingAddress = val2.receiveAddress this.dataForm.shippingAddress = val2.receiveAddress

@ -628,7 +628,6 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
changeDataProductList(model, row) { changeDataProductList(model, row) {
debugger
this.dataForm.spec = row.spec this.dataForm.spec = row.spec
this.dataForm.inventoryType = row.inventory_types this.dataForm.inventoryType = row.inventory_types
this.dataForm.inventoryUnitIds = row.inventory_unit_ids this.dataForm.inventoryUnitIds = row.inventory_unit_ids

Loading…
Cancel
Save