Commit 8816d947 authored by jingnan's avatar jingnan 👀

验收单保存接口修改

parent fe206c51
......@@ -334,9 +334,13 @@ export default {
onSubmit() {
const params = {
...this.form,
jobOrder: {
id: this.form.jobOrderId,
hasTestPass: !!(this.form.isPass === '合格' || this.form.isPass === 'Y')
},
'jobTestCheckItems': this.jobTestCheckItems
}
if (this.form.isPassCode === '合格' || this.form.isPassCode === 'Y') {
if (this.form.isPass === '合格' || this.form.isPass === 'Y') {
params.hasTestPass = true
} else {
params.hasTestPass = false
......
......@@ -919,9 +919,13 @@ export default {
onSubmit() {
const params = {
...this.form,
jobOrder: {
id: this.form.jobOrderId,
hasTestPass: !!(this.form.isPass === '合格' || this.form.isPass === 'Y')
},
'jobTestCheckItems': this.jobTestCheckItems
}
if (this.form.isPassCode === '合格' || this.form.isPassCode === 'Y') {
if (this.form.isPass === '合格' || this.form.isPass === 'Y') {
params.hasTestPass = true
} else {
params.hasTestPass = false
......
......@@ -304,9 +304,13 @@ export default {
onSubmit() {
const params = {
...this.form,
jobOrder: {
id: this.form.jobOrderId,
hasTestPass: !!(this.form.isPass === '合格' || this.form.isPass === 'Y')
},
'jobTestCheckItems': this.jobTestCheckItems
}
if (this.form.isPassCode === '合格' || this.form.isPassCode === 'Y') {
if (this.form.isPass === '合格' || this.form.isPass === 'Y') {
params.hasTestPass = true
} else {
params.hasTestPass = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment