Commit 39cbbac1 by 张权

暂时屏蔽默认值问题

1 parent 3dee3b4c
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
this.accountForm[key] = res[key] this.accountForm[key] = res[key]
} }
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0 if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.objectType = 0 if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
this.serviceItemsList = serviceItemsList this.serviceItemsList = serviceItemsList
// 以下是文件数据 // 以下是文件数据
res.files.forEach(item => { res.files.forEach(item => {
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
// } // }
this.accountForm = { ...this.accountForm, ...result } this.accountForm = { ...this.accountForm, ...result }
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0 if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.objectType = 0 if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
}) })
}, },
// 根据页面跳转参数处理表单信息-自动填入 // 根据页面跳转参数处理表单信息-自动填入
...@@ -245,9 +245,6 @@ export default { ...@@ -245,9 +245,6 @@ export default {
if (params.accountType !== 1) { if (params.accountType !== 1) {
params.accountType = 0 params.accountType = 0
} }
if (params.objectType !== 1) {
params.objectType = 0
}
params.operation = type params.operation = type
params.reimbursementDate = params.reimbursementDate ? util.dateFormat(params.reimbursementDate, 'YYYY-MM-DD HH:mm:ss') : '' 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') : '' params.reportDate = params.reportDate ? util.dateFormat(params.reportDate, 'YYYY-MM-DD HH:mm:ss') : ''
......
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
this.accountForm[key] = res[key] this.accountForm[key] = res[key]
} }
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0 if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.objectType = 0 if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
this.serviceItemsList = serviceItemsList this.serviceItemsList = serviceItemsList
// 以下是文件数据 // 以下是文件数据
res.files.forEach(item => { res.files.forEach(item => {
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
// } // }
this.accountForm = { ...this.accountForm, ...result } this.accountForm = { ...this.accountForm, ...result }
if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0 if (this.accountForm.accountType !== 1) this.accountForm.accountType = 0
if (this.accountForm.objectType !== 1) this.accountForm.objectType = 0 if (this.accountForm.objectType !== 1) this.accountForm.accountType = 0
}) })
}, },
// 根据页面跳转参数处理表单信息-自动填入 // 根据页面跳转参数处理表单信息-自动填入
...@@ -245,9 +245,6 @@ export default { ...@@ -245,9 +245,6 @@ export default {
if (params.accountType !== 1) { if (params.accountType !== 1) {
params.accountType = 0 params.accountType = 0
} }
if (params.objectType !== 1) {
params.objectType = 0
}
params.operation = type params.operation = type
params.reimbursementDate = params.reimbursementDate ? util.dateFormat(params.reimbursementDate, 'YYYY-MM-DD HH:mm:ss') : '' 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') : '' 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!