|
@@ -25,7 +25,7 @@
|
|
|
name="planName"
|
|
name="planName"
|
|
|
placeholder="请输入任务名称"
|
|
placeholder="请输入任务名称"
|
|
|
clearable
|
|
clearable
|
|
|
- style="width: 100%"
|
|
|
|
|
|
|
+ style="width: 100%"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -125,7 +125,7 @@
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item prop="execOrgType" label="检查主体类型:">
|
|
<el-form-item prop="execOrgType" label="检查主体类型:">
|
|
|
<el-select
|
|
<el-select
|
|
|
- :disabled="cannotEdit()"
|
|
|
|
|
|
|
+ :disabled="cannotEdit() || this.disableFlag"
|
|
|
@change="cleanExecOrgList"
|
|
@change="cleanExecOrgList"
|
|
|
prop="execOrgType"
|
|
prop="execOrgType"
|
|
|
v-model="formData.execOrgType"
|
|
v-model="formData.execOrgType"
|
|
@@ -155,9 +155,9 @@
|
|
|
:disable="true"
|
|
:disable="true"
|
|
|
>
|
|
>
|
|
|
</org-tree-select> -->
|
|
</org-tree-select> -->
|
|
|
- <org-select ref="execorgTreeSelect"
|
|
|
|
|
|
|
+ <org-select ref="execorgTreeSelect"
|
|
|
v-model="formData.execOrgIds"
|
|
v-model="formData.execOrgIds"
|
|
|
- :limitOrgType="String(formData.execOrgType?formData.execOrgType:'')"
|
|
|
|
|
|
|
+ :limitOrgType="String(formData.execOrgType?formData.execOrgType:'')"
|
|
|
:disabled="cannotEdit()"
|
|
:disabled="cannotEdit()"
|
|
|
>
|
|
>
|
|
|
</org-select>
|
|
</org-select>
|
|
@@ -189,7 +189,7 @@
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item prop="checkOrgTypes" label="受检机构类型:">
|
|
<el-form-item prop="checkOrgTypes" label="受检机构类型:">
|
|
|
<el-select
|
|
<el-select
|
|
|
- :disabled="cannotEdit()"
|
|
|
|
|
|
|
+ :disabled="cannotEdit() || this.disableFlag"
|
|
|
@change="cleanCheckOrgList"
|
|
@change="cleanCheckOrgList"
|
|
|
prop="checkOrgTypes"
|
|
prop="checkOrgTypes"
|
|
|
label="受检机构类型"
|
|
label="受检机构类型"
|
|
@@ -223,22 +223,22 @@
|
|
|
? null
|
|
? null
|
|
|
: parseInt(formData.checkOrgTypes[0])
|
|
: parseInt(formData.checkOrgTypes[0])
|
|
|
"
|
|
"
|
|
|
-
|
|
|
|
|
- :disable="true"
|
|
|
|
|
|
|
+
|
|
|
|
|
+ :disable="true"
|
|
|
:checkShow="true"
|
|
:checkShow="true"
|
|
|
>
|
|
>
|
|
|
</org-tree-select> -->
|
|
</org-tree-select> -->
|
|
|
- <org-select ref="checkorgTreeSelect"
|
|
|
|
|
|
|
+ <org-select ref="checkorgTreeSelect"
|
|
|
v-model="formData.checkOrgIds"
|
|
v-model="formData.checkOrgIds"
|
|
|
:limitOrgType="formData.checkOrgTypes == null ||
|
|
:limitOrgType="formData.checkOrgTypes == null ||
|
|
|
formData.checkOrgTypes.length > 1
|
|
formData.checkOrgTypes.length > 1
|
|
|
? null
|
|
? null
|
|
|
: String(formData.checkOrgTypes[0]?formData.checkOrgTypes[0]:'')
|
|
: String(formData.checkOrgTypes[0]?formData.checkOrgTypes[0]:'')
|
|
|
- "
|
|
|
|
|
- :disabled="cannotEdit()"
|
|
|
|
|
|
|
+ "
|
|
|
|
|
+ :disabled="cannotEdit() || this.disableFlag"
|
|
|
>
|
|
>
|
|
|
</org-select>
|
|
</org-select>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<!-- <el-col :span="6"> -->
|
|
<!-- <el-col :span="6"> -->
|
|
@@ -392,7 +392,7 @@ import { findAllRole, findRoleByType } from "@/api/system/role";
|
|
|
import { getLabel } from "@/views/commonOption";
|
|
import { getLabel } from "@/views/commonOption";
|
|
|
import DialogSelect from "@/views/safetycheck/ruleManager/dialog.select.point.vue";
|
|
import DialogSelect from "@/views/safetycheck/ruleManager/dialog.select.point.vue";
|
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
|
-import orgSelect from "@/components/orgSelect/zl.orgSelect.vue";
|
|
|
|
|
|
|
+import orgSelect from "@/components/orgSelect/zl.orgSelect.vue";
|
|
|
export default {
|
|
export default {
|
|
|
dicts: [
|
|
dicts: [
|
|
|
"sys_org_type",
|
|
"sys_org_type",
|
|
@@ -403,6 +403,7 @@ export default {
|
|
|
],
|
|
],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ disableFlag:false,
|
|
|
loading: false,
|
|
loading: false,
|
|
|
parentCount: 1,
|
|
parentCount: 1,
|
|
|
defaultSelect: [],
|
|
defaultSelect: [],
|
|
@@ -464,6 +465,7 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
//选择计划类型修改联动框
|
|
//选择计划类型修改联动框
|
|
|
changeData() {
|
|
changeData() {
|
|
|
|
|
+ this.disableFlag = false;
|
|
|
//判断计划类型
|
|
//判断计划类型
|
|
|
switch (this.formData.checkType) {
|
|
switch (this.formData.checkType) {
|
|
|
//如果是 【定期检查】全省农信系统安全检查
|
|
//如果是 【定期检查】全省农信系统安全检查
|
|
@@ -511,6 +513,10 @@ export default {
|
|
|
this.formData.count = 3;
|
|
this.formData.count = 3;
|
|
|
//检查内容
|
|
//检查内容
|
|
|
this.tableData = null;
|
|
this.tableData = null;
|
|
|
|
|
+
|
|
|
|
|
+ //网点自查
|
|
|
|
|
+ this.disableFlag = true;
|
|
|
|
|
+
|
|
|
break;
|
|
break;
|
|
|
//如果是 【定期检查】行社全面安全检查
|
|
//如果是 【定期检查】行社全面安全检查
|
|
|
case "4":
|
|
case "4":
|
|
@@ -625,6 +631,7 @@ export default {
|
|
|
|
|
|
|
|
let r = !(this.formData.planStatus == 0);
|
|
let r = !(this.formData.planStatus == 0);
|
|
|
|
|
|
|
|
|
|
+
|
|
|
return r;
|
|
return r;
|
|
|
},
|
|
},
|
|
|
//只能编辑创建机构和所属机构是自己的
|
|
//只能编辑创建机构和所属机构是自己的
|
|
@@ -834,6 +841,7 @@ export default {
|
|
|
this.formData.execOrgIds = [];
|
|
this.formData.execOrgIds = [];
|
|
|
this.formData.checkOrgIds = [];
|
|
this.formData.checkOrgIds = [];
|
|
|
this.formData.itemList = {};
|
|
this.formData.itemList = {};
|
|
|
|
|
+ this.disableFlag = false;
|
|
|
await this.refresh(id, other);
|
|
await this.refresh(id, other);
|
|
|
this.getRolesByOrg();
|
|
this.getRolesByOrg();
|
|
|
this.isShow = true;
|
|
this.isShow = true;
|