Browse Source

peter

360view
newPeter7 2 years ago
parent
commit
e2b6c1d2e1
  1. 202
      src/components/360View/commonForm/eyesVision.vue
  2. 31
      src/components/360View/commonForm/optometryForm-copy.vue
  3. 7
      src/components/360View/special/index.vue
  4. 16
      src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue
  5. 24
      src/page-subspecialty/views/modules/outpatientManagement/call/index.vue
  6. 33
      src/page-subspecialty/views/modules/outpatientManagement/treat/index.vue
  7. 2
      src/page-subspecialty/views/pages/login.vue

202
src/components/360View/commonForm/eyesVision.vue

@ -24,13 +24,13 @@
<template slot-scope="scope">
<div v-if="scope.row.name == '1'">
<div class="width-120 center" style="display: flex">
<el-input v-model="formData.qgztOs" placeholder="">
<el-input v-model="formData.qgztOs1" placeholder="">
<template slot="prepend">OS:</template>
</el-input>
<el-input v-model="formData.qgztOs" placeholder="">
<el-input v-model="formData.qgztOs2" placeholder="">
<template slot="prepend">/</template>
</el-input>
<el-input v-model="formData.qgztOs" placeholder="">
<el-input v-model="formData.qgztOs3" placeholder="">
<template slot="prepend">X</template>
</el-input>
</div>
@ -64,24 +64,17 @@
</div>
<div v-else-if="scope.row.name == 'FV'">
<div class="width-180 center" style="display: flex">
<el-input v-model="formData.fvYuanBi" placeholder="">
<el-input v-model="formData.fvYuanBo1" placeholder="">
<template slot="prepend">远BO:</template>
</el-input>
<el-input v-model="formData.fvYuanBi" placeholder="">
<el-input v-model="formData.fvYuanBo2" placeholder="">
<template slot="prepend">/</template>
</el-input>
<el-input v-model="formData.fvYuanBi" placeholder="">
<el-input v-model="formData.fvYuanBo3" placeholder="">
<template slot="prepend">/</template>
</el-input>
</div>
</div>
<!-- <div v-else-if="scope.row.name == '建议'">-->
<!-- <div class="width-180" style="text-align: left">-->
<!-- <el-input v-model="formData.jianYi" placeholder="" style="width: 640px">-->
<!-- <template slot="prepend">建议:</template>-->
<!-- </el-input>-->
<!-- </div>-->
<!-- </div>-->
<div v-else-if="scope.row.name == '签名'" style="display: flex;justify-content: space-between">
<div class="width-180" style="text-align: left">
<span style="display: inline-block;margin-top: 16px">视光师:</span>
@ -107,26 +100,26 @@
<template slot-scope="scope">
<div v-if="scope.row.name == '1'">
<div class="width-120 center" style="display: flex">
<el-input v-model="formData.qgztOdVa" placeholder="">
<el-input v-model="formData.qgztOsVa1" placeholder="">
<template slot="prepend">VA:</template>
</el-input>
<el-input v-model="formData.qgztOs" placeholder="">
<el-input v-model="formData.qgztOsVa2" placeholder="">
<template slot="prepend">/</template>
</el-input>
<el-input v-model="formData.qgztOs" placeholder="">
<el-input v-model="formData.qgztOsVa3" placeholder="">
<template slot="prepend">X</template>
</el-input>
</div>
</div>
<div v-if="scope.row.name == '屈光状态'">
<div class="width-120 center" style="display: flex">
<el-input v-model="formData.qgztOd" placeholder="">
<el-input v-model="formData.qgztOd1" placeholder="">
<template slot="prepend">OD:</template>
</el-input>
<el-input v-model="formData.qgztOs" placeholder="">
<el-input v-model="formData.qgztOd2" placeholder="">
<template slot="prepend">/</template>
</el-input>
<el-input v-model="formData.qgztOs" placeholder="">
<el-input v-model="formData.qgztOd3" placeholder="">
<template slot="prepend">X</template>
</el-input>
</div>
@ -143,7 +136,7 @@
/>
</el-select>
<span>:</span>
<el-select v-model="formData.ctYuan" placeholder="" clearable style="display: inline-block;width: 100px">
<el-select v-model="formData.ctJin" placeholder="" clearable style="display: inline-block;width: 100px">
<el-option
v-for="item in ctList"
:key="item.id"
@ -207,26 +200,26 @@
</div>
<div v-if="scope.row.name == '融像性聚散(FV)'">
<div class="width-180 center" style="display: flex">
<el-input v-model="formData.fvJinBi" placeholder="">
<el-input v-model="formData.fvYuanBi1" placeholder="">
<template slot="prepend">远BI:</template>
</el-input>
<el-input v-model="formData.fvJinBi" placeholder="">
<el-input v-model="formData.fvYuanBi2" placeholder="">
<template slot="prepend">/</template>
</el-input>
<el-input v-model="formData.fvJinBi" placeholder="">
<el-input v-model="formData.fvYuanBi3" placeholder="">
<template slot="prepend">/</template>
</el-input>
</div>
</div>
<div v-if="scope.row.name == 'FV'">
<div class="width-180 center" style="display: flex">
<el-input v-model="formData.fvYuanBo" placeholder="">
<el-input v-model="formData.fvJinBo1" placeholder="">
<template slot="prepend">近BO:</template>
</el-input>
<el-input v-model="formData.fvYuanBo" placeholder="">
<el-input v-model="formData.fvJinBo2" placeholder="">
<template slot="prepend">/</template>
</el-input>
<el-input v-model="formData.fvYuanBo" placeholder="">
<el-input v-model="formData.fvJinBo3" placeholder="">
<template slot="prepend">/</template>
</el-input>
</div>
@ -256,10 +249,10 @@
<div v-if="scope.row.name == '调节灵活度(AF)'">
<div class="center">
<div>
<el-input v-model="formData.afOd" placeholder="" style="width: 120px">
<el-input v-model="formData.afOd1" placeholder="" style="width: 120px">
<template slot="prepend">OD:</template>
</el-input>
<el-select v-model="formData.afOd" placeholder="" clearable style="display: inline-block;width: 100px;margin-left: 8px" @change="selectWorth($event, 'od')">
<el-select v-model="formData.afOd2" placeholder="" clearable style="display: inline-block;width: 100px;margin-left: 8px" @change="selectWorth($event, 'od')">
<el-option
v-for="item in afList"
:key="item.id"
@ -268,10 +261,10 @@
/>
</el-select>
</div>
<el-input v-model="formData.afOs" placeholder="" style="width: 120px">
<el-input v-model="formData.afOs1" placeholder="" style="width: 120px">
<template slot="prepend">OS:</template>
</el-input>
<el-select v-model="formData.afOs" placeholder="" clearable style="display: inline-block;width: 100px;margin-left: 8px" @change="selectWorth($event, 'od')">
<el-select v-model="formData.afOs2" placeholder="" clearable style="display: inline-block;width: 100px;margin-left: 8px" @change="selectWorth($event, 'od')">
<el-option
v-for="item in afList"
:key="item.id"
@ -298,8 +291,8 @@
<div v-if="scope.row.name == '初步诊断'">
<div>
<div style="display:flex;margin-bottom: 8px">
<div class="check" style="margin-left: 0" @click="formData.cbzdCheck=!formData.cbzdCheck">
<input type="checkbox" :checked="formData.cbzdCheck">正常
<div class="check" style="margin-left: 0" @click="formData.cbzdNormal=!formData.cbzdNormal">
<input type="checkbox" :checked="formData.cbzdNormal">正常
</div>
<!-- <div class="check" style="margin-left: 16px" @click="formData.cbzdCheck=!formData.cbzdCheck">-->
<!-- <input type="checkbox" :checked="!formData.cbzdCheck">异常-->
@ -313,14 +306,6 @@
<input type="checkbox" :checked="item.isSelect">
<div>{{ item.name }}</div>
</div>
<!-- <el-select v-model="formData.cbzdJsgnyc" multiple placeholder="请选择" style="width: 100%">-->
<!-- <el-option-->
<!-- v-for="item in dispersionList"-->
<!-- :key="item.id"-->
<!-- :label="item.name"-->
<!-- :value="item.name"-->
<!-- />-->
<!-- </el-select>-->
</div>
</div>
<div style="display: flex">
@ -371,13 +356,13 @@
<template slot-scope="scope">
<div v-if="scope.row.name == '屈光状态'">
<div class="width-120 center" style="display: flex">
<el-input v-model="formData.qgztOsVa" placeholder="">
<el-input v-model="formData.qgztOdVa1" placeholder="">
<template slot="prepend">VA:</template>
</el-input>
<el-input v-model="formData.qgztOs" placeholder="">
<el-input v-model="formData.qgztOdVa2" placeholder="">
<template slot="prepend">/</template>
</el-input>
<el-input v-model="formData.qgztOs" placeholder="">
<el-input v-model="formData.qgztOdVa3" placeholder="">
<template slot="prepend">X</template>
</el-input>
</div>
@ -442,13 +427,13 @@
</div>
<div v-if="scope.row.name == '融像性聚散(FV)'">
<div class="width-180 center" style="display: flex">
<el-input v-model="formData.fvJinBo" placeholder="">
<el-input v-model="formData.fvJinBi1" placeholder="">
<template slot="prepend">近BI:</template>
</el-input>
<el-input v-model="formData.fvJinBo" placeholder="">
<el-input v-model="formData.fvJinBi2" placeholder="">
<template slot="prepend">/</template>
</el-input>
<el-input v-model="formData.fvJinBo" placeholder="">
<el-input v-model="formData.fvJinBi3" placeholder="">
<template slot="prepend">/</template>
</el-input>
</div>
@ -471,10 +456,10 @@
</div>
<div v-if="scope.row.name == '调节灵活度(AF)'">
<div class="center">
<el-input v-model="formData.afOu" placeholder="" style="width: 120px">
<el-input v-model="formData.afOu1" placeholder="" style="width: 120px">
<template slot="prepend">OU:</template>
</el-input>
<el-select v-model="formData.afOd" placeholder="" clearable style="display: inline-block;width: 100px;margin-left: 8px" @change="selectWorth($event, 'od')">
<el-select v-model="formData.afOu2" placeholder="" clearable style="display: inline-block;width: 100px;margin-left: 8px" @change="selectWorth($event, 'od')">
<el-option
v-for="item in afList"
:key="item.id"
@ -523,17 +508,28 @@ export default {
patientSex: '',
patientAge: '',
//
qgztOs: '',
qgztOd: '',
qgztOsVa: '',
qgztOdVa: '',
qgztOd1: '',
qgztOd2: '',
qgztOd3: '',
qgztOdVa1: '',
qgztOdVa2: '',
qgztOdVa3: '',
qgztOs1: '',
qgztOs2: '',
qgztOs3: '',
qgztOsVa1: '',
qgztOsVa2: '',
qgztOsVa3: '',
//
ctJin: '',
ctYuan: '',
jtzgsyFront: '',
ctYqyd: '正常',
//
npcPld: '',
npcHfd: '',
npcBd: '',
npcTjsb: '',
// worth-4-dot
worth1: '',
worth2: '',
@ -548,11 +544,21 @@ export default {
// AC/A
aca1: '',
aca2: '',
acaAdd: '',
acaDec: '',
//
fvJinBi: '',
fvJinBo: '',
fvYuanBi: '',
fvYuanBo: '',
fvJinBi1: '',
fvJinBi2: '',
fvJinBi3: '',
fvJinBo1: '',
fvJinBo2: '',
fvJinBo3: '',
fvYuanBi1: '',
fvYuanBi2: '',
fvYuanBi3: '',
fvYuanBo1: '',
fvYuanBo2: '',
fvYuanBo3: '',
//
raNar: '',
raPra: '',
@ -560,19 +566,27 @@ export default {
ampOd: '',
ampOs: '',
ampOu: '',
ampFjf: '',
ampYjf: '',
//
afOd: '',
afOs: '',
afOu: '',
afOd1: '',
afOd2: '',
afOs1: '',
afOs2: '',
afOu1: '',
afOu2: '',
//
fccOd: '',
fccOs: '',
fccOu: '',
//
cbzdCheck: false,
cbzdJsgnyc: [],
cbzdTjgnyc: [],
cbzdXs: [],
cbzdNormal: false,
// cbzdCheck: false,
// cbzdJsgnyc: [],
// cbzdTjgnyc: [],
cbzdJsgnyc: '', //
cbzdTjgnyc: '', //
cbzdXs: '', //
//
jianYi: '',
//
@ -798,18 +812,21 @@ export default {
patientId: this.patientId
}}).then(data => {
const form = data.data.data
form.cbzdCheck = form.cbzdCheck ? JSON.parse(form.cbzdCheck) : false
form.cbzdJsgnyc = form.cbzdJsgnyc ? form.cbzdJsgnyc.split(',') : []
form.cbzdTjgnyc = form.cbzdTjgnyc ? form.cbzdTjgnyc.split(',') : []
form.cbzdXs = form.cbzdXs ? form.cbzdXs.split(',') : []
this.formData = form
if (!this.formData.id) {
form.ctYqyd = '正常'
form.worth1 = form.worth3 = '4个'
form.worth2 = form.worth4 = '融像'
form.stereoRdd = form.stereoTno = '60“'
this.formData.ctYuan = this.formData.ctJin = '正位'
this.formData.ctYqyd = '正常'
this.formData.worth1 = this.formData.worth3 = '4个'
this.formData.worth2 = this.formData.worth4 = '融像'
this.formData.stereoRdd = this.formData.stereoTno = '60“'
this.setSign()
}
this.handleStr(this.formData.npcBd, this.npcList)
this.handleStr(this.formData.acaAdd, this.acaList)
this.handleStr(this.formData.ampFjf, this.ampList)
this.handleStr(this.formData.cbzdJsgnyc, this.dispersionList)
this.handleStr(this.formData.cbzdTjgnyc, this.regulatoryList)
this.handleStr(this.formData.cbzdXs, this.strabismusList)
})
},
selectWorth(val, type) {
@ -842,18 +859,52 @@ export default {
this.$message.error(res.msg)
}
},
//
handleStr(string, array) {
if (string) {
const data = string.split(',')
array.forEach(item => {
data.forEach(row => {
if (item.name === row) {
item.isSelect = true
}
})
})
} else {
array.forEach(item => {
item.isSelect = false
})
}
return array
},
//
handleCheck(array) {
if (array && array.length) {
const temp = []
array.forEach(item => {
if (item.isSelect) {
temp.push(item.name)
}
})
return temp.join(',')
}
},
//
async handleSaveTable() {
const data = JSON.parse(JSON.stringify(this.formData))
data.cbzdJsgnyc = data.cbzdJsgnyc.length ? data.cbzdJsgnyc.join(',') : ''
data.cbzdTjgnyc = data.cbzdTjgnyc.length ? data.cbzdTjgnyc.join(',') : ''
data.cbzdXs = data.cbzdXs.length ? data.cbzdXs.join(',') : ''
data.npcBd = this.handleCheck(this.npcList)
data.acaAdd = this.handleCheck(this.acaList)
data.ampFjf = this.handleCheck(this.ampList)
data.cbzdJsgnyc = this.handleCheck(this.dispersionList)
data.cbzdTjgnyc = this.handleCheck(this.regulatoryList)
data.cbzdXs = this.handleCheck(this.strabismusList)
const params = {
caseId: this.caseId,
...data
}
const { data: res } = await this.$http.post('/sysgnjc/saveSysgnjc', params)
if (res.code === 0) {
this.getSysgnjc()
this.$message.success('保存成功')
} else {
this.$message.error(res.msg)
@ -984,6 +1035,9 @@ export default {
</style>
<style lang="scss">
#operation-record{
.el-icon-arrow-up{
display: none;
}
.el-input-group__append, .el-input-group__prepend{
padding: 0 5px !important;
}

31
src/components/360View/commonForm/optometryForm-copy.vue

@ -385,6 +385,7 @@ export default {
timeoutnum: null, //
dataForm: {
id: '',
idList: [],
patientId: '',
patientName: '',
patientSex: '',
@ -625,6 +626,7 @@ export default {
if (res.code === 0) {
this.dataForm = res.data
if (!this.dataForm.id) {
await this.queryProject()
this.setVision()
this.setSign()
}
@ -634,6 +636,35 @@ export default {
this.$message.error(res.msg)
}
},
// id
async queryProject() {
const project = window.localStorage.getItem('projectItem') ? JSON.parse(window.localStorage.getItem('projectItem')) : []
const { data: res } = await this.$http.get(
'/patient/getZlItemDict',
{
params: {
caseName: '验光报告单'
}
}
)
if (res.code === 0) {
const data = res.data || []
const list = []
if (data.length) {
for (let i = 0; i < data.length; i++) {
for (let j = 0; j < project.length; j++) {
if (data[i].itemId === project[j].porjectCode) {
list.push(project[j].id)
}
}
}
console.log('list',list)
this.dataForm.idList = list
}
} else {
this.$message.error(res.msg)
}
},
reconnect() { //
const that = this
if (that.lockReconnect) {

7
src/components/360View/special/index.vue

@ -137,9 +137,7 @@ export default {
this.loading = true
const { data: res } = await this.$http.get('/patient/view/getExamineItem', {
params: {
// patientId: '1693275'
patientId: this.patientId
// date: this.date
}
})
if (res.code === 0) {
@ -148,7 +146,7 @@ export default {
if (res.data.length) {
this.examNo = res.data[0].examNo
this.examineItem = res.data[0].examineItem
this.getItemData()
await this.getItemData()
}
} else {
this.tableData = []
@ -179,8 +177,7 @@ export default {
'/patient/view/getPatientData',
{
params: {
// patientId: this.patientId
patientId: '797064'
patientId: this.patientId
}
}
)

16
src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue

@ -207,7 +207,7 @@ export default {
}, {
value: '300',
label: '未诊'
},{
}, {
value: '400',
label: '已诊'
}],
@ -253,10 +253,11 @@ export default {
this.dataForm.patientStatus = value
this.getDataListInitial()
},
//
// //
async receiveTreat(item) {
const { data: res } = await this.$http.get('/patient/updateSGDoctor', {
const { data: res } = await this.$http.get('/patient/updateSGDoctorAndJzStatus', {
params: {
patientId: item.patientId,
jzNumber: item.jzNumber,
platform: 3
}
@ -295,6 +296,14 @@ export default {
},
//
showDetail(scopeRow, index) {
console.log(scopeRow)
const list = []
const project = scopeRow.zlProjectList
if (project.length) {
project.forEach(item => {
list.push({ id: item.id, porjectCode: item.porjectCode })
})
}
this.receiveTreat(scopeRow)
this.onlyRead = index !== 1
this.detailViewVisible = true
@ -304,6 +313,7 @@ export default {
const jzNumber = scopeRow.jzNumber ? scopeRow.jzNumber : ''
window.localStorage.setItem('mzDoctorName', mzName)
window.localStorage.setItem('jzNumber', jzNumber)
window.localStorage.setItem('projectItem', list.length ? JSON.stringify(list) : '')
this.$nextTick(() => {
// // id--
this.$refs.viewRef.getPatientData()

24
src/page-subspecialty/views/modules/outpatientManagement/call/index.vue

@ -150,15 +150,11 @@ export default {
},
patientStatus(val) {
switch (val) {
case '1':
case '200':
return '未报到'
case '2':
case '300':
return '未诊断'
case '3':
return '就诊中'
case '4':
return '回诊'
case '5':
case '400':
return '已诊'
default:
return val
@ -204,19 +200,13 @@ export default {
value: '',
label: '全部'
}, {
value: '1',
value: '200',
label: '未报到'
}, {
value: '2',
value: '300',
label: '未诊'
}, {
value: '4',
label: '回诊 '
}, {
value: '3',
label: '就诊中'
}, {
value: '5',
},{
value: '400',
label: '已诊'
}],
nextVisitTime: [],

33
src/page-subspecialty/views/modules/outpatientManagement/treat/index.vue

@ -138,37 +138,24 @@ export default {
switch (val) {
case '1':
return '未叫号'
break
case '2':
return '已叫号'
break
case '3':
return '过号'
break
case '4':
return '呼叫中'
break
default:
return val
}
},
patientStatus(val) {
switch (val) {
case '1':
case '200':
return '未报到'
break
case '2':
case '300':
return '未诊断'
break
case '3':
return '就诊中'
break
case '4':
return '回诊'
break
case '5':
case '400':
return '已诊'
break
default:
return val
}
@ -213,19 +200,13 @@ export default {
value: '',
label: '全部'
}, {
value: '1',
value: '200',
label: '未报到'
}, {
value: '2',
value: '300',
label: '未诊'
}, {
value: '4',
label: '回诊 '
}, {
value: '3',
label: '就诊中'
}, {
value: '已诊',
},{
value: '400',
label: '已诊'
}],
nextVisitTime: [],

2
src/page-subspecialty/views/pages/login.vue

@ -103,8 +103,6 @@ export default {
this.getCaptcha()
return this.$message.error(res.msg)
}
const ip = window.location.host
console.log('ip', ip.split(':')[0])
Cookies.set('xa-token', res.data.token)
window.localStorage.setItem('qg-userData', JSON.stringify(res.data.currentUser))
this.$router.push({ name: 'outpatientManagement-call' })

Loading…
Cancel
Save