hookehuyr

🐞 fix: 待申领物资页面,如果没有组别就不能操作

<!--
* @Date: 2024-07-23 12:53:15
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-08-02 23:04:47
* @LastEditTime: 2024-08-12 12:55:41
* @FilePath: /temple_material_request/src/views/material_pre_request.vue
* @Description: 待申领物资页面
-->
......@@ -18,7 +18,7 @@
</span>
<span v-else :style="{ color: styleColor.baseColor }">品项数: {{ sum_num }}</span>
</van-col>
<van-col span="16" :style="{ textAlign: 'right', fontSize: '0.85rem', color: styleColor.baseColor }">
<van-col v-if="status" span="16" :style="{ textAlign: 'right', fontSize: '0.85rem', color: styleColor.baseColor }">
<span v-if="model !== 'edit'" @click="onClickEdit"><van-icon name="records-o" />&nbsp;编辑</span>
<span v-else>
<span @click="onClickDel"><van-icon name="delete-o" />&nbsp;删除</span>&nbsp;&nbsp;
......@@ -149,6 +149,7 @@ const form_id = $route.query.form_id ? $route.query.form_id : '';
const client_id = $route.query.client_id ? $route.query.client_id : '';
const disabled_btn = ref(false);
const status = ref(true);
/**
* 获取我的组别列表
......@@ -164,6 +165,7 @@ const getDeptsList = async () => {
if (!data.length) {
showToast('您暂无组别无法申领物资');
disabled_btn.value = true;
status.value = false; // 不能操作状态
}
}
}
......