From 860a2b5b8f8d950177a27d5ceeab092933b27b87 Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Tue, 19 May 2026 17:03:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(order):=20=E6=96=B0=E5=A2=9EPO=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 实现PO订单的搜索功能,支持按客户、买方、订单号、SKU和状态筛选 - 添加表格展示功能,显示PO订单详细信息和分页控制 - 集成编辑模式,支持直接在表格中修改订单数据 - 实现供应商、物料、港口和运输方式的选择弹窗功能 - 添加数据导入功能,支持Excel文件上传和预览 - 集成API接口,实现PO订单数据的查询和批量更新操作 - 添加导出功能,支持下载导入模板和数据导出 - 实现表格列的动态配置和排序功能 --- src/views/modules/order/poOrder.vue | 63 +++++++++++++++++++---------- 1 file changed, 41 insertions(+), 22 deletions(-) diff --git a/src/views/modules/order/poOrder.vue b/src/views/modules/order/poOrder.vue index 4dedd44..c937871 100644 --- a/src/views/modules/order/poOrder.vue +++ b/src/views/modules/order/poOrder.vue @@ -108,6 +108,15 @@ {{ scope.row[item.columnProp] }} @@ -199,25 +209,25 @@ height="250" style="width:100%;margin-top:10px" > - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - + + + +
@@ -798,7 +808,7 @@ export default { fixed: '', columnWidth: 120, showOverflowTooltip: true, - editAble: false, + editAble: true, editType: 'date', selectOptionsKey: '', selectOptions: null @@ -821,7 +831,7 @@ export default { fixed: '', columnWidth: 130, showOverflowTooltip: true, - editAble: false, + editAble: true, editType: 'date', selectOptionsKey: '', selectOptions: null @@ -950,7 +960,7 @@ export default { columnProp: 'flexid', headerAlign: 'center', align: 'center', - columnLabel: 'FLEXPORT ID', + columnLabel: 'Flexport Id', columnHidden: false, columnImage: false, columnSortable: false, @@ -1711,7 +1721,9 @@ export default { if (data && this.currentShipViaRow) { // 更新当前行的运输方式信息 // 根据 SQL: select method_no, method_desc from ship_method - this.$set(this.currentShipViaRow, 'shipVia', data.method_no || data.methodNo || data.shipVia || '') + // 显示运输方式名称 method_desc,保存运输方式编号 method_no + this.$set(this.currentShipViaRow, 'shipVia', data.method_desc || data.methodDesc || data.shipVia || '') + this.$set(this.currentShipViaRow, 'shipViaCode', data.method_no || data.methodNo || '') this.$set(this.currentShipViaRow, 'changeFlag', 1) console.log('更新后的行数据:', this.currentShipViaRow) @@ -1719,6 +1731,13 @@ export default { // 清空当前选择行 this.currentShipViaRow = null } + }, + + /** + * 判断是否为新增行(没有 id 或 id 为空表示新增) + */ + isNewRow(row) { + return !row.id || row.id === '' || row.id === null || row.id === undefined } }