12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import request from '@/utils/request'
- import Qs from 'qs'
- export function listSaleContract(query) {
- return request({
- method: 'get',
- params: {
- _gp: 'admin.salecontract',
- _mt: 'list',
- ...query
- }
- })
- }
- export function createSaleContract(data) {
- return request({
- method: 'post',
- data: Qs.stringify({
- _gp: 'admin.salecontract',
- _mt: 'create',
- ...data
- })
- })
- }
- export function updateSaleContract(data) {
- return request({
- method: 'post',
- data: Qs.stringify({
- _gp: 'admin.salecontract',
- _mt: 'edit',
- ...data
- })
- })
- }
- export function deleteSaleContract(id) {
- return request({
- method: 'post',
- params: {
- _gp: 'admin.salecontract',
- _mt: 'delete',
- id: id
- }
- })
- }
|