From 4863831a0ce2f779bcd646bce6556b6805594f4c Mon Sep 17 00:00:00 2001 From: hwj Date: Thu, 2 Apr 2026 16:23:51 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BA=A7=E5=93=81=E7=AE=A1?= =?UTF-8?q?=E7=90=86-=E4=BA=A7=E5=93=81=E7=89=A9=E6=96=99=E4=BF=A1?= =?UTF-8?q?=E6=81=AF-=E4=BA=A7=E5=93=81=E5=88=86=E7=B1=BB=E6=97=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=B3=E8=81=94=E8=AE=BE=E5=A4=87=E3=80=81?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=A8=A1=E5=85=B7=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/erp/product/product/index.ts | 6 + .../TableSelectDialog/TableSelectDialog.vue | 146 ++++++++++ src/views/erp/product/product/ProductForm.vue | 253 +++++++++++++++++- 3 files changed, 396 insertions(+), 9 deletions(-) create mode 100644 src/components/TableSelectDialog/TableSelectDialog.vue diff --git a/src/api/erp/product/product/index.ts b/src/api/erp/product/product/index.ts index e922d3d1..7270a803 100644 --- a/src/api/erp/product/product/index.ts +++ b/src/api/erp/product/product/index.ts @@ -20,6 +20,12 @@ export interface ProductVO { purchasePrice: number // 采购价格,单位:元 salePrice: number // 销售价格,单位:元 minPrice: number // 最低价格,单位:元 + deviceIds?: string // 关联设备ID列表 + moldIds?: string // 关联模具ID列表 + devices?: { id: number; name: string }[] // 关联设备列表 + molds?: { id: number; name: string }[] // 关联模具列表 + deviceList?: any[] + moldList?: any[] } // ERP 产品 API diff --git a/src/components/TableSelectDialog/TableSelectDialog.vue b/src/components/TableSelectDialog/TableSelectDialog.vue new file mode 100644 index 00000000..4e278809 --- /dev/null +++ b/src/components/TableSelectDialog/TableSelectDialog.vue @@ -0,0 +1,146 @@ + + + diff --git a/src/views/erp/product/product/ProductForm.vue b/src/views/erp/product/product/ProductForm.vue index 51c85318..77918894 100644 --- a/src/views/erp/product/product/ProductForm.vue +++ b/src/views/erp/product/product/ProductForm.vue @@ -133,6 +133,26 @@ + + + + + + + + + + {{ t('common.cancel') }} + +