Browse Source

新增预约表单带入

360view
bianyaqi 2 years ago
parent
commit
f294f9e30b
  1. 4
      public/index.html
  2. 28
      src/page-subspecialty/views/modules/formList/mraOrder.vue
  3. 26
      src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/addPatientOrder.vue

4
public/index.html

@ -39,8 +39,8 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script> <script>
//http://121.36.16.195:9002/huimu-admin/swagger-ui/index.html //http://121.36.16.195:9002/huimu-admin/swagger-ui/index.html
window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.0.167:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
window.SITE_CONFIG['apiURL'] = 'http://192.168.0.167:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.4.174:8036/xiangan-crf'; // window.SITE_CONFIG['apiURL'] = 'http://192.168.4.174:8036/xiangan-crf';
</script> </script>
<% } %> <% } %>

28
src/page-subspecialty/views/modules/formList/mraOrder.vue

@ -32,7 +32,12 @@
<tr> <tr>
<td> <td>
<div class="flex"> <div class="flex">
出生日期<el-input v-model="formData.patientBirthday" style="flex: 1" />
<div class="flex">
出生日期<el-input v-model="formData.patientBirthday" style="flex: 1" />
</div>
<div class="flex">
来源<el-input v-model="formData.source" style="flex: 1" />
</div>
</div> </div>
</td> </td>
<td> <td>
@ -254,7 +259,8 @@ export default {
isPrint: '', isPrint: '',
examineDate: '', examineDate: '',
checkAdvice: '', checkAdvice: '',
docAdvice: ''
docAdvice: '',
source: ''
}, },
context: [ context: [
{ {
@ -307,7 +313,7 @@ export default {
}) })
}, },
handleSaveTable() { handleSaveTable() {
this.formData.jzNumber = window.sessionStorage.getItem('jzNumber')
this.formData.jzNumber = window.sessionStorage.getItem('jzNumber') || this.$route.query.jzNumber || ''
this.$http.post('/mzbl/saveMzblYdxgzy', { this.$http.post('/mzbl/saveMzblYdxgzy', {
caseId: this.caseId, caseId: this.caseId,
...this.formData ...this.formData
@ -315,6 +321,21 @@ export default {
this.$emit('handleSaveTable') this.$emit('handleSaveTable')
}) })
}, },
//
queryOrderForm() {
this.$http.get('/mzbl/getLastAppointInfo', { params: {
patientId: this.formData.patientId
}}).then(data => {
const formDetail = data.data.data
this.formData.source = formDetail.source
this.formData.remark = formDetail.remark
this.formData.project = formDetail.project
this.formData.doctor = formDetail.doctor
this.formData.checkAdvice = formDetail.checkAdvice
this.formData.examineDate = formDetail.examineDate
this.formData.lightEye = formDetail.lightEye
})
},
getOrderDetail() { getOrderDetail() {
this.$http.get('/mzbl/getMzblYdxgzyInfo', { params: { this.$http.get('/mzbl/getMzblYdxgzyInfo', { params: {
caseId: this.caseId, caseId: this.caseId,
@ -330,6 +351,7 @@ export default {
this.formData.patientId = this.patientDetail.patientId this.formData.patientId = this.patientDetail.patientId
this.formData.patientBirthday = this.$moment(this.patientDetail.patientBirthday).format('YYYY-MM-DD') this.formData.patientBirthday = this.$moment(this.patientDetail.patientBirthday).format('YYYY-MM-DD')
this.formData.patientPhone = this.patientDetail.patientPhone this.formData.patientPhone = this.patientDetail.patientPhone
this.queryOrderForm()
} }
}) })
}, },

26
src/page-subspecialty/views/modules/nurseManagement/reservation/schedule/addPatientOrder.vue

@ -39,20 +39,7 @@
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="备注:"> <el-form-item label="备注:">
<el-select
v-model="form.remark"
filterable
allow-create
default-first-option
placeholder=""
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-input v-model="form.remark" type="textarea" />
</el-form-item> </el-form-item>
<div style="display: flex;padding:0 0 20px 0"> <div style="display: flex;padding:0 0 20px 0">
<el-col :span="10" style="display: flex;align-items: center"> <el-col :span="10" style="display: flex;align-items: center">
@ -166,13 +153,6 @@ export default {
startTime: '08:30', startTime: '08:30',
step: '00:15', step: '00:15',
endTime: '18:00', endTime: '18:00',
options: [{
value: 'FFA',
label: 'FFA'
}, {
value: 'ICGA',
label: 'ICGA'
}],
doctorList: [] doctorList: []
} }
}, },
@ -301,13 +281,15 @@ export default {
this.$emit('closeDialog') this.$emit('closeDialog')
}, },
goFormList() { goFormList() {
this.handleSave()
if (this.patientInfo) { if (this.patientInfo) {
const { href } = this.$router.resolve({ const { href } = this.$router.resolve({
path: '/360view', path: '/360view',
query: { query: {
onlyRead: false, onlyRead: false,
isSearch: '2', isSearch: '2',
patientId: this.patientInfo.patientId
patientId: this.patientInfo.patientId,
jzNumber: this.patientInfo.jzNumber
} }
}) })
window.open(href, '_blank') window.open(href, '_blank')

Loading…
Cancel
Save