@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.28 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/enum.d.ts CHANGED
@@ -140,12 +140,12 @@ export declare namespace ENUM {
140
140
  REPEAL = "\u5DF2\u64A4\u9500"
141
141
  }
142
142
  enum APPLY_TYPE {
143
- STOCK_SHORTAGE = "STOCK_SHORTAGE",
144
- OTHER = "OTHER"
143
+ STOCK_IN_REPLENISH = "STOCK_IN_REPLENISH",
144
+ ACTIVE_APPLY = "ACTIVE_APPLY"
145
145
  }
146
146
  enum APPLY_TYPE_CHINESE {
147
- STOCK_SHORTAGE = "\u7F3A\u8D27",
148
- OTHER = "\u5176\u4ED6"
147
+ STOCK_IN_REPLENISH = "\u5165\u5E93\u5355\u8865\u8D27",
148
+ ACTIVE_APPLY = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
149
149
  }
150
150
  enum LOSS_TYPE {
151
151
  STOCK = "STOCK",
@@ -168,8 +168,8 @@ export declare namespace ENUM {
168
168
  };
169
169
  /** 申请类型映射 */
170
170
  const APPLY_TYPE_MAP: {
171
- readonly STOCK_SHORTAGE: APPLY_TYPE_CHINESE.STOCK_SHORTAGE;
172
- readonly OTHER: APPLY_TYPE_CHINESE.OTHER;
171
+ readonly STOCK_IN_REPLENISH: APPLY_TYPE_CHINESE.STOCK_IN_REPLENISH;
172
+ readonly ACTIVE_APPLY: APPLY_TYPE_CHINESE.ACTIVE_APPLY;
173
173
  };
174
174
  /** 计损类型映射 */
175
175
  const LOSS_TYPE_MAP: {
package/enum.js CHANGED
@@ -163,13 +163,13 @@ var ENUM;
163
163
  })(STATUS_CHINESE = STORE_REPLENISH_ORDER_ENUM.STATUS_CHINESE || (STORE_REPLENISH_ORDER_ENUM.STATUS_CHINESE = {}));
164
164
  let APPLY_TYPE;
165
165
  (function (APPLY_TYPE) {
166
- APPLY_TYPE["STOCK_SHORTAGE"] = "STOCK_SHORTAGE";
167
- APPLY_TYPE["OTHER"] = "OTHER";
166
+ APPLY_TYPE["STOCK_IN_REPLENISH"] = "STOCK_IN_REPLENISH";
167
+ APPLY_TYPE["ACTIVE_APPLY"] = "ACTIVE_APPLY";
168
168
  })(APPLY_TYPE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE = {}));
169
169
  let APPLY_TYPE_CHINESE;
170
170
  (function (APPLY_TYPE_CHINESE) {
171
- APPLY_TYPE_CHINESE["STOCK_SHORTAGE"] = "\u7F3A\u8D27";
172
- APPLY_TYPE_CHINESE["OTHER"] = "\u5176\u4ED6";
171
+ APPLY_TYPE_CHINESE["STOCK_IN_REPLENISH"] = "\u5165\u5E93\u5355\u8865\u8D27";
172
+ APPLY_TYPE_CHINESE["ACTIVE_APPLY"] = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
173
173
  })(APPLY_TYPE_CHINESE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE = {}));
174
174
  let LOSS_TYPE;
175
175
  (function (LOSS_TYPE) {
@@ -194,8 +194,8 @@ var ENUM;
194
194
  };
195
195
  /** 申请类型映射 */
196
196
  STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_MAP = {
197
- [APPLY_TYPE.STOCK_SHORTAGE]: APPLY_TYPE_CHINESE.STOCK_SHORTAGE,
198
- [APPLY_TYPE.OTHER]: APPLY_TYPE_CHINESE.OTHER,
197
+ [APPLY_TYPE.STOCK_IN_REPLENISH]: APPLY_TYPE_CHINESE.STOCK_IN_REPLENISH,
198
+ [APPLY_TYPE.ACTIVE_APPLY]: APPLY_TYPE_CHINESE.ACTIVE_APPLY,
199
199
  };
200
200
  /** 计损类型映射 */
201
201
  STORE_REPLENISH_ORDER_ENUM.LOSS_TYPE_MAP = {
@@ -34,6 +34,10 @@ declare class StoreReplenishOrderService extends BaseService implements StoreRep
34
34
  * 撤销审批
35
35
  */
36
36
  revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
37
+ /**
38
+ * 更新审批理由
39
+ */
40
+ updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
37
41
  }
38
42
  export declare const storeReplenishOrderService: StoreReplenishOrderService;
39
43
  export default storeReplenishOrderService;
@@ -69,6 +69,12 @@ let StoreReplenishOrderService = class StoreReplenishOrderService extends BaseSe
69
69
  revokeApproval(request) {
70
70
  return (0, http_1.callApi)(this.getApiUrl(this.revokeApproval), request);
71
71
  }
72
+ /**
73
+ * 更新审批理由
74
+ */
75
+ updateApprovalReason(request) {
76
+ return (0, http_1.callApi)(this.getApiUrl(this.updateApprovalReason), request);
77
+ }
72
78
  };
73
79
  __decorate([
74
80
  (0, tsoa_1.Post)('apply-replenish'),
@@ -102,6 +108,10 @@ __decorate([
102
108
  (0, tsoa_1.Post)('revoke-approval'),
103
109
  __param(0, (0, tsoa_1.Body)())
104
110
  ], StoreReplenishOrderService.prototype, "revokeApproval", null);
111
+ __decorate([
112
+ (0, tsoa_1.Post)('update-approval-reason'),
113
+ __param(0, (0, tsoa_1.Body)())
114
+ ], StoreReplenishOrderService.prototype, "updateApprovalReason", null);
105
115
  StoreReplenishOrderService = __decorate([
106
116
  (0, tsoa_1.Route)('StoreReplenishOrder'),
107
117
  (0, tsoa_1.Tags)('storeReplenishOrder')
@@ -23,9 +23,13 @@ export declare namespace StoreReplenishOrderTypes {
23
23
  storeName: string;
24
24
  productImage?: string;
25
25
  productName: string;
26
+ productId: string;
27
+ skuId: string;
26
28
  specName: string;
27
29
  skuCode: string;
30
+ dispatchType: string;
28
31
  applyNum: number;
32
+ approvalNum: number;
29
33
  status: string;
30
34
  createdAt: number;
31
35
  approvalTime?: number;
@@ -74,6 +78,9 @@ export declare namespace StoreReplenishOrderTypes {
74
78
  createdAtEnd?: number;
75
79
  applyType?: string;
76
80
  ids?: string[];
81
+ status?: string;
82
+ approvalTimeStart?: number;
83
+ approvalTimeEnd?: number;
77
84
  }
78
85
  /** 批量拒绝补货申请 */
79
86
  interface BatchReject {
@@ -90,6 +97,12 @@ export declare namespace StoreReplenishOrderTypes {
90
97
  approvalReason: string;
91
98
  operator: string;
92
99
  }
100
+ /** 更新审批理由 */
101
+ interface UpdateApprovalReason {
102
+ id: string;
103
+ approvalReason: string;
104
+ operator: string;
105
+ }
93
106
  /** 撤销审批 */
94
107
  interface RevokeApproval {
95
108
  id: string;
@@ -129,6 +142,7 @@ export declare namespace StoreReplenishOrderTypes {
129
142
  skuId: string;
130
143
  skuCode: string;
131
144
  productName: string;
145
+ dispatchType: string;
132
146
  specName: string;
133
147
  productImage?: string;
134
148
  };
@@ -144,6 +158,7 @@ export declare namespace StoreReplenishOrderTypes {
144
158
  lossType?: string;
145
159
  approvalNum?: number;
146
160
  batchNo?: string;
161
+ approvalTime?: number;
147
162
  };
148
163
  /** 审批记录 */
149
164
  approvalRecords?: Array<{
@@ -172,5 +187,7 @@ export declare namespace StoreReplenishOrderTypes {
172
187
  approveReplenish(request: StoreReplenishOrderTypes.Request.ApproveReplenish): Promise<void>;
173
188
  /** 撤销审批 */
174
189
  revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
190
+ /** 更新审批理由 */
191
+ updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
175
192
  }
176
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-plan-allocation-service-node-sdk",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",