Browse Source

peter

360view
newPeter7 2 years ago
parent
commit
ed742f1769
  1. 32
      src/components/360View/afterPart/index-copy.vue
  2. 1
      src/components/360View/commonForm/threeVision.vue
  3. 35
      src/components/360View/forePart/index-copy.vue
  4. 8
      src/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue
  5. 12
      src/components/360View/medicalRecord/outPatientRecord/historyForm.vue
  6. 4
      src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue
  7. 4
      src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue
  8. 14
      src/page-subspecialty/views/modules/systemManagement/team/team-add-or-update.vue

32
src/components/360View/afterPart/index-copy.vue

@ -631,19 +631,19 @@ export default {
})
},
//
templateData(data, node) {
if (data && data.caseJson) {
this.tableData = JSON.parse(data.caseJson)
//
this.$nextTick(() => {
this.tableData.forEach(item => {
if (item.flag) {
this.$refs.multipleTable.toggleRowSelection(item, true)
async templateData(data, node) {
const { data: res } = await this.$http.get('/mjz/getMjzHdjcInfoTemplate', {
params: {
id: data.id,
patientId: this.patientId
}
})
})
if (res.code === 0) {
if (res.data) {
this.dataForm = this.handleData(res.data)
}
} else {
// this.tableData = Object.assign([], this.sourceData)
this.$message.error(res.msg)
}
},
//
@ -658,15 +658,19 @@ export default {
},
//
async saveTreeTemplete() {
if (!this.treeId) return this.$message.warning('请选择节点!')
if (!this.treeId) return this.$message.warning('请选择目录!')
const params = {
caseJson: JSON.stringify(this.tableData),
doctorId: this.doctorId,
name: this.form.name,
type: 3, // 2 3
treeId: this.treeId
}
const { data: res } = await this.$http.post('/treetemplate/addTreeCase', params)
for (const resKey in this.dataForm) {
if (Array.isArray(this.dataForm[resKey])) {
this.dataForm[resKey] = this.dataForm[resKey].join(',')
}
}
const { data: res } = await this.$http.post('/mjz/saveMjzHdjcTemplate', { ...params, ...this.dataForm })
if (res.code === 0) {
this.templateFlag = false
await this.queryTreeCase()
@ -707,7 +711,7 @@ export default {
let url = ''
if (data.type) {
//
url = '/treetemplate/deleteTreeCase'
url = '/mjz/delMjzHdjcInfoTemplate'
} else {
//
url = '/treetemplate/deleteTree'

1
src/components/360View/commonForm/threeVision.vue

@ -1286,7 +1286,6 @@ export default {
const L = /ᴸ\/ʀ/g
for (const key in this.dataForm) {
if (typeof this.dataForm[key] === 'string') {
console.log(this.dataForm[key])
this.dataForm[key] = this.dataForm[key].replace(R, '右上')
this.dataForm[key] = this.dataForm[key].replace(L, '左上')
}

35
src/components/360View/forePart/index-copy.vue

@ -1027,20 +1027,20 @@ export default {
})
})
},
//
templateData(data, node) {
if (data && data.caseJson) {
this.tableData = JSON.parse(data.caseJson)
//
this.$nextTick(() => {
this.tableData.forEach(item => {
if (item.flag) {
this.$refs.multipleTable.toggleRowSelection(item, true)
//
async templateData(data, node) {
const { data: res } = await this.$http.get('/mjz/getMjzQdjcInfoTemplate', {
params: {
id: data.id,
patientId: this.patientId
}
})
})
if (res.code === 0) {
if (res.data) {
this.dataForm = this.handleData(res.data)
}
} else {
// this.tableData = Object.assign([], this.sourceData)
this.$message.error(res.msg)
}
},
//
@ -1057,13 +1057,18 @@ export default {
async saveTreeTemplete() {
if (!this.treeId) return this.$message.warning('请选择目录!')
const params = {
caseJson: JSON.stringify(this.tableData),
doctorId: this.doctorId,
name: this.form.name,
type: 2, // 2 3
treeId: this.treeId
treeId: this.treeId,
parentId: this.parentId
}
for (const resKey in this.dataForm) {
if (Array.isArray(this.dataForm[resKey])) {
this.dataForm[resKey] = this.dataForm[resKey].join(',')
}
}
const { data: res } = await this.$http.post('/treetemplate/addTreeCase', params)
const { data: res } = await this.$http.post('/mjz/saveMjzQdjcTemplate', { ...params, ...this.dataForm })
if (res.code === 0) {
this.templateFlag = false
await this.queryTreeCase()
@ -1104,7 +1109,7 @@ export default {
let url = ''
if (data.type) {
//
url = '/treetemplate/deleteTreeCase'
url = '/mjz/delMjzQdjcInfoTemplate'
} else {
//
url = '/treetemplate/deleteTree'

8
src/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue

@ -1,15 +1,17 @@
<template>
<div style="height: 100%">
<el-form id="formDiagnosis" ref="form" :model="diagnosis" label-width="120px" style="margin-top: 32px">
<el-form-item label="诊断:" style="width: 540px" prop="zd">
<el-input v-model="diagnosis.zd" type="textarea" auto-complete="off" style="width: 420px" />
<el-input v-model="diagnosis.zd" type="textarea" auto-complete="off" :rows="4" style="width: 420px" />
</el-form-item>
<el-form-item label="处理:" style="width: 540px" prop="cl">
<el-input v-model="diagnosis.cl" type="textarea" auto-complete="off" style="width: 420px" />
<el-input v-model="diagnosis.cl" type="textarea" auto-complete="off" :rows="4" style="width: 420px" />
</el-form-item>
<el-form-item label="治疗意见:" style="width: 540px" prop="zlyj">
<el-input v-model="diagnosis.zlyj" type="textarea" auto-complete="off" style="width: 420px" />
<el-input v-model="diagnosis.zlyj" type="textarea" auto-complete="off" :rows="4" style="width: 420px" />
</el-form-item>
</el-form>
</div>
</template>
<script>

12
src/components/360View/medicalRecord/outPatientRecord/historyForm.vue

@ -1,21 +1,23 @@
<template>
<div style="height: 100%;overflow-y: auto">
<el-form id="medHistory" ref="form" :model="formData" label-width="140px" style="margin-top: 32px">
<el-form-item label="主诉:" style="width: 540px" prop="zhuSu">
<el-input v-model="formData.zhuSu" type="textarea" auto-complete="off" style="width: 420px" />
<el-input v-model="formData.zhuSu" type="textarea" auto-complete="off" :rows="4" style="width: 420px" />
</el-form-item>
<el-form-item label="现病史:" style="width: 540px" prop="xbs">
<el-input v-model="formData.xbs" type="textarea" auto-complete="off" style="width: 420px" />
<el-input v-model="formData.xbs" type="textarea" auto-complete="off" :rows="4" style="width: 420px" />
</el-form-item>
<el-form-item label="既往病史:" style="width: 540px" prop="jws">
<el-input v-model="formData.jws" type="textarea" auto-complete="off" style="width: 420px" />
<el-input v-model="formData.jws" type="textarea" auto-complete="off" :rows="4" style="width: 420px" />
</el-form-item>
<el-form-item label="过敏史:" style="width: 540px" prop="gms">
<el-input v-model="formData.gms" type="textarea" auto-complete="off" style="width: 420px" />
<el-input v-model="formData.gms" type="textarea" auto-complete="off" :rows="4" style="width: 420px" />
</el-form-item>
<el-form-item label="周身其他病史:" style="width: 540px" prop="zsqtbs">
<el-input v-model="formData.zsqtbs" type="textarea" auto-complete="off" style="width: 420px" />
<el-input v-model="formData.zsqtbs" type="textarea" auto-complete="off" :rows="4" style="width: 420px" />
</el-form-item>
</el-form>
</div>
</template>
<script>

4
src/page-subspecialty/views/modules/outpatientManagement/call/patient-add-or-update.vue

@ -178,7 +178,7 @@ export default {
{ validator: validataIDNumber, trigger: 'blur' }
],
sgDoctorId: [
{ required: true, message: '请选择视光医师', trigger: 'blur' }
{ required: false, message: '请选择视光医师', trigger: 'blur' }
],
patientSource: [
{ required: true, message: '请选择患者来源', trigger: 'blur' }
@ -221,7 +221,7 @@ export default {
} else {
this.mzDoctorList = data.data.data
}
this.dataForm.sgDoctorId = JSON.parse(window.localStorage.getItem('qg-userData')).employeeId
this.dataForm.mzDoctorId = JSON.parse(window.localStorage.getItem('qg-userData')).employeeId
})
},
//

4
src/page-subspecialty/views/modules/outpatientManagement/treat/patient-add-or-update.vue

@ -175,7 +175,7 @@ export default {
{ validator: validataIDNumber, trigger: 'blur' }
],
sgDoctorId: [
{ required: true, message: '请选择视光医师', trigger: 'blur' }
{ required: false, message: '请选择视光医师', trigger: 'blur' }
],
patientSource: [
{ required: true, message: '请选择患者来源', trigger: 'blur' }
@ -218,7 +218,7 @@ export default {
} else {
this.mzDoctorList = data.data.data
}
this.dataForm.sgDoctorId = JSON.parse(window.localStorage.getItem('qg-userData')).employeeId
this.dataForm.mzDoctorId = JSON.parse(window.localStorage.getItem('qg-userData')).employeeId
})
},
//

14
src/page-subspecialty/views/modules/systemManagement/team/team-add-or-update.vue

@ -26,9 +26,12 @@
<el-form-item label="手机号:" label-width="100px" prop="mobile">
<el-input v-model="dataForm.mobile" placeholder="请输入手机号" />
</el-form-item>
<!-- <el-form-item label="医生职位:" label-width="90px" prop="doctorJob">
<el-input v-model="dataForm.doctorJob" placeholder="请输入医生职位" />
</el-form-item> -->
<el-form-item label="医生职位:" label-width="100px" prop="position">
<el-radio-group v-model="dataForm.position" size="medium">
<el-radio-button label="门诊医师">门诊医师</el-radio-button>
<el-radio-button label="视光医师">视光医师</el-radio-button>
</el-radio-group>
</el-form-item>
<!-- superAdmin0普通用户 1是慧目管理员 -->
<!-- <el-form-item v-if="loginInfo.superAdmin===1" label="所属医院:" label-width="90px" prop="centreId">-->
<!-- <el-select v-model="dataForm.centreId" placeholder="请选择">-->
@ -132,6 +135,7 @@ export default {
password: '',
gender: 1,
mobile: '',
position: '门诊医师',
positionIdList: [],
positionListValue: [],
roleIdList: [],
@ -181,6 +185,9 @@ export default {
gender: [
{ required: true, message: '请选择性别', trigger: 'change' }
],
position: [
{ required: true, message: '请选择医生职位', trigger: 'change' }
],
mobile: [
{ required: true, validator: validataMobile, trigger: 'blur' }
]
@ -199,7 +206,6 @@ export default {
// this.getCentreJobList()
this.loginInfo = JSON.parse(window.localStorage.getItem('qg-userData'))
this.$refs.dataForm.resetFields() //
console.log(this.dataForm)
if (this.dataForm.id) {
this.getInfo()
}

Loading…
Cancel
Save