|
@@ -1103,7 +1103,8 @@ export default {
|
|
.then(() => {
|
|
.then(() => {
|
|
editStatus({
|
|
editStatus({
|
|
flag: 3,
|
|
flag: 3,
|
|
- basis: '-'+Math.abs(row.basis),
|
|
|
|
|
|
+ // basis: '-'+Math.abs(row.basis),
|
|
|
|
+ basis: row.basis,
|
|
id: row.id,
|
|
id: row.id,
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
@@ -1281,7 +1282,7 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- this.closePositionList1.closingBasis='-'+Math.abs(this.closePositionList1.closingBasis)
|
|
|
|
|
|
+ // this.closePositionList1.closingBasis='-'+Math.abs(this.closePositionList1.closingBasis)
|
|
closePositionList(this.closePositionList1)
|
|
closePositionList(this.closePositionList1)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -1299,10 +1300,15 @@ export default {
|
|
if(this.closePositionList1.transactionPrice
|
|
if(this.closePositionList1.transactionPrice
|
|
&& this.closePositionList1.closeRate && this.closePositionList1.closingBasis && this.closePositionList1.closingQuantity)
|
|
&& this.closePositionList1.closeRate && this.closePositionList1.closingBasis && this.closePositionList1.closingQuantity)
|
|
{
|
|
{
|
|
- this.closePositionList1.closingPositionPayable =
|
|
|
|
|
|
+ // this.closePositionList1.closingPositionPayable =
|
|
|
|
+ // (this.closePositionList1.transactionPrice -
|
|
|
|
+ // this.closePositionList1.closeRate-
|
|
|
|
+ // Math.abs(this.closePositionList1.closingBasis)) *
|
|
|
|
+ // this.closePositionList1.closingQuantity
|
|
|
|
+ this.closePositionList1.closingPositionPayable =
|
|
(this.closePositionList1.transactionPrice -
|
|
(this.closePositionList1.transactionPrice -
|
|
- this.closePositionList1.closeRate-
|
|
|
|
- Math.abs(this.closePositionList1.closingBasis)) *
|
|
|
|
|
|
+ this.closePositionList1.closeRate+
|
|
|
|
+ this.closePositionList1.closingBasis) *
|
|
this.closePositionList1.closingQuantity
|
|
this.closePositionList1.closingQuantity
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1425,7 +1431,8 @@ export default {
|
|
this.$set(this.aduitlist, 'procurementPlanType', item.procurementPlanType)
|
|
this.$set(this.aduitlist, 'procurementPlanType', item.procurementPlanType)
|
|
this.$set(this.aduitlist, 'unitPrice', item.unitPrice)
|
|
this.$set(this.aduitlist, 'unitPrice', item.unitPrice)
|
|
this.$set(this.aduitlist, 'invoiceFee', item.invoiceFee)
|
|
this.$set(this.aduitlist, 'invoiceFee', item.invoiceFee)
|
|
- this.$set(this.aduitlist, 'basis', Math.abs(item.basis))
|
|
|
|
|
|
+ // this.$set(this.aduitlist, 'basis', Math.abs(item.basis))
|
|
|
|
+ this.$set(this.aduitlist, 'basis', item.basis)
|
|
this.$set(this.aduitlist, 'depositRatio', item.customerInfo.depositRatio)
|
|
this.$set(this.aduitlist, 'depositRatio', item.customerInfo.depositRatio)
|
|
this.$set(this.aduitlist, 'totalDeposit', item.customerInfo.totalDeposit)
|
|
this.$set(this.aduitlist, 'totalDeposit', item.customerInfo.totalDeposit)
|
|
this.$set(this.aduitlist, 'baggingNotes', item.baggingNotes)
|
|
this.$set(this.aduitlist, 'baggingNotes', item.baggingNotes)
|
|
@@ -1515,9 +1522,9 @@ export default {
|
|
this.aduitlist.procurementPlanType = this.aduitlist.procurementPlanType
|
|
this.aduitlist.procurementPlanType = this.aduitlist.procurementPlanType
|
|
if (this.aduitlist.procurementPlanType == '期货') {
|
|
if (this.aduitlist.procurementPlanType == '期货') {
|
|
this.aduitlist.freezingDeposit = this.aduitlist.transactionsNumber*this.aduitlist.depositRatio
|
|
this.aduitlist.freezingDeposit = this.aduitlist.transactionsNumber*this.aduitlist.depositRatio
|
|
- if(this.aduitlist.invoiceFee){
|
|
|
|
- this.aduitlist.invoiceFee=-Math.abs(this.aduitlist.invoiceFee)
|
|
|
|
- }
|
|
|
|
|
|
+ // if(this.aduitlist.invoiceFee){
|
|
|
|
+ // this.aduitlist.invoiceFee=-Math.abs(this.aduitlist.invoiceFee)
|
|
|
|
+ // }
|
|
this.aduitlist.unloadingCharge = '-' + this.aduitlist.unloadingCharge
|
|
this.aduitlist.unloadingCharge = '-' + this.aduitlist.unloadingCharge
|
|
this.aduitlist.basis = '-' + this.aduitlist.basis
|
|
this.aduitlist.basis = '-' + this.aduitlist.basis
|
|
}
|
|
}
|
|
@@ -1656,7 +1663,8 @@ export default {
|
|
id: this.clinchdeal.id,
|
|
id: this.clinchdeal.id,
|
|
commonId: this.clinchdeal.commonId,
|
|
commonId: this.clinchdeal.commonId,
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
- basis:'-'+Math.abs(this.clinchdeal1.basis)
|
|
|
|
|
|
+ // basis:'-'+Math.abs(this.clinchdeal1.basis)
|
|
|
|
+ basis:this.clinchdeal1.basis
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|