Showing
1 changed file
with
5 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-07-23 12:53:15 | 2 | * @Date: 2024-07-23 12:53:15 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-07-28 12:06:16 | 4 | + * @LastEditTime: 2024-07-29 09:34:23 |
| 5 | * @FilePath: /temple_material_request/src/views/material_pre_request.vue | 5 | * @FilePath: /temple_material_request/src/views/material_pre_request.vue |
| 6 | * @Description: 待申领物资页面 | 6 | * @Description: 待申领物资页面 |
| 7 | --> | 7 | --> |
| ... | @@ -439,7 +439,7 @@ const onDialogCancel = () => { | ... | @@ -439,7 +439,7 @@ const onDialogCancel = () => { |
| 439 | } | 439 | } |
| 440 | 440 | ||
| 441 | const show_choose_material = ref(false); | 441 | const show_choose_material = ref(false); |
| 442 | -const onCloseChoose = async () => { // 关闭选择物资弹窗回调 | 442 | +const onCloseChoose = async (sum) => { // 关闭选择物资弹窗回调 |
| 443 | show_choose_material.value = false; | 443 | show_choose_material.value = false; |
| 444 | // 刷新购物车列表 | 444 | // 刷新购物车列表 |
| 445 | const { data, code } = await getCartListAPI({ activity_id }); | 445 | const { data, code } = await getCartListAPI({ activity_id }); |
| ... | @@ -449,7 +449,9 @@ const onCloseChoose = async () => { // 关闭选择物资弹窗回调 | ... | @@ -449,7 +449,9 @@ const onCloseChoose = async () => { // 关闭选择物资弹窗回调 |
| 449 | item.checked = false; | 449 | item.checked = false; |
| 450 | }); | 450 | }); |
| 451 | sum_num.value = list.value.length; // 品项数量 | 451 | sum_num.value = list.value.length; // 品项数量 |
| 452 | - onClickEdit(); // 打开编辑模式 | 452 | + if (sum_num.value) { |
| 453 | + onClickEdit(); // 打开编辑模式 | ||
| 454 | + } | ||
| 453 | } | 455 | } |
| 454 | // | 456 | // |
| 455 | } | 457 | } | ... | ... |
-
Please register or login to post a comment