|
|
@ -45,24 +45,32 @@ |
|
|
|
</el-table> |
|
|
|
<pagination v-show="total>0" :total="total" :page-num.sync="listQuery.pageNum" :page-row.sync="listQuery.pageSize" @pagination="getList" /> |
|
|
|
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" @close="closeDialog"> |
|
|
|
<el-form ref="tempDepartment" :model="tempDepartment" class="small-space" label-width="80px"> |
|
|
|
<el-form ref="tempDepartment" :model="tempDepartment" label-width="130px"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="部门名称" required> |
|
|
|
<el-input v-model="tempDepartment.name" type="text" size="small" style="width:200px" /> |
|
|
|
<el-input v-model="tempDepartment.name" type="text" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="负责人" size="small" required> |
|
|
|
<el-select v-model="tempDepartment.leader" filterable placeholder="请选择" clearable> |
|
|
|
<el-option v-for="item in leaders" :key="item.id" :label="item.nickname" :value="item.id" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="检验类别" prop="jianyanleibie"> |
|
|
|
<el-select v-model="tempDepartment.jianyanleibie" multiple placeholder="请选择检验类别"> |
|
|
|
<el-select v-model="tempDepartment.jianyanleibie" multiple collapse-tags placeholder="请选择检验类别"> |
|
|
|
<el-option value="DJ" label="定期检验" /> |
|
|
|
<el-option value="JJ" label="监督检验" /> |
|
|
|
<el-option value="ZZ" label="制造监检" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="设备种类" prop="shebeizhongleidaima"> |
|
|
|
<el-select v-model="tempDepartment.shebeizhongleidaima" multiple placeholder="请选择设备种类"> |
|
|
|
<el-select v-model="tempDepartment.shebeizhongleidaima" multiple collapse-tags placeholder="请选择设备种类"> |
|
|
|
<el-option |
|
|
|
v-for="item in sbzlList" |
|
|
|
:key="item.value" |
|
|
@ -71,8 +79,10 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="所属区划" prop="quhuadaima"> |
|
|
|
<el-select v-model="tempDepartment.quhuadaima" multiple placeholder="请选择所属区划"> |
|
|
|
<el-select v-model="tempDepartment.quhuadaima" multiple collapse-tags placeholder="请选择所属区划"> |
|
|
|
<el-option |
|
|
|
v-for="item in areas" |
|
|
|
:key="item.value" |
|
|
@ -81,14 +91,60 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="部门代码(选填)"> |
|
|
|
<el-input v-model="tempDepartment.code" type="text" size="small" style="width: 200px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="上级科室"> |
|
|
|
<el-select v-model="tempDepartment.parentId" filterable clearable> |
|
|
|
<el-option v-for="dept in departments" :key="dept.id" :value="dept.id" :label="dept.name" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="联系人"> |
|
|
|
<el-input v-model="tempDepartment.lianxiren" type="text" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="联系人电话"> |
|
|
|
<el-input v-model="tempDepartment.lianxirenDianhua" type="text" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="机构核准证号"> |
|
|
|
<el-input v-model="tempDepartment.hezhunzhenghao" type="text" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="地址"> |
|
|
|
<el-input v-model="tempDepartment.dizhi" type="text" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="邮编"> |
|
|
|
<el-input v-model="tempDepartment.youbian" type="text" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="电话"> |
|
|
|
<el-input v-model="tempDepartment.tel" type="text" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="网址"> |
|
|
|
<el-input v-model="tempDepartment.website" type="text" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="邮箱"> |
|
|
|
<el-input v-model="tempDepartment.email" type="text" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="启用"> |
|
|
|
<el-switch v-model="tempDepartment.state" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-form-item label="成员"> |
|
|
|
<template> |
|
|
|
<el-transfer v-model="departmentUserList" :props="{key: 'id', label: 'nickname'}" :button-texts="['移除', '添加']" :titles="['未分配员工', '部门成员']" :data="unAllotUserList" /> |
|
|
|