Selaa lähdekoodia

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP2.0_WEB

zhangpeng 4 vuotta sitten
vanhempi
commit
72f3d5d469

+ 16 - 1
src/goServiceAPI/ermcp/warehouse-info/index.ts

@@ -1 +1,16 @@
-/** ================================= 仓库信息 ================================**/
+/** ================================= 仓库信息 ================================**/
+import {commonSearch_go} from "@/goServiceAPI";
+import {ErmcpWareHouseInfo, WareHouseInfoReq} from "@/goServiceAPI/ermcp/warehouse-info/interface";
+
+/**
+ * 查询仓库信息 /Ermcp/QueryWarehouseInfo
+ * @param req.userid 用户id(必填)
+ * @param req.status 仓库状态(可多项,逗号隔开) 1:正常 2:注销 3:待审核 4:审核拒绝
+ * @constructor
+ */
+export function QueryWareHouse( req : WareHouseInfoReq) : Promise<ErmcpWareHouseInfo[]>{
+    return commonSearch_go('/Ermcp/QueryWarehouseInfo', {req})
+        .catch(err => {
+            throw new Error(`查询仓库信息: ${err.message}`);
+        })
+}

+ 30 - 0
src/goServiceAPI/ermcp/warehouse-info/interface.ts

@@ -0,0 +1,30 @@
+/**
+ * 查询仓单信息请求
+ */
+export interface WareHouseInfoReq{
+    userid: number // 用户ID
+    status?: string // 仓库状态(可多项,逗号隔开) 1:正常 2:注销 3:待审核 4:审核拒绝
+}
+/**
+ * 仓库信息
+ */
+export interface ErmcpWareHouseInfo{
+    address	:string;//详细地址
+    areauserid	:number;//所属机构
+    autoid	:number;//自增ID(仓库ID)
+    cityid	:number;//市
+    contactname	:string;//联系人
+    contactnum	:string;//联系电话
+    countryid	:number;//国家
+    createtime	:string;//创建时间
+    districtid	:number;//区
+    hasvideo	:number;//是否有视频 - number;
+//:无 1:有
+    provinceid	:number;//省
+    remark	:string;//审核备注
+    videourl	:string;//视频地址
+    warehousecode	:string;//仓库代码
+    warehousename	:string;//仓库名称
+    warehousestatus	:number;//仓库状态 - 1:正常 2:注销 3:待审核 4:审核拒绝
+    warehousetype	:number;//仓库类型 - 1 厂库 2 自有库 3 合作库
+}