|
|
@@ -24,6 +24,7 @@
|
|
|
:normalizer="tenantIdnormalizer"
|
|
|
:props="{ checkStrictly: true, label: 'name' }"
|
|
|
placeholder="请选择签署人所在机构"
|
|
|
+
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="所属年度:" prop="year">
|
|
|
@@ -107,6 +108,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, mapMutations } from "vuex";
|
|
|
+import { mapGetters } from "vuex";
|
|
|
import {
|
|
|
listSafetyBook,
|
|
|
getSafetyBook,
|
|
|
@@ -128,7 +130,7 @@ export default {
|
|
|
//修改新增中的机构树
|
|
|
deptOptions: [],
|
|
|
formDataRules: {
|
|
|
- orgId: [{ required: true, message: "请选择签署责任人所在机构" }],
|
|
|
+ orgId: [{ required: true, message: "请选择签署责任人所在机构" , trigger: 'blur' }],
|
|
|
type: [{ required: true, message: "请选择签署责任书类型" }],
|
|
|
year: [{ required: true, message: "请选择所属年度" }],
|
|
|
},
|
|
|
@@ -138,6 +140,7 @@ export default {
|
|
|
watch: {},
|
|
|
computed: {
|
|
|
...mapState([]),
|
|
|
+ ...mapGetters(["orgId", "orgName"]),
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -194,12 +197,19 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async show(id) {
|
|
|
+
|
|
|
// console.log(id, "id");
|
|
|
this.getDeptTree();
|
|
|
this.formData = this.reset();
|
|
|
this.tableData = [];
|
|
|
this.id = id;
|
|
|
await this.refresh(id);
|
|
|
+ if(id){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ // console.log(this.orgId,"this.orgId")
|
|
|
+ this.formData.orgId=this.orgId;
|
|
|
+ }
|
|
|
this.isShow = true;
|
|
|
},
|
|
|
|