|
|
@@ -874,7 +874,7 @@ export default {
|
|
|
let myDate = new Date()
|
|
|
if (this.serviceId != 'add' && this.serviceId > 0) {
|
|
|
this.formData.Id = this.serviceId
|
|
|
- this.countMoney(this.formData.Id)
|
|
|
+ // this.countMoney(this.formData.Id)
|
|
|
this.yearList(this.formData.Id)
|
|
|
this.initDatas()
|
|
|
this.successBoolean = true
|
|
|
@@ -895,14 +895,14 @@ export default {
|
|
|
this.yearTable = res.data
|
|
|
})
|
|
|
},
|
|
|
- countMoney (id) {
|
|
|
- api.countMoney(id, this.$axios).then(res => {
|
|
|
- if (res.data.Money !== '') {
|
|
|
- this.Money = parseFloat(res.data.Money)
|
|
|
- }
|
|
|
- console.log(this.Money, 'this.Money')
|
|
|
- })
|
|
|
- },
|
|
|
+ // countMoney (id) {
|
|
|
+ // api.countMoney(id, this.$axios).then(res => {
|
|
|
+ // if (res.data.Money !== '') {
|
|
|
+ // this.Money = parseFloat(res.data.Money)
|
|
|
+ // }
|
|
|
+ // console.log(this.Money, 'this.Money')
|
|
|
+ // })
|
|
|
+ // },
|
|
|
dateChange () {
|
|
|
if (this.formData.StartDate && this.formData.ContractPeriod) {
|
|
|
var d = new Date(this.formData.StartDate)
|
|
|
@@ -1082,13 +1082,13 @@ export default {
|
|
|
})
|
|
|
return false
|
|
|
}
|
|
|
- if (parseFloat(this.formData.IsYearMoney) > (parseFloat(this.formData.Amount) - this.Money)) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '总结算金额不能大于合同总金额'
|
|
|
- })
|
|
|
- return false
|
|
|
- }
|
|
|
+ // if (parseFloat(this.formData.IsYearMoney) > (parseFloat(this.formData.Amount) - this.Money)) {
|
|
|
+ // this.$message({
|
|
|
+ // type: 'warning',
|
|
|
+ // message: '总结算金额不能大于合同总金额'
|
|
|
+ // })
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
if (parseFloat(this.formData.PerformAmount) > parseFloat(this.formData.Amount)) {
|
|
|
this.$message({
|
|
|
type: 'warning',
|