bug修复
This commit is contained in:
parent
10be9306a6
commit
95eaee6e30
|
|
@ -4,9 +4,9 @@
|
||||||
<el-button type="primary" size="small" @click="handleAdd" v-loading.fullscreen.lock="isLoading">
|
<el-button type="primary" size="small" @click="handleAdd" v-loading.fullscreen.lock="isLoading">
|
||||||
下 发
|
下 发
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" size="small" @click="openPreview" v-loading.fullscreen.lock="isLoading">
|
<!-- <el-button type="primary" size="small" @click="openPreview" v-loading.fullscreen.lock="isLoading">
|
||||||
预 览
|
预 览
|
||||||
</el-button>
|
</el-button>-->
|
||||||
</div>
|
</div>
|
||||||
<!-- 基础信息 -->
|
<!-- 基础信息 -->
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
|
|
@ -73,12 +73,14 @@
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="创建人" prop="createUserName">
|
<el-form-item label="创建人" prop="createUserName">
|
||||||
<el-input v-model="baseInfoForm.createUserName" placeholder="请输入创建人" class="cont-width" disabled v-no-whitespace />
|
<el-input v-model="baseInfoForm.createUserName" placeholder="请输入创建人" class="cont-width" disabled
|
||||||
|
v-no-whitespace />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="创建时间">
|
<el-form-item label="创建时间">
|
||||||
<el-input v-model="baseInfoForm.createTime" placeholder="请输入创建时间" class="cont-width" disabled v-no-whitespace />
|
<el-input v-model="baseInfoForm.createTime" placeholder="请输入创建时间" class="cont-width" disabled
|
||||||
|
v-no-whitespace />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
|
|
@ -332,13 +334,16 @@
|
||||||
:disabled="userType != '02'"
|
:disabled="userType != '02'"
|
||||||
>
|
>
|
||||||
<el-form-item label="责任人" prop="rectificationName">
|
<el-form-item label="责任人" prop="rectificationName">
|
||||||
<el-input v-model="rectificationForm.rectificationName" placeholder="请选择整改人" class="cont-width" v-no-whitespace />
|
<el-input v-model="rectificationForm.rectificationName" placeholder="请选择整改人" class="cont-width"
|
||||||
|
v-no-whitespace />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="产生原因描述" prop="causeDesc">
|
<el-form-item label="产生原因描述" prop="causeDesc">
|
||||||
<el-input v-model="rectificationForm.causeDesc" placeholder="请输入产生原因描述" class="cont-width" v-no-whitespace />
|
<el-input v-model="rectificationForm.causeDesc" placeholder="请输入产生原因描述" class="cont-width"
|
||||||
|
v-no-whitespace />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="整改情况" prop="rectificationDesc">
|
<el-form-item label="整改情况" prop="rectificationDesc">
|
||||||
<el-input v-model="rectificationForm.rectificationDesc" placeholder="请输入整改情况" class="cont-width" v-no-whitespace />
|
<el-input v-model="rectificationForm.rectificationDesc" placeholder="请输入整改情况" class="cont-width"
|
||||||
|
v-no-whitespace />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="上传图片" prop="imgList">
|
<el-form-item label="上传图片" prop="imgList">
|
||||||
<el-upload
|
<el-upload
|
||||||
|
|
@ -600,7 +605,7 @@ export default {
|
||||||
pitfallDescription: [{ required: true, message: '请输入隐患问题描述', trigger: 'blur' }],
|
pitfallDescription: [{ required: true, message: '请输入隐患问题描述', trigger: 'blur' }],
|
||||||
},
|
},
|
||||||
rules3: {
|
rules3: {
|
||||||
deptId: [{ required: true, message: '请选择整改验收部门', trigger: 'blur' }],
|
deptId: [{ required: true, message: '请选择整改验收部门', trigger: 'change' }],
|
||||||
userId: [{ required: true, message: '请选择整改验收人', trigger: 'change' }],
|
userId: [{ required: true, message: '请选择整改验收人', trigger: 'change' }],
|
||||||
isProcess: [{ required: true, message: '请选择是否进行流程审批', trigger: 'change' }],
|
isProcess: [{ required: true, message: '请选择是否进行流程审批', trigger: 'change' }],
|
||||||
// opinion: [{ required: true, message: '请输入整改意见', trigger: 'blur' }],
|
// opinion: [{ required: true, message: '请输入整改意见', trigger: 'blur' }],
|
||||||
|
|
@ -619,7 +624,7 @@ export default {
|
||||||
// 监听
|
// 监听
|
||||||
watch: {
|
watch: {
|
||||||
$route: {
|
$route: {
|
||||||
handler: function (route) {
|
handler: function(route) {
|
||||||
if (route.query.id) {
|
if (route.query.id) {
|
||||||
this.row = route.query
|
this.row = route.query
|
||||||
this.baseInfoForm.recordCode = this.row.recordCode
|
this.baseInfoForm.recordCode = this.row.recordCode
|
||||||
|
|
@ -659,7 +664,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 监听整改验收部门 acceptForm.deptId
|
// 监听整改验收部门 acceptForm.deptId
|
||||||
'acceptForm.deptId': {
|
'acceptForm.deptId': {
|
||||||
handler: function (val) {
|
handler: function(val) {
|
||||||
// this.deptOptions 是树形下拉的数据, 通过deptId 递归循环 找到对应的部门名称
|
// this.deptOptions 是树形下拉的数据, 通过deptId 递归循环 找到对应的部门名称
|
||||||
this.acceptForm.deptName = this.findDeptName(val, this.deptOptions)
|
this.acceptForm.deptName = this.findDeptName(val, this.deptOptions)
|
||||||
if (val) {
|
if (val) {
|
||||||
|
|
@ -898,6 +903,7 @@ export default {
|
||||||
isPass = false
|
isPass = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if (!isPass) return false
|
||||||
this.$refs.inspectForm.validate(valid => {
|
this.$refs.inspectForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
isPass = true
|
isPass = true
|
||||||
|
|
@ -905,6 +911,7 @@ export default {
|
||||||
isPass = false
|
isPass = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if (!isPass) return false
|
||||||
this.$refs.acceptForm.validate(valid => {
|
this.$refs.acceptForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
isPass = true
|
isPass = true
|
||||||
|
|
@ -977,13 +984,16 @@ export default {
|
||||||
.box-card {
|
.box-card {
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-header {
|
.card-header {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cont-width {
|
.cont-width {
|
||||||
width: 210px;
|
width: 210px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cont-width-textarea {
|
.cont-width-textarea {
|
||||||
width: 450px;
|
width: 450px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue