626
This commit is contained in:
parent
55e06d51aa
commit
d1c87cb752
BIN
dist.tar.gz
BIN
dist.tar.gz
Binary file not shown.
@ -8,14 +8,14 @@
|
||||
:close-on-click-modal="!loading"
|
||||
@closed="emit('closed')"
|
||||
>
|
||||
<el-alert
|
||||
<!-- <el-alert
|
||||
type="info"
|
||||
:closable="false"
|
||||
show-icon
|
||||
class="search-alert"
|
||||
title="setting.packageMaterial.search"
|
||||
description="按包材编码/名称模糊匹配,最多返回 50 条启用中的包材;关键字为空时返回前 50 条。"
|
||||
/>
|
||||
/> -->
|
||||
|
||||
<el-form :inline="true" size="small" class="search-form" @submit.prevent="handleSearch">
|
||||
<el-form-item label="关键字">
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
>
|
||||
批量删除
|
||||
</el-button>
|
||||
<el-tag size="small" type="info">共 {{ pagination.total }} 条</el-tag>
|
||||
<!-- <el-tag size="small" type="info">共 {{ pagination.total }} 条</el-tag> -->
|
||||
</div>
|
||||
<div class="toolbar-right">
|
||||
<el-button size="small" type="primary" plain @click="searchFormVisible = true">快速搜索</el-button>
|
||||
@ -40,6 +40,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="包材列表"
|
||||
default-align="center"
|
||||
table-id="material-package-material"
|
||||
:data="tableData"
|
||||
:columns="columns"
|
||||
|
||||
@ -20,11 +20,11 @@ export const packageMaterialColumns = [
|
||||
{ prop: 'material_name', label: '包材名称', minWidth: '150', showOverflowTooltip: true },
|
||||
{ prop: 'material_type', label: '包材类型', minWidth: '110', showOverflowTooltip: true },
|
||||
{ prop: 'spec', label: '规格', minWidth: '120', showOverflowTooltip: true },
|
||||
{ prop: 'dimensions', label: '尺寸(L×W×H)', minWidth: '140', align: 'center' },
|
||||
{ prop: 'weight', label: '重量', width: '90', align: 'right' },
|
||||
{ prop: 'cost_price', label: '成本价', width: '100', align: 'right' },
|
||||
{ prop: 'status', label: '状态', width: '90', align: 'center' },
|
||||
{ prop: 'actions', label: '操作', width: '150', align: 'center', fixed: 'right' }
|
||||
{ prop: 'dimensions', label: '尺寸(L×W×H)', minWidth: '140' },
|
||||
{ prop: 'weight', label: '重量', width: '90' },
|
||||
{ prop: 'cost_price', label: '成本价', width: '100' },
|
||||
{ prop: 'status', label: '状态', width: '90' },
|
||||
{ prop: 'actions', label: '操作', width: '150', fixed: 'right' }
|
||||
]
|
||||
|
||||
export const packageMaterialScanFields = [
|
||||
@ -33,8 +33,8 @@ export const packageMaterialScanFields = [
|
||||
label: '关键词',
|
||||
type: 'text',
|
||||
placeholder: '编码/名称/类型',
|
||||
operators: ['contains'],
|
||||
defaultOperator: 'contains'
|
||||
operators: ['eq','contains'],
|
||||
defaultOperator: 'eq'
|
||||
},
|
||||
{
|
||||
value: 'material_code',
|
||||
@ -42,7 +42,7 @@ export const packageMaterialScanFields = [
|
||||
type: 'text',
|
||||
placeholder: '请输入包材编码',
|
||||
operators: ['eq', 'contains', 'like'],
|
||||
defaultOperator: 'contains'
|
||||
defaultOperator: 'eq'
|
||||
},
|
||||
{
|
||||
value: 'material_name',
|
||||
@ -50,7 +50,7 @@ export const packageMaterialScanFields = [
|
||||
type: 'text',
|
||||
placeholder: '请输入包材名称',
|
||||
operators: ['eq', 'contains', 'like'],
|
||||
defaultOperator: 'contains'
|
||||
defaultOperator: 'eq'
|
||||
},
|
||||
{
|
||||
value: 'material_type',
|
||||
@ -58,7 +58,7 @@ export const packageMaterialScanFields = [
|
||||
type: 'text',
|
||||
placeholder: '请输入包材类型',
|
||||
operators: ['eq', 'contains', 'like'],
|
||||
defaultOperator: 'contains'
|
||||
defaultOperator: 'eq'
|
||||
},
|
||||
{
|
||||
value: 'status',
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
>
|
||||
批量删除
|
||||
</el-button>
|
||||
<el-tag size="small" type="info">共 {{ pagination.total }} 条</el-tag>
|
||||
<!-- <el-tag size="small" type="info">共 {{ pagination.total }} 条</el-tag> -->
|
||||
</div>
|
||||
<el-button type="success" size="small" @click="openCreate">新增供应商</el-button>
|
||||
</div>
|
||||
@ -36,6 +36,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="包装供应商列表"
|
||||
default-align="center"
|
||||
table-id="material-package-supplier"
|
||||
:data="tableData"
|
||||
:columns="columns"
|
||||
|
||||
@ -15,8 +15,8 @@ export const packageSupplierColumns = [
|
||||
{ prop: 'supplier_name', label: '供应商名称', minWidth: '160', showOverflowTooltip: true },
|
||||
{ prop: 'contact_name', label: '联系人', minWidth: '120', showOverflowTooltip: true },
|
||||
{ prop: 'contact_phone', label: '联系电话', minWidth: '140', showOverflowTooltip: true },
|
||||
{ prop: 'status', label: '状态', width: '90', align: 'center' },
|
||||
{ prop: 'actions', label: '操作', width: '150', align: 'center', fixed: 'right' }
|
||||
{ prop: 'status', label: '状态', width: '90' },
|
||||
{ prop: 'actions', label: '操作', width: '150', fixed: 'right' }
|
||||
]
|
||||
|
||||
export const packageSupplierScanFields = [
|
||||
@ -25,8 +25,8 @@ export const packageSupplierScanFields = [
|
||||
label: '关键词',
|
||||
type: 'text',
|
||||
placeholder: '编码/名称/联系人/电话',
|
||||
operators: ['contains'],
|
||||
defaultOperator: 'contains'
|
||||
operators: ['eq','contains'],
|
||||
defaultOperator: 'eq'
|
||||
},
|
||||
{
|
||||
value: 'supplier_code',
|
||||
@ -34,7 +34,7 @@ export const packageSupplierScanFields = [
|
||||
type: 'text',
|
||||
placeholder: '请输入供应商编码',
|
||||
operators: ['eq', 'contains', 'like'],
|
||||
defaultOperator: 'contains'
|
||||
defaultOperator: 'eq'
|
||||
},
|
||||
{
|
||||
value: 'supplier_name',
|
||||
@ -42,7 +42,7 @@ export const packageSupplierScanFields = [
|
||||
type: 'text',
|
||||
placeholder: '请输入供应商名称',
|
||||
operators: ['eq', 'contains', 'like'],
|
||||
defaultOperator: 'contains'
|
||||
defaultOperator: 'eq'
|
||||
},
|
||||
{
|
||||
value: 'contact_name',
|
||||
@ -50,7 +50,7 @@ export const packageSupplierScanFields = [
|
||||
type: 'text',
|
||||
placeholder: '请输入联系人',
|
||||
operators: ['eq', 'contains', 'like'],
|
||||
defaultOperator: 'contains'
|
||||
defaultOperator: 'eq'
|
||||
},
|
||||
{
|
||||
value: 'contact_phone',
|
||||
@ -58,7 +58,7 @@ export const packageSupplierScanFields = [
|
||||
type: 'text',
|
||||
placeholder: '请输入联系电话',
|
||||
operators: ['eq', 'contains', 'like'],
|
||||
defaultOperator: 'contains'
|
||||
defaultOperator: 'eq'
|
||||
},
|
||||
{
|
||||
value: 'status',
|
||||
|
||||
@ -42,6 +42,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="波次策略列表"
|
||||
default-align="center"
|
||||
:enable-column-config="true"
|
||||
:column-config-schema-version="1"
|
||||
:table-id="tableListId"
|
||||
|
||||
@ -45,6 +45,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="待处理订单列表"
|
||||
default-align="center"
|
||||
:enable-column-config="true"
|
||||
table-id="wave-pending-order-dialog"
|
||||
:data="list"
|
||||
|
||||
@ -228,11 +228,11 @@ export const fallbackOrderColumns = applyWaveListCopyActions([
|
||||
{ prop: 'sys_platform_name', label: '平台', minWidth: 120 },
|
||||
{ prop: 'sys_logistics_name', label: '物流公司', minWidth: 130 },
|
||||
{ prop: 'province', label: '省份', minWidth: 100 },
|
||||
{ prop: 'items_count', label: '商品种数', minWidth: 100, align: 'right' },
|
||||
{ prop: 'items_total', label: '商品总数', minWidth: 100, align: 'right' },
|
||||
{ prop: 'items_weight', label: '商品重量kg', minWidth: 110, align: 'right' },
|
||||
{ prop: 'items_count', label: '商品种数', minWidth: 100 },
|
||||
{ prop: 'items_total', label: '商品总数', minWidth: 100 },
|
||||
{ prop: 'items_weight', label: '商品重量kg', minWidth: 110 },
|
||||
{ prop: 'item_snapshot', label: '商品快照', minWidth: 260 },
|
||||
{ prop: 'wave_scan_result', label: '扫描结果', minWidth: 110, align: 'center' },
|
||||
{ prop: 'wave_scan_result', label: '扫描结果', minWidth: 110 },
|
||||
{ prop: 'buyer_message', label: '买家留言', minWidth: 180 },
|
||||
{ prop: 'updated_at', label: '更新时间', minWidth: 170 }
|
||||
])
|
||||
@ -305,9 +305,9 @@ export const waveBatchColumns = applyWaveListCopyActions([
|
||||
{ prop: 'wave_no', label: '波次编号', minWidth: 180, fixed: 'left' },
|
||||
{ prop: 'wave_type', label: '波次类型', minWidth: 96 },
|
||||
{ prop: 'wave_status', label: '波次状态', minWidth: 110 },
|
||||
{ prop: 'total_orders', label: '总订单数', minWidth: 110, align: 'right' },
|
||||
{ prop: 'order_count', label: '订单数量', minWidth: 100, align: 'right' },
|
||||
{ prop: 'processed_orders', label: '已处理订单', minWidth: 108, align: 'right' },
|
||||
{ prop: 'total_orders', label: '总订单数', minWidth: 110 },
|
||||
{ prop: 'order_count', label: '订单数量', minWidth: 100 },
|
||||
{ prop: 'processed_orders', label: '已处理订单', minWidth: 108 },
|
||||
// { prop: 'item_detail_machine', label: '商品结构', minWidth: 320 },
|
||||
// { prop: 'item_part_type', label: '商品类型', minWidth: 120 },
|
||||
// { prop: 'item_part', label: '商品部位', minWidth: 220 },
|
||||
@ -316,7 +316,7 @@ export const waveBatchColumns = applyWaveListCopyActions([
|
||||
{ prop: 'express_assignment_status', label: '快递分配', minWidth: 120 },
|
||||
{ prop: 'print_assignment_status', label: '打印状态', minWidth: 110 },
|
||||
{ prop: 'review_assignment_status', label: '复核状态', minWidth: 110 },
|
||||
{ prop: 'unreviewed_order_count', label: '未复核数', minWidth: 96, align: 'right' },
|
||||
{ prop: 'unreviewed_order_count', label: '未复核数', minWidth: 96 },
|
||||
{ prop: 'logistics_name', label: '快递', minWidth: 120 },
|
||||
{ prop: 'item_snapshot_key', label: '商品快照键', minWidth: 320 },
|
||||
{ prop: 'creator', label: '创建人', minWidth: 100 },
|
||||
|
||||
@ -51,7 +51,7 @@ export const comboGoodsColumns = [
|
||||
{ prop: 'id', label: 'ID', width: '72', sortable: true },
|
||||
{ prop: 'combo_code', label: '组合编码', minWidth: '130', showOverflowTooltip: true },
|
||||
{ prop: 'combo_name', label: '组合名称', minWidth: '150', showOverflowTooltip: true },
|
||||
{ prop: 'status', label: '状态', width: '88', align: 'center' },
|
||||
{ prop: 'status', label: '状态', width: '88' },
|
||||
{ prop: 'simpleNotation', label: '子商品简记', minWidth: '160', showOverflowTooltip: true },
|
||||
{ prop: 'nameNotation', label: '名称简记', minWidth: '180', showOverflowTooltip: true },
|
||||
{ prop: 'remark', label: '备注', minWidth: '120', showOverflowTooltip: true },
|
||||
@ -69,7 +69,7 @@ export const comboGoodsColumns = [
|
||||
showOverflowTooltip: true,
|
||||
formatter: (row: ComboGoodsRecord) => formatComboGoodsDateTime(row.updated_at)
|
||||
},
|
||||
{ prop: 'actions', label: '操作', width: '150', align: 'center', fixed: 'right' }
|
||||
{ prop: 'actions', label: '操作', width: '150', fixed: 'right' }
|
||||
]
|
||||
|
||||
export const comboGoodsScanFields = [
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="组合商品列表"
|
||||
default-align="center"
|
||||
table-id="stock-combo-goods"
|
||||
:data="tableData"
|
||||
:columns="columns"
|
||||
|
||||
@ -67,6 +67,7 @@
|
||||
<upper-table
|
||||
ref="accountTableRef"
|
||||
title="商品列表"
|
||||
default-align="center"
|
||||
:enable-column-config="true"
|
||||
table-id="stock-management-list"
|
||||
:data="list"
|
||||
|
||||
@ -60,7 +60,6 @@ export const stockColumns = [
|
||||
prop: 'store_remask',
|
||||
label: '货主',
|
||||
width: '100',
|
||||
align: 'center',
|
||||
formatter: (row: any) => row['store_stock.store_remask'] || '--'
|
||||
},
|
||||
{
|
||||
@ -73,7 +72,6 @@ export const stockColumns = [
|
||||
prop: 'images',
|
||||
label: '商品图片',
|
||||
width: '120',
|
||||
align: 'center',
|
||||
imgs: (row: any) => {
|
||||
return row.images || []
|
||||
}
|
||||
@ -82,7 +80,6 @@ export const stockColumns = [
|
||||
prop: 'gross_weight',
|
||||
label: '毛重',
|
||||
width: '100',
|
||||
align: 'right',
|
||||
formatter: (row: any) => row.gross_weight ? `${formatNumber(row.gross_weight, 0)}g` : '--'
|
||||
},
|
||||
{
|
||||
@ -120,7 +117,6 @@ export const stockColumns = [
|
||||
prop: 'quantity',
|
||||
label: '库存数量',
|
||||
width: '100',
|
||||
align: 'right',
|
||||
sortable: true,
|
||||
formatter: (row: any) => formatNumber(row.quantity || 0, 0)
|
||||
},
|
||||
@ -128,7 +124,6 @@ export const stockColumns = [
|
||||
prop: 'locked_quantity',
|
||||
label: '锁定量',
|
||||
width: '100',
|
||||
align: 'right',
|
||||
sortable: true,
|
||||
formatter: (row: any) => formatNumber(row.locked_quantity || 0, 0)
|
||||
},
|
||||
@ -136,7 +131,6 @@ export const stockColumns = [
|
||||
prop: 'available_quantity',
|
||||
label: '可用库存',
|
||||
width: '100',
|
||||
align: 'right',
|
||||
sortable: true,
|
||||
formatter: (row: any) => {
|
||||
const available = row.available_quantity || Math.max(0, (row.quantity || 0) - (row.locked_quantity || 0))
|
||||
@ -147,20 +141,17 @@ export const stockColumns = [
|
||||
prop: 'lock_rate_display',
|
||||
label: '锁定率',
|
||||
width: '100',
|
||||
align: 'right',
|
||||
formatter: (row: any) => row.lock_rate_display || '--'
|
||||
},
|
||||
{
|
||||
prop: 'stock_unit',
|
||||
label: '库存单位',
|
||||
width: '100',
|
||||
align: 'center'
|
||||
width: '100'
|
||||
},
|
||||
{
|
||||
prop: 'tag_price',
|
||||
label: '标价',
|
||||
width: '100',
|
||||
align: 'right',
|
||||
sortable: true,
|
||||
formatter: (row: any) => row.tag_price ? `¥${formatNumber(row.tag_price, 2)}` : '--'
|
||||
},
|
||||
@ -168,7 +159,6 @@ export const stockColumns = [
|
||||
prop: 'retail_price',
|
||||
label: '零售价',
|
||||
width: '100',
|
||||
align: 'right',
|
||||
sortable: true,
|
||||
formatter: (row: any) => row.retail_price ? `¥${formatNumber(row.retail_price, 2)}` : '--'
|
||||
},
|
||||
@ -176,7 +166,6 @@ export const stockColumns = [
|
||||
prop: 'is_sn_mgmt',
|
||||
label: 'SN码',
|
||||
width: '80',
|
||||
align: 'center',
|
||||
slotName: 'is_sn_mgmt',
|
||||
formatter: (row: any) => row.is_sn_mgmt === 'Y' ? '是' : '否'
|
||||
},
|
||||
@ -184,7 +173,6 @@ export const stockColumns = [
|
||||
prop: 'is_shelf_life_mgmt',
|
||||
label: '保质期',
|
||||
width: '80',
|
||||
align: 'center',
|
||||
slotName: 'is_shelf_life_mgmt',
|
||||
formatter: (row: any) => row.is_shelf_life_mgmt === 'Y' ? '是' : '否'
|
||||
},
|
||||
@ -192,14 +180,12 @@ export const stockColumns = [
|
||||
prop: 'shelf_life_days',
|
||||
label: '保质期天数',
|
||||
width: '110',
|
||||
align: 'right',
|
||||
formatter: (row: any) => row.shelf_life_days ? `${formatNumber(row.shelf_life_days, 0)}天` : '--'
|
||||
},
|
||||
{
|
||||
prop: 'is_batch_mgmt',
|
||||
label: '批次',
|
||||
width: '80',
|
||||
align: 'center',
|
||||
slotName: 'is_batch_mgmt',
|
||||
formatter: (row: any) => row.is_batch_mgmt === 'Y' ? '是' : '否'
|
||||
},
|
||||
@ -207,7 +193,6 @@ export const stockColumns = [
|
||||
prop: 'dimensions',
|
||||
label: '尺寸(长×宽×高)',
|
||||
width: '180',
|
||||
align: 'center',
|
||||
formatter: (row: any) => {
|
||||
if (!row.length && !row.width && !row.height) return '--'
|
||||
return `${row.length || 0} cm× ${row.width || 0} cm× ${row.height || 0}cm`
|
||||
@ -217,21 +202,18 @@ export const stockColumns = [
|
||||
prop: 'level',
|
||||
label: 'ABC分类',
|
||||
sortable: true,
|
||||
align: 'center',
|
||||
width: '100',
|
||||
},
|
||||
{
|
||||
prop: 'volume',
|
||||
label: '体积',
|
||||
width: '100',
|
||||
align: 'right',
|
||||
formatter: (row: any) => row.volume ? `${formatNumber(row.volume, 2)}cm³` : '--'
|
||||
},
|
||||
{
|
||||
prop: 'net_weight',
|
||||
label: '净重',
|
||||
width: '100',
|
||||
align: 'right',
|
||||
formatter: (row: any) => row.net_weight ? `${formatNumber(row.net_weight, 0)}g` : '--'
|
||||
},
|
||||
{
|
||||
|
||||
@ -192,7 +192,7 @@ export const entryColums = [
|
||||
{ prop: 'purchase_order_code',label:'单据编号 ',width:'160' },
|
||||
{ prop: 'total_order_lines',label:'商品数',width:'160', sortable: 'custom' },
|
||||
{ prop: 'order_status',label:'订单状态',width:'160' },
|
||||
{ prop: 'hasReceiving', label: '收货绑定', width: '100', align: 'center' },
|
||||
{ prop: 'hasReceiving', label: '收货绑定', width: '100' },
|
||||
{ prop: 'receivingBindings', label: '绑定收货单', minWidth: '180' },
|
||||
{ prop: 'sync_status',label:'入库状态',width:'160' },
|
||||
{ prop: 'supplier_code',label:'供应商编码',width:'160' },
|
||||
|
||||
@ -52,6 +52,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="入库单列表"
|
||||
default-align="center"
|
||||
table-id="storage-entry-list"
|
||||
:enable-column-config="true"
|
||||
:data="list"
|
||||
|
||||
@ -41,6 +41,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="入库单列表"
|
||||
default-align="center"
|
||||
table-id="storage-inventory-list"
|
||||
:enable-column-config="true"
|
||||
:data="list"
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="出入库记录列表"
|
||||
default-align="center"
|
||||
table-id="storage-log-list"
|
||||
:enable-column-config="true"
|
||||
:data="list"
|
||||
@ -51,10 +52,6 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
|
||||
<template #column-inventory_type="{ row }">
|
||||
<el-tag size="small">{{ inventoryTypeMap[row.inventory_type] || row.inventory_type }}</el-tag>
|
||||
</template>
|
||||
|
||||
<template #empty>
|
||||
<div class="empty-tip">暂无出入库记录</div>
|
||||
</template>
|
||||
@ -84,9 +81,6 @@
|
||||
{{ selectedRowData.transaction_type === 'INBOUND' ? '入库' : '出库' }}
|
||||
</el-tag>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="库存类型">
|
||||
<el-tag size="small">{{ inventoryTypeMap[selectedRowData.inventory_type] || selectedRowData.inventory_type }}</el-tag>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="商品ID">{{ selectedRowData.stock_id }}</el-descriptions-item>
|
||||
<el-descriptions-item label="库位ID">{{ selectedRowData.space_id }}</el-descriptions-item>
|
||||
<el-descriptions-item label="仓库ID">{{ selectedRowData.warehouse_id }}</el-descriptions-item>
|
||||
@ -179,16 +173,6 @@ const selectedLogId = ref<string | null>(null)
|
||||
const currentCondition = ref<any>(null)
|
||||
const currentConditionRaw = ref<any>(null)
|
||||
|
||||
const inventoryTypeMap: Record<string, string> = {
|
||||
ZP: '正品',
|
||||
CC: '残次',
|
||||
JS: '机损',
|
||||
XS: '箱损',
|
||||
ZT: '在途',
|
||||
DJ: '待检',
|
||||
FP: '返品'
|
||||
}
|
||||
|
||||
const selectedRowData = computed(() => {
|
||||
return list.value.find(item => item.id === selectedLogId.value) || {}
|
||||
})
|
||||
|
||||
@ -67,17 +67,16 @@ export const orderTypeConfig = {
|
||||
|
||||
// 出入库记录列表列
|
||||
export const transactionColumns = [
|
||||
{ prop: 'stock_id', label: '商品ID', width: '100', align: 'center' },
|
||||
{ prop: 'transaction_type', label: '交易类型', width: '100', align: 'center' },
|
||||
{ prop: 'inventory_type', label: '库存类型', width: '100', align: 'center' },
|
||||
{ prop: 'space_id', label: '库位ID', width: '100', align: 'center' },
|
||||
{ prop: 'warehouse_id', label: '仓库ID', width: '100', align: 'center' },
|
||||
{ prop: 'order_type', label: '订单类型', width: '100', align: 'center' },
|
||||
{ prop: 'quantity', label: '数量', width: '100', align: 'right' },
|
||||
{ prop: 'record_count', label: '记录数', width: '100', align: 'right' },
|
||||
{ prop: 'stock_id', label: '商品ID', width: '100' },
|
||||
{ prop: 'transaction_type', label: '交易类型', width: '100' },
|
||||
{ prop: 'space_id', label: '库位ID', width: '100' },
|
||||
{ prop: 'warehouse_id', label: '仓库ID', width: '100' },
|
||||
{ prop: 'order_type', label: '订单类型', width: '100' },
|
||||
{ prop: 'quantity', label: '数量', width: '100' },
|
||||
{ prop: 'record_count', label: '记录数', width: '100' },
|
||||
{ prop: 'first_created_at', label: '首次创建', width: '160', sortable: true, formatter: (row: any) => formatDateTime(row.first_created_at) },
|
||||
{ prop: 'last_created_at', label: '最后创建', width: '160', sortable: true, formatter: (row: any) => formatDateTime(row.last_created_at) },
|
||||
{ prop: 'operator_name', label: '操作人', width: '100', align: 'center' }
|
||||
{ prop: 'operator_name', label: '操作人', width: '100' }
|
||||
]
|
||||
|
||||
// scan-box 可用字段(基础信息在前,流程状态在后;对齐收货单 ScanBox 分组)
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
<div class="split-stack" ref="splitStackRef">
|
||||
<div class="upper-wrapper" :style="detailVisible ? upperPaneStyle : upperPaneFullStyle">
|
||||
<upper-table ref="upperTable" title="收货单列表" :enable-column-config="true" table-id="storage-receiving-list" :data="list" :columns="columns" :table-size="tableSize"
|
||||
<upper-table ref="upperTable" title="收货单列表" default-align="center" :enable-column-config="true" table-id="storage-receiving-list" :data="list" :columns="columns" :table-size="tableSize"
|
||||
:pagination="pagination" :show-index="true" :show-actions="true" :show-selection="true" :loading="loading"
|
||||
:queryTime="queryTime" @current-change="handleRowClick" @page-change="handlePageChange"
|
||||
@page-size-change="handlePageSizeChange" @sort-change="handleSortChange" @refresh="loadData"
|
||||
|
||||
@ -122,32 +122,31 @@ export const receivingColumns = [
|
||||
prop: 'images',
|
||||
label: '收货图片',
|
||||
width: '120',
|
||||
align: 'center',
|
||||
imgs: (row: any) => {
|
||||
return row.images || []
|
||||
}
|
||||
},
|
||||
{ prop: 'status', label: '收货状态', width: '90', align: 'center' },
|
||||
{ prop: 'detail_status', label: '匹配状态', width: '90', align: 'center' },
|
||||
{ prop: 'storage_status', label: '入库状态', width: '90', align: 'center' },
|
||||
{ prop: 'is_review', label: '审核状态', width: '90', align: 'center' },
|
||||
{ prop: 'status', label: '收货状态', width: '90' },
|
||||
{ prop: 'detail_status', label: '匹配状态', width: '90' },
|
||||
{ prop: 'storage_status', label: '入库状态', width: '90' },
|
||||
{ prop: 'is_review', label: '审核状态', width: '90' },
|
||||
{ prop: 'store_name', label: '货主', width: '100' },
|
||||
{ prop: 'total_items', label: '商品种类', width: '90', align: 'right', sortable: true },
|
||||
{ prop: 'total_quantity', label: '总数量', width: '90', align: 'right', sortable: true },
|
||||
{ prop: 'total_boxes', label: '总箱数', width: '90', align: 'right', sortable: true },
|
||||
{ prop: 'total_pallets', label: '总托盘数', width: '90', align: 'right', sortable: true },
|
||||
{ prop: 'total_items', label: '商品种类', width: '90', sortable: true },
|
||||
{ prop: 'total_quantity', label: '总数量', width: '90', sortable: true },
|
||||
{ prop: 'total_boxes', label: '总箱数', width: '90', sortable: true },
|
||||
{ prop: 'total_pallets', label: '总托盘数', width: '90', sortable: true },
|
||||
{ prop: 'license_plate', label: '车牌号', width: '100' },
|
||||
{ prop: 'tracking_number', label: '物流单号', width: '120' },
|
||||
{ prop: 'video_device_id', label: '录像设备ID', width: '140' },
|
||||
{ prop: 'delivery_method', label: '来货方式', width: '90', align: 'center' },
|
||||
{ prop: 'loading_method', label: '装卸方式', width: '100', align: 'center' },
|
||||
{ prop: 'delivery_method', label: '来货方式', width: '90' },
|
||||
{ prop: 'loading_method', label: '装卸方式', width: '100' },
|
||||
{ prop: 'creator_name', label: '创建人', width: '100' },
|
||||
{ prop: 'receiving_start_time', label: '收货开始', width: '150', sortable: true, formatter: (row: any) => formatDateTime(row.receiving_start_time) },
|
||||
{ prop: 'receiving_end_time', label: '收货结束', width: '150', sortable: true, formatter: (row: any) => formatDateTime(row.receiving_end_time) },
|
||||
{ prop: 'created_at', label: '创建时间', width: '150', sortable: true, formatter: (row: any) => formatDateTime(row.created_at) },
|
||||
{ prop: 'updated_at', label: '更新时间', width: '150', sortable: true, formatter: (row: any) => formatDateTime(row.updated_at) },
|
||||
{ prop: 'remark', label: '备注', minWidth: '120' },
|
||||
{ prop: 'actions', label: '操作', width: '120', align: 'center', fixed: 'right' },
|
||||
{ prop: 'actions', label: '操作', width: '120', fixed: 'right' },
|
||||
]
|
||||
|
||||
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
ref="upperTable"
|
||||
row-key="__rid"
|
||||
title="报表明细"
|
||||
default-align="center"
|
||||
table-id="storage-report-list"
|
||||
:enable-column-config="true"
|
||||
:data="list"
|
||||
|
||||
@ -77,12 +77,11 @@ export const fixedReportColumns: ReportColumn[] = [
|
||||
{ prop: 'item_name', label: '商品名称', minWidth: 140, formatter: (row) => row.item_name || '--' },
|
||||
{ prop: 'item_code', label: '商品编码', minWidth: 120, formatter: (row) => row.item_code || '--' },
|
||||
{ prop: 'barcode', label: '条码', minWidth: 140, formatter: (row) => row.barcode || '--' },
|
||||
{ prop: 'stock_id', label: 'SKU', width: 96, align: 'center', formatter: (row) => formatReportCell(row.stock_id) },
|
||||
{ prop: 'stock_id', label: 'SKU', width: 96, formatter: (row) => formatReportCell(row.stock_id) },
|
||||
{
|
||||
prop: 'begin_total',
|
||||
label: '期初数量',
|
||||
width: 104,
|
||||
align: 'right',
|
||||
sortable: 'custom',
|
||||
formatter: (row) => formatReportNumber(row.begin_total)
|
||||
},
|
||||
@ -90,7 +89,6 @@ export const fixedReportColumns: ReportColumn[] = [
|
||||
prop: 'inbound_total',
|
||||
label: '区间内入库',
|
||||
width: 112,
|
||||
align: 'right',
|
||||
sortable: 'custom',
|
||||
formatter: (row) => formatReportNumber(row.inbound_total)
|
||||
},
|
||||
@ -98,7 +96,6 @@ export const fixedReportColumns: ReportColumn[] = [
|
||||
prop: 'outbound_total',
|
||||
label: '区间内出库',
|
||||
width: 112,
|
||||
align: 'right',
|
||||
sortable: 'custom',
|
||||
formatter: (row) => formatReportNumber(row.outbound_total)
|
||||
},
|
||||
@ -106,7 +103,6 @@ export const fixedReportColumns: ReportColumn[] = [
|
||||
prop: 'end_total',
|
||||
label: '期末数量',
|
||||
width: 104,
|
||||
align: 'right',
|
||||
sortable: 'custom',
|
||||
formatter: (row) => formatReportNumber(row.end_total)
|
||||
},
|
||||
@ -114,14 +110,12 @@ export const fixedReportColumns: ReportColumn[] = [
|
||||
prop: 'start_time',
|
||||
label: '区间开始',
|
||||
width: 168,
|
||||
align: 'center',
|
||||
formatter: (row) => formatReportDateTime(row.start_time)
|
||||
},
|
||||
{
|
||||
prop: 'end_time',
|
||||
label: '区间结束',
|
||||
width: 168,
|
||||
align: 'center',
|
||||
formatter: (row) => formatReportDateTime(row.end_time)
|
||||
}
|
||||
]
|
||||
@ -143,7 +137,6 @@ export function buildReportTableColumns(rows: StorageReportListItem[]) {
|
||||
prop,
|
||||
label: reportFieldLabels[prop] || prop,
|
||||
minWidth: 110,
|
||||
align: /total|qty|count|amount|_id$/i.test(prop) ? 'right' : 'left',
|
||||
formatter: (row) => formatReportCell((row as any)[prop])
|
||||
})
|
||||
}
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="出库单列表"
|
||||
default-align="center"
|
||||
table-id="storage-stockout-list"
|
||||
:enable-column-config="true"
|
||||
:data="list"
|
||||
|
||||
@ -59,8 +59,8 @@ export function formatDateTime(dateStr: string): string {
|
||||
|
||||
export const entryColums = [
|
||||
{ prop: 'delivery_order_code', label: '出库单号', width: '180', fixed: 'left' },
|
||||
{ prop: 'status', label: '出库状态', width: '100', align: 'center' },
|
||||
{ prop: 'sync_status', label: '同步状态', width: '100', align: 'center' },
|
||||
{ prop: 'status', label: '出库状态', width: '100' },
|
||||
{ prop: 'sync_status', label: '同步状态', width: '100' },
|
||||
{ prop: 'order_type', label: '单据类型', width: '100' },
|
||||
{ prop: 'source_platform_name', label: '来源平台', width: '110' },
|
||||
{ prop: 'buyer_nick', label: '买家', width: '130' },
|
||||
@ -68,8 +68,8 @@ export const entryColums = [
|
||||
{ prop: 'mobile', label: '联系电话', width: '130' },
|
||||
{ prop: 'logistics_name', label: '物流公司', width: '130' },
|
||||
{ prop: 'express_code', label: '运单号', width: '150' },
|
||||
{ prop: 'items_count', label: '商品种类', width: '90', align: 'right' },
|
||||
{ prop: 'items_total', label: '商品总数', width: '90', align: 'right' },
|
||||
{ prop: 'items_count', label: '商品种类', width: '90' },
|
||||
{ prop: 'items_total', label: '商品总数', width: '90' },
|
||||
{ prop: 'place_order_time', label: '下单时间', width: '160', sortable: true, formatter: (row: any) => formatDateTime(row.place_order_time) },
|
||||
{ prop: 'updated_at', label: '更新时间', width: '160', sortable: true, formatter: (row: any) => formatDateTime(row.updated_at) }
|
||||
]
|
||||
|
||||
@ -46,6 +46,7 @@
|
||||
<div class="upper-wrapper">
|
||||
<upper-table
|
||||
ref="tableRef"
|
||||
default-align="center"
|
||||
:data="list"
|
||||
:columns="columns"
|
||||
:loading="loading"
|
||||
|
||||
@ -170,14 +170,14 @@ export const qimenTableColumns = [
|
||||
export const columns = [
|
||||
{ prop: 'store_id', label: '货主ID', width: 90 },
|
||||
{ prop: 'counterparty_name', label: '货主', minWidth: 120 },
|
||||
{ prop: 'auth_status', label: '签约状态', width: 100, align: 'center' },
|
||||
{ prop: 'use_status', label: '使用状态', width: 90, align: 'center' },
|
||||
{ prop: 'print_quantity', label: '面单余额', width: 100, align: 'center' },
|
||||
{ prop: 'auth_status', label: '签约状态', width: 100 },
|
||||
{ prop: 'use_status', label: '使用状态', width: 90 },
|
||||
{ prop: 'print_quantity', label: '面单余额', width: 100 },
|
||||
//{ prop: 'is_auth_valid', label: '授权有效', width: 90, align: 'center' },
|
||||
// { prop: 'remaining_days', label: '剩余天数', width: 90, align: 'center' },
|
||||
{ prop: 'has_qimen_config', label: '奇门配置', width: 100, align: 'center' },
|
||||
{ prop: 'apply_time', label: '申请时间', width: 160, align: 'center' },
|
||||
{ prop: 'actions', label: '操作', width: 380, align: 'center', fixed: 'right' }
|
||||
{ prop: 'has_qimen_config', label: '奇门配置', width: 100 },
|
||||
{ prop: 'apply_time', label: '申请时间', width: 160 },
|
||||
{ prop: 'actions', label: '操作', width: 380, fixed: 'right' }
|
||||
]
|
||||
|
||||
export const availableFields = [
|
||||
|
||||
@ -35,6 +35,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="快递编码列表"
|
||||
default-align="center"
|
||||
table-id="encoding-courier-code"
|
||||
:data="tableData"
|
||||
:columns="columns"
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="平台编码列表"
|
||||
default-align="center"
|
||||
table-id="encoding-platform-code"
|
||||
:data="tableData"
|
||||
:columns="columns"
|
||||
|
||||
@ -10,7 +10,7 @@ export const courierColumns = [
|
||||
{ prop: 'express_name', label: '快递名称', minWidth: '180', showOverflowTooltip: true },
|
||||
{ prop: 'code', label: '业务编码', minWidth: '180', showOverflowTooltip: true },
|
||||
{ prop: 'name', label: '业务名称', minWidth: '180', showOverflowTooltip: true },
|
||||
{ prop: 'actions', label: '操作', width: '140', align: 'center', fixed: 'right' }
|
||||
{ prop: 'actions', label: '操作', width: '140', fixed: 'right' }
|
||||
]
|
||||
|
||||
export const platformAvailableFields = [
|
||||
@ -27,7 +27,7 @@ export const platformColumns = [
|
||||
{ prop: 'code', label: '业务编码', minWidth: '140', showOverflowTooltip: true },
|
||||
{ prop: 'label', label: '显示标签', minWidth: '180', showOverflowTooltip: true },
|
||||
{ prop: 'name', label: '业务名称', minWidth: '180', showOverflowTooltip: true },
|
||||
{ prop: 'actions', label: '操作', width: '140', align: 'center', fixed: 'right' }
|
||||
{ prop: 'actions', label: '操作', width: '140', fixed: 'right' }
|
||||
]
|
||||
|
||||
export function buildWhereConditions(rawConditions: Record<string, any>) {
|
||||
|
||||
@ -26,6 +26,7 @@
|
||||
<upper-table
|
||||
ref="upperTable"
|
||||
title="店铺列表"
|
||||
default-align="center"
|
||||
table-id="setting-shops"
|
||||
:data="tableData"
|
||||
:columns="columns"
|
||||
|
||||
@ -15,10 +15,10 @@ export const shopColumns = [
|
||||
{ prop: 'platform_name', label: '平台名称', minWidth: '140', showOverflowTooltip: true },
|
||||
{ prop: 'custom_name', label: '自定义名称', minWidth: '160', showOverflowTooltip: true },
|
||||
{ prop: 'shop_name', label: '店铺名称', minWidth: '160', showOverflowTooltip: true },
|
||||
{ prop: 'auth_expire_at', label: '授权过期时间', minWidth: '180', align: 'center' },
|
||||
{ prop: 'auth_expire_at', label: '授权过期时间', minWidth: '180' },
|
||||
{ prop: 'access_token', label: '密钥', minWidth: '200', showOverflowTooltip: true },
|
||||
{ prop: 'status', label: '状态', width: '100', align: 'center' },
|
||||
{ prop: 'actions', label: '操作', width: '220', align: 'center', fixed: 'right' }
|
||||
{ prop: 'status', label: '状态', width: '100' },
|
||||
{ prop: 'actions', label: '操作', width: '220', fixed: 'right' }
|
||||
]
|
||||
|
||||
export const shopScanFields = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user