| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import {
- postJ,
- post,
- putJ,
- put,
- get
- } from "@/utils/request";
- import Vue from "vue";
- // 列表
- export async function logistictraklistnotePageListAPI(params) {
- const data = await get(
- Vue.prototype.apiUrl + `/eom/logistictraklistnote/page`, params, true,
- );
- if (data.code == 0) {
- return data.data;
- }
- return Promise.reject(data.message);
- }
- // 详情
- export async function logisticlistcostGetByIdAPI(id) {
- const data = await get(
- Vue.prototype.apiUrl + `/eom/logistictraklistnote/getById/${id}`, '', true,
- );
- if (data.code == 0) {
- return data.data;
- }
- return Promise.reject(data.message);
- }
- // 报工 /完成 新增费用信息
- export async function logistictraklistnoteUpdateAPI(params) {
- const data = await putJ(
- Vue.prototype.apiUrl + `/eom/logistictraklistnote/update`, params, true,
- );
- if (data.code == 0) {
- return data.data;
- }
- return Promise.reject(data.message);
- }
- // 车辆列表
- export async function carListAPI(params = {
- pageNum: 1,
- size: 9999
- }) {
- const res = await get(
- Vue.prototype.apiUrl + `/eom/logistictrakledger/page`, params, true,
- );
- if (res.code == 0) {
- return res.data.list;
- }
- return Promise.reject(new Error(res.data.message));
- }
- // 车辆列表
- export async function driverListAPI(params = {
- pageNum: 1,
- size: 9999
- }) {
- const res = await get(
- Vue.prototype.apiUrl + `/eom/logistictrakdriverledger/page`, params, true,
- );
- if (res.code == 0) {
- return res.data.list;
- }
- return Promise.reject(new Error(res.data.message));
- }
|