@@ -417,10 +253,9 @@
import { ref, toRefs, reactive, watch,nextTick } from 'vue';
import { formatDoctorTitle } from '@/utils/format';
import { parseTime } from '@/utils/parseTime';
-import { inquiryCase, getIm } from '@/api/order/list';
+import { inquiryCase} from '@/api/order/list';
import { formatInquiryType, formatInquiryStatus } from '@/utils/format';
const emits = defineEmits(['inquiryVisibleChange']);
-const showMore = ref(true);
const props = defineProps({
// 是否显示
modalVisible: {
@@ -429,9 +264,13 @@ const props = defineProps({
},
modalForm: {
type: Object,
+ default:{
+ order_inquiry_case:{
+ inquiry_case_id:''
+ }
+ }
},
});
-const firstIn=ref(false);
const doctorVisible = ref(false);
const doctor_id = ref('');
const patientVisible = ref(false);
@@ -441,36 +280,8 @@ const { modalVisible, modalForm } = toRefs(props);
const openPatient = () => {
patientVisible.value = true;
};
-const pager = reactive({
- page: 1,
- page_size: 10,
-});
-const chatlist = ref([]);
-const HandleGetIm = async (id, params = {}) => {
- const { code, data } = await getIm(id, params);
- if (code == 200) {
-
- if ( data.data.length < 10) {
- showMore.value = false;
- }else{
- showMore.value = true;
- }
- chatlist.value = data.data.reverse().concat(chatlist.value);
- if(!firstIn.value){
- nextTick(() => {
- // 要放在对响应式数据修改之后
- let ele = document.querySelector('.phonecont');
- ele.scrollTop = ele.scrollHeight;
- });
- }
-
- firstIn.value=true
- }
-};
-
-watch(
- () => props.modalForm,
- () => {
+const order_inquiry_id=ref('');
+watch(() => props.modalForm,() => {
if (
props.modalForm.order_inquiry_case &&
props.modalForm.order_inquiry_case.inquiry_case_id
@@ -480,15 +291,10 @@ watch(
Object.assign(patientData, data.data);
});
}
- if (props.modalForm.order_inquiry_id) {
- let id = props.modalForm.order_inquiry_id;
- chatlist.value=[];
- pager.page=1;
- HandleGetIm(id, { ...pager });
- }
- },
- { immediate: true, deep: true }
-);
+ // if(props.modalForm.order_inquiry_id){
+ // order_inquiry_id.value=props.modalForm.order_inquiry_id;
+ // }
+ },{ immediate: true, deep: true })
const openDcotor = () => {
doctor_id.value = props.modalForm.doctor_id;
doctorVisible.value = true;
@@ -496,24 +302,10 @@ const openDcotor = () => {
const handleClose = () => {
emits('inquiryVisibleChange', (modalVisible.value = false));
};
-const loadMore=()=>{
- pager.page= pager.page+1;
- let id=props.modalForm.order_inquiry_case.inquiry_case_id
- HandleGetIm(id, { ...pager });
-
-}
+
\ No newline at end of file
diff --git a/src/components/prescriptionModal.vue b/src/components/prescriptionModal.vue
index 9285ff7..421b8e5 100644
--- a/src/components/prescriptionModal.vue
+++ b/src/components/prescriptionModal.vue
@@ -176,7 +176,7 @@
查看订单
- 下载
+ 下载
diff --git a/src/views/inquiry/inquiry-list/index.vue b/src/views/inquiry/inquiry-list/index.vue
index e4f662e..8e45571 100644
--- a/src/views/inquiry/inquiry-list/index.vue
+++ b/src/views/inquiry/inquiry-list/index.vue
@@ -37,12 +37,12 @@
-
-
-->
+