diff --git a/src/views/contract/components/paymentRegistration.vue b/src/views/contract/components/paymentRegistration.vue
index 419fabb..5140414 100644
--- a/src/views/contract/components/paymentRegistration.vue
+++ b/src/views/contract/components/paymentRegistration.vue
@@ -160,7 +160,7 @@ export default {
applyMoney:"",
deductionMoney:"",
type:"",
- isLast:false,
+ //isLast:false,
plan:[]
},
paymentRegistrationRules:{
@@ -247,19 +247,12 @@ export default {
},
submit(){
- let data = this.paymentRegistrationForm.isLast ? {
+ let data = {
contract_id:this.contract.id,
apply_money:this.paymentRegistrationForm.applyMoney,
discount_money:this.paymentRegistrationForm.deductionMoney,
type:this.paymentRegistrationForm.type,
- is_end:this.paymentRegistrationForm.isLast ? 1 : 0,
- contract_plan_links:this.paymentRegistrationForm.plan
- } : {
- contract_id:this.contract.id,
- apply_money:this.paymentRegistrationForm.applyMoney,
- discount_money:this.paymentRegistrationForm.deductionMoney,
- type:this.paymentRegistrationForm.type,
- is_end:this.paymentRegistrationForm.isLast ? 1 : 0
+ //is_end:this.paymentRegistrationForm.isLast ? 1 : 0
}
addFundLog(data).then(res=>{
this.isShowPaymentRegistration = false
diff --git a/src/views/contract/components/printRegistration.vue b/src/views/contract/components/printRegistration.vue
index 908e99f..97331f8 100644
--- a/src/views/contract/components/printRegistration.vue
+++ b/src/views/contract/components/printRegistration.vue
@@ -108,7 +108,7 @@ export default {
return res.toString()
},
guaranteeRate(gua,money){
- return ((moneyRecovery(gua) / money) * 100).toFixed(4)
+ if(gua && money) return ((moneyRecovery(gua) / money) * 100).toFixed(4)
},
async getDetailFundLog(id){
diff --git a/src/views/finance/components/examineRegistration.vue b/src/views/finance/components/examineRegistration.vue
index 6751c4b..e21c74c 100644
--- a/src/views/finance/components/examineRegistration.vue
+++ b/src/views/finance/components/examineRegistration.vue
@@ -184,7 +184,7 @@ export default {
applyMoney:"",
deductionMoney:"",
type:"",
- isLast:false,
+ //isLast:false,
plan:[],
actMoney:'',
moneyWay:'',//资金列支渠道
@@ -240,7 +240,7 @@ export default {
},
methods: {
inputMoney(e,row){
- row.useMoney = e
+ row.use_money = e
this.paymentRegistrationForm.plan.forEach(item => {
if(item.plan_id == row.id){
item.use_money = e
@@ -275,7 +275,7 @@ export default {
this.registrationId = id
const res = await detailFundLog({id})
this.paymentRegistrationForm.type = res.type
- this.paymentRegistrationForm.isLast = res.is_end === 1 ? true : false
+ //this.paymentRegistrationForm.isLast = res.is_end === 1 ? true : false
this.paymentRegistrationForm.deductionMoney = res.apply_money
this.paymentRegistrationForm.applyMoney = res.apply_money
this.paymentRegistrationForm.plan = res.plan_link
@@ -323,7 +323,7 @@ export default {
this.planTotal = res.list.total
this.toggleSelection(this.paymentRegistrationForm.plan.map(item => {
- return item.value.plan_id
+ return item.plan_id
}))
},
planPageChange(e){
@@ -335,7 +335,7 @@ export default {
this.paymentRegistrationForm.plan = sel.map(item => {
return {
plan_id:item.id,
- use_money:item.useMoney,
+ use_money:item.use_money,
new_money:item.money
}
})
@@ -348,7 +348,7 @@ export default {
if (plans) {
this.plans.filter(plan => {
if(plans.includes(plan.id)){
- plan.useMoney = this.paymentRegistrationForm.plan[plans.indexOf(plan.id)].value.use_money
+ plan.use_money = this.paymentRegistrationForm.plan[plans.indexOf(plan.id)].use_money
return true
}
}).map(row => {