|
@@ -148,7 +148,8 @@ |
|
|
}, |
|
|
}, |
|
|
UpperAmount: { |
|
|
UpperAmount: { |
|
|
type: 'text', |
|
|
type: 'text', |
|
|
title: '总金额' |
|
|
|
|
|
|
|
|
title: '总金额', |
|
|
|
|
|
verify: 'NotNull' |
|
|
}, |
|
|
}, |
|
|
Status: { |
|
|
Status: { |
|
|
type: 'text', |
|
|
type: 'text', |
|
@@ -207,6 +208,7 @@ |
|
|
// this.dataSource.FundsApply.CheckStatus = result.data.map(t => ({ text: t.name, value: t.id })) |
|
|
// this.dataSource.FundsApply.CheckStatus = result.data.map(t => ({ text: t.name, value: t.id })) |
|
|
// }), |
|
|
// }), |
|
|
]) |
|
|
]) |
|
|
|
|
|
// console.log(this.dataSource.FundsApply.ApplyUser) |
|
|
await this.fetchForm() |
|
|
await this.fetchForm() |
|
|
|
|
|
|
|
|
this.ready = true |
|
|
this.ready = true |
|
@@ -221,7 +223,7 @@ |
|
|
// this.EnCode = result.EnCode |
|
|
// this.EnCode = result.EnCode |
|
|
const source = { |
|
|
const source = { |
|
|
ApplyDept: this.user.departmentId, |
|
|
ApplyDept: this.user.departmentId, |
|
|
ApplyUser: this.user.account, |
|
|
|
|
|
|
|
|
ApplyUser: this.user.userId, |
|
|
ApplyTime: new Date().getTime() |
|
|
ApplyTime: new Date().getTime() |
|
|
}; |
|
|
}; |
|
|
let resultres = Object.assign(result, source) |
|
|
let resultres = Object.assign(result, source) |
|
@@ -358,9 +360,15 @@ |
|
|
}, |
|
|
}, |
|
|
del(str, num) { |
|
|
del(str, num) { |
|
|
console.log(str) |
|
|
console.log(str) |
|
|
|
|
|
let _this = this |
|
|
this.FundsApplyDetail.splice(num, 1) |
|
|
this.FundsApplyDetail.splice(num, 1) |
|
|
console.log(this.FundsApplyDetail) |
|
|
console.log(this.FundsApplyDetail) |
|
|
// this.queryData[str].splice(num, 1) |
|
|
|
|
|
|
|
|
let Amounts = _this.FundsApplyDetail.map(item => { |
|
|
|
|
|
return item.Amount |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
_this.current.FundsApply.SumAmount = _this.sum(Amounts) |
|
|
|
|
|
_this.current.FundsApply.UpperAmount = _this.smalltoBIG(_this.current.FundsApply.SumAmount) |
|
|
}, |
|
|
}, |
|
|
SumAmountChange(item) { |
|
|
SumAmountChange(item) { |
|
|
console.log(item) |
|
|
console.log(item) |
|
@@ -381,6 +389,9 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
sum(args) { |
|
|
sum(args) { |
|
|
|
|
|
if(args == 0){ |
|
|
|
|
|
return '' |
|
|
|
|
|
} |
|
|
// var args = arguments,//获取所有的参数 |
|
|
// var args = arguments,//获取所有的参数 |
|
|
var d = 0, //定义小数位的初始长度,默认为整数,即小数位为0 |
|
|
var d = 0, //定义小数位的初始长度,默认为整数,即小数位为0 |
|
|
sum = 0; //定义sum来接收所有数据的和 |
|
|
sum = 0; //定义sum来接收所有数据的和 |
|
@@ -405,6 +416,9 @@ |
|
|
return sum / m; |
|
|
return sum / m; |
|
|
}, |
|
|
}, |
|
|
smalltoBIG(n) { |
|
|
smalltoBIG(n) { |
|
|
|
|
|
if(n == 0){ |
|
|
|
|
|
return '' |
|
|
|
|
|
} |
|
|
var fraction = ['角', '分']; |
|
|
var fraction = ['角', '分']; |
|
|
var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; |
|
|
var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; |
|
|
var unit = [ |
|
|
var unit = [ |
|
|