|
|
@ -7,8 +7,8 @@ |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<!--start 添加修改按钮--> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" v-show="formobj.carConditionValue == '问题未解决'" @click="handleSave()">提交</el-button> |
|
|
|
<el-button type="success" size="small" v-show="formobj.carConditionValue == '正常'" @click="handlePass()">通过</el-button> |
|
|
|
<el-button type="primary" size="small" v-show="formobj.carConditionValue == '问题未解决'" :disabled="submitdisabled" @click="handleSave()">提交</el-button> |
|
|
|
<el-button type="success" size="small" v-show="formobj.carConditionValue == '正常'" :disabled="submitdisabled" @click="handlePass()">通过</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -203,7 +203,6 @@ export default { |
|
|
|
this.submitdisabled = true |
|
|
|
console.log(this.formobj) |
|
|
|
req.saveInspection(this.formobj).then((resp) => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
@ -230,7 +229,6 @@ export default { |
|
|
|
if (valid) { |
|
|
|
this.submitdisabled = true |
|
|
|
req.submitInspection(this.formobj).then((resp) => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
@ -273,6 +271,7 @@ export default { |
|
|
|
images: [] |
|
|
|
} |
|
|
|
this.list1 = [] |
|
|
|
this.submitdisabled = false |
|
|
|
this.$refs['form_obj'].resetFields() |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|