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.
23 lines
692 B
23 lines
692 B
import store from '@/store/index';
|
|
|
|
const fullPath = store.getters['finance/fullPath'];
|
|
console.log('fullPath: ', fullPath);
|
|
|
|
export function setupFinance(app) {
|
|
uni.$u.api = { ...uni.$u.api } || {};
|
|
// 根据任务id获取财务条信息
|
|
// uni.$u.api.getFinanceByTask = taskDetailId => uni.$u.post(`${fullPath}/getByTask`, { taskDetailId });
|
|
uni.$u.api.getFinanceByTask = taskDetailId => {
|
|
return new Promise((resolve, reject) => {
|
|
setTimeout(() => {
|
|
resolve({
|
|
financeId: '123',
|
|
budget: 10000 * 1000,
|
|
bonus: 200 * 1000,
|
|
projectExpend: 500 * 1000,
|
|
dailyExpend: 500 * 1000,
|
|
});
|
|
}, 100);
|
|
});
|
|
};
|
|
}
|
|
|