hookehuyr

fix 物资情况为空时跳转申领物资页面

<!--
* @Date: 2024-07-23 10:50:38
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-29 09:52:00
* @LastEditTime: 2024-07-29 10:58:37
* @FilePath: /temple_material_request/src/views/material_list.vue
* @Description: 物资情况页面
-->
......@@ -77,25 +77,10 @@ onMounted(async () => {
tabList.value = data;
if (tabList.value.length) { // 默认选中组别ID
dept_id.value = tabList.value[0]['dept_id'];
} else { // 组别为空时跳转到购物车页面
// showDialog({
// title: '温馨提示',
// message: '物资列表为空,将前往添加!',
// confirmButtonColor: styleColor.baseColor
// }).then(() => {
// // 跳转购物车页面
// $router.push({
// path: '/material_pre_request',
// query: {
// activity_id,
// form_id,
// client_id
// }
// })
// });
// 跳转购物车页面
} else { // 组别为空时跳转到申领物资页面
// 跳转申领物资页面
$router.push({
path: '/material_pre_request',
path: '/material_request',
query: {
activity_id,
form_id,
......