master
parent
c13f4a653a
commit
da0e743bc5
|
|
@ -70,7 +70,13 @@
|
|||
rightIcon="edit-pen"
|
||||
@click="toggleDatePicker('next_treat_at', 'datetime')"
|
||||
/>
|
||||
<u-cell title="开启通知">
|
||||
<view slot="value">
|
||||
<u-switch v-model="info.is_notified" :activeValue="0" :inactiveValue="1" asyncChange @change="updateSwitch" />
|
||||
</view>
|
||||
</u-cell>
|
||||
<u-cell
|
||||
v-if="info.is_notified == 0"
|
||||
title="通知人"
|
||||
:value="adminUser.notify_user_name"
|
||||
isLink
|
||||
|
|
@ -78,25 +84,27 @@
|
|||
@click="opendAdminUser('notify_user')"
|
||||
/>
|
||||
<u-cell
|
||||
v-if="info.is_notified == 0"
|
||||
title="通知时间"
|
||||
:value="info.notify_at | date('yyyy-MM-dd')"
|
||||
isLink
|
||||
rightIcon="edit-pen"
|
||||
@click="toggleDatePicker('notify_at', 'date')"
|
||||
/>
|
||||
<u-cell
|
||||
<!-- <u-cell
|
||||
title="通知备注"
|
||||
:value="info.notify_remarks"
|
||||
isLink
|
||||
rightIcon="edit-pen"
|
||||
@click="openModal('通知备注', 'notify_remarks', 'text')"
|
||||
/>
|
||||
/> -->
|
||||
<u-cell
|
||||
title="录入时间"
|
||||
:value="info.created_at"
|
||||
/>
|
||||
</u-cell-group>
|
||||
<div class="btn">
|
||||
<u-button text="病人信息" type="primary" @click="patientDetail" />
|
||||
<u-button text="删除病历" type="error" @click="deleteRecord" />
|
||||
</div>
|
||||
<select-admin-user ref="select-admin-user" @select="selectAdminUser" />
|
||||
|
|
@ -160,7 +168,8 @@ export default {
|
|||
type_id: '',
|
||||
origin_price: '',
|
||||
sell_price: '',
|
||||
notify_remarks: ''
|
||||
notify_remarks: '',
|
||||
is_notified: 0,
|
||||
},
|
||||
adminUser: {
|
||||
key: '',
|
||||
|
|
@ -352,6 +361,13 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
updateSwitch(e) {
|
||||
this.update('is_notified', e).then(res => {
|
||||
if (res.status == 0) {
|
||||
this.info.is_notified = e
|
||||
}
|
||||
})
|
||||
},
|
||||
deleteRecord() {
|
||||
uni.showModal({
|
||||
title: '删除病历记录',
|
||||
|
|
@ -376,7 +392,10 @@ export default {
|
|||
}, 1000)
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
patientDetail() {
|
||||
return uni.navigateTo({ url: `/pages/patient/detail?id=${this.info.patient_id}` })
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
<u-radio v-for="item in orderStatus.options" :key="item.value" :label="item.name" :name="item.value" />
|
||||
</u-radio-group>
|
||||
</u-form-item>
|
||||
<u-form-item label="请输入诊疗情况" prop="content" :borderBottom="true" @click="openEditor">
|
||||
<u-form-item label="诊疗情况" prop="content" :borderBottom="true" @click="openEditor">
|
||||
<view class="input-text">
|
||||
<!-- <rich-text v-if="form.illness" :nodes="form.illness" /> -->
|
||||
<text v-if="form.content">{{ form.content }}</text>
|
||||
|
|
@ -47,30 +47,33 @@
|
|||
<u-form-item label="图片资料" prop="images" borderBottom>
|
||||
<cu-image ref="images" />
|
||||
</u-form-item>
|
||||
<u-form-item prop="next_treat_at" label="下次就诊" :borderBottom="true" @click="toggleDatePicker('next_treat_at', 'datetime')">
|
||||
<u-form-item prop="next_treat_at" label="下次就诊时间" :borderBottom="true" @click="toggleDatePicker('next_treat_at', 'datetime')">
|
||||
<view class="input-text">
|
||||
<text v-if="form.next_treat_at">{{ form.next_treat_at | date }}</text>
|
||||
<text v-else class="input-placeholder">请选择下次就诊时间</text>
|
||||
<u-icon name="arrow-right" />
|
||||
</view>
|
||||
</u-form-item>
|
||||
<u-form-item prop="notify_user_id" label="通知人" :borderBottom="true" @click="opendAdminUser('notify_user')">
|
||||
<u-form-item label="开启通知" prop="is_notified" borderBottom>
|
||||
<u-switch v-model="form.is_notified" :activeValue="0" :inactiveValue="1" asyncChange @change="updateSwitch" />
|
||||
</u-form-item>
|
||||
<u-form-item v-if="form.is_notified == 0" prop="notify_user_id" label="通知人" :borderBottom="true" @click="opendAdminUser('notify_user')">
|
||||
<view class="input-text">
|
||||
<text v-if="form.notify_user_id">{{ adminUser.notify_user_name }}</text>
|
||||
<text v-else class="input-placeholder">请选择通知人</text>
|
||||
<u-icon name="arrow-right" />
|
||||
</view>
|
||||
</u-form-item>
|
||||
<u-form-item prop="notify_at" label="通知时间" :borderBottom="true" @click="toggleDatePicker('notify_at', 'date')">
|
||||
<u-form-item v-if="form.is_notified == 0" prop="notify_at" label="通知时间" :borderBottom="true" @click="toggleDatePicker('notify_at', 'date')">
|
||||
<view class="input-text">
|
||||
<text v-if="form.notify_at">{{ form.notify_at | date('yyyy-MM-dd') }}</text>
|
||||
<text v-else class="input-placeholder">请选择通知时间</text>
|
||||
<u-icon name="arrow-right" />
|
||||
</view>
|
||||
</u-form-item>
|
||||
<u-form-item prop="notify_remarks" label="通知备注" :borderBottom="true">
|
||||
<!-- <u-form-item prop="notify_remarks" label="通知备注" :borderBottom="true">
|
||||
<u--input v-model="form.notify_remarks" placeholder="请输入通知备注" border="none" />
|
||||
</u-form-item>
|
||||
</u-form-item> -->
|
||||
<u-form-item label="操作人" :borderBottom="true">
|
||||
<view class="input-text">{{ currentUser.name }}</view>
|
||||
</u-form-item>
|
||||
|
|
@ -117,7 +120,8 @@ export default {
|
|||
next_treat_at: '',
|
||||
notify_user_id: '',
|
||||
notify_at: '',
|
||||
notify_remarks: ''
|
||||
notify_remarks: '',
|
||||
is_notified: 1,
|
||||
},
|
||||
typeList: [],
|
||||
patient: {},
|
||||
|
|
@ -284,6 +288,9 @@ export default {
|
|||
},
|
||||
confirmEditor(e) {
|
||||
this.form.content = e
|
||||
},
|
||||
updateSwitch(e) {
|
||||
this.form.is_notified = e
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue