diff --git a/src/page-subspecialty/views/modules/nurseManagement/UBMOrder.vue b/src/page-subspecialty/views/modules/nurseManagement/UBMOrder.vue
index 29da694..699e7bf 100644
--- a/src/page-subspecialty/views/modules/nurseManagement/UBMOrder.vue
+++ b/src/page-subspecialty/views/modules/nurseManagement/UBMOrder.vue
@@ -4,17 +4,17 @@
-
+
患者信息
-
登记号:132456
-
电话:19912132456
+
登记号:{{ patientInfo.patientId }}
+
电话:{{ patientInfo.patientPhone }}
-
姓名:张三
-
性别:男
-
生日:1991-08-08
-
年龄:23
+
姓名:{{ patientInfo.patientName }}
+
性别:{{ patientInfo.patientSex }}
+
生日:{{ patientInfo.patientBirthday }}
+
年龄:{{ patientInfo.patientAge }}
来源:门诊/住院
diff --git a/src/page-subspecialty/views/modules/nurseManagement/addProject.vue b/src/page-subspecialty/views/modules/nurseManagement/addProject.vue
index f6110a8..a8898cb 100644
--- a/src/page-subspecialty/views/modules/nurseManagement/addProject.vue
+++ b/src/page-subspecialty/views/modules/nurseManagement/addProject.vue
@@ -1,33 +1,49 @@
-
-
-
-
+
+
+
+
-
-
+
+
-
-
+
+
分钟
-
-
+
+
-
-
- 人
+
+
+ 人(半天)
@@ -52,7 +68,7 @@
align="center"
>
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -127,55 +143,122 @@ export default {
title: {
type: String,
default: ''
+ },
+ projectDetail: {
+ type: Object,
+ default: () => {}
}
},
data() {
return {
show: false,
form: {
- date: '',
- date2: '',
- minutes: ''
+ project: '',
+ workTimeAm: '',
+ workTimePm: '',
+ timeInterval: '',
+ maxNumber: ''
},
- options: [{
- value: '选项1',
- label: '黄金糕'
- }, {
- value: '选项2',
- label: '双皮奶'
- }],
+ options: [],
tableData: [
{
time: '上午',
- MonTime: false,
- TuesTime: false,
- WedTime: false,
- ThurTime: false,
- FriTime: false,
- SatTime: false,
- SunTime: false
+ monTime: false,
+ tuesTime: false,
+ wedTime: false,
+ thurTime: false,
+ friTime: false,
+ satTime: false,
+ sunTime: false
}, {
time: '下午',
- MonTime: false,
- TuesTime: false,
- WedTime: false,
- ThurTime: false,
- FriTime: false,
- SatTime: false,
- SunTime: false
+ monTime: false,
+ tuesTime: false,
+ wedTime: false,
+ thurTime: false,
+ friTime: false,
+ satTime: false,
+ sunTime: false
}
- ]
+ ],
+ originForm: {},
+ originTable: [],
+ message: '',
+ rules: {
+ project: [
+ { required: true, message: '请选择项目' }
+ ],
+ workTimeAm: [
+ { required: true, message: '请选择时间' }
+ ],
+ workTimePm: [
+ { required: true, message: '请选择时间' }
+ ],
+ timeInterval: [
+ { required: true, message: '请填写时间间隔' }
+ ],
+ maxNumber: [
+ { required: true, message: '请填写人数上限' }
+ ]
+ }
}
},
watch: {
isShow(val) {
this.show = val
+ this.getDetailData()
}
},
+ created() {
+ this.originForm = JSON.parse(JSON.stringify(this.form))
+ this.originTable = JSON.parse(JSON.stringify(this.tableData))
+ this.queryProjects()
+ },
methods: {
+ queryProjects() {
+ this.$http.get('/patient/getZlItemDict', { params: { isAppoint: 1 }}).then(data => {
+ this.options = data.data.data
+ })
+ },
+ getDetailData() {
+ if (this.title === '修改项目') {
+ this.$nextTick(() => {
+ this.message = '修改成功'
+ this.tableData = JSON.parse(JSON.stringify(this.projectDetail.openVoList))
+ this.form = JSON.parse(JSON.stringify(this.projectDetail))
+ this.form.project = this.projectDetail.itemId
+ })
+ } else {
+ this.$nextTick(() => {
+ this.form = this.originForm
+ this.tableData = this.originTable
+ this.message = '新增成功'
+ this.$refs['addForm'].resetFields()
+ })
+ }
+ },
closeDialog(val) {
- this.show = val
- this.$emit('close', val)
+ this.$refs['addForm'].resetFields()
+ this.$emit('closeDialog', val)
+ },
+ // 保存或者修改
+ handleSave() {
+ this.$refs['addForm'].validate((valid) => {
+ if (!valid) {
+ return false
+ }
+ const project = this.options.find(pro => pro.itemId === this.form.project)
+ const params = {
+ itemId: this.form.project,
+ ...this.form,
+ itemName: project.itemName || '',
+ openVoList: this.tableData
+ }
+ this.$http.post('/appoint/saveOrUpdateAppointItem', params).then(() => {
+ this.$message.success(this.message)
+ this.$emit('refreshList')
+ })
+ })
}
}
}
diff --git a/src/page-subspecialty/views/modules/nurseManagement/myDialog.vue b/src/page-subspecialty/views/modules/nurseManagement/myDialog.vue
index 3fd1bdb..3c67899 100644
--- a/src/page-subspecialty/views/modules/nurseManagement/myDialog.vue
+++ b/src/page-subspecialty/views/modules/nurseManagement/myDialog.vue
@@ -43,12 +43,15 @@ export default {
this.dialogVisible = val
}
},
+ created() {
+ console.log('asdfasdf')
+ },
methods: {
handleClose() {
this.$emit('close', false)
},
handleSave() {
- this.handleClose()
+ this.$emit('handleSave')
}
}
}
diff --git a/src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue b/src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue
index 6167a9c..d21de6b 100644
--- a/src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue
+++ b/src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue
@@ -41,7 +41,6 @@
tooltip-effect="dark"
style="width: 100%"
:cell-class-name="tableCellClassName"
- @sort-change="sortChange"
@row-dblclick="dbclick"
>
@@ -71,15 +70,15 @@
-
-
+
+
@@ -110,8 +109,7 @@ export default {
onlyRead: true,
reDialogShow: false,
ubmShow: false,
- patientId: '',
- patientIdNumber: '',
+ patientInfo: null,
dataForm: {
appointStatus: '',
searchType: '0'
@@ -144,26 +142,7 @@ export default {
}],
projects: [],
project: '全部项目',
- // 0:等待签到 1:等待呼叫,2:呼叫中,3:手术中 4:手术结束 5:已取消
- statusList: [{
- status: 0,
- name: '等待签到'
- }, {
- status: 1,
- name: '等待呼叫'
- }, {
- status: 2,
- name: '呼叫中'
- }, {
- status: 3,
- name: '手术中'
- }, {
- status: 4,
- name: '手术结束'
- }, {
- status: 100,
- name: '已取消'
- }],
+ selectedProjects: [],
doctorList: [],
operaList: [],
currentRow: {},
@@ -172,14 +151,11 @@ export default {
}
},
created() {
- // this.dataForm.startTime = this.$moment().format('YYYY-MM-DD')
- // this.dataForm.endTime = this.$moment().format('YYYY-MM-DD')
this.queryProjects()
- // this.getDoctorList()
- // this.getOperaList()
this.getDataListInitial()
},
methods: {
+ // 获取全部项目
queryProjects() {
this.$http.get('/patient/getZlItemDict', { params: { isAppoint: 1 }}).then(data => {
this.projects = data.data.data
@@ -195,37 +171,6 @@ export default {
closeUbmDialog(val) {
this.ubmShow = val
},
- // 日期改变时
- dateChange(e) {
- this.dataForm.startTime = e ? e[0] : ''
- this.dataForm.endTime = e ? e[1] : ''
- this.getDataListInitial()
- },
- // 获取手术医生列表
- async getDoctorList() {
- const { data: res } = await this.$http.get('/sys/user/getDoctorList')
- if (res.code === 0) {
- this.doctorList = res.data
- } else {
- this.$message.error(res.msg)
- }
- },
- // 获取术士项目列表
- async getOperaList() {
- const { data: res } = await this.$http.get('/opera/getOperaNameList')
- if (res.code === 0) {
- this.operaList = res.data
- } else {
- this.$message.error(res.msg)
- }
- },
- // 排序
- sortChange(e) {
- console.log(e)
- this.order = e.order === 'descending' ? 'desc' : 'asc'
- this.orderField = e.column.sortable
- this.getDataList()
- },
// 给单元格绑定横向和竖向的index,这样就能确定是哪一个单元格
tableCellClassName({ row, column, rowIndex, columnIndex }) {
row.index = rowIndex
@@ -241,27 +186,12 @@ export default {
this.$refs[row.index + ',' + column.index].focus()
})
},
- // 当input失去焦点的时候,隐藏input
- hideInput(scopeRow) {
- this.currentCell = null
- const operaParams = scopeRow
- operaParams.operaTime = scopeRow.operaTime ? scopeRow.operaTime + ':00' : ''
- this.updateOpera(operaParams)
- },
- async updateOpera(operaParams) {
- const { data: res } = await this.$http.post('/opera/updateOpera', operaParams)
- if (res.code === 0) {
- this.getDataList()
- } else {
- this.$message.error(res.msg)
- }
- },
- // 修改手术
+ // 改约
editOpera(scopeRow) {
this.currentRow = scopeRow
this.ubmShow = true
},
- // 取消手术
+ // 取消预约
cancelClick(scopeRow) {
this.$confirmFun('确定要取消此患者预约吗?').then(async() => {
const { data: res } = await this.$http.get('/appoint/delAppiontInfo', {
@@ -280,10 +210,10 @@ export default {
}
})
},
+ // 患者360
checkPatientDetail(scopeRow) {
this.detailViewVisible = true
- this.patientId = scopeRow.patientId
- this.patientIdNumber = scopeRow.patientIdNumber
+ this.patientInfo = scopeRow
}
}
}
diff --git a/src/page-subspecialty/views/modules/nurseManagement/reservation/subSetting/index.vue b/src/page-subspecialty/views/modules/nurseManagement/reservation/subSetting/index.vue
index 0ec019b..539c502 100644
--- a/src/page-subspecialty/views/modules/nurseManagement/reservation/subSetting/index.vue
+++ b/src/page-subspecialty/views/modules/nurseManagement/reservation/subSetting/index.vue
@@ -5,18 +5,17 @@
@@ -28,7 +27,7 @@
width="50"
>
-
+
-
+
@@ -57,7 +55,7 @@
width="50"
>
-
+
-
+
@@ -86,7 +83,7 @@
width="50"
>
-
+
-
+
@@ -115,7 +111,7 @@
width="50"
>
-
+
-
+
@@ -144,7 +139,7 @@
width="50"
>
-
+
-
+
@@ -173,7 +167,7 @@
width="50"
>
-
+
-
+
@@ -202,7 +195,7 @@
width="50"
>
-
+
-
+
-
+
-
+
-
-
-
-
+ />
-
-
-
-
+ />
-
+