|
|
@ -3,6 +3,7 @@ import store from '@/store' |
|
|
|
// let baseURL = process.env.VUE_APP_BASE_API + '/'
|
|
|
|
let baseURL = localStorage.getItem('base') + '/api/' |
|
|
|
let printURL = localStorage.getItem('print') + '/api/' |
|
|
|
let directURL = localStorage.getItem('base_direct') + '/api/' |
|
|
|
//新建
|
|
|
|
export function postCreate(data, url) { |
|
|
|
if (Object.keys(data).includes('company')) { |
|
|
@ -186,7 +187,7 @@ export function postCreateWithCondition(data, url) { |
|
|
|
data.warehouseCode =localStorage.getItem('warehouseCode') |
|
|
|
} |
|
|
|
return request({ |
|
|
|
url: baseURL + url + '/create-with-condition', |
|
|
|
url: directURL + url + '/create-with-condition', |
|
|
|
method: 'post', |
|
|
|
data |
|
|
|
}) |
|
|
|