|
@@ -338,13 +338,13 @@ import {
|
|
|
} from '@/api/yibao/xiang-mu-lu-ru'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import { costState } from '@/utils/computed'
|
|
|
-import Cookie from 'js-cookie'
|
|
|
import { getDatetime } from '@/utils/date'
|
|
|
import { clone } from '@/utils/clone'
|
|
|
import { getPatientInfo } from '@/api/yibao/patient'
|
|
|
import { yiZhuTuiFeiLeiXing, feiYongLeiXing, tuiFeiLeiXin } from '@/data/index'
|
|
|
import HuoQuMuBan from '@/components/med-tec-mod/HuoQuMuBan.vue'
|
|
|
import { getDateRangeFormatDate } from '@/utils/date'
|
|
|
+import { baseinfo } from '@/data/inpatient'
|
|
|
export default {
|
|
|
components: { HuoQuMuBan },
|
|
|
props: {
|
|
@@ -366,7 +366,7 @@ export default {
|
|
|
// DESC 降 ASC 升
|
|
|
const riQiPaiXu = ref('DESC')
|
|
|
|
|
|
- const quanXian = Cookie.get('roles')
|
|
|
+ const quanXian = store.state.user.info.roles
|
|
|
const activeName = ref('1')
|
|
|
|
|
|
const feiYongLeiXingCode = ref(0)
|
|
@@ -388,7 +388,7 @@ export default {
|
|
|
*/
|
|
|
watch(xmlrTabs, (newProps, oldProps) => {
|
|
|
if (muBanData.value.length === 0) {
|
|
|
- getMuBan(Cookie.get('dept')).then((res) => {
|
|
|
+ getMuBan(store.state.user.info.deptCode).then((res) => {
|
|
|
muBanData.value = res
|
|
|
})
|
|
|
getDept().then((res) => {
|
|
@@ -398,7 +398,7 @@ export default {
|
|
|
// 在这里只是获取科室的姓名
|
|
|
setTimeout(() => {
|
|
|
deptData.value.forEach((item) => {
|
|
|
- if (item.code === Cookie.get('dept')) {
|
|
|
+ if (item.code === store.state.user.info.deptCode) {
|
|
|
cunMuBanPojo.value.dept = item.name
|
|
|
}
|
|
|
})
|
|
@@ -444,9 +444,9 @@ export default {
|
|
|
patient.value.pageSize = 40
|
|
|
patient.value.total = 0
|
|
|
patient.value.orderNo = 0
|
|
|
- patient.value.deptCode = Cookie.get('dept')
|
|
|
+ patient.value.deptCode = store.state.user.info.deptCode
|
|
|
queryFeiYong()
|
|
|
- if (patient.value.ward === Cookie.get('dept')) {
|
|
|
+ if (patient.value.ward === store.state.user.info.deptCode) {
|
|
|
panDuanSFTongGuoBingShiJinRu.value = true
|
|
|
} else {
|
|
|
xmlrTabs.value = 'ylrxm'
|
|
@@ -476,7 +476,7 @@ export default {
|
|
|
tableDataHuanZheFeiYong.value = res
|
|
|
cptTableDataHuanZheFeiYong.value = res.records
|
|
|
total.value = res.total
|
|
|
- if (patient.value.admissWard === Cookie.get('dept')) {
|
|
|
+ if (patient.value.admissWard === store.state.user.info.deptCode) {
|
|
|
panDuanSFTongGuoBingShiJinRu.value = true
|
|
|
}
|
|
|
})
|
|
@@ -498,7 +498,7 @@ export default {
|
|
|
.then((res) => {
|
|
|
tableDataHuanZheFeiYong.value = res
|
|
|
cptTableDataHuanZheFeiYong.value = res.records
|
|
|
- if (patient.value.admissWard === Cookie.get('dept')) {
|
|
|
+ if (patient.value.admissWard === store.state.user.info.deptCode) {
|
|
|
panDuanSFTongGuoBingShiJinRu.value = true
|
|
|
}
|
|
|
})
|
|
@@ -764,7 +764,7 @@ export default {
|
|
|
name: '',
|
|
|
paiXu: '',
|
|
|
dept: '',
|
|
|
- deptCode: Cookie.get('dept'),
|
|
|
+ deptCode: store.state.user.info.deptCode,
|
|
|
list: [],
|
|
|
})
|
|
|
|
|
@@ -809,16 +809,16 @@ export default {
|
|
|
watch(
|
|
|
() => props.init,
|
|
|
() => {
|
|
|
- if (!store.state.patient.inpatientNo) {
|
|
|
+ if (!baseinfo().inpatientNo) {
|
|
|
jinRuPanDuanSFXieDaiHuanZheXinXi()
|
|
|
} else {
|
|
|
- patient.value = clone(store.state.patient)
|
|
|
+ patient.value = clone(baseinfo())
|
|
|
patient.value.currentPage = 1
|
|
|
patient.value.pageSize = 40
|
|
|
patient.value.tuiFeiFlag = 0
|
|
|
patient.value.total = 0
|
|
|
patient.value.orderNo = 0
|
|
|
- patient.value.deptCode = Cookie.get('dept')
|
|
|
+ patient.value.deptCode = store.state.user.info.deptCode
|
|
|
zhiXingKeShi.value = patient.value.zkWard
|
|
|
panDuanSFTongGuoBingShiJinRu.value = true
|
|
|
queryFeiYong()
|
|
@@ -827,23 +827,23 @@ export default {
|
|
|
)
|
|
|
|
|
|
onMounted(() => {
|
|
|
- if (!store.state.patient.inpatientNo) {
|
|
|
+ if (!baseinfo().inpatientNo) {
|
|
|
patient.value.currentPage = 1
|
|
|
patient.value.pageSize = 40
|
|
|
patient.value.total = 0
|
|
|
patient.value.tuiFeiFlag = 0
|
|
|
patient.value.orderNo = 0
|
|
|
- patient.value.deptCode = Cookie.get('dept')
|
|
|
+ patient.value.deptCode = store.state.user.info.deptCode
|
|
|
zhiXingKeShi.value = patient.value.zkWard
|
|
|
jinRuPanDuanSFXieDaiHuanZheXinXi()
|
|
|
} else {
|
|
|
- patient.value = clone(store.state.patient)
|
|
|
+ patient.value = clone(baseinfo())
|
|
|
patient.value.currentPage = 1
|
|
|
patient.value.pageSize = 40
|
|
|
patient.value.total = 0
|
|
|
patient.value.tuiFeiFlag = 0
|
|
|
patient.value.orderNo = 0
|
|
|
- patient.value.deptCode = Cookie.get('dept')
|
|
|
+ patient.value.deptCode = store.state.user.info.deptCode
|
|
|
panDuanSFTongGuoBingShiJinRu.value = true
|
|
|
zhiXingKeShi.value = patient.value.zkWard
|
|
|
queryFeiYong()
|
|
@@ -851,7 +851,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
const shanChuMuBanClick = (index, data) => {
|
|
|
- if (data.opIdCode !== Cookie.get('code')) {
|
|
|
+ if (data.opIdCode !== store.state.user.info.code) {
|
|
|
ElMessageBox.confirm('该模板非本人创建是否强制删除', '提示', {
|
|
|
type: 'warning',
|
|
|
})
|