|
@@ -345,9 +345,9 @@
|
|
|
type="text"
|
|
|
v-if="
|
|
|
scope.row.caoZuoType == '0' &&
|
|
|
- scope.row.isCaoZuoDept == 0 &&
|
|
|
- (scope.row.currentState == '未通过' ||
|
|
|
- scope.row.currentState == '待处理')
|
|
|
+ scope.row.isCaoZuoDept == 0 &&
|
|
|
+ (scope.row.currentState == '未通过' ||
|
|
|
+ scope.row.currentState == '待处理')
|
|
|
"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
>整改</el-button
|
|
@@ -358,8 +358,8 @@
|
|
|
@click="shenpifun(scope.row)"
|
|
|
v-if="
|
|
|
queryParams.caoZuoType == 0 &&
|
|
|
- scope.row.isShenPi == 0 &&
|
|
|
- scope.row.currentState == '待验收'
|
|
|
+ scope.row.isShenPi == 0 &&
|
|
|
+ scope.row.currentState == '待验收'
|
|
|
"
|
|
|
>审批</el-button
|
|
|
>
|
|
@@ -600,7 +600,11 @@
|
|
|
</el-form-item>
|
|
|
<div class="jiben" v-if="jiannum != 0">文件举证</div>
|
|
|
<el-form-item label prop="documentProof" v-if="jiannum != 0">
|
|
|
- <fileUpload v-model="form.documentProof" />
|
|
|
+ <fileUpload
|
|
|
+ v-model="form.documentProof"
|
|
|
+ :limit="1"
|
|
|
+ :class="{ active: isActive }"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<div class="jiben" v-if="currentState == 1">未通过原因</div>
|
|
|
<el-form-item label prop="score" v-if="currentState == 1">
|
|
@@ -637,6 +641,7 @@
|
|
|
<el-button @click="cancel" size="btn">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
<el-dialog
|
|
|
:title="title"
|
|
|
:visible.sync="open1"
|
|
@@ -775,7 +780,7 @@ import {
|
|
|
editissuccess,
|
|
|
editisfalse,
|
|
|
bumenlist,
|
|
|
- listRegularinfos
|
|
|
+ listRegularinfos,
|
|
|
} from "@/api/bdglregular/regularinfo";
|
|
|
import { getUserProfile } from "@/api/system/user";
|
|
|
export default {
|
|
@@ -825,7 +830,7 @@ export default {
|
|
|
correctiveAction: null,
|
|
|
pictureProof: null,
|
|
|
documentProof: null,
|
|
|
- caoZuoType: 0
|
|
|
+ caoZuoType: 0,
|
|
|
},
|
|
|
// 用户
|
|
|
user: {},
|
|
@@ -836,27 +841,27 @@ export default {
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
unitCheck: [
|
|
|
- { required: true, message: "检查单位不能为空", trigger: "change" }
|
|
|
+ { required: true, message: "检查单位不能为空", trigger: "change" },
|
|
|
],
|
|
|
inspectedUnit: [
|
|
|
- { required: true, message: "受检单位不能为空", trigger: "change" }
|
|
|
+ { required: true, message: "受检单位不能为空", trigger: "change" },
|
|
|
],
|
|
|
inspectionType: [
|
|
|
- { required: true, message: "类型不能为空", trigger: "change" }
|
|
|
+ { required: true, message: "类型不能为空", trigger: "change" },
|
|
|
],
|
|
|
inspectionTime: [
|
|
|
- { required: true, message: "检查时间不能为空", trigger: "change" }
|
|
|
+ { required: true, message: "检查时间不能为空", trigger: "change" },
|
|
|
],
|
|
|
inspectionSite: [
|
|
|
- { required: true, message: "检查地点不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "检查地点不能为空", trigger: "blur" },
|
|
|
],
|
|
|
score: [{ required: true, message: "分值不能为空", trigger: "blur" }],
|
|
|
rectificationTime: [
|
|
|
- { required: true, message: "整改时间不能为空", trigger: "change" }
|
|
|
+ { required: true, message: "整改时间不能为空", trigger: "change" },
|
|
|
],
|
|
|
chargePeople: [
|
|
|
- { required: true, message: "负责人不能为空", trigger: "change" }
|
|
|
- ]
|
|
|
+ { required: true, message: "负责人不能为空", trigger: "change" },
|
|
|
+ ],
|
|
|
},
|
|
|
//单位
|
|
|
unitId: [],
|
|
@@ -872,7 +877,8 @@ export default {
|
|
|
curr: null,
|
|
|
isdisabled: false,
|
|
|
open1: false,
|
|
|
- zg: null
|
|
|
+ zg: null,
|
|
|
+ isActive: null,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -898,28 +904,28 @@ export default {
|
|
|
correctiveAction: null,
|
|
|
pictureProof: null,
|
|
|
documentProof: null,
|
|
|
- caoZuoType: 0
|
|
|
+ caoZuoType: 0,
|
|
|
};
|
|
|
// this.danWiess()
|
|
|
//部门数据
|
|
|
- getDept().then(res => {
|
|
|
+ getDept().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.unitId = res.data;
|
|
|
}
|
|
|
});
|
|
|
//调动人员对象
|
|
|
- listPeople().then(res => {
|
|
|
+ listPeople().then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.peopleIds = res.rows;
|
|
|
}
|
|
|
});
|
|
|
//检查类型
|
|
|
- this.getDicts("inspectionType").then(response => {
|
|
|
+ this.getDicts("inspectionType").then((response) => {
|
|
|
this.inspectionType = response.data;
|
|
|
});
|
|
|
|
|
|
if (this.$route.query.id) {
|
|
|
- bumenlist(this.$route.query.id).then(res => {
|
|
|
+ bumenlist(this.$route.query.id).then((res) => {
|
|
|
console.log(1);
|
|
|
this.regularinfoList = res.rows;
|
|
|
this.total = res.total;
|
|
@@ -952,10 +958,10 @@ export default {
|
|
|
correctiveAction: null,
|
|
|
pictureProof: null,
|
|
|
documentProof: null,
|
|
|
- caoZuoType: 0
|
|
|
+ caoZuoType: 0,
|
|
|
};
|
|
|
if (to.query.id) {
|
|
|
- bumenlist(to.query.id).then(res => {
|
|
|
+ bumenlist(to.query.id).then((res) => {
|
|
|
this.regularinfoList = res.rows;
|
|
|
this.total = res.total;
|
|
|
this.loading = false;
|
|
@@ -964,7 +970,7 @@ export default {
|
|
|
this.queryParams.inspectedUnitId = to.query.obj.id + "";
|
|
|
this.queryParams.currentState = to.query.obj.name + "";
|
|
|
|
|
|
- listRegularinfos(this.queryParams).then(res => {
|
|
|
+ listRegularinfos(this.queryParams).then((res) => {
|
|
|
console.log(res);
|
|
|
this.regularinfoList = res.rows;
|
|
|
this.total = res.total;
|
|
@@ -976,7 +982,7 @@ export default {
|
|
|
|
|
|
// listRegularinfos
|
|
|
// console.log(to.query.obj);
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
console.log(0);
|
|
@@ -985,7 +991,7 @@ export default {
|
|
|
methods: {
|
|
|
danWiess() {
|
|
|
// 获取当前用户接口
|
|
|
- getUserProfile().then(response => {
|
|
|
+ getUserProfile().then((response) => {
|
|
|
this.user = response.data;
|
|
|
console.log(this.user);
|
|
|
// console.log(response.data.dept.deptId+"这是")
|
|
@@ -996,7 +1002,7 @@ export default {
|
|
|
/** 查询经常性检查列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listRegularinfo(this.queryParams).then(response => {
|
|
|
+ listRegularinfo(this.queryParams).then((response) => {
|
|
|
this.regularinfoList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
@@ -1032,7 +1038,7 @@ export default {
|
|
|
correctiveAction: null,
|
|
|
pictureProof: null,
|
|
|
documentProof: null,
|
|
|
- reasonReturn: null
|
|
|
+ reasonReturn: null,
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -1048,7 +1054,7 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map(item => item.id);
|
|
|
+ this.ids = selection.map((item) => item.id);
|
|
|
this.single = selection.length !== 1;
|
|
|
this.multiple = !selection.length;
|
|
|
},
|
|
@@ -1101,13 +1107,14 @@ export default {
|
|
|
console.log(row);
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
|
- getRegularinfo(id).then(response => {
|
|
|
+ getRegularinfo(id).then((response) => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
this.title = "修改经常性检查";
|
|
|
this.jiannum = 1;
|
|
|
this.btnnum = null;
|
|
|
this.zg = 3;
|
|
|
+ this.isActive = null;
|
|
|
if (this.form.currentState == "未通过") {
|
|
|
this.currentState = 1;
|
|
|
this.curr = true;
|
|
@@ -1119,7 +1126,7 @@ export default {
|
|
|
this.isdisabled = true;
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
|
- getRegularinfo(id).then(response => {
|
|
|
+ getRegularinfo(id).then((response) => {
|
|
|
this.form = response.data;
|
|
|
this.open1 = true;
|
|
|
this.title = "修改经常性检查";
|
|
@@ -1135,18 +1142,19 @@ export default {
|
|
|
shenpifun(row) {
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
|
- getRegularinfo(id).then(response => {
|
|
|
+ getRegularinfo(id).then((response) => {
|
|
|
this.disabled = true;
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
this.title = "修改经常性检查";
|
|
|
this.jiannum = 1;
|
|
|
this.btnnum = 0;
|
|
|
+ this.isActive = 1;
|
|
|
});
|
|
|
},
|
|
|
//通过
|
|
|
tongguofun() {
|
|
|
- editissuccess(this.form).then(res => {
|
|
|
+ editissuccess(this.form).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$modal.msgSuccess("审批成功");
|
|
|
this.open = false;
|
|
@@ -1170,14 +1178,16 @@ export default {
|
|
|
},
|
|
|
//未通过提交
|
|
|
weitongguofun() {
|
|
|
- editisfalse(this.form).then(res => {
|
|
|
+ editisfalse(this.form).then((res) => {
|
|
|
this.$modal.msgSuccess("操作成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
},
|
|
|
submitForm2() {
|
|
|
- editquestion(this.form).then(response => {
|
|
|
+ this.form.documentProof = this.form.documentProof[0].url;
|
|
|
+ // console.log(this.form);
|
|
|
+ editquestion(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("整改成功");
|
|
|
this.open = false;
|
|
|
this.open1 = false;
|
|
@@ -1187,7 +1197,7 @@ export default {
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
// console.log(this.form)
|
|
|
- this.$refs["form"].validate(valid => {
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (this.form.documentProof) {
|
|
|
this.form.documentProof = this.form.documentProof[0].url;
|
|
@@ -1195,7 +1205,7 @@ export default {
|
|
|
|
|
|
if (this.form.id != null) {
|
|
|
this.form.caoZuoType = this.queryParams.caoZuoType;
|
|
|
- updateRegularinfo(this.form).then(response => {
|
|
|
+ updateRegularinfo(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.open1 = false;
|
|
@@ -1203,7 +1213,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
this.form.caoZuoType = this.queryParams.caoZuoType;
|
|
|
- addRegularinfo(this.form).then(response => {
|
|
|
+ addRegularinfo(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.open1 = false;
|
|
@@ -1218,7 +1228,7 @@ export default {
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$modal
|
|
|
.confirm("是否确认删除经常性检查的数据项?")
|
|
|
- .then(function() {
|
|
|
+ .then(function () {
|
|
|
return delRegularinfo(ids);
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -1236,7 +1246,7 @@ export default {
|
|
|
this.exportLoading = true;
|
|
|
return exportRegularinfo(queryParams);
|
|
|
})
|
|
|
- .then(response => {
|
|
|
+ .then((response) => {
|
|
|
this.$download.name(response.msg);
|
|
|
this.exportLoading = false;
|
|
|
})
|
|
@@ -1265,8 +1275,8 @@ export default {
|
|
|
if (this.form.score < 0) {
|
|
|
this.form.score = null;
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|
|
@@ -1395,4 +1405,10 @@ hr {
|
|
|
height: 1px;
|
|
|
background-color: rgba(204, 204, 204, 0.5);
|
|
|
}
|
|
|
+::v-deep img {
|
|
|
+ object-fit: cover;
|
|
|
+}
|
|
|
+::v-deep .active .upload-file-uploader .el-upload .el-button {
|
|
|
+ display: none;
|
|
|
+}
|
|
|
</style>
|