From 51d57b47ec6e3b5bbb7a453bf63aa185492d9d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BD=B3=E5=AE=87?= <17601616548@163.com> Date: Mon, 21 Oct 2024 10:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=20?= =?UTF-8?q?=E5=92=8C=20=E5=88=9B=E5=BB=BA=E5=AE=9A=E4=BB=B7=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20=E5=8A=A0=E4=B8=AA=E5=8F=82=E6=95=B0=EF=BC=8Cwj?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- h5/pages/main/tj/tjxq.vue | 8 ++++++++ h5/pages/main/tjyy/tjyy.vue | 1 + 2 files changed, 9 insertions(+) diff --git a/h5/pages/main/tj/tjxq.vue b/h5/pages/main/tj/tjxq.vue index f6a5b2f..2fe40d8 100644 --- a/h5/pages/main/tj/tjxq.vue +++ b/h5/pages/main/tj/tjxq.vue @@ -15,6 +15,7 @@ const $store = useStore(); let comboInfo = ref({}); // 套餐详情 let selectIds = ref([]); // 选中自选ID +let wj = ref(""); // let itemsInfo = ref({}); // 自选项目详情 let comboId = ref(""); // 套餐id let personId = ref(""); // 患者id @@ -65,10 +66,15 @@ const $props = defineProps({ type: String, default: "", }, + wj: { + type: String, + default: "", + }, }); const mountedAction = async () => { selectIds.value = $props.itemIds?.split(",") || []; + wj.value = $props.wj || ""; console.log($store.user); comboId.value = $props.comboId || ""; personId.value = $store.getUser().person_id || ""; @@ -120,6 +126,7 @@ const buy = () => { item_ids: selectIds.value, hospital: $store.save_info.hospital, duo_xuan_yi: $store.getDuoXuanYi(), + wj: wj.value, }); $store.setYytjInfo({}); uni.setStorageSync("yytjInfoS", {}); @@ -138,6 +145,7 @@ const getBuyInfo = async () => { person_id: personId.value, group_id: groupId.value, duo_xuan_yi: $store.getDuoXuanYi(), + wj: wj.value, }; const response = await $api("BuyInfo", obj); $response(response, () => { diff --git a/h5/pages/main/tjyy/tjyy.vue b/h5/pages/main/tjyy/tjyy.vue index f7ed943..aedadb3 100755 --- a/h5/pages/main/tjyy/tjyy.vue +++ b/h5/pages/main/tjyy/tjyy.vue @@ -286,6 +286,7 @@ const comfrimyy = async () => { duo_xuan_yi: $store.getDuoXuanYi(), jifen: Math.ceil(jifen.value), yucunkuan: yucunkuan.value, + wj: yytjInfo.value.wj, }; console.log(obj);