Browse Source

完善日常巡检

zhanglei
yunuo970428 2 years ago
parent
commit
bcbc60dd29
  1. 7
      anrui-scm/anrui-scm-ui/src/views/kucunguanli/cheliangweihu/richangxunjian/daixunjian.vue
  2. 10
      anrui-scm/anrui-scm-ui/src/views/kucunguanli/cheliangweihu/richangxunjian/xunjiandan.vue
  3. 4
      anrui-scm/anrui-scm-ui/src/views/kucunguanli/cheliangweihu/richangxunjian/xunjianresolved.vue

7
anrui-scm/anrui-scm-ui/src/views/kucunguanli/cheliangweihu/richangxunjian/daixunjian.vue

@ -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')
}

10
anrui-scm/anrui-scm-ui/src/views/kucunguanli/cheliangweihu/richangxunjian/xunjiandan.vue

@ -7,7 +7,7 @@
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" @click="handleSave()">提交</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handleSave()">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
@ -202,15 +202,14 @@ export default {
// this.$message({ showClose: true, type: 'error', message: '' })
// return
// }
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
if (this.formobj.images.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请上传相关照片' })
return
}
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.saveInspection(this.formobj).then((resp) => {
this.submitdisabled = false
if (resp.success) {
this.$message({
showClose: true,
@ -253,6 +252,7 @@ export default {
images: []
}
this.list1 = []
this.submitdisabled = false
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}

4
anrui-scm/anrui-scm-ui/src/views/kucunguanli/cheliangweihu/richangxunjian/xunjianresolved.vue

@ -7,7 +7,7 @@
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" @click="handlePass()">已解决</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="handlePass()">已解决</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
@ -208,7 +208,6 @@ export default {
if (valid) {
this.submitdisabled = true
req.submitInspection(this.formobj).then((resp) => {
this.submitdisabled = false
if (resp.success) {
this.$message({
showClose: true,
@ -252,6 +251,7 @@ export default {
images: []
}
this.list1 = []
this.submitdisabled = false
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}

Loading…
Cancel
Save