@cpzxrobot/sdk 1.2.78 → 1.2.79
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/user_gateway.js +10 -0
- package/package.json +1 -1
- package/user_gateway.ts +14 -2
package/dist/user_gateway.js
CHANGED
|
@@ -300,6 +300,16 @@ class UserGateway extends Object {
|
|
|
300
300
|
list: async (params) => {
|
|
301
301
|
var axios = await this.context.ready;
|
|
302
302
|
return axios.post('/api/v2/coremde-sale/task/list', params);
|
|
303
|
+
},
|
|
304
|
+
// 任务指派功能
|
|
305
|
+
assignTask: (taskId, deptId, handleUserId = 0) => {
|
|
306
|
+
return this.context.ready.then((axios) => {
|
|
307
|
+
return axios.post('/task/assign', {
|
|
308
|
+
taskId,
|
|
309
|
+
deptId,
|
|
310
|
+
handleUserId
|
|
311
|
+
});
|
|
312
|
+
});
|
|
303
313
|
}
|
|
304
314
|
};
|
|
305
315
|
}
|
package/package.json
CHANGED
package/user_gateway.ts
CHANGED
|
@@ -149,7 +149,7 @@ export class UserGateway extends Object {
|
|
|
149
149
|
...params,
|
|
150
150
|
factoryId: factory.id
|
|
151
151
|
}
|
|
152
|
-
}else{
|
|
152
|
+
} else {
|
|
153
153
|
args = {
|
|
154
154
|
factoryId: factory.id
|
|
155
155
|
};
|
|
@@ -332,7 +332,7 @@ export class UserGateway extends Object {
|
|
|
332
332
|
// 待处理任务列表
|
|
333
333
|
get task() {
|
|
334
334
|
return {
|
|
335
|
-
|
|
335
|
+
list: async (params: {
|
|
336
336
|
pageNo: number,
|
|
337
337
|
pageSize: number,
|
|
338
338
|
taskTypeId: number,
|
|
@@ -342,6 +342,16 @@ export class UserGateway extends Object {
|
|
|
342
342
|
}) => {
|
|
343
343
|
var axios = await this.context.ready;
|
|
344
344
|
return axios.post('/api/v2/coremde-sale/task/list', params);
|
|
345
|
+
},
|
|
346
|
+
// 任务指派功能
|
|
347
|
+
assignTask: (taskId: number, deptId: number, handleUserId: number = 0)=> {
|
|
348
|
+
return this.context.ready.then((axios) => {
|
|
349
|
+
return axios.post('/task/assign', {
|
|
350
|
+
taskId,
|
|
351
|
+
deptId,
|
|
352
|
+
handleUserId
|
|
353
|
+
});
|
|
354
|
+
});
|
|
345
355
|
}
|
|
346
356
|
}
|
|
347
357
|
}
|
|
@@ -383,4 +393,6 @@ export class UserGateway extends Object {
|
|
|
383
393
|
}
|
|
384
394
|
};
|
|
385
395
|
}
|
|
396
|
+
|
|
397
|
+
|
|
386
398
|
}
|