修改bug

This commit is contained in:
tczjx58520 2020-02-05 21:44:30 +08:00
parent 973d2e0250
commit 49eecf3a56
2 changed files with 22 additions and 8 deletions

View file

@ -568,8 +568,10 @@ export default {
},
//
jungleAddress(row, val) {
if (val === '7') {
row.address = ''
if (val !== '7') {
delete row.address
} else if (val !== '1') {
delete row.typeId
}
},
// id
@ -1319,6 +1321,7 @@ export default {
this.customerId = null
this.salePersonId = null
this.data2 = ''
this.repositoryid = ''
},
//
treeToList(tree) {
@ -1359,11 +1362,13 @@ export default {
}
const parms2 = JSON.stringify(EnterDetail)
const Data = this.personalForm
const regionId_length = Data.regionId.length
if (regionId_length === 0) {
Data.regionId = ''
} else {
Data.regionId = Data.regionId[regionId_length - 1]
if (Data.regionId) {
const regionId_length = Data.planRegionId.length
if (regionId_length === 0) {
Data.planRegionId = ''
} else {
Data.planRegionId = Data.planRegionId[regionId_length - 1]
}
}
console.log('Data==============>', Data)
console.log('EnterDetail==============>', EnterDetail)
@ -1374,6 +1379,15 @@ export default {
}
Data.planType = Number(Data.planType)
Data.planCategory = Number(Data.planCategory)
for (let i = 0; i < EnterDetail.length; i++) {
for (const key in EnterDetail[i]) {
console.log('key===============>', EnterDetail[i][key])
if (EnterDetail[i][key] === '' || EnterDetail[i][key] === undefined || EnterDetail[i][key] === null) {
console.log('执行')
delete EnterDetail[i][key]
}
}
}
for (const key in Data) {
if (Data[key] === '' || Data[key] === undefined || Data[key] === null) {
delete Data[key]

View file

@ -322,7 +322,7 @@ export default {
//
clacProgress(row) {
console.log('row==================>', row)
const res = ((row.actualQuantity / row.quantity) * 100).toFixed(0)
const res = Number(((row.actualQuantity / row.quantity) * 100).toFixed(0))
if (res < 50) {
this.mystatus = 'exception'
} else if (res >= 50 && res < 100) {