123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- import request from '@/utils/request'
- /* 获取公司列表 */
- export function getPage(params) {
- return request({
- url: '/admin/erp/company/getPage',
- method: 'get',
- loaidng: false,
- params
- })
- }
- /* 创建公司 */
- export function addCompany(parmas) {
- return request({
- url: `/admin/erp/company/createCompany`,
- method: 'post',
- headers: { 'Content-Type': 'application/json' },
- data: parmas
- })
- }
- /*编辑公司*/
- export function editCompany(id,parmas) {
- return request({
- url: `/admin/erp/company/updateCompany/${id}`,
- method: 'post',
- headers: { 'Content-Type': 'application/json' },
- data: parmas
- })
- }
- /* 套餐续费 */
- export function renewCompany(id,packageId) {
- return request({
- url: `/admin/erp/company/renewCompany/${id}/${packageId}`,
- method: 'post',
- headers: { 'Content-Type': 'application/json' },
- })
- }
- /* 计算差价 */
- export function difference(id,parmas) {
- return request({
- url: `/admin/erp/company/renewCompany/difference/${id}`,
- method: 'post',
- headers: { 'Content-Type': 'application/json' },
- data: parmas
- })
- }
- /* 获取套餐详情 */
- export function companyPackage(id) {
- return request({
- url: `/admin/erp/companyPackage/${id}`,
- method: 'get',
- loaidng: false,
- })
- }
- /* 获取公司详情 /admin/erp/company/getOne/{id} */
- export function getOne(id) {
- return request({
- url: `/admin/erp/company/getOne/${id}`,
- method: 'get',
- })
- }
- /* 校验营业执照 */
- export function checkLicense(parmas) {
- return request({
- url: `/admin/erp/company/checkLicense`,
- method: 'post',
- headers: { 'Content-Type': 'application/json' },
- data: parmas
- })
- }
- /* 校验身份证 */
- export function checkIdCardOpposite(parmas,type) {
- return request({
- url: `/admin/erp/company/checkIdCardOpposite/${type}`,
- method: 'post',
- headers: { 'Content-Type': 'application/json' },
- data: parmas
- })
- }
- /* 获取模版树状图 GET
- */
- export function getSendNumByCompany() {
- return request({
- url: `/admin/erp/SmsMailTemplate/getSendNumByCompany`,
- method: 'get',
- })
- }
- /* 选中的模版 */
- export function updateSelectMsg(parmas) {
- return request({
- url: `/admin/erp/SmsMailTemplate/updateSelectMsg`,
- method: 'post',
- headers: { 'Content-Type': 'application/json' },
- data: parmas
- })
- }
- /* 获取自己的所有消息 */
- export function getSysMsgByOwn(type) {
- return request({
- url: `/admin/erp/SmsMailTemplate/getSysMsgByOwn/${type}`,
- method: 'get'
- })
- }
|