123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- import { axios } from '@/utils/request'
- // 连锁调拨调出 列表 分页
- export const allocLinkageOutList = (params) => {
- const url = `/allocLinkageOut/queryPage/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post',
- headers: {
- 'module': encodeURIComponent('列表查询')
- }
- })
- }
- // 导出
- export const allocLinkageOutExport = (params) => {
- return axios({
- url: '/allocLinkageOut/detail/export',
- data: params,
- method: 'post',
- responseType: 'blob',
- headers: {
- 'module': encodeURIComponent('导出')
- }
- })
- }
- // 连锁调拨调出 统计
- export const allocLinkageOutQueryCount = (params) => {
- return axios({
- url: `/allocLinkageOut/queryCount`,
- data: params,
- method: 'post'
- })
- }
- // 连锁调拨调出 保存
- export const allocLinkageOutSave = (params) => {
- return axios({
- url: '/allocLinkageOut/save',
- data: params,
- method: 'post',
- headers: {
- 'module': encodeURIComponent('新增')
- }
- })
- }
- // 连锁调拨调出 提交
- export const allocLinkageOutSubmit = (params) => {
- return axios({
- url: `/allocLinkageOut/submit/${params.sn}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('提交')
- }
- })
- }
- // 连锁调拨调出 详情 列表 分页
- export const allocLinkageOutDetailList = (params) => {
- const url = `/allocLinkageOut/detail/queryPage/${params.pageNo}/${params.pageSize}`
- delete params.pageNo
- delete params.pageSize
- return axios({
- url: url,
- data: params,
- method: 'post',
- headers: {
- 'module': encodeURIComponent('明细列表查询')
- }
- })
- }
- // 连锁调拨调出 详情 根据sn查
- export const allocLinkageOutDetailSn = (params) => {
- return axios({
- url: `/allocLinkageOut/findBySn/${params.sn}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('详情信息')
- }
- })
- }
- // 连锁调拨调出 审核
- export const allocLinkageAudit = (params) => {
- return axios({
- url: `/allocLinkageOut/audit/${params.sn}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('审核')
- }
- })
- }
- // 连锁调拨调出 出库
- export const allocLinkageOutStock = (params) => {
- return axios({
- url: `/allocLinkageOut/outStock/${params.sn}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('出库')
- }
- })
- }
- // 连锁调拨调出 删除
- export const allocLinkageOutDel = (params) => {
- return axios({
- url: `/allocLinkageOut/delete/${params.sn}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('删除')
- }
- })
- }
- // 连锁调拨调出 详情 添加
- export const allocLinkageOutDetailSave = (params) => {
- return axios({
- url: '/allocLinkageOut/detail/save',
- data: params,
- method: 'post',
- headers: {
- 'module': encodeURIComponent('添加')
- }
- })
- }
- // 连锁调拨调出 详情 删除
- export const allocLinkageOutDetailDel = (params) => {
- return axios({
- url: `/allocLinkageOut/detail/delete/${params.id}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('删除')
- }
- })
- }
- // 连锁调拨调出 详情 清空列表
- export const allocLinkageOutDetailDelAll = (params) => {
- return axios({
- url: `/allocLinkageOut/detail/deleteAll/${params.sn}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent('清空列表')
- }
- })
- }
- // 连锁调拨调出 详情 合计
- export const allocLinkageOutDetailCount = (params) => {
- return axios({
- url: '/allocLinkageOut/detail/queryCount',
- data: params,
- method: 'post'
- })
- }
- // 连锁调拨调出 调往对象
- export const getTenantList = (params) => {
- return axios({
- url: '/allocLinkageOut/getTenantList',
- method: 'get'
- })
- }
- // 导入产品
- export const importProduct = params => {
- return axios({
- url: '/allocLinkageOut/importProduct',
- data: params,
- method: 'post'
- })
- }
- // 导出错误项
- export const importProductExportError = (params) => {
- return axios({
- url: '/allocLinkageOut/importProduct/exportError',
- data: params,
- method: 'post',
- responseType: 'blob',
- headers: {
- 'module': encodeURIComponent('导出错误项')
- }
- })
- }
- // 批量确认导入产品
- export const importProductInsertBatch = (params) => {
- return axios({
- url: '/allocLinkageOut/importProduct/insertBatch',
- data: params,
- method: 'post',
- headers: {
- 'module': encodeURIComponent('导入产品')
- }
- })
- }
- // 调往对象
- export const getReportOutTenantList = (params) => {
- return axios({
- url: '/report/reportAllocLinkageOut/reportDealer',
- data: params,
- method: 'post',
- headers: {
- 'module': encodeURIComponent('调往对象')
- }
- })
- }
- // 连锁调拨调出 详情 打印
- export const allocLinkageOutDetailPrint = params => {
- const data = {
- url: `allocLinkageOut/print/${params.sn}/${params.type}/${params.showFlag}`,
- method: 'get',
- headers: {
- 'module': encodeURIComponent(params.type == 'INK' ? '喷墨打印':'针式打印')
- }
- }
- // 喷墨打印
- if (params.type == 'INK') {
- data.responseType = 'blob'
- }
- return axios.request(data)
- }
|