Commit 3b656c9b authored by 邓春圆's avatar 邓春圆

Merge remote-tracking branch 'origin/dev' into dev

parents 84bdce80 59d1a21f
...@@ -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({
......
...@@ -6,6 +6,9 @@ const state = { ...@@ -6,6 +6,9 @@ const state = {
} }
// 获取页面的缓存名称 // 获取页面的缓存名称
const getViewName = (view) => { const getViewName = (view) => {
if(!view.meta?.componentPath){
return view.fullPath
}
return view.meta.componentPath.split('/').map(item => item.substring(0, 1).toUpperCase() + item.substring(1).toLowerCase()).join('') return view.meta.componentPath.split('/').map(item => item.substring(0, 1).toUpperCase() + item.substring(1).toLowerCase()).join('')
} }
......
...@@ -178,6 +178,10 @@ export default { ...@@ -178,6 +178,10 @@ export default {
}, },
// 先获取订单信息,pdf用 订单号+唛头命名 // 先获取订单信息,pdf用 订单号+唛头命名
createPdf(){ createPdf(){
// 空运的由接口生成pdf,所以直接提交即可
if(this.$route.fullPath.toLowerCase().indexOf('air') > -1){
return this.submit()
}
getOrder(this.currRow.orderId).then(res => { getOrder(this.currRow.orderId).then(res => {
this.afterCreatePdf(res.data) this.afterCreatePdf(res.data)
}) })
...@@ -218,11 +222,16 @@ export default { ...@@ -218,11 +222,16 @@ export default {
}, },
submit(imgUrl) { submit(imgUrl) {
let params = { let params = {
imgUrl,
billContent: this.billContent, billContent: this.billContent,
orderId: this.currRow.orderId, orderId: this.currRow.orderId,
copyUserId: this.selectedUsers, copyUserId: this.selectedUsers,
}; };
// 有pdf地址则提交,没有则指定后端生成
if(imgUrl){
params.imgUrl = imgUrl
}else{
params.needBackend = true
}
if (["makeBill", "resetBill"].includes(this.dialogCfg.type)) { if (["makeBill", "resetBill"].includes(this.dialogCfg.type)) {
createBillService({ ...params, status: 1 }).then((res) => { createBillService({ ...params, status: 1 }).then((res) => {
serviceMsg(res, this).then((res) => { serviceMsg(res, this).then((res) => {
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</p> </p>
<div style="border-top: 1px solid #999;margin-left: 10px;" /> <div style="border-top: 1px solid #999;margin-left: 10px;" />
<div style="display: flex;margin-top: 10px;"> <div style="display: flex;margin-top: 10px;">
<div style="border-right: 2px solid #999;width: 45px;"> <div style="border-right: 1px solid #999;width: 45px;">
<p style="margin-top: 1mm; text-align: center"> <p style="margin-top: 1mm; text-align: center">
<span style="text-align: center; font-weight: 600; font-size: 4mm">{{ tagData.transportName }}</span> <span style="text-align: center; font-weight: 600; font-size: 4mm">{{ tagData.transportName }}</span>
</p> </p>
......
...@@ -144,6 +144,9 @@ ...@@ -144,6 +144,9 @@
<el-descriptions-item :label="$t('创建时间')"> <el-descriptions-item :label="$t('创建时间')">
{{order.createTime|parseTime}} {{order.createTime|parseTime}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('客户经理')">
{{order.salesmanName}}
</el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-card> </el-card>
......
...@@ -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