123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- import { axios } from '@/utils/request'
- // 发货列表分页
- export const dispatchlList = (params) => {
- const url = `/dispatch/queryPage/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post'
- })
- }
- // 发货单明细列表分页
- export const dispatchDetaillList = (params) => {
- const url = `/dispatch/detail/queryPage/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post'
- })
- }
- // 根据销售单SN查询发货单
- export const findBySalesBillSn = (params) => {
- return axios({
- url: `/dispatch/findBySalesBillSn/${params.salesBillSn}`,
- method: 'get'
- })
- }
- // 根据发货单SN查询发货单对象
- export const dispatchFindBySn = (params) => {
- return axios({
- url: `/dispatch/findBySn/${params.dispatchBillSn}`,
- method: 'get'
- })
- }
- // 发货单统计查询
- export const dispatchQueryCount = (params) => {
- return axios({
- url: '/dispatch/queryCount',
- data: params,
- method: 'post'
- })
- }
- // 对单通过
- export const dispatchCheck = (params) => {
- return axios({
- url: `/dispatch/check/${params.dispatchBillSn}`,
- data: params,
- method: 'post'
- })
- }
- // 出库
- export const dispatchStockOut = (params) => {
- return axios({
- url: `/dispatch/stockOut/${params.dispatchBillSn}`,
- method: 'get'
- })
- }
- // 备货审核
- export const dispatchStockUpAduit = (params) => {
- return axios({
- url: '/dispatch/stockUpAduit',
- data: params,
- method: 'post'
- })
- }
- // 允许备货打印
- export const dispatchPrintStatus = (params) => {
- return axios({
- url: `/dispatch/updatePrintStatus/${params.dispatchBillSn}/${params.printStatus}`,
- method: 'get'
- })
- }
- // 下推 详情 打印
- export const dispatchDetailPrint = params => {
- const url = `/dispatch/print/${params.type}`
- delete params.type
- return axios.request({
- url: url,
- data: params,
- method: 'post',
- responseType: 'blob'
- })
- }
- // 下推 详情 该销售单的产品二级分类
- export const dispatchDetailType = (params) => {
- return axios({
- url: `/dispatch/detail/queryProductType/${params.dispatchBillSn}`,
- method: 'get'
- })
- }
- // 下推 详情 导出Excel
- export const dispatchDetailExcel = params => {
- const url = `/dispatch/excel/${params.printType}`
- delete params.printType
- return axios.request({
- url: url,
- data: params,
- method: 'post',
- responseType: 'blob'
- })
- }
- // 备货审核列表分页
- export const dispatchlBhshList = (params) => {
- const url = `/dispatch/queryBhshPage/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post'
- })
- }
- // 发货单统计查询
- export const dispatchQueryBhshCount = (params) => {
- return axios({
- url: '/dispatch/queryBhshCount',
- data: params,
- method: 'post'
- })
- }
|