@cpzxrobot/sdk 1.3.48 → 1.3.49
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/dist/purchase_gateway.js +7 -0
- package/package.json +1 -1
- package/project_gateway.ts +2 -14
- package/purchase_gateway.ts +31 -0
package/dist/purchase_gateway.js
CHANGED
|
@@ -134,6 +134,13 @@ class PurchaseGateway {
|
|
|
134
134
|
*/
|
|
135
135
|
apply: async (params) => {
|
|
136
136
|
return this.axios.post("/api/v2/coremde-sale/purchase/adjust/apply", params);
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* 更新采购变更单
|
|
140
|
+
* @param params 更新参数
|
|
141
|
+
*/
|
|
142
|
+
update: async (params) => {
|
|
143
|
+
return this.axios.post("/api/v2/coremde-sale/purchase/adjust/update", params);
|
|
137
144
|
}
|
|
138
145
|
};
|
|
139
146
|
}
|
package/package.json
CHANGED
package/project_gateway.ts
CHANGED
|
@@ -491,13 +491,7 @@ export class ProjectGateway extends Object {
|
|
|
491
491
|
* @param args 收货单位参数
|
|
492
492
|
* @returns Promise
|
|
493
493
|
*/
|
|
494
|
-
add: (args: {
|
|
495
|
-
name: string
|
|
496
|
-
contactPeople: string
|
|
497
|
-
contactPhone: string
|
|
498
|
-
contactAddress: string
|
|
499
|
-
projectId: number
|
|
500
|
-
}) => {
|
|
494
|
+
add: (args: any) => {
|
|
501
495
|
return this.context.ready.then((axios) => {
|
|
502
496
|
return axios.post(`/api/v2/coremde-sale/project/consignee/add`, args)
|
|
503
497
|
})
|
|
@@ -507,13 +501,7 @@ export class ProjectGateway extends Object {
|
|
|
507
501
|
* @param args 收货单位参数
|
|
508
502
|
* @returns Promise
|
|
509
503
|
*/
|
|
510
|
-
update: (args: {
|
|
511
|
-
id: number
|
|
512
|
-
name: string
|
|
513
|
-
contactPeople: string
|
|
514
|
-
contactPhone: string
|
|
515
|
-
contactAddress: string
|
|
516
|
-
}) => {
|
|
504
|
+
update: (args: any) => {
|
|
517
505
|
return this.context.ready.then((axios) => {
|
|
518
506
|
return axios.post(`/api/v2/coremde-sale/project/consignee/update`, args)
|
|
519
507
|
})
|
package/purchase_gateway.ts
CHANGED
|
@@ -249,6 +249,37 @@ export class PurchaseGateway {
|
|
|
249
249
|
}>;
|
|
250
250
|
}) => {
|
|
251
251
|
return this.axios.post("/api/v2/coremde-sale/purchase/adjust/apply", params);
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* 更新采购变更单
|
|
256
|
+
* @param params 更新参数
|
|
257
|
+
*/
|
|
258
|
+
update: async (params: {
|
|
259
|
+
projectId: number;
|
|
260
|
+
contractId?: number;
|
|
261
|
+
purchaseOrderProjectId: number;
|
|
262
|
+
id: number;
|
|
263
|
+
taskId: number;
|
|
264
|
+
deptId: number;
|
|
265
|
+
approveUserId: number;
|
|
266
|
+
adjustReason: string;
|
|
267
|
+
purchaseAdjustDetailList: Array<{
|
|
268
|
+
productId: number;
|
|
269
|
+
productName: string;
|
|
270
|
+
qtyBefore: number;
|
|
271
|
+
qtyAfter: number;
|
|
272
|
+
model: string;
|
|
273
|
+
materialCode: string;
|
|
274
|
+
unit: string;
|
|
275
|
+
price: string;
|
|
276
|
+
cost: string;
|
|
277
|
+
taxRate: string;
|
|
278
|
+
disinfection: string;
|
|
279
|
+
remark?: string;
|
|
280
|
+
}>;
|
|
281
|
+
}) => {
|
|
282
|
+
return this.axios.post("/api/v2/coremde-sale/purchase/adjust/update", params);
|
|
252
283
|
}
|
|
253
284
|
};
|
|
254
285
|
}
|