| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- import {
- postJ,
- post,
- get
- } from '@/utils/request'
- import Vue from 'vue'
- // 成品总量和物流总量
- export async function getCount(params) {
- const data = await get(Vue.prototype.apiUrl + `/wms/index/query`, params)
- if (data.code == 0) {
- return data.data
- }
- return Promise.reject(new Error(data.message))
- }
- // 获取年度合同总金额
- export async function getYearAmount(params) {
- const data = await get(Vue.prototype.apiUrl + `/eom/contract/getYearAmount`, params)
- if (data.code == 0) {
- return data.data
- }
- return Promise.reject(new Error(data.message))
- }
- // 获取应付金额
- export async function getPayableAmount(params) {
- const data = await get(Vue.prototype.apiUrl + `/eom/finpayable/getPayableAmount`, params)
- if (data.code == 0) {
- return data.data
- }
- return Promise.reject(new Error(data.message))
- }
- // 获取应收金额
- export async function getReceivableAmount(params) {
- const data = await get(Vue.prototype.apiUrl + `/eom/finreceivable/getReceivableAmount`, params)
- if (data.code == 0) {
- return data.data
- }
- return Promise.reject(new Error(data.message))
- }
- // 获取商品分页
- export async function getGoodsPage(params) {
- const data = await get(Vue.prototype.apiUrl + `/eom/goods/page`, params)
- if (data.code == 0) {
- return data.data
- }
- return Promise.reject(new Error(data.message))
- }
- // 获取年度生产总量
- export async function getProduceAmount(body) {
- const data = await postJ(Vue.prototype.apiUrl + `/mes/index/completionCount`, body)
- if (data.code == 0) {
- return data.data
- }
- return Promise.reject(new Error(data.message))
- }
- // 获取待生产总量
- export async function getPendingAmount(body) {
- const data = await postJ(Vue.prototype.apiUrl + `/mes/index/count`, body)
- if (data.code == 0) {
- return data.data
- }
- return Promise.reject(new Error(data.message))
- }
- // 热销榜单
- export async function getHotProduct(params) {
- const data = await get(Vue.prototype.apiUrl + `/eom/saleorder/getHotProductList`, params)
- if (data.code == 0) {
- return data.data
- }
- return Promise.reject(new Error(data.message))
- }
|