|
@@ -30,17 +30,24 @@ describe('test/app/service/rpt_gather_memory.test.js', () => {
|
|
|
});
|
|
|
// 台账数据
|
|
|
it('test getGatherStageBills - month', function* () {
|
|
|
- const ctx = app.mockContext(mockData);
|
|
|
+ const ctx = app.mockContext();
|
|
|
+ const postData = {
|
|
|
+ account: 'zengpeiwen',
|
|
|
+ project: 'P1201',
|
|
|
+ project_password: '123456',
|
|
|
+ };
|
|
|
+ ctx.session = {};
|
|
|
+ const loginResult = yield ctx.service.projectAccount.accountLogin(postData, 2);
|
|
|
|
|
|
// const select = {
|
|
|
// tenders: [{tid: 2256}, {tid: 2257}, {tid: 2258, gs: true}],
|
|
|
// type: 'month',
|
|
|
// month: '2020-01',
|
|
|
// };
|
|
|
- const select = {
|
|
|
- tenders: [{tid: 2256}, {tid: 2257}],
|
|
|
- type: 'ledger',
|
|
|
- };
|
|
|
+ // const select = {
|
|
|
+ // tenders: [{tid: 2256}, {tid: 2257}],
|
|
|
+ // type: 'ledger',
|
|
|
+ // };
|
|
|
// const define = {
|
|
|
// enable: true,
|
|
|
// setting: JSON.stringify({
|
|
@@ -51,11 +58,16 @@ describe('test/app/service/rpt_gather_memory.test.js', () => {
|
|
|
// ]
|
|
|
// })
|
|
|
// };
|
|
|
+ const select = {
|
|
|
+ tenders: [{tid: 2659}],
|
|
|
+ type: 'final',
|
|
|
+ };
|
|
|
const define = {
|
|
|
enable: true,
|
|
|
setting: JSON.stringify({
|
|
|
title: '请选择汇总的标段',
|
|
|
- type: 'ledger',
|
|
|
+ type: 'final',
|
|
|
+ hasPre: true
|
|
|
})
|
|
|
};
|
|
|
|