123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- import request from '@/utils/request'
- // 销售政策
- export function getList(params) {
- return request({
- url: '/policy/list',
- method: 'get',
- params
- })
- }
- //新增政策
- export function addPoliy(params) {
- return request({
- url: '/policy/add',
- method: 'post',
- data: params
- })
- }
- //新增政策条件
- export function addPoliyCondition(params) {
- return request({
- url: '/policy/condition/add',
- method: 'post',
- data: params
- })
- }
- //政策条件列表
- export function getConditionList(params) {
- return request({
- url: '/policy/condition/list',
- method: 'get',
- params
- })
- }
- export function updatePolicy(params) {
- return request({
- url: '/policy/update',
- method: 'post',
- data: params
- })
- }
- export function deletePolicy(params) {
- return request({
- url: '/policy/delete',
- method: 'post',
- params
- })
- }
- export function getConditionMaterialDetail(params) {
- return request({
- url: '/policy/condition/detail',
- method: 'get',
- params
- })
- }
- //政策条件的机型列表
- export function getConditionMaterialList(params) {
- return request({
- url: '/policy/condition/material/list',
- method: 'get',
- params
- })
- }
- //经销商api
- export function getCrList(params) {
- return request({
- url: '/customer/list',
- method: 'get',
- params
- })
- }
- //政策销售商列表
- export function getCustomerList(params) {
- return request({
- url: '/policy/customer/list',
- method: 'get',
- params
- })
- }
- //获取销售政策编号
- export function getId(params) {
- return request({
- url: '/policy/id',
- method: 'get',
- params
- })
- }
- export function deleteCondition(params) {
- return request({
- url: '/policy/condition/delete',
- method: 'post',
- params
- })
- }
- export function toExamine(params) {
- return request({
- url: '/policy/examine',
- method: 'post',
- params
- })
- }
- //导入政策货品
- // /policy/material/import
- //政策货品列表
- export function getMaterialList(params) {
- return request({
- url: '/policy/material/list',
- method: 'get',
- params
- })
- }
- //提审政策
- export function getpolicySubmit(params) {
- return request({
- url: '/policy/policy/submit',
- method: 'post',
- params
- })
- }
- //删除政策货品
- export function deleteMaterialPolicy(params) {
- return request({
- url: '/policy/material/delete',
- method: 'post',
- params
- })
- }
- //获取经销商详情
- export function getPolicyDetail(params) {
- return request({
- url: '/policy/detail',
- method: 'get',
- params
- })
- }
- // 对应经销商
- export function getCustomerlist(params) {
- return request({
- url: '/policy/customer_count/list',
- method: 'get',
- params
- })
- }
- export function eidtBatch(params) {
- return request({
- url: '/policy/customer_count/batch',
- method: 'post',
- params
- })
- }
- //销售类型
- export function getTypeList(params) {
- return request({
- url: '/sale/type/list',
- method: 'get',
- params
- })
- }
- export function DeleteData(params) {
- return request({
- url: '/policy/material/delete',
- method: 'psot',
- params
- })
- }
- export function addData(params) {
- return request({
- url: '/sale/type/add',
- method: 'post',
- data: params
- })
- }
- export function delTypeData(params) {
- return request({
- url: '/sale/type/delete',
- method: 'post',
- params
- })
- }
- export function getDetail(params) {
- return request({
- url: '/sale/type/detail',
- method: 'post',
- data: params
- })
- }
- export function updateType(params) {
- return request({
- url: '/sale/type/update',
- method: 'post',
- data: params
- })
- }
- // 返利钱包列表
- export function getWalletList(params) {
- return request({
- url: '/wallet/rebate/list',
- method: 'get',
- params
- })
- }
- export function addWallet(params) {
- return request({
- url: '/wallet/add',
- method: 'post',
- data: params
- })
- }
- export function getWalletDetail(params) {
- return request({
- url: '/wallet/rebate/detail',
- method: 'get',
- params
- })
- }
- export function updateWallet(params) {
- return request({
- url: '/wallet/update',
- method: 'post',
- data: params
- })
- }
- // 销售品类
- export function getDictList(params) {
- return request({
- url: '/common/dict/list',
- method: 'get',
- params
- })
- }
- // 产品品类
- export function getProductList(params) {
- return request({
- url: '/product-category/list',
- method: 'get',
- params
- })
- }
|