dynamicDailyReport.js 1.51 KB
import api from '~/utils/request/request.js'

function dailyReportWeeklyList(data) {
	return api.post('dj.api.smartcarlife.dailyReport.weekly.list', data)
}

function dynamicDailyReportSave(data) {
	return api.post('dj.api.smartcarlife.dailyReport.dynamic.save', data, [], undefined, 'dj', false)
}

function dynamicDailyReportDraftSave(data) {
	return api.post('dj.api.smartcarlife.dailyReport.dynamic.draft.save', data, [], undefined, 'dj', false)
}

function dailyReportDetailGet(data) {
	return api.get('dj.api.smartcarlife.dailyReport.detail.get', data, [], undefined, 'dj', false)
}

function dailyReportMonthlyPendingCountGet(data) {
	return api.post(
		// 'dj.api.smartcarlife.dailyReport.monthly.pending.count',
		'dj.api.smartcarlife.dailyReport.monthly.pending.get',
		data,
		[],
		undefined,
		'dj',
		false
	)
}

function merchantBaseSceneCodeList(data) {
	return api.post(
		'dj.api.smartcarlife.staffBaseInfo.merchant.baseSceneCode.list',
		data,
		[],
		undefined,
		'dj',
		false
	)
}

function staffDailyReportCarBrand(data) {
	return api.post('dj.api.smartcarlife.staff.daily.report.car.brand', data)
}

function dailyReportDiscussionStaffList(data) {
	return api.post(
		'dj.api.smartcarlife.dailyReport.discussion.staff.list',
		data,
		[],
		undefined,
		'dj',
		false
	)
}

module.exports = {
	dailyReportWeeklyList,
	dynamicDailyReportSave,
	dynamicDailyReportDraftSave,
	dailyReportDetailGet,
	dailyReportMonthlyPendingCountGet,
	merchantBaseSceneCodeList,
	staffDailyReportCarBrand,
	dailyReportDiscussionStaffList
}