调整出入库打印
This commit is contained in:
parent
95ac5b5263
commit
3ccc06489f
@ -29,15 +29,11 @@ export function apiOutboundOrderDetail(params: any) {
|
||||
export function apiOutboundOrderUpdateAmount(params: any) {
|
||||
return request.post({ url: '/outboundorder/updateAmount', params }, { urlPrefix: 'psi' })
|
||||
}
|
||||
// 导出商品仓储入库订单
|
||||
export function apiOutboundOrderRentryExport(params: any) {
|
||||
return request.post({ url: '/outboundorder/rentry_export', params })
|
||||
}
|
||||
// 导出商品仓储出库订单
|
||||
export function apiOutboundOrderExport(params: any) {
|
||||
return request.post({ url: '/outboundorder/export', params })
|
||||
return request.post({ url: '/outboundorder/export', params }, { urlPrefix: 'psi' })
|
||||
}
|
||||
// 导出商品标签
|
||||
export function apiOutboundOrderExportTags(params: any) {
|
||||
return request.post({ url: '/outboundorder/export_tags', params })
|
||||
return request.post({ url: '/outboundorder/export_tags', params }, { urlPrefix: 'psi' })
|
||||
}
|
||||
|
@ -29,14 +29,6 @@ export function apiWarehouseOrderUpdateAmount(params: any) {
|
||||
return request.post({ url: '/warehouseorder/updateAmount', params }, { urlPrefix: 'psi' })
|
||||
}
|
||||
// 导出商品仓储入库订单
|
||||
export function apiWarehouseOrderRentryExport(params: any) {
|
||||
return request.post({ url: '/warehouse_order/warehouseorder/rentry_export', params })
|
||||
}
|
||||
// 导出商品仓储出库订单
|
||||
export function apiWarehouseOrderExport(params: any) {
|
||||
return request.post({ url: '/warehouse_order/warehouseorder/export', params })
|
||||
}
|
||||
// 导出商品标签
|
||||
export function apiWarehouseOrderExportTags(params: any) {
|
||||
return request.post({ url: '/warehouse_order/warehouseorder/export_tags', params })
|
||||
return request.post({ url: '/warehouseorder/export', params }, { urlPrefix: 'psi' })
|
||||
}
|
@ -313,7 +313,7 @@
|
||||
params: queryParams
|
||||
})
|
||||
const xlsx2 = (id) => {
|
||||
apiWarehouseOrderExportTags({
|
||||
apiOutboundOrderExportTags({
|
||||
id: id
|
||||
}).then((res) => {
|
||||
window.open(res.url, '_blank')
|
||||
|
@ -5,14 +5,10 @@
|
||||
<div style="color: gray">仓库:</div>
|
||||
<div style="color: black">{{ formData.warehouse_name }}</div>
|
||||
</div>
|
||||
<div class="flex flex-col" v-if="formData.financial_pm == 1">
|
||||
<div class="flex flex-col">
|
||||
<div style="color: gray">供应商:</div>
|
||||
<div style="color: black">{{ formData.supplier_name }}</div>
|
||||
</div>
|
||||
<div class="flex flex-col" v-else>
|
||||
<div style="color: gray">门店:</div>
|
||||
<div style="color: black">{{ formData.system_store }}</div>
|
||||
</div>
|
||||
<div class="flex flex-col">
|
||||
<div style="color: gray">单号:</div>
|
||||
<div style="color: black">{{ formData.code }}</div>
|
||||
@ -31,12 +27,10 @@
|
||||
<el-button @click="xlsx(formData.id, 2)"> 打印供货单 </el-button>
|
||||
<el-button @click="xlsx(formData.id, 3)"> 打印商户/会员单 </el-button>
|
||||
<el-button @click="xlsx(formData.id, 4)"> 打印零售单 </el-button>
|
||||
<el-button @click="xlsx2(formData.id)"> 打印商品标签 </el-button>
|
||||
</div>
|
||||
<el-button type="primary" @click="dialogShop = true" v-if="formData.financial_pm == 1">
|
||||
<el-button type="primary" @click="dialogShop = true">
|
||||
入库
|
||||
</el-button>
|
||||
<el-button type="primary" @click="dialogShop = true" v-else> 出库 </el-button>
|
||||
|
||||
<el-tabs v-model="activeName" class="demo-tabs mt-3" type="border-card">
|
||||
<el-tab-pane label="明细" name="second">
|
||||
@ -83,8 +77,7 @@
|
||||
<el-button type="primary" @click="showProduct = true">添加商品</el-button>
|
||||
</div>
|
||||
<el-table :data="productList">
|
||||
<el-table-column label="商品ID" prop="id" show-overflow-tooltip v-if="formData.financial_pm == 1" />
|
||||
<el-table-column label="商品ID" prop="product_id" show-overflow-tooltip v-else />
|
||||
<el-table-column label="商品ID" prop="id" show-overflow-tooltip />
|
||||
|
||||
<el-table-column label="商品图片" prop="image" min-width="80">
|
||||
<template #default="{ row }">
|
||||
@ -178,7 +171,6 @@
|
||||
import Popup from '@/components/popup/index.vue'
|
||||
import { apiWarehouseProductLists, apiWarehouseProductDelete } from '@/api/psi/warehouse_product'
|
||||
import {
|
||||
apiWarehouseOrderRentryExport,
|
||||
apiWarehouseOrderExport,
|
||||
apiWarehouseOrderEdit,
|
||||
apiWarehouseOrderExportTags
|
||||
@ -227,28 +219,16 @@
|
||||
const updateInfo = ref({})
|
||||
const goodsOfferUpdate = () => {
|
||||
const product_arr = productList.value.map((item : any) => {
|
||||
if (financial_pm.value == 1) {
|
||||
return {
|
||||
id: item.id,
|
||||
supplier_id: item.supplier_id || 0,
|
||||
pay_type: item.pay_type || 0,
|
||||
nums: item.num || 0,
|
||||
purchase: item.purchases || 0,
|
||||
prices: item.purchase || 0,
|
||||
total_price: item.total_price || 0,
|
||||
manufacture: item.manufacture,
|
||||
expiration_date: item.expiration_date
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
id: item.product_id,
|
||||
nums: item.num || 0,
|
||||
purchase: item.purchases || 0,
|
||||
prices: item.purchase || 0,
|
||||
total_price: item.total_price || 0,
|
||||
manufacture: item.manufacture,
|
||||
expiration_date: item.expiration_date
|
||||
}
|
||||
return {
|
||||
id: item.id,
|
||||
supplier_id: item.supplier_id || 0,
|
||||
pay_type: item.pay_type || 0,
|
||||
nums: item.num || 0,
|
||||
purchase: item.purchases || 0,
|
||||
prices: item.purchase || 0,
|
||||
total_price: item.total_price || 0,
|
||||
manufacture: item.manufacture,
|
||||
expiration_date: item.expiration_date
|
||||
}
|
||||
})
|
||||
apiWarehouseOrderEdit({
|
||||
@ -282,22 +262,12 @@
|
||||
getLists()
|
||||
}
|
||||
const xlsx = (id, type) => {
|
||||
if (formData.value.financial_pm == 1) {
|
||||
apiWarehouseOrderRentryExport({
|
||||
id: id
|
||||
}).then((res) => {
|
||||
window.open(res.url, '_blank')
|
||||
ElMessage.success('导出成功')
|
||||
})
|
||||
} else {
|
||||
apiWarehouseOrderExport({
|
||||
id: id,
|
||||
type: type
|
||||
}).then((res) => {
|
||||
window.open(res.url, '_blank')
|
||||
ElMessage.success('导出成功')
|
||||
})
|
||||
}
|
||||
apiWarehouseOrderExport({
|
||||
id: id
|
||||
}).then((res) => {
|
||||
window.open(res.url, '_blank')
|
||||
ElMessage.success('导出成功')
|
||||
})
|
||||
}
|
||||
const showProduct = ref(false) // 选择商品列表是否显示
|
||||
// 商品列表
|
||||
@ -323,7 +293,6 @@
|
||||
const isSubmit = ref(true)
|
||||
|
||||
const handleStock = () => {
|
||||
// const counts = storeList.value.length
|
||||
const product_arr = productList.value.map((item : any) => {
|
||||
return {
|
||||
id: item.product_id,
|
||||
@ -387,14 +356,6 @@
|
||||
fetchFun: apiWarehouseProductLists,
|
||||
params: queryParams
|
||||
})
|
||||
const xlsx2 = (id) => {
|
||||
apiWarehouseOrderExportTags({
|
||||
id: id
|
||||
}).then((res) => {
|
||||
window.open(res.url, '_blank')
|
||||
ElMessage.success('导出成功')
|
||||
})
|
||||
}
|
||||
defineExpose({
|
||||
open,
|
||||
setFormData,
|
||||
|
Loading…
x
Reference in New Issue
Block a user