hookehuyr

✨ feat: 物资申领-【添加更多】页选择物资后,直接返回到编辑模式

李琛优化需求
<!--
* @Date: 2024-07-23 12:53:15
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-28 00:55:37
* @LastEditTime: 2024-07-28 12:06:16
* @FilePath: /temple_material_request/src/views/material_pre_request.vue
* @Description: 待申领物资页面
-->
......@@ -53,7 +53,7 @@
<template #left-icon></template>
</van-field>&nbsp;&nbsp;<span style="font-size: 0.9rem; color: #666;">个</span>
</van-col>
<van-col v-else span="8" style="display: flex; align-items: center; justify-content: end;">
<van-col v-else span="8" style="display: flex; align-items: center; justify-content: flex-end;">
<span style="font-size: 0.9rem; color: #666;">{{ item.apply_number }}</span>&nbsp;&nbsp;<span style="font-size: 0.9rem; color: #666;">个</span>
</van-col>
</van-row>
......@@ -439,10 +439,19 @@ const onDialogCancel = () => {
}
const show_choose_material = ref(false);
const onCloseChoose = () => { // 关闭选择物资弹窗回调
const onCloseChoose = async () => { // 关闭选择物资弹窗回调
show_choose_material.value = false;
// 刷新购物车列表
getCartList();
const { data, code } = await getCartListAPI({ activity_id });
if (code) {
list.value = data;
list.value.forEach(item => {
item.checked = false;
});
sum_num.value = list.value.length; // 品项数量
onClickEdit(); // 打开编辑模式
}
//
}
const show_material_detail = ref(false);
......