|
@@ -598,13 +598,13 @@
|
|
|
type="primary"
|
|
|
@click="submitForm"
|
|
|
v-if="btnnum != 0 && btnnum != 1 && zg != 3"
|
|
|
- >确 定</el-button
|
|
|
+ >确 定1</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="submitForm2"
|
|
|
v-if="btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
- >确 定</el-button
|
|
|
+ >确 定2</el-button
|
|
|
>
|
|
|
<el-button type="primary" @click="tongguofun" v-if="btnnum == 0"
|
|
|
>通 过</el-button
|
|
@@ -613,7 +613,7 @@
|
|
|
>重新整改</el-button
|
|
|
>
|
|
|
<el-button type="primary" @click="weitongguofun" v-if="btnnum == 1"
|
|
|
- >确 定</el-button
|
|
|
+ >确 定3</el-button
|
|
|
>
|
|
|
<el-button @click="cancel" size="btn">取 消</el-button>
|
|
|
</div>
|
|
@@ -820,12 +820,12 @@
|
|
|
<imageUpload v-model="form.pictureProof" :limit="1" />
|
|
|
<!-- <el-input v-model="form.pictureProof" placeholder="请输入图片举证" /> -->
|
|
|
</el-form-item>
|
|
|
- <div class="jiben" v-if="jiannum != 0">文件举证</div>
|
|
|
+ <div class="jiben" v-if="jiannum != 0&&wenName==1">文件举证</div>
|
|
|
<el-form-item
|
|
|
label
|
|
|
prop="documentProof"
|
|
|
:class="{ active: isActive }"
|
|
|
- v-if="jiannum != 0"
|
|
|
+ v-if="jiannum != 0&&wenName==1"
|
|
|
>
|
|
|
<!-- <fileUpload v-model="form.documentProof" /> -->
|
|
|
<!-- <fileUpload v-model="form.documentProof" :limit="1" /> -->
|
|
@@ -990,12 +990,12 @@ export default {
|
|
|
correctiveAction: [
|
|
|
{ required: true, message: "整改措施不能为空", trigger: "change" },
|
|
|
],
|
|
|
- pictureProof: [
|
|
|
- { required: true, message: "图片举证不能为空", trigger: "change" },
|
|
|
- ],
|
|
|
- documentProof: [
|
|
|
- { required: true, message: "文件举证不能为空", trigger: "change" },
|
|
|
- ],
|
|
|
+ // pictureProof: [
|
|
|
+ // { required: true, message: "图片举证不能为空", trigger: "change" },
|
|
|
+ // ],
|
|
|
+ // documentProof: [
|
|
|
+ // { required: true, message: "文件举证不能为空", trigger: "change" },
|
|
|
+ // ],
|
|
|
},
|
|
|
//单位
|
|
|
unitId: [],
|
|
@@ -1011,6 +1011,7 @@ export default {
|
|
|
isdisabled: false,
|
|
|
zg: null,
|
|
|
open3: false,
|
|
|
+ wenName:null,
|
|
|
isActive: null,
|
|
|
url: process.env.VUE_APP_BASE_API,
|
|
|
// 树形结构列表
|
|
@@ -1264,6 +1265,11 @@ export default {
|
|
|
getSpecialinfo(id).then((response) => {
|
|
|
this.disabled = true;
|
|
|
this.form = response.data;
|
|
|
+ if(response.data.wenjianname){
|
|
|
+ this.wenName=1
|
|
|
+ }else{
|
|
|
+ this.wenName=0
|
|
|
+ }
|
|
|
this.open3 = true;
|
|
|
this.title = "修改经常性检查";
|
|
|
this.jiannum = 1;
|
|
@@ -1303,22 +1309,27 @@ export default {
|
|
|
submitForm2() {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- if (this.form.documentProof) {
|
|
|
- if (typeof this.form.documentProof != "string") {
|
|
|
- let documentProofs = this.form.documentProof;
|
|
|
- this.form.documentProof = documentProofs[0].url;
|
|
|
- this.form.wenjianname = documentProofs[0].name;
|
|
|
+ if (this.form.pictureProof || this.form.documentProof) {
|
|
|
+ if (this.form.documentProof) {
|
|
|
+ if (typeof this.form.documentProof != "string") {
|
|
|
+ let documentProofs = this.form.documentProof;
|
|
|
+ this.form.documentProof = documentProofs[0].url;
|
|
|
+ this.form.wenjianname = documentProofs[0].name;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- this.form.caoZuoType = this.queryParams.caoZuoType;
|
|
|
- editquestion(this.form).then((response) => {
|
|
|
- this.$modal.msgSuccess("整改成功");
|
|
|
- this.open = false;
|
|
|
- this.open3 = false;
|
|
|
- // this.open3=false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
+ console.log(this.form);
|
|
|
+ this.form.caoZuoType = this.queryParams.caoZuoType;
|
|
|
+ editquestion(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("整改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.open3 = false;
|
|
|
+ // this.open3=false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error("请上传图片或者文件!");
|
|
|
}
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
@@ -1559,7 +1570,10 @@ hr {
|
|
|
::v-deep img {
|
|
|
object-fit: cover;
|
|
|
}
|
|
|
- ::v-deep .box5 .el-form-item__content{
|
|
|
+::v-deep .box5 .el-form-item__content {
|
|
|
width: 200px;
|
|
|
- }
|
|
|
+}
|
|
|
+::v-deep .el-link.el-link--default{
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
</style>
|