|
@@ -380,7 +380,8 @@
|
|
|
paymoney,
|
|
|
editwarehousingorder,
|
|
|
getExpense,
|
|
|
- workflowhandle
|
|
|
+ workflowhandle,
|
|
|
+ setExpense
|
|
|
} from '@/model/warehouse/index'
|
|
|
import {getpayeeinfo,getbuypayeeinfo} from '@/model/profitable/index'
|
|
|
import {
|
|
@@ -685,12 +686,13 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
return
|
|
|
}
|
|
|
_this.dialogTitle=arr1[i].contractNo
|
|
|
- getExpense({contractNo:arr1[i].contractNo,costType:5}).toPromise()
|
|
|
+ getExpense({contractNo:arr1[i].contractNo,compId:this.compId}).toPromise()
|
|
|
.then((response) => {
|
|
|
- _this.form.accumulatedPrepayment=response.accumulatedPrepayment
|
|
|
- _this.form.recoveryPrepayments=response.recoveryPrepayments
|
|
|
- _this.form.distributionEd=response.distributionMoney
|
|
|
- _this.form.distributionCan=response.accumulatedPrepayment-response.recoveryPrepayments-response.distributionMoney
|
|
|
+ _this.form.contractId=response.id
|
|
|
+ _this.form.accumulatedPrepayment=response.accumulatedMargin
|
|
|
+ _this.form.recoveryPrepayments=response.withdrawalOfMargin
|
|
|
+ _this.form.distributionEd=response.allocatedMargin
|
|
|
+ _this.form.distributionCan=response.accumulatedMargin-response.withdrawalOfMargin-response.allocatedMargin
|
|
|
_this.form.distributionNot=arr1[i].amountNotPayable
|
|
|
this.currectdata=currectData
|
|
|
this.marginshow=true
|
|
@@ -751,12 +753,13 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
return
|
|
|
}
|
|
|
_this.dialogTitle=arr1[i].contractNo
|
|
|
- getExpense({contractNo:arr1[i].contractNo,costType:1}).toPromise()
|
|
|
+ getExpense({contractNo:arr1[i].contractNo,compId:this.compId}).toPromise()
|
|
|
.then((response) => {
|
|
|
+ _this.form.contractId=response.id
|
|
|
_this.form.accumulatedPrepayment=response.accumulatedPrepayment
|
|
|
- _this.form.recoveryPrepayments=response.recoveryPrepayments
|
|
|
- _this.form.distributionEd=response.distributionMoney
|
|
|
- _this.form.distributionCan=response.accumulatedPrepayment-response.recoveryPrepayments-response.distributionMoney
|
|
|
+ _this.form.recoveryPrepayments=response.accumulatedRecovery
|
|
|
+ _this.form.distributionEd=response.prepaidAssigned
|
|
|
+ _this.form.distributionCan=response.accumulatedPrepayment-response.accumulatedRecovery-response.prepaidAssigned
|
|
|
_this.form.distributionNot=arr1[i].amountNotPayable
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
@@ -954,7 +957,7 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- paymoney({flag:3,money:this.form.distributionIng,warehousingOrderList:arr2}).toPromise()
|
|
|
+ paymoney({flag:3,money:this.form.distributionIng,warehousingOrderList:arr2,contractId:this.form.contractId}).toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message({
|
|
|
message: '分配成功',
|
|
@@ -998,7 +1001,7 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- paymoney({flag:2,money:this.form.distributionIng,warehousingOrderList:arr2}).toPromise()
|
|
|
+ paymoney({flag:2,money:this.form.distributionIng,warehousingOrderList:arr2,contractId:this.form.contractId}).toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message({
|
|
|
message: '分配成功',
|