完成订单模块

This commit is contained in:
gxwebsoft
2024-04-25 23:38:42 +08:00
parent a6cb9f7f78
commit 16e38b6f31
58 changed files with 6130 additions and 1753 deletions

View File

@@ -56,7 +56,7 @@
import { EleProTable } from 'ele-admin-pro';
import { Role, RoleParam } from '@/api/system/role/model';
const props = defineProps<{
const props = defineProps<{
// 弹窗是否打开
visible: boolean;
// 标题
@@ -121,13 +121,14 @@
...orders,
page,
limit
}).then(res => {
}).then((res) => {
if (props.type == 'merchant') {
return res?.list.filter(d => (d.roleCode == 'merchantClerk'))
}else {
return res?.list.filter(
(d) => d.roleCode == 'merchantClerk' || d.roleCode == 'merchant'
);
} else {
return res;
}
});
};