|
@@ -172,6 +172,7 @@
|
|
|
</el-radio-group>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
<hr />
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
@@ -243,6 +244,42 @@
|
|
|
:showSearch.sync="showSearch"
|
|
|
@queryTable="getList"
|
|
|
></right-toolbar> -->
|
|
|
+ <el-form
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryForm"
|
|
|
+ :inline="true"
|
|
|
+ v-show="showSearch"
|
|
|
+ label-width="68px"
|
|
|
+ >
|
|
|
+ <el-form-item prop="inspectedUnitId">
|
|
|
+ <treeselect
|
|
|
+ v-model="queryParams.inspectedUnitId"
|
|
|
+ :options="deptOptions"
|
|
|
+ placeholder="请选择受检单位"
|
|
|
+ @select="selectPeos"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="currentState">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.currentState"
|
|
|
+ placeholder="请选择状态"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ @change="handleQuery"
|
|
|
+ class="states"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in statelist"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button size="btr" @click="resetQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
</el-row>
|
|
|
|
|
|
<el-table
|
|
@@ -254,7 +291,7 @@
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="序号" align="center" type="index" />
|
|
|
<el-table-column
|
|
|
- :label="queryParams.caoZuoType == 0?'受检单位':'单位'"
|
|
|
+ :label="queryParams.caoZuoType == 0 ? '受检单位' : '单位'"
|
|
|
align="center"
|
|
|
key="inspectedUnit"
|
|
|
prop="inspectedUnit"
|
|
@@ -426,7 +463,11 @@
|
|
|
label-width="120px"
|
|
|
>
|
|
|
<div class="jiben">基本信息</div>
|
|
|
- <el-form-item label="检查单位" prop="unitCheck" v-if="queryParams.caoZuoType == 0">
|
|
|
+ <el-form-item
|
|
|
+ label="检查单位"
|
|
|
+ prop="unitCheck"
|
|
|
+ v-if="queryParams.caoZuoType == 0"
|
|
|
+ >
|
|
|
<el-select
|
|
|
v-model="form.unitCheck"
|
|
|
@change="unitCheckIdfun"
|
|
@@ -442,12 +483,17 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="queryParams.caoZuoType == 0?'受检单位':'单位'" prop="inspectedUnit">
|
|
|
+ <el-form-item
|
|
|
+ :label="queryParams.caoZuoType == 0 ? '受检单位' : '单位'"
|
|
|
+ prop="inspectedUnit"
|
|
|
+ >
|
|
|
<el-select
|
|
|
v-model="form.inspectedUnit"
|
|
|
@change="inspectedUnitfun"
|
|
|
clearable
|
|
|
- :placeholder="queryParams.caoZuoType == 0?'请选择受检单位':'请选择单位'"
|
|
|
+ :placeholder="
|
|
|
+ queryParams.caoZuoType == 0 ? '请选择受检单位' : '请选择单位'
|
|
|
+ "
|
|
|
:disabled="disabled && btnnum != 0 && btnnum != 1 && zg == 3"
|
|
|
>
|
|
|
<el-option
|
|
@@ -473,7 +519,7 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="检查时间" prop="inspectionTime" >
|
|
|
+ <el-form-item label="检查时间" prop="inspectionTime">
|
|
|
<el-date-picker
|
|
|
clearable
|
|
|
size="small"
|
|
@@ -619,7 +665,11 @@
|
|
|
label-width="120px"
|
|
|
>
|
|
|
<div class="jiben">基本信息</div>
|
|
|
- <el-form-item label="检查单位" prop="unitCheck" v-if="queryParams.caoZuoType == 0">
|
|
|
+ <el-form-item
|
|
|
+ label="检查单位"
|
|
|
+ prop="unitCheck"
|
|
|
+ v-if="queryParams.caoZuoType == 0"
|
|
|
+ >
|
|
|
<el-select
|
|
|
v-model="form.unitCheck"
|
|
|
@change="unitCheckIdfun"
|
|
@@ -635,12 +685,17 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="queryParams.caoZuoType == 0?'受检单位':'单位'" prop="inspectedUnit">
|
|
|
+ <el-form-item
|
|
|
+ :label="queryParams.caoZuoType == 0 ? '受检单位' : '单位'"
|
|
|
+ prop="inspectedUnit"
|
|
|
+ >
|
|
|
<el-select
|
|
|
v-model="form.inspectedUnit"
|
|
|
@change="inspectedUnitfun"
|
|
|
clearable
|
|
|
- :placeholder="queryParams.caoZuoType == 0?'请选择受检单位':'请选择单位'"
|
|
|
+ :placeholder="
|
|
|
+ queryParams.caoZuoType == 0 ? '请选择受检单位' : '请选择单位'
|
|
|
+ "
|
|
|
:disabled="disabled"
|
|
|
>
|
|
|
<el-option
|
|
@@ -666,7 +721,7 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="检查时间" prop="inspectionTime" >
|
|
|
+ <el-form-item label="检查时间" prop="inspectionTime">
|
|
|
<el-date-picker
|
|
|
clearable
|
|
|
size="small"
|
|
@@ -740,7 +795,11 @@
|
|
|
label-width="120px"
|
|
|
>
|
|
|
<div class="jiben">基本信息</div>
|
|
|
- <el-form-item label="检查单位" prop="unitCheck" v-if="queryParams.caoZuoType == 0">
|
|
|
+ <el-form-item
|
|
|
+ label="检查单位"
|
|
|
+ prop="unitCheck"
|
|
|
+ v-if="queryParams.caoZuoType == 0"
|
|
|
+ >
|
|
|
<el-select
|
|
|
v-model="form.unitCheck"
|
|
|
@change="unitCheckIdfun"
|
|
@@ -756,12 +815,17 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="queryParams.caoZuoType == 0?'受检单位':'单位'" prop="inspectedUnit">
|
|
|
+ <el-form-item
|
|
|
+ :label="queryParams.caoZuoType == 0 ? '受检单位' : '单位'"
|
|
|
+ prop="inspectedUnit"
|
|
|
+ >
|
|
|
<el-select
|
|
|
v-model="form.inspectedUnit"
|
|
|
@change="inspectedUnitfun"
|
|
|
clearable
|
|
|
- :placeholder="queryParams.caoZuoType == 0?'请选择受检单位':'请选择单位'"
|
|
|
+ :placeholder="
|
|
|
+ queryParams.caoZuoType == 0 ? '请选择受检单位' : '请选择单位'
|
|
|
+ "
|
|
|
:disabled="disabled"
|
|
|
>
|
|
|
<el-option
|
|
@@ -787,7 +851,7 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="检查时间" prop="inspectionTime" >
|
|
|
+ <el-form-item label="检查时间" prop="inspectionTime">
|
|
|
<el-date-picker
|
|
|
clearable
|
|
|
size="small"
|
|
@@ -948,12 +1012,24 @@ import {
|
|
|
editissuccess,
|
|
|
editisfalse,
|
|
|
bumenlist,
|
|
|
+ getDeptss,
|
|
|
listRegularinfos,
|
|
|
} from "@/api/bdglregular/regularinfo";
|
|
|
import { getUserProfile } from "@/api/system/user";
|
|
|
+// 查询字典
|
|
|
+import { getDicts } from "@/api/system/dict/data";
|
|
|
+// import {
|
|
|
+// getDept
|
|
|
+// } from "@/api/grassrootsregistration/bdglmeeting";
|
|
|
+// 导入树形结构
|
|
|
+import Treeselect from "@riophae/vue-treeselect";
|
|
|
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
export default {
|
|
|
name: "Regularinfo",
|
|
|
dicts: ["inspectionType"],
|
|
|
+ components: {
|
|
|
+ Treeselect,
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
@@ -1033,6 +1109,8 @@ export default {
|
|
|
},
|
|
|
//单位
|
|
|
unitId: [],
|
|
|
+ // 树形结构列表
|
|
|
+ deptOptions: [],
|
|
|
//检查类型
|
|
|
inspectionType: [],
|
|
|
//调动人员对象
|
|
@@ -1050,6 +1128,7 @@ export default {
|
|
|
sp: null,
|
|
|
open3: false,
|
|
|
url: process.env.VUE_APP_BASE_API,
|
|
|
+ statelist: ["未通过", "待处理", "待验收", "已通过", "已逾期"],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -1095,8 +1174,9 @@ export default {
|
|
|
this.inspectionType = response.data;
|
|
|
});
|
|
|
if (this.$route.query.obj) {
|
|
|
- this.queryParams.inspectedUnitId =this.$route.query.obj.id
|
|
|
- listRegularinfos( this.queryParams).then((res) => {
|
|
|
+ this.queryParams.inspectedUnitId = this.$route.query.obj.id;
|
|
|
+ this.queryParams.currentState = this.$route.query.obj.name;
|
|
|
+ listRegularinfos(this.queryParams).then((res) => {
|
|
|
this.regularinfoList = res.rows;
|
|
|
this.total = res.total;
|
|
|
this.loading = false;
|
|
@@ -1104,9 +1184,11 @@ export default {
|
|
|
} else {
|
|
|
this.getList();
|
|
|
}
|
|
|
+ // 获取单位树形
|
|
|
+ this.getBuMeng();
|
|
|
},
|
|
|
watch: {
|
|
|
- $route(to, from) {
|
|
|
+ $route(to, from) {
|
|
|
this.queryParams = {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
@@ -1130,8 +1212,8 @@ export default {
|
|
|
documentProof: null,
|
|
|
caoZuoType: 0,
|
|
|
};
|
|
|
- if (to.query.obj) {
|
|
|
- this.queryParams.inspectedUnitId = to.query.obj.id ;
|
|
|
+ if (to.query.obj) {
|
|
|
+ this.queryParams.inspectedUnitId = to.query.obj.id;
|
|
|
this.queryParams.currentState = to.query.obj.name;
|
|
|
listRegularinfos(this.queryParams).then((res) => {
|
|
|
this.regularinfoList = res.rows;
|
|
@@ -1148,6 +1230,16 @@ export default {
|
|
|
// this.danWiess()
|
|
|
},
|
|
|
methods: {
|
|
|
+ selectPeos(data) {
|
|
|
+ this.queryParams.inspectedUnitId = data.id;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ // 获取单位列表
|
|
|
+ getBuMeng() {
|
|
|
+ getDeptss().then((res) => {
|
|
|
+ this.deptOptions = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
danWiess() {
|
|
|
// 获取当前用户接口
|
|
|
getUserProfile().then((response) => {
|
|
@@ -1219,7 +1311,6 @@ export default {
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
- console.log(this.queryParams.caoZuoType)
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
this.title = "经常性检查";
|
|
@@ -1454,6 +1545,20 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
+/* 选择状态样式 */
|
|
|
+::v-deep .states .el-input .el-input__inner{
|
|
|
+ background-color: transparent !important;
|
|
|
+}
|
|
|
+/* 树形样式 */
|
|
|
+::v-deep .vue-treeselect {
|
|
|
+ width: 220px;
|
|
|
+}
|
|
|
+::v-deep .vue-treeselect__control {
|
|
|
+ background-color: transparent;
|
|
|
+}
|
|
|
+::v-deep .vue-treeselect__single-value {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
::v-deep .el-dialog {
|
|
|
width: 1030px !important;
|
|
|
background-color: #004d86;
|