diff --git a/src/components/360View/afterPart/index.vue b/src/components/360View/afterPart/index.vue index 2b1a3bc..691975e 100644 --- a/src/components/360View/afterPart/index.vue +++ b/src/components/360View/afterPart/index.vue @@ -18,69 +18,14 @@ @node-click="templateData" /> - - - - - - - - - {{ scope.row.name }} - - 视盘:视神经 - - - 视盘:CDR - - - - - - - - - - - - - - - - - - - {{ scope.row.name }} - - 视盘:视神经 - - - 视盘:CDR - - - - - + @@ -123,9 +68,11 @@ import eventBus from '@/page-subspecialty/utils/eventBus' import treeSelect from '@/components/360View/itemSelect' import axios from 'axios' import Cookies from 'js-cookie' +import AfterForm from '@/components/360View/medicalRecord/outPatientRecord/afterForm.vue' const Base64 = require('js-base64').Base64 export default { components: { + AfterForm, treeSelect }, mixins: [], @@ -244,6 +191,16 @@ export default { treeList: [] } }, + watch: { + tableData: { + deep: true, + handler: (value) => { + if (value) { + eventBus.$emit('getAfterData', value) + } + } + } + }, created() { }, mounted() { @@ -273,13 +230,12 @@ export default { // 表格复选框 handleSelectionChange(val) { this.multipleSelection = val - console.log(this.multipleSelection) }, - handleNode(index, type, event) { - if (type === 'os') { - this.tableData[index].osValue = event + handleNode(val) { + if (val.type === 'os') { + this.tableData[val.index].osValue = val.event } else { - this.tableData[index].odValue = event + this.tableData[val.index].odValue = val.event } }, // 添加数据集 @@ -291,7 +247,6 @@ export default { }, // 获取下拉选择项,把数据封装进表格中 queryOptions() { - console.log(12555553,this.tableData) const treeList = [] this.tableData.forEach(item => { if (item.type) { @@ -312,6 +267,7 @@ export default { }) } this.sourceData = _.cloneDeep(this.tableData) || [] + eventBus.$emit('getAfterData', this.tableData) }).catch((error) => { console.log(error) }) @@ -333,11 +289,11 @@ export default { } }, // 移动 - moveHandle(index, type, row) { - if (type === 1) { - this.tableData[index].od = row + moveHandle(value) { + if (value.type === 1) { + this.tableData[value.index].od = value.row } else { - this.tableData[index].os = row + this.tableData[value.index].os = value.row } }, // 保存后段检查 @@ -372,12 +328,12 @@ export default { } }, // 新增树 - addTree(item, event) { + addTree(value) { this.title = '新增子级' this.addType = 1 this.form.name = '' - this.type = event.type - this.parentId = event.id + this.type = value.event.type + this.parentId = value.event.id this.dialogFormVisible = true }, // 新增保存树-眼睛部位下拉选择 @@ -468,7 +424,7 @@ export default { this.tableData = JSON.parse(data.caseJson) // 回显表格复选框 this.$nextTick(() => { - this.tableData.forEach(item =>{ + this.tableData.forEach(item => { this.$refs.multipleTable.toggleRowSelection(item, true) }) }) diff --git a/src/components/360View/collection.vue b/src/components/360View/collection.vue index 10d3162..9d0c7ac 100644 --- a/src/components/360View/collection.vue +++ b/src/components/360View/collection.vue @@ -84,7 +84,7 @@ export default { remark: '', curNode: '', editName: '', - editMessage: '', + editMessage: '添加成功!', disabled: false, // 用防止多次添加或多次重命名 addParam: { id: '', @@ -262,7 +262,6 @@ export default { this.deleteNode(node, data) } else { this.disabled = false - console.log(this.curNode) this.editNode(node, data) } }, diff --git a/src/components/360View/forePart/index.vue b/src/components/360View/forePart/index.vue index fc908d1..790f7db 100644 --- a/src/components/360View/forePart/index.vue +++ b/src/components/360View/forePart/index.vue @@ -1,13 +1,13 @@ - - - - - - - - + + + + + + + + @@ -26,69 +26,11 @@ @node-click="templateData" /> - - - - - - - 结膜:充血 - - - 结膜:分泌物 - - - - - {{ scope.row.name }} - - - - - - - - - - - - - - - - 结膜:充血 - - - 结膜:分泌物 - - - - - {{ scope.row.name }} - - - - + @@ -127,13 +69,15 @@ + + diff --git a/src/components/360View/medicalRecord/outPatientRecord/allFormPrint.vue b/src/components/360View/medicalRecord/outPatientRecord/allFormPrint.vue new file mode 100644 index 0000000..213a343 --- /dev/null +++ b/src/components/360View/medicalRecord/outPatientRecord/allFormPrint.vue @@ -0,0 +1,71 @@ + + + 病史采集 + + 前段检查 + + + + 后段检查 + + + + 专科检查 + + + + 诊断处置 + + + + + + + diff --git a/src/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue b/src/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue new file mode 100644 index 0000000..ed74dd1 --- /dev/null +++ b/src/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + diff --git a/src/components/360View/medicalRecord/outPatientRecord/foreForm.vue b/src/components/360View/medicalRecord/outPatientRecord/foreForm.vue new file mode 100644 index 0000000..b5dc854 --- /dev/null +++ b/src/components/360View/medicalRecord/outPatientRecord/foreForm.vue @@ -0,0 +1,154 @@ + + + + + + + + 结膜:充血 + + + 结膜:分泌物 + + + + + {{ scope.row.name }} + + + + + + + + + + + + + + + + 结膜:充血 + + + + 结膜:分泌物 + + + + + + {{ scope.row.name }} + + + + + + + + + diff --git a/src/components/360View/medicalRecord/outPatientRecord/historyForm.vue b/src/components/360View/medicalRecord/outPatientRecord/historyForm.vue new file mode 100644 index 0000000..be537d2 --- /dev/null +++ b/src/components/360View/medicalRecord/outPatientRecord/historyForm.vue @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/360View/medicalRecord/outPatientRecord/index.vue b/src/components/360View/medicalRecord/outPatientRecord/index.vue index 8548614..7dda268 100644 --- a/src/components/360View/medicalRecord/outPatientRecord/index.vue +++ b/src/components/360View/medicalRecord/outPatientRecord/index.vue @@ -1,7 +1,7 @@ - 打印 + 打印 保存 保存为模板 @@ -10,53 +10,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -68,74 +22,32 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +