Commit 3dee3b4c by 张权

默认值bug修改

1 parent 3ad10f3c
......@@ -117,7 +117,7 @@ export default {
{
label: '报案号',
prop: 'registNo',
width: '200',
width: '220',
formatter: cellValue => {
return cellValue.registNo || '-'
}
......
......@@ -96,7 +96,9 @@ export default {
changeObjectType(newVal) {
if (newVal === 1) {
this.saveObj.objectType = newVal
this.accountForm = { ...this.saveObj }
delete this.saveObj.handlerName
delete this.saveObj.handlerPhone
this.accountForm = { ...this.accountForm, ...this.saveObj }
} else {
this.saveObj = { ...this.accountForm }
this.getAccountInfo(this.editForm.contractNo)
......@@ -121,7 +123,7 @@ export default {
this.accountForm[key] = res[key]
}
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.objectType = 0
this.serviceItemsList = serviceItemsList
// 以下是文件数据
res.files.forEach(item => {
......@@ -170,7 +172,7 @@ export default {
// }
this.accountForm = { ...this.accountForm, ...result }
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.objectType = 0
})
},
// 根据页面跳转参数处理表单信息-自动填入
......@@ -243,6 +245,9 @@ export default {
if (params.accountType !== 1) {
params.accountType = 0
}
if (params.objectType !== 1) {
params.objectType = 0
}
params.operation = type
params.reimbursementDate = params.reimbursementDate ? util.dateFormat(params.reimbursementDate, 'YYYY-MM-DD HH:mm:ss') : ''
params.reportDate = params.reportDate ? util.dateFormat(params.reportDate, 'YYYY-MM-DD HH:mm:ss') : ''
......
......@@ -117,7 +117,7 @@ export default {
{
label: '报案号',
prop: 'registNo',
width: '200',
width: '220',
formatter: cellValue => {
return cellValue.registNo || '-'
}
......
......@@ -96,7 +96,9 @@ export default {
changeObjectType(newVal) {
if (newVal === 1) {
this.saveObj.objectType = newVal
this.accountForm = { ...this.saveObj }
delete this.saveObj.handlerName
delete this.saveObj.handlerPhone
this.accountForm = { ...this.accountForm, ...this.saveObj }
} else {
this.saveObj = { ...this.accountForm }
this.getAccountInfo(this.editForm.contractNo)
......@@ -121,7 +123,7 @@ export default {
this.accountForm[key] = res[key]
}
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.objectType = 0
this.serviceItemsList = serviceItemsList
// 以下是文件数据
res.files.forEach(item => {
......@@ -170,7 +172,7 @@ export default {
// }
this.accountForm = { ...this.accountForm, ...result }
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.objectType = 0
})
},
// 根据页面跳转参数处理表单信息-自动填入
......@@ -243,6 +245,9 @@ export default {
if (params.accountType !== 1) {
params.accountType = 0
}
if (params.objectType !== 1) {
params.objectType = 0
}
params.operation = type
params.reimbursementDate = params.reimbursementDate ? util.dateFormat(params.reimbursementDate, 'YYYY-MM-DD HH:mm:ss') : ''
params.reportDate = params.reportDate ? util.dateFormat(params.reportDate, 'YYYY-MM-DD HH:mm:ss') : ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!