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