You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import Config from '@/common/js/config.js';
|
|
|
|
|
|
|
|
const { apiUrl } = Config;
|
|
|
|
const defaultwbs = `${apiUrl}/defaultwbs`;
|
|
|
|
|
|
|
|
export function setupMock(app) {
|
|
|
|
uni.$u.api = { ...uni.$u.api } || {};
|
|
|
|
|
|
|
|
// 删除交付物
|
|
|
|
uni.$u.api.deleteDeliver = param =>
|
|
|
|
new Promise((resolve, reject) => {
|
|
|
|
setTimeout(() => {
|
|
|
|
resolve();
|
|
|
|
}, 100);
|
|
|
|
});
|
|
|
|
|
|
|
|
// uni.$u.api.getFinanceByTask = taskDetailId => new Promise((resolve, reject) => {
|
|
|
|
// setTimeout(() => {
|
|
|
|
// resolve({
|
|
|
|
// financeId: '123',
|
|
|
|
// budget: 1000 * 1000,
|
|
|
|
// bonus: 200 * 1000,
|
|
|
|
// projectExpend: 500 * 1000,
|
|
|
|
// dailyExpend: 500 * 1000,
|
|
|
|
// });
|
|
|
|
// }, 100);
|
|
|
|
// });
|
|
|
|
}
|