|
|
@ -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') |
|
|
|
}) |
|
|
|
} |
|
|
|