Commit d76d6bc2 authored by dragondean@qq.com's avatar dragondean@qq.com

备货订单导出接口更新

parent 6ebd75da
...@@ -874,6 +874,16 @@ export function exportReadyStock(params){ ...@@ -874,6 +874,16 @@ export function exportReadyStock(params){
}) })
} }
// 导出可出订单
export function exportCanShipment(params){
return request({
url: '/ecw/order/export/can-shipment/search',
method: 'get',
params,
responseType: 'blob'
})
}
// 无需打包 // 无需打包
export function noNeedPack(orderItemId){ export function noNeedPack(orderItemId){
return request({ return request({
......
...@@ -192,7 +192,13 @@ import { getProductAttrList } from '@/api/ecw/productAttr' ...@@ -192,7 +192,13 @@ import { getProductAttrList } from '@/api/ecw/productAttr'
import CustomerSelector from '@/components/CustomerSelector' import CustomerSelector from '@/components/CustomerSelector'
import specialNeeds from '@/views/ecw/order/components/specialNeeds'; import specialNeeds from '@/views/ecw/order/components/specialNeeds';
import {canReadyStockShipmentPage, exportReadyStock, canShipmentPage, orderSpecialNeed} from "@/api/ecw/order"; import {
canReadyStockShipmentPage,
exportReadyStock,
canShipmentPage,
orderSpecialNeed,
exportCanShipment
} from "@/api/ecw/order";
import PrintTag from './components/PrintTag' import PrintTag from './components/PrintTag'
import PrintWarehouseReceipt from './components/PrintWarehouseReceipt' import PrintWarehouseReceipt from './components/PrintWarehouseReceipt'
import PrintLadingBill from './components/PrintLadingBill' import PrintLadingBill from './components/PrintLadingBill'
...@@ -342,7 +348,7 @@ export default { ...@@ -342,7 +348,7 @@ export default {
// 导出 // 导出
exportXls(params){ exportXls(params){
this.exporting = true this.exporting = true
exportReadyStock(params).then(res => { exportCanShipment(params).then(res => {
this.$download.excel(res, this.$t('备货订单') + '.xls'); this.$download.excel(res, this.$t('备货订单') + '.xls');
}).finally(() => { }).finally(() => {
this.exporting = false this.exporting = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment