|
@@ -7590,7 +7590,6 @@ namespace SiteCore.Handler
|
|
|
entity.AfterSaleResSupId = GetPostInt("ResponsibleSupId");
|
|
entity.AfterSaleResSupId = GetPostInt("ResponsibleSupId");
|
|
|
if (entity.ResponsibleUserId.Length > 0 && entity.AfterSaleResponsible.Length > 0)
|
|
if (entity.ResponsibleUserId.Length > 0 && entity.AfterSaleResponsible.Length > 0)
|
|
|
{
|
|
{
|
|
|
- CeErpTradeResponsible.DelByTid(eid, -1);
|
|
|
|
|
CeErpTradeResponsible number = CeErpTradeResponsible.GetByCtid(eid);
|
|
CeErpTradeResponsible number = CeErpTradeResponsible.GetByCtid(eid);
|
|
|
int backNum = 0;
|
|
int backNum = 0;
|
|
|
if (number != null)
|
|
if (number != null)
|
|
@@ -7605,6 +7604,7 @@ namespace SiteCore.Handler
|
|
|
refundFreeList = refundFees.Split(separator);
|
|
refundFreeList = refundFees.Split(separator);
|
|
|
}
|
|
}
|
|
|
int index = -1;
|
|
int index = -1;
|
|
|
|
|
+ List<int> responsibleIds = new List<int>();
|
|
|
foreach (string i in sArray)
|
|
foreach (string i in sArray)
|
|
|
{
|
|
{
|
|
|
index++;
|
|
index++;
|
|
@@ -7657,15 +7657,22 @@ namespace SiteCore.Handler
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ int state = 0;
|
|
|
|
|
+ //已认可的不需要再次认可
|
|
|
|
|
+ if (ceErpTradeResponsible.VerifyState == 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ state = 1;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
ceErpTradeResponsible.RefundFee = refudFree;
|
|
ceErpTradeResponsible.RefundFee = refudFree;
|
|
|
- ceErpTradeResponsible.VerifyState = 0;
|
|
|
|
|
|
|
+ ceErpTradeResponsible.VerifyState = state;
|
|
|
if (userId == 2125 || idtype == "w")
|
|
if (userId == 2125 || idtype == "w")
|
|
|
{
|
|
{
|
|
|
ceErpTradeResponsible.VerifyState = 1;
|
|
ceErpTradeResponsible.VerifyState = 1;
|
|
|
}
|
|
}
|
|
|
if (idtype == "w" && userId == 101)
|
|
if (idtype == "w" && userId == 101)
|
|
|
{
|
|
{
|
|
|
- ceErpTradeResponsible.VerifyState = 0;
|
|
|
|
|
|
|
+ ceErpTradeResponsible.VerifyState = state;
|
|
|
}
|
|
}
|
|
|
if (ceErpTradeResponsible.ID > 0)
|
|
if (ceErpTradeResponsible.ID > 0)
|
|
|
{
|
|
{
|
|
@@ -7679,7 +7686,9 @@ namespace SiteCore.Handler
|
|
|
{
|
|
{
|
|
|
responsibleId = ceErpTradeResponsible.ID;
|
|
responsibleId = ceErpTradeResponsible.ID;
|
|
|
}
|
|
}
|
|
|
|
|
+ responsibleIds.Add(responsibleId);
|
|
|
}
|
|
}
|
|
|
|
|
+ CeErpTradeResponsible.ExecuteNonQuery(string.Format("update CE_ErpTradeResponsible set VerifyState =-1 where tid='" + eid + "' and ID NOT IN (" + string.Join(",", responsibleIds) + ")"));
|
|
|
CeErpTradeResponsible.NumByTid(backNum, eid);
|
|
CeErpTradeResponsible.NumByTid(backNum, eid);
|
|
|
}
|
|
}
|
|
|
CeErpTradeCellExtend ceErpTradeCellExtend = CeErpTradeCellExtend.getByTid(entity.ctid);
|
|
CeErpTradeCellExtend ceErpTradeCellExtend = CeErpTradeCellExtend.getByTid(entity.ctid);
|