diff --git a/src/api/distribution/distributionStockArticle.js b/src/api/distribution/distributionStockArticle.js index bf0a8cd6..ce96367d 100644 --- a/src/api/distribution/distributionStockArticle.js +++ b/src/api/distribution/distributionStockArticle.js @@ -8,9 +8,9 @@ export const getList = (current, size, params) => { ...params, current, size, - } - }) -} + }, + }); +}; export const getListStockArticleWhole = (current, size, params) => { return request({ url: '/api/logpm-distribution/distributionStockArticle/listWhole', @@ -19,25 +19,25 @@ export const getListStockArticleWhole = (current, size, params) => { ...params, current, size, - } - }) -} + }, + }); +}; /** * 订单数据导出 * @param row * @returns {AxiosPromise} */ -export const stockArticExport = (row) => { +export const stockArticExport = row => { return request({ url: '/api/logpm-distribution/distributionStockArticle/export-distributionStockArticle', method: 'get', params: { - ...row + ...row, }, responseType: 'blob', - }) -} + }); +}; /** * 查询客户的订单列表 @@ -54,13 +54,12 @@ export const getClientList = (current, size, params) => { ...params, current, size, - } - }) -} - - + }, + }); +}; -export const getListOne = (current, size, params) => { //查询订单数据 +export const getListOne = (current, size, params) => { + //查询订单数据 return request({ url: '/api/logpm-distribution/distributionStockArticle/list', method: 'get', @@ -68,68 +67,70 @@ export const getListOne = (current, size, params) => { //查询订单数据 ...params, current, size, - } - }) -} + }, + }); +}; -export const getDetail = (id) => { +export const getDetail = (current, size, params) => { return request({ url: '/api/logpm-distribution/distributionStockArticle/detail', method: 'get', params: { - id - } - }) -} + ...params, + current, + size, + }, + }); +}; -export const getQueryQRCode = (params) => { +export const getQueryQRCode = params => { return request({ url: '/api/logpm-distribution/distributionStockArticle/getShowTemplate', method: 'get', responseType: 'blob', params: { - ...params - } - }) -} + ...params, + }, + }); +}; -export const showOrderPackgeCode = (params) => { +export const showOrderPackgeCode = params => { return request({ url: '/api/logpm-distribution/distributionStockArticle/showOrderPackgeCode', method: 'get', params: { - ...params - } - }) -} + ...params, + }, + }); +}; -export const getStockTemplate = (params) => { +export const getStockTemplate = params => { return request({ url: '/api/logpm-distribution/distributionStockArticle/getPrintTemplate', method: 'get', - params:{ - ...params - } - }) -} + params: { + ...params, + }, + }); +}; -export const remove = (ids) => { +export const remove = ids => { return request({ url: '/api/logpm-distribution/distributionStockArticle/remove', method: 'post', params: { ids, - } - }) -} + }, + }); +}; -export const add = (row) => { +export const add = row => { return request({ url: '/api/logpm-distribution/distributionStockArticle/submit', method: 'post', - data: row - }) -} + data: row, + }); +}; export const addStockRow = params => { return request({ url: '/api/logpm-distribution/distributionParcelList/packageTransfer', @@ -142,72 +143,72 @@ export const addStockRow = params => { * @param ids * @returns {AxiosPromise} */ -export const addStock = (ids) => { +export const addStock = ids => { return request({ url: '/api/logpm-distribution/distributionStockArticle/saveStock', method: 'post', params: { ids, - } - }) -} + }, + }); +}; -export const update = (row) => { +export const update = row => { return request({ url: '/api/logpm-distribution/distributionStockArticle/submit', method: 'post', - data: row - }) -} + data: row, + }); +}; /** * 修改客户 * @param row * @returns {AxiosPromise} */ -export const updateClient = (row) => { +export const updateClient = row => { return request({ url: '/api/logpm-distribution/distributionStockArticle/updateClient', method: 'post', - data: row - }) -} + data: row, + }); +}; /** * 订单添加增值服务 * @param row * @returns {AxiosPromise} */ -export const addIncrement = (row) => { +export const addIncrement = row => { return request({ url: '/api/logpm-distribution/distributionStockArticle/addIncrement', method: 'post', - data: row - }) -} + data: row, + }); +}; -export const getStockArticleList = ( ids) => { +export const getStockArticleList = ids => { return request({ url: '/api/logpm-distribution/distributionStockArticle/stockArticleInfo', method: 'get', params: { - ids - } - }) -} + ids, + }, + }); +}; /** * 查询零担订单详情 * @param ids * @returns {AxiosPromise} */ -export const getZeroOrderDetail = ( id) => { +export const getZeroOrderDetail = id => { return request({ url: '/api/logpm-distribution/distributionStockArticle/getZeroOrderDetail', method: 'get', params: { - id - } - }) -} + id, + }, + }); +}; export const selectStockArticleList = (current, size, params) => { return request({ @@ -217,29 +218,29 @@ export const selectStockArticleList = (current, size, params) => { ...params, current, size, - } - }) -} + }, + }); +}; -export const getStockAddValue = (id) => { +export const getStockAddValue = id => { return request({ url: '/api/logpm-distribution/distributionAddvalue/getStockAddValue', method: 'get', params: { id, - } - }) -} + }, + }); +}; -export const selectStockArticleAndParcel = (params) => { +export const selectStockArticleAndParcel = params => { return request({ url: '/api/logpm-distribution/distributionStockArticle/selectStockArticleAndParcel', method: 'get', params: { ...params, - } - }) -} + }, + }); +}; export const selectStockArticleInfoList = (current, size, params) => { return request({ @@ -249,10 +250,9 @@ export const selectStockArticleInfoList = (current, size, params) => { ...params, current, size, - } - }) -} - + }, + }); +}; export const selectStockArticleInfoListByMail = (current, size, params) => { return request({ @@ -262,20 +262,20 @@ export const selectStockArticleInfoListByMail = (current, size, params) => { ...params, current, size, - } - }) -} + }, + }); +}; // 在库订单 -export const $_selectStockArticleInfoList = (params) => { +export const $_selectStockArticleInfoList = params => { return request({ url: '/api/logpm-distribution/distributionStockArticle/selectStockArticleInfoList', method: 'get', - params + params, }); }; -export const selectDiscussStockArticleInfoList = (current, size, params,deliveryListId) => { +export const selectDiscussStockArticleInfoList = (current, size, params, deliveryListId) => { return request({ url: '/api/logpm-distribution/deliveryList/selectDiscussStockArticleInfoList', method: 'get', @@ -283,10 +283,10 @@ export const selectDiscussStockArticleInfoList = (current, size, params,delivery ...params, current, size, - deliveryListId - } - }) -} + deliveryListId, + }, + }); +}; export const selectUpdateAvailableStockArticle = (current, size, params) => { return request({ @@ -296,9 +296,9 @@ export const selectUpdateAvailableStockArticle = (current, size, params) => { ...params, current, size, - } - }) -} + }, + }); +}; export const getPackageListByStockArticleId = (current, size, orderId) => { return request({ @@ -308,9 +308,9 @@ export const getPackageListByStockArticleId = (current, size, orderId) => { orderId, current, size, - } - }) -} + }, + }); +}; export const $_getPackageListByStockArticleId = params => { return request({ url: '/api/logpm-distribution/distributionStockArticle/getPackageListByStockArticleId', @@ -318,5 +318,3 @@ export const $_getPackageListByStockArticleId = params => { params, }); }; - - diff --git a/src/views/distribution/inventory/distributionStockArticleDetails.vue b/src/views/distribution/inventory/distributionStockArticleDetails.vue index d6dd43f0..681a52aa 100644 --- a/src/views/distribution/inventory/distributionStockArticleDetails.vue +++ b/src/views/distribution/inventory/distributionStockArticleDetails.vue @@ -1350,16 +1350,18 @@ export default { onLoad(page, params = {}) { this.loading = true; console.log('执行了查询零零零零'); - this.query.ids = this.$route.query.id; - getDetail(this.$route.query.id).then(res => { - console.log('返回的数据》》》》', res.data.data); - const data = res.data.data; - // this.page.total = data.total; - this.data[0] = data; + this.query.id = this.$route.query.id; + getDetail(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then( + res => { + console.log('返回的数据》》》》', res.data.data); + const data = res.data.data; + // this.page.total = data.total; + this.data[0] = data; - this.loading = false; - this.selectionClear(); - }); + this.loading = false; + this.selectionClear(); + } + ); }, onLoadOwn(page, params = {}) { // this.loading = true; diff --git a/src/views/distribution/reservation/reservation.vue b/src/views/distribution/reservation/reservation.vue index 5fcb4428..bc749d3c 100644 --- a/src/views/distribution/reservation/reservation.vue +++ b/src/views/distribution/reservation/reservation.vue @@ -3,22 +3,22 @@