后端显示门店账单

This commit is contained in:
2026-07-07 00:04:07 +08:00
parent 7ca9fc8a35
commit 1fcafac2a7
12 changed files with 233 additions and 126 deletions
+9 -10
View File
@@ -153,25 +153,23 @@ async function main() {
const storeDefs = [
{
name: '郑州老城店',
phone: '0371-88880001',
phone: '13910000001',
district: '金水区',
address: '花园路100号',
intro: '正宗河南菜,欢迎核销好客权益',
img: 'https://picsum.photos/seed/store1/400/300',
categoryId: categories[0].id,
accountPhone: '13900000001',
accountName: '老城店店长',
withAccount: true,
},
{
name: '郑州美食城店',
phone: '0371-88880002',
phone: '13910000002',
district: '二七区',
address: '大学路200号',
intro: '地方特色餐饮',
img: 'https://picsum.photos/seed/store2/400/300',
categoryId: categories[1].id,
accountPhone: '13900000002',
accountName: '美食城店长',
withAccount: false,
},
];
@@ -198,9 +196,11 @@ async function main() {
});
const cover = await createMockResource(ResourceOwnerType.STORE, store.id, ResourceBizType.COVER, def.img);
await prisma.store.update({ where: { id: store.id }, data: { coverResourceId: cover.id } });
await prisma.storeAccount.create({
data: { storeId: store.id, phone: def.accountPhone, name: def.accountName },
});
if (def.withAccount) {
await prisma.storeAccount.create({
data: { storeId: store.id, phone: def.phone, name: def.name },
});
}
}
await prisma.user.create({
@@ -252,7 +252,6 @@ async function main() {
stores: storeDefs.length,
testPhones: {
user: '13800000001',
store: '13900000001',
partner: '13700000001',
hq: '13600000001',
},