同城有仓按仓库绑定承运商自动推单或自管填单,无仓/跨城走总部快递;新增仓配注册表、FulfillmentService 及三端运单追踪。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -91,6 +91,8 @@ async function main() {
|
||||
|
||||
await prisma.cityWarehouse.deleteMany();
|
||||
|
||||
await prisma.fulfillmentProvider.deleteMany();
|
||||
|
||||
await prisma.partnerAccount.deleteMany();
|
||||
|
||||
await prisma.commonCity.deleteMany();
|
||||
@@ -175,6 +177,21 @@ async function main() {
|
||||
|
||||
|
||||
|
||||
const xfxProvider = await prisma.fulfillmentProvider.create({
|
||||
data: {
|
||||
code: 'XFX',
|
||||
name: '小飞侠',
|
||||
type: 'API',
|
||||
status: 'ACTIVE',
|
||||
capabilitiesJson: JSON.stringify({
|
||||
createShipment: true,
|
||||
getTrack: true,
|
||||
callback: true,
|
||||
cancel: true,
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
const warehouse = await prisma.cityWarehouse.create({
|
||||
|
||||
data: {
|
||||
@@ -195,6 +212,14 @@ async function main() {
|
||||
|
||||
status: 'ACTIVE',
|
||||
|
||||
fulfillmentMode: 'API_AUTO',
|
||||
|
||||
fulfillmentProviderId: xfxProvider.id,
|
||||
|
||||
lng: 113.665,
|
||||
|
||||
lat: 34.757,
|
||||
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user