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