|
@@ -153,13 +153,20 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ List<dynamic> _supplierArea = new List<dynamic>() {
|
|
|
+ new { id=0,name = "未选择" },
|
|
|
+ new { id=1,name = "国内" },
|
|
|
+ new { id=2,name = "国外" },
|
|
|
+ };
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
var data = new
|
|
|
{
|
|
|
payment = _Payment,
|
|
|
groupName = _Delegations,
|
|
|
- supplier = _supplier
|
|
|
+ supplier = _supplier,
|
|
|
+ supplierArea = _supplierArea
|
|
|
};
|
|
|
return result = new Result() { Code = 0, Msg = "查询成功!", Data = data };
|
|
|
|
|
@@ -173,6 +180,12 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
{
|
|
|
int id = 0;
|
|
|
Grp_DecreasePayments grp_Decrease = _mapper.Map<Grp_DecreasePayments>(dto);
|
|
|
+ //处理费用总计
|
|
|
+ if (grp_Decrease.FeeTotal == 0.00M)
|
|
|
+ {
|
|
|
+ grp_Decrease.FeeTotal = grp_Decrease.Price * grp_Decrease.Price;
|
|
|
+ }
|
|
|
+
|
|
|
List<TeamRateDescAddCurrencyIdView> teamRates = await _teamRateRep.PostGroupTeamRateItemByDiIdAndCTableId(1, dto.DiId, 98);
|
|
|
if (dto.Status == 1)//添加
|
|
|
{
|
|
@@ -200,7 +213,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
C.CTDId = 0;
|
|
|
C.BankNo = "";
|
|
|
C.CardholderName = "";
|
|
|
- C.PayMoney = grp_Decrease.Price;
|
|
|
+ C.PayMoney = grp_Decrease.FeeTotal;
|
|
|
C.PaymentCurrency = grp_Decrease.Currency;
|
|
|
//当天汇率
|
|
|
//if (!string.IsNullOrEmpty(hfRate.Value))
|
|
@@ -284,8 +297,12 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
bool res = await UpdateAsync(a => a.Id == grp_Decrease.Id, a => new Grp_DecreasePayments
|
|
|
{
|
|
|
DiId = grp_Decrease.DiId,
|
|
|
+ SupplierArea = grp_Decrease.SupplierArea,
|
|
|
+ SupplierTypeId = grp_Decrease.SupplierTypeId,
|
|
|
PriceName = grp_Decrease.PriceName,
|
|
|
Price = grp_Decrease.Price,
|
|
|
+ Quantity = grp_Decrease.Quantity,
|
|
|
+ FeeTotal = grp_Decrease.FeeTotal,
|
|
|
Currency = grp_Decrease.Currency,
|
|
|
FilePath = grp_Decrease.FilePath,
|
|
|
Remark = grp_Decrease.Remark,
|
|
@@ -328,7 +345,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
{
|
|
|
PayDId = dto.PayDId,
|
|
|
IsPay = ispay,
|
|
|
- PayMoney = grp_Decrease.Price,
|
|
|
+ PayMoney = grp_Decrease.FeeTotal,
|
|
|
PaymentCurrency = grp_Decrease.Currency,
|
|
|
Payee = dto.Payee,
|
|
|
OrbitalPrivateTransfer = dto.OrbitalPrivateTransfer,
|