放开接口校验

jg-waiwang-pro
vayne 3 months ago
parent 7287e3dc14
commit 0ae631b2e4

@ -113,6 +113,7 @@ springdoc:
# password: 123456
config:
yunguaninterfaceurl: http://172.16.1.50:8020
kkFileUrl: http://127.0.0.1:30090/FileServer/ #kkfile文件预览服务地址
ApiDomain: http://127.0.0.1:30000 #后端域名(文档预览中使用)
FrontDomain: http://127.0.0.1:3000 #前端域名(文档预览中使用)

@ -113,6 +113,7 @@ springdoc:
# password: 123456
config:
yunguaninterfaceurl: http://172.16.8.54:8020
kkFileUrl: http://127.0.0.1:30090/FileServer/ #kkfile文件预览服务地址
ApiDomain: http://127.0.0.1:40000 #后端域名(文档预览中使用)
FrontDomain: http://127.0.0.1:9000 #前端域名(文档预览中使用)

@ -116,6 +116,7 @@ springdoc:
# password: 123456
config:
yunguaninterfaceurl: http://172.16.1.50:8020
kkFileUrl: http://127.0.0.1:30090/FileServer/ #kkfile文件预览服务地址
ApiDomain: http://127.0.0.1:50000 #后端域名(文档预览中使用)
FrontDomain: http://127.0.0.1:3000 #前端域名(文档预览中使用)

@ -32,6 +32,7 @@ import java.util.stream.Collectors;
import jnpf.base.model.ColumnDataModel;
import jnpf.util.wxutil.HttpUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import jnpf.database.model.superQuery.SuperJsonModel;
@ -111,6 +112,8 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
private BusinessOrderProductRelationalService businessOrderProductRelationalService;
@Autowired
private BusinessLineService businessLineService;
@Value("${config.yunguaninterfaceurl}")
private String yunguaninterfaceurl;
@Override
public List<CwsettlementEntity> getList(CwsettlementPagination cwsettlementPagination){
@ -1319,7 +1322,7 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
yunguanSaleSettlementProductModel.setERR_MESSAGE("");
yunguanSaleSettlementProductModelList.add(yunguanSaleSettlementProductModel);
}
JSONObject purchaseCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/pur/actLine", "POST", JsonUtil.getObjectToString(yunguanSaleSettlementProductModelList));
JSONObject purchaseCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/pur/actLine", "POST", JsonUtil.getObjectToString(yunguanSaleSettlementProductModelList));
if (ObjectUtil.isNotEmpty(purchaseCode)){
if (purchaseCode.get("code").equals("200")) {
cwsettlementEntity.setErpMark(purchaseCode.get("code").toString());
@ -1406,7 +1409,7 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
yunguanSaleSettlementModel.setESB_DTM(null);
yunguanSaleSettlementModel.setESB_MESSAGE("");
yunguanSaleSettlementModel.setLINE_SUM(cwsettlementEntity.getCwsettlementsummaryList().size());
JSONObject purchaseCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/pur/actHead", "POST", JsonUtil.getObjectToString(yunguanSaleSettlementModel));
JSONObject purchaseCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/pur/actHead", "POST", JsonUtil.getObjectToString(yunguanSaleSettlementModel));
if (ObjectUtil.isNotEmpty(purchaseCode)){
if (purchaseCode.get("code").equals("200")) {
cwsettlementEntity.setErpMark(purchaseCode.get("code").toString());
@ -1505,7 +1508,7 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
yunguanSaleSettlementProductModel.setCK_ORDER(cwsettlementsummaryModel.getDocmentNo());
yunguanSaleSettlementProductModelList.add(yunguanSaleSettlementProductModel);
}
JSONObject purchaseCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/sal/invLine", "POST", JsonUtil.getObjectToString(yunguanSaleSettlementProductModelList));
JSONObject purchaseCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/sal/invLine", "POST", JsonUtil.getObjectToString(yunguanSaleSettlementProductModelList));
if (ObjectUtil.isNotEmpty(purchaseCode)){
if (purchaseCode.get("code").equals("200")) {
cwsettlementEntity.setErpMark(purchaseCode.get("code").toString());
@ -1593,7 +1596,7 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
yunguanSaleSettlementModel.setCONSDR_USER(cwsettlementEntity.getLastModifyUserId());
yunguanSaleSettlementModel.setCONSDR_DATE(cwsettlementEntity.getLastModifyTime());
yunguanSaleSettlementModel.setLINE_SUM(cwsettlementEntity.getCwsettlementsummaryList().size());
JSONObject purchaseCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/sal/invHead", "POST", JsonUtil.getObjectToString(yunguanSaleSettlementModel));
JSONObject purchaseCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/sal/invHead", "POST", JsonUtil.getObjectToString(yunguanSaleSettlementModel));
if (ObjectUtil.isNotEmpty(purchaseCode)){
if (purchaseCode.get("code").equals("200")) {
cwsettlementEntity.setErpMark(purchaseCode.get("code").toString());

@ -30,6 +30,7 @@ import java.util.stream.Collectors;
import jnpf.base.model.ColumnDataModel;
import jnpf.util.wxutil.HttpUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import jnpf.database.model.superQuery.SuperJsonModel;
@ -97,6 +98,8 @@ public class WarehousingOutboundServiceImpl extends ServiceImpl<WarehousingOutbo
private ReceiptOrderService receiptOrderService;
@Autowired
private BusinessLineService businessLineService;
@Value("${config.yunguaninterfaceurl}")
private String yunguaninterfaceurl;
@Override
public List<WarehousingOutboundEntity> getList(WarehousingOutboundPagination warehousingOutboundPagination){
return getTypeList(warehousingOutboundPagination,warehousingOutboundPagination.getDataType());
@ -1011,20 +1014,20 @@ public class WarehousingOutboundServiceImpl extends ServiceImpl<WarehousingOutbo
warehousingOutboundPoundlistService.saveOrUpdate(entitys);
}
}
// if (entity.getWarehousingOutboundType().equals("12")){
// List<YunguanSaleOutBoundModel> yunguanSaleOutBoundModelList = warehousingOutboundMapper.saleOutBoundByYunGuan(entity.getId());
// if (yunguanSaleOutBoundModelList != null && yunguanSaleOutBoundModelList.size()>0) {
// JSONObject saleCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/sal/stoOurRecs", "POST", JsonUtil.getObjectToString(yunguanSaleOutBoundModelList));
// if (ObjectUtil.isNotEmpty(saleCode)){
// entity.setErpMark(saleCode.get("code").toString());
// entity.setErpMassage(saleCode.get("errmsg").toString());
// }else {
// entity.setErpMark("N");
// entity.setErpMassage("ESB返回为空");
// }
// this.saveOrUpdate(entity);
// }
// }
if (entity.getWarehousingOutboundType().equals("12")){
List<YunguanSaleOutBoundModel> yunguanSaleOutBoundModelList = warehousingOutboundMapper.saleOutBoundByYunGuan(entity.getId());
if (yunguanSaleOutBoundModelList != null && yunguanSaleOutBoundModelList.size()>0) {
JSONObject saleCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/sal/stoOurRecs", "POST", JsonUtil.getObjectToString(yunguanSaleOutBoundModelList));
if (ObjectUtil.isNotEmpty(saleCode)){
entity.setErpMark(saleCode.get("code").toString());
entity.setErpMassage(saleCode.get("errmsg").toString());
}else {
entity.setErpMark("N");
entity.setErpMassage("ESB返回为空");
}
this.saveOrUpdate(entity);
}
}
}
@Override

@ -31,6 +31,7 @@ import jnpf.util.wxutil.HttpUtil;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import jnpf.database.model.superQuery.SuperJsonModel;
@ -99,6 +100,8 @@ public class WarehousingStorageServiceImpl extends ServiceImpl<WarehousingStorag
private ReceiptRelationService receiptRelationService;
@Resource
private BusinessLineMapper businessLineMapper;
@Value("${config.yunguaninterfaceurl}")
private String yunguaninterfaceurl;
@Override
public List<WarehousingStorageEntity> getList(WarehousingStoragePagination warehousingStoragePagination){
return getTypeList(warehousingStoragePagination,warehousingStoragePagination.getDataType());
@ -1035,20 +1038,20 @@ public class WarehousingStorageServiceImpl extends ServiceImpl<WarehousingStorag
warehousingStoragePoundlistService.saveOrUpdate(entitys);
}
}
// if (entity.getWarehousingStorageType().equals("15")){
// List<YunguanPurchaseInBoundModel> yunguanPurchaseInBoundModelList = warehousingStorageMapper.purchaseInBoundByYunGuan(entity.getId());
// if (yunguanPurchaseInBoundModelList != null && yunguanPurchaseInBoundModelList.size()>0) {
// JSONObject purchaseCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/pur/stoIn", "POST", JsonUtil.getObjectToString(yunguanPurchaseInBoundModelList));
// if (ObjectUtil.isNotEmpty(purchaseCode)){
// entity.setErpMark(purchaseCode.get("code").toString());
// entity.setErpMassage(purchaseCode.get("errmsg").toString());
// }else{
// entity.setErpMark("N");
// entity.setErpMassage("ESB返回为空");
// }
// this.saveOrUpdate(entity);
// }
// }
if (entity.getWarehousingStorageType().equals("15")){
List<YunguanPurchaseInBoundModel> yunguanPurchaseInBoundModelList = warehousingStorageMapper.purchaseInBoundByYunGuan(entity.getId());
if (yunguanPurchaseInBoundModelList != null && yunguanPurchaseInBoundModelList.size()>0) {
JSONObject purchaseCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/pur/stoIn", "POST", JsonUtil.getObjectToString(yunguanPurchaseInBoundModelList));
if (ObjectUtil.isNotEmpty(purchaseCode)){
entity.setErpMark(purchaseCode.get("code").toString());
entity.setErpMassage(purchaseCode.get("errmsg").toString());
}else{
entity.setErpMark("N");
entity.setErpMassage("ESB返回为空");
}
this.saveOrUpdate(entity);
}
}
}

@ -28,6 +28,7 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
@ -130,7 +131,8 @@ public class BusinessOrderController {
private CwsettlementController cwsettlementController;
@Autowired
private CwsettlementService cwsettlementService;
@Value("${config.yunguaninterfaceurl}")
private String yunguaninterfaceurl;
/**
*
*
@ -635,55 +637,55 @@ public class BusinessOrderController {
}else if(StringUtils.isNotEmpty(entity.getBusinessType()) && entity.getBusinessType().equals("2") && entity.getDeliveryType().equals("2")){
entity.setStatus("4");//销售单直送审核通过后状态改为待出库
}
// if (entity.getBusinessType().equals("1")) {
// YunguanPurchaseOrderModel purchaseOrder = businessOrderService.queryPurchaseOrderByYunGuanInfo(id);
// if (ObjectUtil.isNotEmpty(purchaseOrder)) {
// JSONObject purchaseCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/pur/ordHead", "POST", JsonUtil.getObjectToString(purchaseOrder));
// if (ObjectUtil.isNotEmpty(purchaseCode)){
// if (purchaseCode.get("code").equals("200")) {
// List<YunguanPurchaseOrderProductModel> purchaseOrderProduct = businessOrderService.queryPurchaseOrderProductByYunGuanInfo(id);
// JSONObject purchaseProductCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/pur/ordLine", "POST", JsonUtil.getObjectToString(purchaseOrderProduct));
// if(ObjectUtil.isNotEmpty(purchaseCode)){
// entity.setErpMark(purchaseProductCode.get("code").toString());
// entity.setErpMassage(purchaseProductCode.get("errmsg").toString());
// }else{
// entity.setErpMark("N");
// entity.setErpMassage("ESB返回为空");
// }
// }else {
// entity.setErpMark(purchaseCode.get("code").toString());
// entity.setErpMassage(purchaseCode.get("errmsg").toString());
// }
// }else {
// entity.setErpMark("N");
// entity.setErpMassage("ESB返回为空");
// }
// }
// }else if (entity.getBusinessType().equals("2")){
// YunguanSaleOrderModel saleOrder = businessOrderService.querySaleOrderByYunGuanInfo(id);
// if (ObjectUtil.isNotEmpty(saleOrder)){
// JSONObject saleCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/sal/ordHead", "POST", JsonUtil.getObjectToString(saleOrder));
// if (ObjectUtil.isNotEmpty(saleCode)) {
// if (saleCode.get("code").equals("200")) {
// List<YunguanSaleOrderProductModel> saleOrderProduct = businessOrderService.querySaleOrderProductByYunGuanInfo(id);
// JSONObject saleProductCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/sal/ordLine", "POST", JsonUtil.getObjectToString(saleOrderProduct));
// if (ObjectUtil.isNotEmpty(saleProductCode)){
// entity.setErpMark(saleCode.get("code").toString());
// entity.setErpMassage(saleCode.get("errmsg").toString());
// }else{
// entity.setErpMark("N");
// entity.setErpMassage("ESB返回为空");
// }
// }else{
// entity.setErpMark(saleCode.get("code").toString());
// entity.setErpMassage(saleCode.get("errmsg").toString());
// }
// }else {
// entity.setErpMark("N");
// entity.setErpMassage("ESB返回为空");
// }
// }
// }
if (entity.getBusinessType().equals("1")) {
YunguanPurchaseOrderModel purchaseOrder = businessOrderService.queryPurchaseOrderByYunGuanInfo(id);
if (ObjectUtil.isNotEmpty(purchaseOrder)) {
JSONObject purchaseCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/pur/ordHead", "POST", JsonUtil.getObjectToString(purchaseOrder));
if (ObjectUtil.isNotEmpty(purchaseCode)){
if (purchaseCode.get("code").equals("200")) {
List<YunguanPurchaseOrderProductModel> purchaseOrderProduct = businessOrderService.queryPurchaseOrderProductByYunGuanInfo(id);
JSONObject purchaseProductCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/pur/ordLine", "POST", JsonUtil.getObjectToString(purchaseOrderProduct));
if(ObjectUtil.isNotEmpty(purchaseCode)){
entity.setErpMark(purchaseProductCode.get("code").toString());
entity.setErpMassage(purchaseProductCode.get("errmsg").toString());
}else{
entity.setErpMark("N");
entity.setErpMassage("ESB返回为空");
}
}else {
entity.setErpMark(purchaseCode.get("code").toString());
entity.setErpMassage(purchaseCode.get("errmsg").toString());
}
}else {
entity.setErpMark("N");
entity.setErpMassage("ESB返回为空");
}
}
}else if (entity.getBusinessType().equals("2")){
YunguanSaleOrderModel saleOrder = businessOrderService.querySaleOrderByYunGuanInfo(id);
if (ObjectUtil.isNotEmpty(saleOrder)){
JSONObject saleCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/sal/ordHead", "POST", JsonUtil.getObjectToString(saleOrder));
if (ObjectUtil.isNotEmpty(saleCode)) {
if (saleCode.get("code").equals("200")) {
List<YunguanSaleOrderProductModel> saleOrderProduct = businessOrderService.querySaleOrderProductByYunGuanInfo(id);
JSONObject saleProductCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/sal/ordLine", "POST", JsonUtil.getObjectToString(saleOrderProduct));
if (ObjectUtil.isNotEmpty(saleProductCode)){
entity.setErpMark(saleCode.get("code").toString());
entity.setErpMassage(saleCode.get("errmsg").toString());
}else{
entity.setErpMark("N");
entity.setErpMassage("ESB返回为空");
}
}else{
entity.setErpMark(saleCode.get("code").toString());
entity.setErpMassage(saleCode.get("errmsg").toString());
}
}else {
entity.setErpMark("N");
entity.setErpMassage("ESB返回为空");
}
}
}
businessOrderService.saveOrUpdate(entity);
}
}

@ -648,32 +648,32 @@ public class CwsettlementController {
}
cwsettlementForm.setCreatorUserId(entity.getCreatorUserId());
cwsettlementService.saveOrUpdate(cwsettlementForm,id,false);
// FlowTaskEntity flowTaskEntity = flowTaskService.getById(id);
// if (flowTaskEntity!=null){
// QueryWrapper<FlowTaskNodeEntity> flowTaskNodeEntityQueryWrapper = new QueryWrapper<>();
// flowTaskNodeEntityQueryWrapper.lambda().eq(FlowTaskNodeEntity::getNodeCode, flowTaskEntity.getThisStepId());
// flowTaskNodeEntityQueryWrapper.lambda().eq(FlowTaskNodeEntity::getTaskId, flowTaskEntity.getId());
// List<FlowTaskNodeEntity> flowTaskNodeEntityList = flowTaskNodeService.list(flowTaskNodeEntityQueryWrapper);
// if(flowTaskNodeEntityList != null && flowTaskNodeEntityList.size()>0 && "end".equals(flowTaskNodeEntityList.get(0).getNodeNext())) {
// ActionResult entity1 = this.info(id);
// Map<String, Object> map = (Map<String, Object>) entity1.getData();
// CwsettlementEntity cwsettlementEntity = BeanUtil.mapToBean(map, CwsettlementEntity.class, new CopyOptions());
// //推送结算单到运管
// if(ObjectUtil.equals(entity.getType(), "2")){
// //销售
// boolean headFlag = cwsettlementService.pushSaleHeadYunguan(cwsettlementEntity);
// if(headFlag){
// boolean lineFlag = cwsettlementService.pushSaleLineYunguan(cwsettlementEntity);
// }
// }else{
// //采购
// boolean headFlag = cwsettlementService.pushPurchaseHeadYunguan(cwsettlementEntity);
// if(headFlag){
// boolean lineFlag = cwsettlementService.pushPurchaseLineYunguan(cwsettlementEntity);
// }
// }
// }
// }
FlowTaskEntity flowTaskEntity = flowTaskService.getById(id);
if (flowTaskEntity!=null){
QueryWrapper<FlowTaskNodeEntity> flowTaskNodeEntityQueryWrapper = new QueryWrapper<>();
flowTaskNodeEntityQueryWrapper.lambda().eq(FlowTaskNodeEntity::getNodeCode, flowTaskEntity.getThisStepId());
flowTaskNodeEntityQueryWrapper.lambda().eq(FlowTaskNodeEntity::getTaskId, flowTaskEntity.getId());
List<FlowTaskNodeEntity> flowTaskNodeEntityList = flowTaskNodeService.list(flowTaskNodeEntityQueryWrapper);
if(flowTaskNodeEntityList != null && flowTaskNodeEntityList.size()>0 && "end".equals(flowTaskNodeEntityList.get(0).getNodeNext())) {
ActionResult entity1 = this.info(id);
Map<String, Object> map = (Map<String, Object>) entity1.getData();
CwsettlementEntity cwsettlementEntity = BeanUtil.mapToBean(map, CwsettlementEntity.class, new CopyOptions());
//推送结算单到运管
if(ObjectUtil.equals(entity.getType(), "2")){
//销售
boolean headFlag = cwsettlementService.pushSaleHeadYunguan(cwsettlementEntity);
if(headFlag){
boolean lineFlag = cwsettlementService.pushSaleLineYunguan(cwsettlementEntity);
}
}else{
//采购
boolean headFlag = cwsettlementService.pushPurchaseHeadYunguan(cwsettlementEntity);
if(headFlag){
boolean lineFlag = cwsettlementService.pushPurchaseLineYunguan(cwsettlementEntity);
}
}
}
}
}catch(Exception e){
return ActionResult.fail("修改数据失败");
}

@ -38,8 +38,8 @@ import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.math.BigDecimal;
import java.util.*;
import jnpf.annotation.JnpfField;
@ -74,6 +74,8 @@ import jnpf.base.model.ColumnDataModel;
import jnpf.base.util.VisualUtils;
import org.springframework.transaction.annotation.Transactional;
import javax.validation.Valid;
/**
* workOrder
* @ V3.5
@ -140,6 +142,8 @@ public class WorkOrderController {
private WarehousingReturnService warehousingReturnService;
@Autowired
private WarehousingReportlossService warehousingReportlossService;
@Value("${config.yunguaninterfaceurl}")
private String yunguaninterfaceurl;
/**
*
*
@ -796,17 +800,17 @@ public class WorkOrderController {
warehousingOutboundController.createWork(id,warehousingOutboundForm);
}
}
// List<YunguanProductProcessModel> yunguanProductProcessModelList = workOrderService.queryWorkOrderProductByYunguan(id);
// List<YunguanProductProcessModel> yunguanProductProcessModelList1 = workOrderService.queryWorkOrderPrimaryByYunguan(id);
// yunguanProductProcessModelList.addAll(yunguanProductProcessModelList1);
// JSONObject workOrderCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/prod/proditem", "POST", JsonUtil.getObjectToString(yunguanProductProcessModelList));
// if(ObjectUtil.isNotEmpty(workOrderCode)){
// entity.setErpMark(workOrderCode.get("code").toString());
// entity.setErpMassage(workOrderCode.get("errmsg").toString());
// }else {
// entity.setErpMark("N");
// entity.setErpMassage("ESB返回为空");
// }
List<YunguanProductProcessModel> yunguanProductProcessModelList = workOrderService.queryWorkOrderProductByYunguan(id);
List<YunguanProductProcessModel> yunguanProductProcessModelList1 = workOrderService.queryWorkOrderPrimaryByYunguan(id);
yunguanProductProcessModelList.addAll(yunguanProductProcessModelList1);
JSONObject workOrderCode = HttpUtil.httpRequest(yunguaninterfaceurl+"/fggj/prod/proditem", "POST", JsonUtil.getObjectToString(yunguanProductProcessModelList));
if(ObjectUtil.isNotEmpty(workOrderCode)){
entity.setErpMark(workOrderCode.get("code").toString());
entity.setErpMassage(workOrderCode.get("errmsg").toString());
}else {
entity.setErpMark("N");
entity.setErpMassage("ESB返回为空");
}
workOrderService.updateById(entity);
}
}

@ -1896,33 +1896,33 @@ export default {
return sums;
},
initList(list) {
for (let i = 0; i < list.length; i++) {
const e = list[i];
this.dataForm.cwaccountstorageList.push(e)
}
//this.addcwaccountvoucherList();
},
// initList(list) {
// let mark = false
// for (let i = 0; i < list.length; i++) {
// const e = list[i];
// if (e.yunguanMark == 'Y') {
// this.dataForm.cwaccountstorageList.push(e)
// } else {
// mark = true
// }
// }
// if (mark) {
// this.$message({
// message: '',
// type: 'error',
// duration: 1000
// });
// return
// this.dataForm.cwaccountstorageList.push(e)
// }
// //this.addcwaccountvoucherList();
// },
initList(list) {
let mark = false
for (let i = 0; i < list.length; i++) {
const e = list[i];
if (e.yunguanMark == 'Y') {
this.dataForm.cwaccountstorageList.push(e)
} else {
mark = true
}
}
if (mark) {
this.$message({
message: '存在运管暂未返回正常订单状态的订单',
type: 'error',
duration: 1000
});
return
}
//this.addcwaccountvoucherList();
},
typeChangeData() {
this.dataForm.cwaccountsubjectList = [];
this.dataForm.cwaccountcontractList = [];

@ -2054,6 +2054,51 @@ export default {
},
tableRequiredData: {},
dataRule: {
custTy: [{
required: true,
message: '请选择事务处理类型',
trigger: 'blur'
},],
invoiceDate: [{
required: true,
message: '请选择发票日期',
trigger: 'change'
},],
invoiceCnt: [{
required: true,
message: '请输入发票张数',
trigger: 'blur'
},],
invoiceType: [{
required: true,
message: '请选择发票类型',
trigger: 'change'
},],
attribute11: [{
required: true,
message: '请输入发票号码',
trigger: 'blur'
},],
invoiceAmount: [{
required: true,
message: '请输入发票金额',
trigger: 'blur'
},],
glDate: [{
required: true,
message: '请选择入账时间',
trigger: 'change'
},],
description: [{
required: true,
message: '请输入摘要',
trigger: 'blur'
},],
annexCnt: [{
required: true,
message: '请输入附件张数',
trigger: 'blur'
},],
type: [{
required: true,
message: '请至少选择一个',
@ -2991,6 +3036,15 @@ export default {
let isOk = true;
for (let i = 0; i < this.dataForm.cwsettlementsummaryList.length; i++) {
const e = this.dataForm.cwsettlementsummaryList[i];
if (!e.itemNmInv) {
this.$message({
message: '开票商品名称不能为空',
type: 'error',
duration: 1000
});
isOk = false
break
}
}
return isOk;
},

@ -43,8 +43,8 @@
</el-col>
<el-col :span="6">
<el-form-item label="申请状态">
<JnpfSelect v-model="query.applyState" placeholder="请选择" clearable :options="applyStateOptions"
:props="applyStateProps">
<JnpfSelect v-model="query.applyState" placeholder="请选择" clearable
:options="applyStateOptions" :props="applyStateProps">
</JnpfSelect>
</el-form-item>
</el-col>
@ -150,12 +150,6 @@
</template>
</el-table-column>
<!-- <el-table-column prop="settlementAmount" label="应收/应付合计(含税)" align="center" width="150">
</el-table-column> -->
<!-- <el-table-column prop="paymentAmount" label="已付金额" align="center" width="150">
@ -196,7 +190,6 @@
<el-table-column prop="realNameA" label="修改用户" align="center">
</el-table-column>
<el-table-column label="操作" fixed="right" width="250" align="center">
<template slot-scope="scope">
<el-button type="text" :disabled="[1,2,4,5].indexOf(scope.row.flowState)>-1"
@ -210,9 +203,9 @@
<el-button size="mini" type="text"
v-if="scope.row.settlableAmount > 0 && scope.row.flowState==2"
@click="shoufukuanHandle(scope.row)">收付款</el-button>
<!-- <template v-if="scope.row.flowState == 2 && scope.row.erpMark != '200'">
<template v-if="scope.row.flowState == 2 && scope.row.erpMark != '200'">
<el-button size="mini" type="text" @click="repush(scope.row)"></el-button>
</template> -->
</template>
</template>
</el-table-column>
</JNPF-table>

@ -266,9 +266,9 @@
@click="handleDelVoucher(scope.row.id)">删除
</el-button>
<!-- <template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<el-button size="mini" type="text" @click="repush(scope.row.id)"></el-button>
</template> -->
</template>
</template>
</el-table-column>
</JNPF-table>
@ -527,14 +527,14 @@ export default {
})
},
inBoundNotice(row) {
// if (row.yunguanMark != 'Y') {
// this.$message({
// type: 'error',
// message: '',
// duration: 1500,
// })
// return
// }
if (row.yunguanMark != 'Y') {
this.$message({
type: 'error',
message: '运管暂未返回正常订单状态',
duration: 1500,
})
return
}
const selectData = row
selectData.flag = '采购入库通知'
if (!this.inBoundFlowList.length) {

@ -1789,15 +1789,15 @@ export default {
);
},
getPurchaseOrder(val, val2) {
// if (val2.yunguanMark != 'Y') {
// this.dataForm.businessId = undefined
// this.$message({
// message: '',
// type: 'error',
// duration: 1000
// });
// return
// }
if (val2.yunguanMark != 'Y') {
this.dataForm.businessId = undefined
this.$message({
message: '运管暂未返回正常订单状态',
type: 'error',
duration: 1000
});
return
}
this.dataForm.purchaseOrderInfo = [];
this.dataForm.purchaseOrderInfo[0] = val2;
this.dataForm.subjectId = val2.firstSubjectBasicId;

@ -1732,15 +1732,15 @@ export default {
);
},
getSaleOrder(val, val2) {
// if (val2.yunguanMark != 'Y') {
// this.dataForm.businessId = undefined
// this.$message({
// message: '',
// type: 'error',
// duration: 1000
// });
// return
// }
if (val2.yunguanMark != 'Y') {
this.dataForm.businessId = undefined
this.$message({
message: '运管暂未返回正常订单状态',
type: 'error',
duration: 1000
});
return
}
this.dataForm.businessOrderInfoList = [];
this.dataForm.businessOrderInfoList[0] = val2;
this.dataForm.subjectId = val2.firstSubjectBasicId;

@ -229,9 +229,9 @@
@click="handleDelVoucher(scope.row.id)">删除
</el-button>
<!-- <template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<el-button size="mini" type="text" @click="repush(scope.row.id)"></el-button>
</template> -->
</template>
</template>
</el-table-column>
</JNPF-table>
@ -454,14 +454,14 @@ export default {
})
},
outBoundNotice(row) {
// if (row.yunguanMark != 'Y') {
// this.$message({
// type: 'error',
// message: '',
// duration: 1500,
// })
// return
// }
if (row.yunguanMark != 'Y') {
this.$message({
type: 'error',
message: '运管暂未返回正常订单状态',
duration: 1500,
})
return
}
const selectData = row
selectData.flag = '销售出库通知'
if (!this.outBoundFlowList.length) {

@ -151,9 +151,9 @@
</el-button>
<el-button size="mini" type="text" :disabled="!scope.row.flowState"
@click="updateHandle(scope.row,scope.row.flowState)">详情</el-button>
<!-- <template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<el-button size="mini" type="text" @click="repush(scope.row.id)"></el-button>
</template> -->
</template>
</template>
</el-table-column>
</JNPF-table>

@ -157,9 +157,9 @@
</el-button>
<el-button size="mini" type="text" :disabled="!scope.row.flowState"
@click="updateHandle(scope.row,scope.row.flowState)">详情</el-button>
<!-- <template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<el-button size="mini" type="text" @click="repush(scope.row.id)"></el-button>
</template> -->
</template>
</template>
</el-table-column>
</JNPF-table>

@ -167,9 +167,9 @@
</el-button>
<el-button size="mini" type="text" :disabled="!scope.row.flowState"
@click="updateHandle(scope.row, scope.row.flowState)">详情</el-button>
<!-- <template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<template v-if="scope.row.flowState == '2' && scope.row.erpMark != '200'">
<el-button size="mini" type="text" @click="repush(scope.row.id)"></el-button>
</template> -->
</template>
</template>
</el-table-column>
</JNPF-table>
@ -590,14 +590,6 @@ export default {
},
addOstarts(row, status) {
// if (row.erpMark != '200') {
// this.$message({
// type: 'error',
// message: '',
// duration: 1500,
// })
// return
// }
let id = row.id
this.$confirm("此操作将进行加工, 是否继续?", "提示", {
type: "warning",
@ -652,14 +644,6 @@ export default {
},
addOstartsRescind(row, status) {
// if (row.erpMark != '200') {
// this.$message({
// type: 'error',
// message: '',
// duration: 1500,
// })
// return
// }
let id = row.id
this.$confirm("此操作将进行取消加工, 是否继续?", "提示", {
type: "warning",
@ -703,14 +687,6 @@ export default {
},
addOrUpdateHandleOver(row, isDetail) {
// if (row.erpMark != '200') {
// this.$message({
// type: 'error',
// message: '',
// duration: 1500,
// })
// return
// }
let id = row ? row.id : ""
this.formVisibleOver = true
this.$nextTick(() => {

Loading…
Cancel
Save