From 81342ba30d29574760fcfe7e3c7ca4ac411de0a6 Mon Sep 17 00:00:00 2001
From: peter <7359464+lasalu@user.noreply.gitee.com>
Date: Sat, 7 May 2022 14:39:24 +0800
Subject: [PATCH] peter
---
src/components/hm-crf/followUp.vue | 117 +-
src/components/hm-crf/index.vue | 18 +-
src/components/hm-crf/tinymce/icons/icons.js | 4 +-
.../tinymce/plugins/hm_button/plugin.js | 7 +-
.../hm-crf/tinymce/plugins/hm_upload/index.js | 7 +
.../tinymce/plugins/hm_upload/plugin.js | 254 +++
src/page-subspecialty/views/main-sidebar.vue | 10 +-
.../views/modules/patientManagement/index.vue | 16 +-
.../patient-add-or-update.vue | 8 +-
.../views/modules/seeDoctor/follow-up/1.vue | 1610 -----------------
.../seeDoctor/follow-up/add-follow-record.vue | 13 +-
.../modules/seeDoctor/follow-up/index.vue | 30 +-
.../views/modules/seeDoctor/index.vue | 15 +-
.../modules/seeDoctor/patient-form/index.vue | 24 +-
.../modules/setManagement/add-or-update.vue | 29 +-
.../views/modules/setManagement/index.vue | 5 +
.../views/modules/team/team-add-or-update.vue | 12 +-
src/page-subspecialty/views/pages/login.vue | 12 +-
src/utils/confirm.js | 3 +-
static/css/hmcrf.css | 48 +
static/js/hmcrf.js | 100 +-
21 files changed, 550 insertions(+), 1792 deletions(-)
create mode 100644 src/components/hm-crf/tinymce/plugins/hm_upload/index.js
create mode 100644 src/components/hm-crf/tinymce/plugins/hm_upload/plugin.js
delete mode 100644 src/page-subspecialty/views/modules/seeDoctor/follow-up/1.vue
diff --git a/src/components/hm-crf/followUp.vue b/src/components/hm-crf/followUp.vue
index 70d1ff9..0648316 100644
--- a/src/components/hm-crf/followUp.vue
+++ b/src/components/hm-crf/followUp.vue
@@ -15,8 +15,10 @@
+ 上一页
+ 下一页
{{ $t('cancel') }}
- {{ $t('confirm') }}
+ {{ $t('confirm') }}
@@ -31,7 +33,7 @@ export default {
components: { crf },
mixins: [qgyCRFData],
props: {
- crfFormType: {
+ centreId: {
type: String,
default: ''
},
@@ -46,8 +48,9 @@ export default {
crfVisible: false,
jsArr: [],
inputDate: formatDate(new Date(), 'yyyy-MM-dd'),
- centreId: '',
- patientIdNumber: '',
+ manageId: '',
+ crfFormType: '',
+ crfType: 1,
// CRF内容,填充用
content: '',
// 获取的检查数据,【item.value】为v-model绑定值,即用于填充左侧iframe
@@ -60,8 +63,6 @@ export default {
}
},
created() {
- const userInfo = JSON.parse(window.localStorage.getItem('userInfo'))
- this.centreId = userInfo.centreId
},
mounted() {
},
@@ -73,14 +74,39 @@ export default {
if (this.crfFormType == '8') {
this.queryFollowForm()
} else {
+ this.crfType = Number(this.crfFormType)
this.queryPatientForm()
}
})
},
+ handlePage(type) {
+ this.$confirm('确定保存数据么?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.submit(1).then(()=>{
+ this.setPage(type)
+ })
+ }).catch(() => {
+ this.setPage(type)
+ })
+ },
+ setPage(type) {
+ if (type === 1) {
+ if (this.crfType < 1) return
+ this.crfType--
+ this.queryForm(this.crfType)
+ } else {
+ if (this.crfType > 7) return
+ this.crfType++
+ this.queryForm(this.crfType)
+ }
+ },
queryPatientForm() {
this.$http.get('/renmin_crf/crf/form/info/getForm', {
params: {
- patientIdNumber: this.patientIdNumber,
+ manageId: this.manageId,
centreId: this.centreId,
crfFormType: this.crfFormType
}})
@@ -95,6 +121,27 @@ export default {
}
}).catch(() => {})
},
+ async queryForm(crfFormType) {
+ this.crfVisible = false
+ this.crfFormType = crfFormType
+ await this.$http.get('/renmin_crf/crf/form/info/getForm', {
+ params: {
+ manageId: this.manageId,
+ centreId: this.centreId,
+ crfFormType: crfFormType
+ }})
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ if (res.data) {
+ this.crfVisible = true
+ this.dataForm = { ...res.data }
+ this.content = Base64.decode(res.data.formContent)
+ this.$forceUpdate()
+ }
+ }).catch(() => {})
+ },
queryFollowForm() {
this.$http.get('/renmin_crf/crf/form/info/getFlowForm', {
params: {
@@ -120,7 +167,7 @@ export default {
crfDataContent: Base64.encode(this.getCrfcontent()),
crfFormId: this.dataForm.formId,
centreId: this.centreId,
- patientIdNumber: this.patientIdNumber,
+ manageId: this.manageId,
crfFormType: this.crfFormType
}).then(({ data: res }) => {
if (res.code !== 0) {
@@ -137,58 +184,38 @@ export default {
return crfContent
},
// 把编辑的内容保存
- submit() {
- this.$http.post('/renmin_crf/crf/form/info/writeForm', {
+ async submit(type) {
+ await this.$http.post('/renmin_crf/crf/form/info/writeForm', {
formContent: Base64.encode(this.getCrfcontent()),
formId: this.dataForm.formId,
crfTemplateId: this.dataForm.crfTemplateId,
formName: this.dataForm.formName,
patientCentreId: this.centreId,
- patientIdNumber: this.patientIdNumber,
+ manageId: this.manageId,
crfFormType: this.crfFormType
}).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
- if (this.crfFormType != '8') {
- this.dataForm.formId = res.data.formId
- this.addFormData()
+ this.dataForm.formId = res.data.formId
+ this.addFormData()
+ if (type === 2) {
+ this.$message({
+ message: this.$t('prompt.success'),
+ type: 'success',
+ duration: 500,
+ onClose: () => {
+ this.visible = false
+ this.$emit('refreshDataList', this.dataForm.formId)
+ }
+ })
+ } else {
+ this.$emit('refreshDataList')
}
- this.$message({
- message: this.$t('prompt.success'),
- type: 'success',
- duration: 500,
- onClose: () => {
- this.visible = false
- this.$emit('refreshDataList', this.dataForm.formId)
- }
- })
})
},
closeDialog() {
this.visible = false
- },
- // 当为无效访问时将状态传给后台
- setRealVisitFun(ifrDoc) {
- const wuxiao_hmradio = ifrDoc.getElementsByClassName('hmradio')
- Array.from(wuxiao_hmradio).forEach(async item => {
- // 0空号1拒接2未接
- const type = item.id === 'empty-number' ? '0' : item.id === 'reject' ? '1' : item.id === 'missed' ? '2' : ''
- console.log(item.id)
- if (item.checked) {
- console.log(123)
- console.log(this.id)
- const { data: res } = await this.$http.get('/flow/addPhoneInvalid', {
- params: {
- flowId: this.id,
- type: type
- }
- })
- if (res.code !== 0) {
- this.$message.error(res.msg)
- }
- }
- })
}
}
}
diff --git a/src/components/hm-crf/index.vue b/src/components/hm-crf/index.vue
index b86ec21..0b96dc1 100644
--- a/src/components/hm-crf/index.vue
+++ b/src/components/hm-crf/index.vue
@@ -33,7 +33,7 @@ import './tinymce/plugins/hm_input'
import './tinymce/plugins/hm_checkbox'
import './tinymce/plugins/hm_radio'
import './tinymce/plugins/hm_button'
-// import './tinymce/plugins/hm_select'
+import './tinymce/plugins/hm_upload'
import './tinymce/plugins/hm_select_DDDs'
import { isInclude } from './tinymce/plugins/hm_utils'
@@ -59,12 +59,12 @@ export default {
},
plugins: {
type: [String, Array],
- default: 'hminput hmcheckbox hmradio hmbutton hmselect quickbars print hmpreview lists image table code letterspacing '// paste contextmenu colorpicker textcolor
+ default: 'hminput hmcheckbox hmradio hmupload hmselect quickbars print hmpreview lists image table code letterspacing '// paste contextmenu colorpicker textcolor
},
toolbar: {
type: [String, Array],
default:
- `hminput hmcheckbox hmradio hmbutton hmselect | hmpreview print |
+ `hminput hmcheckbox hmradio hmupload hmselect | hmpreview print |
image table |
code | letterspacing | formatselect | fontsizeselect |
bold italic forecolor backcolor |
@@ -74,7 +74,7 @@ export default {
},
contextmenu: {
type: [String, Array],
- default: 'hminput hmcheckbox hmradio hmbutton hmselect image imagetools table spellchecker lists'
+ default: 'hminput hmcheckbox hmradio hmupload hmselect image imagetools table spellchecker lists'
},
// 删除首尾自动添加的P标签
isP: {
@@ -196,16 +196,6 @@ export default {
this.isP ? '' : this.init.forced_root_block = ''
},
mounted() {
- // Cookies.set('yzk-token', '9def6f4db676363e9f01990d56e62929')
- // this.$http.get(`/table/dict/getTableDictTreeForCRF`).then(({ data: res }) => {
- // if (res.code === 0) {
- // const data = res.data
- // window.localStorage.setItem('dictField', JSON.stringify(data))
- // }
- // })
-
- this.$nextTick(() => {
- })
},
methods: {
// 添加相关的事件,可用的事件参照文档=> https://github.com/tinymce/tinymce-vue => All available events
diff --git a/src/components/hm-crf/tinymce/icons/icons.js b/src/components/hm-crf/tinymce/icons/icons.js
index 15d28e4..88af975 100644
--- a/src/components/hm-crf/tinymce/icons/icons.js
+++ b/src/components/hm-crf/tinymce/icons/icons.js
@@ -6,6 +6,8 @@ tinymce.IconManager.add('custom', {
'radio': '',
'checkbox': '',
'textarea': '',
- 'button': ''
+ 'button': '',
+ 'select': '',
+ 'addRow': ''
}
})
diff --git a/src/components/hm-crf/tinymce/plugins/hm_button/plugin.js b/src/components/hm-crf/tinymce/plugins/hm_button/plugin.js
index f1c021b..66f0c81 100644
--- a/src/components/hm-crf/tinymce/plugins/hm_button/plugin.js
+++ b/src/components/hm-crf/tinymce/plugins/hm_button/plugin.js
@@ -12,8 +12,7 @@ import {
// elmToDataForm,
// hasElm
}
- from '../hm_utils/index'
-
+from '../hm_utils/index'
(function() {
'use strict'
@@ -164,14 +163,12 @@ import {
const customClass = dataForm['class']
// const spacing = dataForm['spacing']
const win = editor.contentWindow
- const domStr_button = ``
- // const domStr_img = ``
+ const domStr_button = ``
// const divs = `
${domStr_button}
`
editor.insertContent(domStr_button)
// 渲染控件
renderElm(doc, win, id, dataForm['data-hm_type'])
}
-
const updateElm = function(editor, ele_button, ele_img, dataForm, changeHandler) {
console.log(123, dataForm['data-hm_id'])
const name = dataForm['data-hm_id']
diff --git a/src/components/hm-crf/tinymce/plugins/hm_upload/index.js b/src/components/hm-crf/tinymce/plugins/hm_upload/index.js
new file mode 100644
index 0000000..5300d68
--- /dev/null
+++ b/src/components/hm-crf/tinymce/plugins/hm_upload/index.js
@@ -0,0 +1,7 @@
+// Exports the "anchor" plugin for usage with module loaders
+// Usage:
+// CommonJS:
+// require('tinymce/plugins/anchor')
+// ES2015:
+// import 'tinymce/plugins/anchor'
+require('./plugin.js')
diff --git a/src/components/hm-crf/tinymce/plugins/hm_upload/plugin.js b/src/components/hm-crf/tinymce/plugins/hm_upload/plugin.js
new file mode 100644
index 0000000..fc2733b
--- /dev/null
+++ b/src/components/hm-crf/tinymce/plugins/hm_upload/plugin.js
@@ -0,0 +1,254 @@
+
+import {
+ loadJS_ifrEditArea,
+ loadCSS_ifrEditArea,
+ isPlugin,
+ // updateElm,
+ updateAttrib,
+ getIdByClassName,
+ __assign,
+ isElm
+ // dataFormToElmPartStr,
+ // elmToDataForm,
+ // hasElm
+}
+from '../hm_utils/index'
+(function() {
+ 'use strict'
+
+ const pluginOptions = {
+ jsArr: [],
+ cssArr: [],
+ name: 'hmupload',
+ className: 'hmupload', // 判断依据,建议和name值一致
+ cmdName: 'cmdhmupload',
+ editName: 'hmupload_edit',
+ dataForm: {
+ 'data-hm_id': '',
+ 'data-hm_type': 'upload',
+ 'img': '',
+ 'value': '',
+ 'style.marginTop': ''
+ }
+ }
+
+ const global = tinymce.util.Tools.resolve('tinymce.PluginManager')
+
+ // 初始设置
+ const setup = function(editor) {
+ // 编辑器初始化后执行
+ editor.on('init', function() {
+ loadJS_ifrEditArea(editor, pluginOptions.jsArr)
+ loadCSS_ifrEditArea(editor, pluginOptions.cssArr)
+ })
+ // 右键菜单,选定目标
+ editor.on('contextmenu', function(evt) {
+ const elm = evt.target
+ editor.selection.select(elm)
+ }, true)
+ }
+
+ const open = function(editor) {
+ editor.windowManager.open({
+ title: '新增按钮',
+ size: 'normal', // 'normal', 'medium' or 'large'
+ body: {
+ type: 'panel',
+ items: [
+ {
+ type: 'input',
+ name: 'data-hm_id',
+ label: '名称',
+ placeholder: '按钮名称'
+ },
+ {
+ type: 'input',
+ name: 'id',
+ label: '唯一ID',
+ placeholder: '唯一ID'
+ },
+ {
+ type: 'input',
+ name: 'class',
+ label: '样式名',
+ placeholder: '样式名'
+ }
+ // {
+ // type: 'input',
+ // name: 'spacing',
+ // label: '间距',
+ // placeholder: '距离顶部的间距'
+ // }
+ ]
+ },
+ initialData: elmToDataForm(editor, pluginOptions.dataForm, pluginOptions.className),
+ buttons: [
+ {
+ type: 'cancel',
+ name: 'cancel',
+ text: '取消'
+ },
+ {
+ type: 'submit',
+ name: 'save',
+ text: '确定',
+ primary: true
+ }
+ ],
+ onSubmit: function(api) {
+ const dataForm = api.getData()
+ // console.log(dataForm)
+ dataForm['data-hm_type'] = pluginOptions.dataForm['data-hm_type']
+ const hmType = dataForm['data-hm_type']
+ const className = pluginOptions.className
+ const elm = editor.selection.getNode()
+
+ let ele_upload, elm_img
+ if (elm.className.indexOf(className + '-img') >= 0) {
+ ele_upload = isElm(elm.previousElementSibling, 'data-hm_type', hmType) ? elm.previousElementSibling : undefined
+ elm_img = elm
+ } else if (elm.className.indexOf(className) >= 0 && isElm(elm, 'data-hm_type', hmType)) {
+ ele_upload = elm
+ elm_img = isElm(elm, 'data-hm_type', hmType) ? elm.nextElementSibling : undefined
+ }
+
+ if (elm && isPlugin(elm, className)) {
+ // console.log('更新', elm)
+ // 更新
+ updateElm(editor, ele_upload, elm_img, dataForm, changeHandler)
+ api.close()
+ } else {
+ // 插入
+ // console.log('插入', dataForm)
+ insertElm(editor, dataForm)
+ api.close()
+ }
+ }
+ })
+ }
+
+ // 右击编辑弹框回显
+ const elmToDataForm = function(editor, initDataForm, pluginClassName) {
+ const elm = editor.selection.getNode()
+ const dataForm = __assign({}, initDataForm)
+ // console.log(dataForm)
+ const hmType = initDataForm['data-hm_type']
+ if (isPlugin(elm, pluginClassName)) {
+ let ele_upload, elm_img
+ if (elm.className.indexOf(pluginClassName + '-img') >= 0) {
+ ele_upload = isElm(elm.previousElementSibling, 'data-hm_type', hmType) ? elm.previousElementSibling : undefined
+ elm_img = elm
+ } else if (elm.className.indexOf(pluginClassName) >= 0 && isElm(elm, 'data-hm_type', hmType)) {
+ ele_upload = elm
+ elm_img = isElm(elm, 'data-hm_type', hmType) ? elm.nextElementSibling : undefined
+ }
+ // console.log(elm_img)
+ // console.log(ele_upload)
+ dataForm['data-hm_id'] = ele_upload.getAttribute('data-hm_id')
+ dataForm['id'] = ele_upload.getAttribute('id')
+ // dataForm['class'] = ele_upload.getAttribute('class') ? ele_upload.getAttribute('class').split(' ')[1] : ''
+ // dataForm['spacing'] = elm.parentNode.style ? elm.parentNode.style.marginTop.replace('px', '') : ''
+ }
+ return dataForm
+ }
+
+ const insertElm = function(editor, dataForm) {
+ // console.log(dataForm)
+ const doc = editor.contentDocument || editor.contentWindow.document
+ const className = pluginOptions.className
+ const id = getIdByClassName(doc, className)
+ const name = dataForm['data-hm_id']
+ const hmType = dataForm['data-hm_type']
+ const ID = dataForm['id']
+ // const customClass = dataForm['class']
+ // const imgList = dataForm['imgList']
+ // const spacing = dataForm['spacing']
+ const win = editor.contentWindow
+ // const domStr_upload = ``
+ const domStr_upload = ``
+ const divs = ``
+ editor.insertContent(domStr_upload + divs)
+ // 渲染控件
+ renderElm(doc, win, id, dataForm['data-hm_type'])
+ }
+ const updateElm = function(editor, ele_upload, ele_img, dataForm, changeHandler) {
+ console.log(123, dataForm['data-hm_id'])
+ const name = dataForm['data-hm_id']
+ const ID = dataForm['id']
+ // const spacing = dataForm['spacing']
+ const className = pluginOptions.className
+ const customClass = dataForm['class']
+ if (ele_upload) {
+ updateAttrib(ele_upload, 'data-hm_id', name)
+ updateAttrib(ele_upload, 'id', ID)
+ updateAttrib(ele_upload, 'value', name)
+ updateAttrib(ele_upload, 'class', `${className} ${customClass}`)
+ // ele_upload.parentNode.style.marginTop = spacing + 'px'
+ }
+ }
+
+ // 编辑控件状态后,触发处理逻辑
+ const changeHandler = function(editor, elm, dataForm) {
+ const doc = editor.contentDocument || editor.contentWindow.document
+ const win = editor.contentWindow
+ const id = editor.dom.getAttrib(elm, 'id')
+
+ renderElm(doc, win, id, dataForm['data-hm_type'])
+ }
+
+ const renderElm = function(doc, win, id, type) {
+ }
+
+ const register = function(editor) {
+ editor.addCommand(pluginOptions.cmdName, function() {
+ open(editor)
+ })
+ }
+
+ const register$1 = function(editor) {
+ // 工具栏
+ editor.ui.registry.addButton(pluginOptions.name, {
+ icon: 'upload',
+ title: '上传',
+ tooltip: '上传',
+ onAction: function() {
+ open(editor)
+ },
+ onSetup: function(uploadApi) {
+ }
+ })
+ // 菜单栏
+ editor.ui.registry.addMenuItem(pluginOptions.name, {
+ icon: 'upload',
+ text: '上传',
+ onAction: function() {
+ open(editor)
+ }
+ })
+
+ // 菜单栏(编辑)
+ editor.ui.registry.addMenuItem(pluginOptions.editName, {
+ icon: 'upload',
+ text: '编辑',
+ onAction: function() {
+ open(editor)
+ }
+ })
+
+ editor.ui.registry.addContextMenu(pluginOptions.name, {
+ update: function(elm) {
+ return isPlugin(elm, pluginOptions.className) ? [pluginOptions.editName] : []
+ }
+ })
+ }
+
+ function Plugin() {
+ global.add(pluginOptions.name, function(editor) {
+ setup(editor)
+ register(editor)
+ register$1(editor)
+ })
+ }
+
+ Plugin()
+}())
diff --git a/src/page-subspecialty/views/main-sidebar.vue b/src/page-subspecialty/views/main-sidebar.vue
index 53ecfed..beac390 100644
--- a/src/page-subspecialty/views/main-sidebar.vue
+++ b/src/page-subspecialty/views/main-sidebar.vue
@@ -22,15 +22,15 @@
患者管理
-
+
中心管理
-
+
用户管理
-
+
设置管理
@@ -43,7 +43,7 @@
export default {
data() {
return {
- userInfo: {}
+ loginInfo: {}
// activeIndex: '1'
// fileHref: '',
// wordData: {
@@ -64,7 +64,7 @@ export default {
}
},
created() {
- this.userInfo = JSON.parse(window.localStorage.getItem('userInfo'))
+ this.loginInfo = JSON.parse(window.localStorage.getItem('loginInfo'))
},
mounted() {
diff --git a/src/page-subspecialty/views/modules/patientManagement/index.vue b/src/page-subspecialty/views/modules/patientManagement/index.vue
index efaf731..d869f7e 100644
--- a/src/page-subspecialty/views/modules/patientManagement/index.vue
+++ b/src/page-subspecialty/views/modules/patientManagement/index.vue
@@ -149,7 +149,6 @@ export default {
// 编辑患者
editHandle(item) {
this.addOrUpdateVisible = true
- this.patientIdNumber = item.patientIdNumber
this.$nextTick(() => {
this.$refs.addOrUpdate.title = '编辑患者'
this.$refs.addOrUpdate.dataForm.id = item.id
@@ -158,13 +157,12 @@ export default {
},
// 删除患者
async deleteHandle(item) {
- this.patientIdNumber = item.patientIdNumber
- const patientIdNumberList = []
- patientIdNumberList.push(this.patientIdNumber)
+ const manageIdList = []
+ manageIdList.push(item.id)
this.$confirmFun('你确定要删除该患者吗?').then(async() => {
const { data: res } = await this.$http.post('/renmin_crf/patient/manage/delete', {
centreId: this.dataForm.centreId,
- patientIdNumberList: patientIdNumberList
+ manageIdList: manageIdList
})
if (res.code === 0) {
this.$message({
@@ -186,21 +184,21 @@ export default {
path: '/seeDoctor',
query: {
info: this.$Base64.encode(JSON.stringify({
- patientIdNumber: scopeRow.patientIdNumber
+ manageId: scopeRow.id
}))
}
})
},
// 导出
async exportHandle() {
- const patientIdNumberList = []
+ const manageIds = []
this.currentTableList.forEach(item =>{
- patientIdNumberList.push(item.patientIdNumber)
+ manageIds.push(item.id)
})
const token = Cookies.get('token')
// const baseUrl = 'http://192.168.0.32:8023'
const baseUrl = 'http://47.110.224.240:8023'
- const url = `${baseUrl}/renmin_crf/patient/manage/exportExcel?centreId=${this.dataForm.centreId}&patientIdNumbers=${patientIdNumberList}&token=${token}`
+ const url = `${baseUrl}/renmin_crf/patient/manage/exportExcel?manageIds=${manageIds}&token=${token}`
window.location.href = url
},
// 点击菜单触发事件回调
diff --git a/src/page-subspecialty/views/modules/patientManagement/patient-add-or-update.vue b/src/page-subspecialty/views/modules/patientManagement/patient-add-or-update.vue
index 785a904..e3e7994 100644
--- a/src/page-subspecialty/views/modules/patientManagement/patient-add-or-update.vue
+++ b/src/page-subspecialty/views/modules/patientManagement/patient-add-or-update.vue
@@ -75,8 +75,8 @@ export default {
patientName: [
{ required: true, message: '请输入患者姓名', trigger: 'blur' }
],
- patientIdNumber: [
- { required: true, message: '请输入身份证号', trigger: 'blur' }
+ caseId: [
+ { required: true, message: '请输入病案号', trigger: 'blur' }
],
patientPhone: [
{ validator: validataMobile, trigger: 'blur' }
@@ -93,7 +93,7 @@ export default {
this.visible = true
this.$nextTick(() => {
this.$refs.dataForm.resetFields() // 重置表单
- if (this.dataForm.id && this.patientIdNumber) {
+ if (this.dataForm.id) {
this.getInfo()
}
})
@@ -101,7 +101,7 @@ export default {
// 获取信息
getInfo() {
this.$http.post('/renmin_crf/patient/manage/getPatientInfo', {
- patientIdNumber: this.patientIdNumber
+ manageId: this.dataForm.id
}).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
diff --git a/src/page-subspecialty/views/modules/seeDoctor/follow-up/1.vue b/src/page-subspecialty/views/modules/seeDoctor/follow-up/1.vue
deleted file mode 100644
index 1ef8034..0000000
--- a/src/page-subspecialty/views/modules/seeDoctor/follow-up/1.vue
+++ /dev/null
@@ -1,1610 +0,0 @@
-
-
diff --git a/src/page-subspecialty/views/modules/seeDoctor/follow-up/add-follow-record.vue b/src/page-subspecialty/views/modules/seeDoctor/follow-up/add-follow-record.vue
index 64ec73a..8655047 100644
--- a/src/page-subspecialty/views/modules/seeDoctor/follow-up/add-follow-record.vue
+++ b/src/page-subspecialty/views/modules/seeDoctor/follow-up/add-follow-record.vue
@@ -26,11 +26,7 @@
import debounce from 'lodash/debounce'
export default {
props: {
- patientIdNumber: {
- type: String,
- default: ''
- },
- patientId: {
+ centreId: {
type: String,
default: ''
},
@@ -46,7 +42,7 @@ export default {
data() {
return {
visible: false,
- centreId: '',
+ manageId: '',
creatorId: '',
dataForm: {
visitTime: null
@@ -63,8 +59,6 @@ export default {
}
},
created() {
- const userInfo = JSON.parse(window.localStorage.getItem('userInfo'))
- this.centreId = userInfo.centreId
},
methods: {
init() {
@@ -85,8 +79,7 @@ export default {
createUserId: this.creatorId,
crfId: this.crfTemplateId,
formId: this.formId,
- patientId: this.patientId,
- patientIdNumber: this.patientIdNumber,
+ manageId: this.manageId,
visitTime: this.dataForm.visitTime + ' 00:00:00',
visitType: 8
}).then(({ data: res }) => {
diff --git a/src/page-subspecialty/views/modules/seeDoctor/follow-up/index.vue b/src/page-subspecialty/views/modules/seeDoctor/follow-up/index.vue
index 36bf315..21e2c3b 100644
--- a/src/page-subspecialty/views/modules/seeDoctor/follow-up/index.vue
+++ b/src/page-subspecialty/views/modules/seeDoctor/follow-up/index.vue
@@ -1,8 +1,8 @@
-
- 修改
+
+ 修改
删除
@@ -36,9 +36,9 @@
-
+
-
+