Browse Source

护士工作台完成

360view
bianyaqi 2 years ago
parent
commit
48704ab10c
  1. 11
      src/page-subspecialty/views/modules/nurseManagement/reDialog.vue
  2. 2
      src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue

11
src/page-subspecialty/views/modules/nurseManagement/reDialog.vue

@ -1,7 +1,7 @@
<template>
<my-dialog :print="print" title="改约" :is-show="show" @handleSave="handleSave" @close="closeDialog">
<el-form id="reOrder" ref="form" size="small" :model="form" label-width="100px">
<div v-for="(item,index) in patientList" :key="index">
<div v-for="(item,index) in patients" :key="index">
<div class="secTitle">{{ `${item.itemName} ${item.patientName}` }}</div>
<el-date-picker
v-model="item.appointDate"
@ -23,10 +23,6 @@ export default {
isShow: {
type: Boolean,
default: false
},
patientList: {
type: Array,
default: () => []
}
},
data() {
@ -35,6 +31,7 @@ export default {
print: {
id: 'reOrder'
},
patients: [],
form: {
date1: '',
date2: '',
@ -55,10 +52,10 @@ export default {
this.$emit('close', val)
},
handleSave() {
this.patientList.forEach(item => {
this.patients.forEach(item => {
this.$set(item, 'appointDate', this.$moment(item.appointDate).format('YYYY-MM-DD HH:mm:ss'))
})
this.$http.post('/appoint/batchUpdateAppointInfo', [...this.patientList]).then(() => {
this.$http.post('/appoint/batchUpdateAppointInfo', [...this.patients]).then(() => {
this.$emit('saveAppoint')
})
}

2
src/page-subspecialty/views/modules/nurseManagement/reservation/subList/index.vue

@ -72,6 +72,7 @@
</div>
</div>
<re-dialog
ref="reDialog"
:patient-list="patientList"
:projects="selectedProjects"
:is-show="reDialogShow"
@ -175,6 +176,7 @@ export default {
//
changeOrder() {
this.reDialogShow = true
this.$refs.reDialog.patients = JSON.parse(JSON.stringify(this.patientList))
},
closeReDialog(val) {
this.reDialogShow = val

Loading…
Cancel
Save