|
|
@ -230,6 +230,19 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="选择科室" prop="departmentId"> |
|
|
|
<el-cascader |
|
|
|
v-model="ysjl.departmentId" |
|
|
|
:options="departmemtArr" |
|
|
|
:props="{ value: 'id', label: 'name', checkStrictly: true }" |
|
|
|
:show-all-levels="false" |
|
|
|
@change="handleChange" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="10"> |
|
|
|
<el-col :span="9"> |
|
|
|
<el-form-item label="检验人员" prop="jianyanrenyuan"> |
|
|
@ -267,6 +280,7 @@ import Sticky from '@/components/Sticky' |
|
|
|
import SignName from '@/views/common/SignName' |
|
|
|
import Utils from '@/utils/contact' |
|
|
|
import merge from 'webpack-merge' |
|
|
|
import { getDepartmentTreeList } from '@/api/common' |
|
|
|
export default { |
|
|
|
name: 'GlSysyYsjl', |
|
|
|
components: { SignName, Sticky }, |
|
|
@ -286,6 +300,7 @@ export default { |
|
|
|
state: this.$route.query.state, |
|
|
|
jianyanrenyuan: '', |
|
|
|
departmentId: this.$store.getters.departmentId, |
|
|
|
departmemtArr: [], |
|
|
|
isRepeat: false, |
|
|
|
edit: false, |
|
|
|
checkedTab: 'first', |
|
|
@ -337,11 +352,20 @@ export default { |
|
|
|
} |
|
|
|
this.getJyxm(1) |
|
|
|
this.getUserList() |
|
|
|
this.getDepartmentArr() |
|
|
|
}, |
|
|
|
beforeDestroy() { |
|
|
|
window.removeEventListener('beforeunload', this.beforeunloadHandler, false) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getDepartmentArr() { |
|
|
|
getDepartmentTreeList().then(res => { |
|
|
|
this.departmemtArr = res |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleChange(v) { |
|
|
|
this.ysjl.departmentId = v[1] |
|
|
|
}, |
|
|
|
// 签名方法 |
|
|
|
singNameValue(data) { |
|
|
|
this.jianyanrenyuan = data.name |
|
|
@ -388,6 +412,7 @@ export default { |
|
|
|
} |
|
|
|
}).then(data => { |
|
|
|
this.ysjl = data.ysjl |
|
|
|
this.departmentId = this.ysjl.departmentId |
|
|
|
this.param = (data.param !== null && data.param !== undefined) ? data.param : {} |
|
|
|
this.ysjl.jilubianhao = this.jilubianhao |
|
|
|
this.ysjl.baogaobianhao = null // 避免从设备中取值导致信息错误 |
|
|
@ -413,6 +438,7 @@ export default { |
|
|
|
} |
|
|
|
}).then(data => { |
|
|
|
this.ysjl = data |
|
|
|
this.departmentId = this.ysjl.departmentId |
|
|
|
if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) { |
|
|
|
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) |
|
|
|
} |
|
|
|