diff --git a/src/api/storeWarehouse.store/storeWarehouse.ts b/src/api/storeWarehouse.store/storeWarehouse.ts index 8cbea539..2387d959 100644 --- a/src/api/storeWarehouse.store/storeWarehouse.ts +++ b/src/api/storeWarehouse.store/storeWarehouse.ts @@ -208,12 +208,14 @@ export function saveApiConfig(data: { app_name: string /** ERP AppKey(来自 index.getQimenAppList 下拉选择) */ qimen_app_key?: string + qimen_customer_id?: string qimen_warehouse_code?: string api_version?: string contact_person?: string contact_phone?: string email?: string is_enabled?: number + callback_url?: string }) { return request({ url: '/system', @@ -271,3 +273,38 @@ export function storeWarehouseDeleteQimenConfig(data: { isSystemApi: true } as any) } + +/** 仓库代货主一键开户:同时完成账号注册、货主创建和仓库-货主签约 */ +export function storeWarehouseOpenAccount(data: { + username: string + password?: string + real_name?: string + company_name: string + business_license?: string + contact_person: string + contact_phone?: string + legal_person?: string + contact_email?: string + address?: string + industry?: string + logo_url?: string + domain?: string + auth_start?: string + auth_end?: string + print_quantity?: number + apply_reason?: string + store_remask?: string + warehouse_remask?: string +}) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storeWarehouse.store.openAccount', + v, + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as any) +} diff --git a/src/views/store/index.vue b/src/views/store/index.vue index a03d6e68..b36bca4f 100644 --- a/src/views/store/index.vue +++ b/src/views/store/index.vue @@ -17,6 +17,9 @@ 发起签约 + + 代开户 + 刷新 @@ -586,7 +589,7 @@ - + + + + + + + - + + + + + + + + + + +
+ + + 随机生成 + +
+ +
+
+
+
+ +