From 49db434d798220f65e578223b5219c75670f0e34 Mon Sep 17 00:00:00 2001 From: weiwei Date: Mon, 28 Apr 2025 17:47:21 +0800 Subject: [PATCH] --- .../purchaseManagement/smErpCgBack/form.vue | 126 +++------------- .../purchaseManagement/smErpCgDd/form.vue | 136 ++++------------- .../smErpCgInventory/form.vue | 126 +++------------- .../purchaseManagement/smErpCgPlan/form.vue | 44 +++--- .../retailManagement/smErpRetailBack/form.vue | 142 ++++-------------- .../smErpRetailDelivery/form.vue | 126 +++------------- src/views/supermarketerp/stockTaking/form.vue | 110 ++------------ 7 files changed, 162 insertions(+), 648 deletions(-) diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue index 6d33ac8..4bdbb5c 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue @@ -2,34 +2,30 @@
-
-
-
- 单据编号: - {{ baseDataForm.inventoryCode }} -
-
- 单据日期: - {{ baseDataForm.inventoryDate }} -
-
- 经办人: - {{ baseDataForm.handlerUserId }} -
+
+
+ 单据编号: + {{ baseDataForm.inventoryCode }}
-
-
- 关联补货申请: - {{ baseDataForm.linkCode }} -
-
- 货商: - {{ baseDataForm.supplierId }} -
-
- 备注: - {{ baseDataForm.remark }} -
+
+ 单据日期: + {{ baseDataForm.inventoryDate }} +
+
+ 经办人: + {{ baseDataForm.handlerUserId }} +
+
+ 关联补货申请: + {{ baseDataForm.linkCode }} +
+
+ 货商: + {{ baseDataForm.supplierId }} +
+
+ 备注: + {{ baseDataForm.remark }}
@@ -70,22 +66,6 @@ - 商品选择 删除选中 清空数据 @@ -348,66 +328,6 @@ const getSelectedLinkCode = (selectionRows: any) => { state.linkCgPlanDialogVisible = false } -// 顶部表格行新增 -const addEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.unshift(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 底部表格行新增 -const pushEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.push(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 在指定行插入 -const insertEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.splice(state.insertedRowNumber, 0, newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - // 删除选中的行 const removeSelectRowEvent = () => { const $table = editableTableRef.value diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue index a821c28..1674954 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgDd/form.vue @@ -2,39 +2,35 @@
-
-
-
- 编号: - {{ baseDataForm.code }} -
-
- 单据日期: - {{ baseDataForm.ddDate }} -
-
- 经办人: - -
+
+
+ 编号: + {{ baseDataForm.code }}
-
-
- 关联补货申请: - {{ baseDataForm.linkCode }} -
-
- 货商: - -
-
- 备注: - {{ baseDataForm.remark }} -
+
+ 单据日期: + {{ baseDataForm.ddDate }} +
+
+ 经办人: + +
+
+ 关联补货申请: + {{ baseDataForm.linkCode }} +
+
+ 货商: + +
+
+ 备注: + {{ baseDataForm.remark }}
@@ -78,22 +74,6 @@ 商品选择 删除选中 清空数据 - { state.linkCgPlanDialogVisible = false } -// 顶部表格行新增 -const addEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.unshift(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 底部表格行新增 -const pushEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.push(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 在指定行插入 -const insertEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.splice(state.insertedRowNumber, 0, newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - // 删除选中的行 const removeSelectRowEvent = () => { const $table = editableTableRef.value diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue index 5482987..f14869b 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgInventory/form.vue @@ -2,34 +2,30 @@
-
-
-
- 单据编号: - {{ baseDataForm.inventoryCode }} -
-
- 单据日期: - {{ baseDataForm.inventoryDate }} -
-
- 经办人: - {{ baseDataForm.handlerUserId }} -
+
+
+ 单据编号: + {{ baseDataForm.inventoryCode }}
-
-
- 关联补货申请: - {{ baseDataForm.linkCode }} -
-
- 货商: - {{ baseDataForm.supplierId }} -
-
- 备注: - {{ baseDataForm.remark }} -
+
+ 单据日期: + {{ baseDataForm.inventoryDate }} +
+
+ 经办人: + {{ baseDataForm.handlerUserId }} +
+
+ 关联补货申请: + {{ baseDataForm.linkCode }} +
+
+ 货商: + {{ baseDataForm.supplierId }} +
+
+ 备注: + {{ baseDataForm.remark }}
@@ -70,22 +66,6 @@ - 商品选择 删除选中 清空数据 @@ -355,66 +335,6 @@ const getSelectedLinkCode = (selectionRows: any) => { state.linkCgPlanDialogVisible = false } -// 顶部表格行新增 -const addEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.unshift(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 底部表格行新增 -const pushEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.push(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 在指定行插入 -const insertEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.splice(state.insertedRowNumber, 0, newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - // 删除选中的行 const removeSelectRowEvent = () => { const $table = editableTableRef.value diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue index de2a306..0f0ce1e 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgPlan/form.vue @@ -2,31 +2,27 @@
-
-
-
- 编号: - {{ baseDataForm.planCode }} -
-
- 单据日期: - {{ baseDataForm.planDate }} -
-
- 经办人: - -
+
+
+ 编号: + {{ baseDataForm.planCode }}
-
-
- 备注: - {{ baseDataForm.remark }} -
+
+ 单据日期: + {{ baseDataForm.planDate }} +
+
+ 经办人: + +
+
+ 备注: + {{ baseDataForm.remark }}
diff --git a/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue b/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue index e37994d..92d5d5c 100644 --- a/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue +++ b/src/views/supermarketerp/retailManagement/smErpRetailBack/form.vue @@ -2,44 +2,38 @@
-
-
-
- 单据编号: - {{ baseDataForm.inventoryCode }} -
-
- 单据日期: - {{ baseDataForm.inventoryDate }} -
-
- 经办人: - {{ baseDataForm.handlerUserId }} -
+
+
+ 单据编号: + {{ baseDataForm.inventoryCode }}
-
-
- 关联补货申请: - {{ baseDataForm.linkCode }} -
-
- 货商: - {{ baseDataForm.supplierId }} -
-
- 备注: - {{ baseDataForm.remark }} -
+
+ 单据日期: + {{ baseDataForm.inventoryDate }}
-
-
- 审批状态: - {{ baseDataForm.checkStatus }} -
-
- 会员卡号: - {{ baseDataForm.memberNumber }} -
+
+ 经办人: + {{ baseDataForm.handlerUserId }} +
+
+ 关联补货申请: + {{ baseDataForm.linkCode }} +
+
+ 货商: + {{ baseDataForm.supplierId }} +
+
+ 备注: + {{ baseDataForm.remark }} +
+
+ 审批状态: + {{ baseDataForm.checkStatus }} +
+
+ 会员卡号: + {{ baseDataForm.memberNumber }}
@@ -83,22 +77,6 @@ - 商品选择 删除选中 清空数据 @@ -395,66 +373,6 @@ const getSelectedLinkCode = (selectionRows: any) => { state.linkCgPlanDialogVisible = false } -// 顶部表格行新增 -const addEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.unshift(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 底部表格行新增 -const pushEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.push(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 在指定行插入 -const insertEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.splice(state.insertedRowNumber, 0, newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - // 删除选中的行 const removeSelectRowEvent = () => { const $table = editableTableRef.value diff --git a/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue b/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue index 2c1efbb..18d7778 100644 --- a/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue +++ b/src/views/supermarketerp/retailManagement/smErpRetailDelivery/form.vue @@ -2,34 +2,30 @@
-
-
-
- 单据编号: - {{ baseDataForm.inventoryCode }} -
-
- 单据日期: - {{ baseDataForm.inventoryDate }} -
-
- 经办人: - {{ baseDataForm.handlerUserId }} -
+
+
+ 单据编号: + {{ baseDataForm.inventoryCode }}
-
-
- 关联补货申请: - {{ baseDataForm.linkCode }} -
-
- 货商: - {{ baseDataForm.supplierId }} -
-
- 备注: - {{ baseDataForm.remark }} -
+
+ 单据日期: + {{ baseDataForm.inventoryDate }} +
+
+ 经办人: + {{ baseDataForm.handlerUserId }} +
+
+ 关联补货申请: + {{ baseDataForm.linkCode }} +
+
+ 货商: + {{ baseDataForm.supplierId }} +
+
+ 备注: + {{ baseDataForm.remark }}
@@ -73,22 +69,6 @@ - 商品选择 删除选中 清空数据 @@ -385,66 +365,6 @@ const getSelectedLinkCode = (selectionRows: any) => { state.linkCgPlanDialogVisible = false } -// 顶部表格行新增 -const addEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.unshift(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 底部表格行新增 -const pushEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.push(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 在指定行插入 -const insertEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.splice(state.insertedRowNumber, 0, newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - // 删除选中的行 const removeSelectRowEvent = () => { const $table = editableTableRef.value diff --git a/src/views/supermarketerp/stockTaking/form.vue b/src/views/supermarketerp/stockTaking/form.vue index bc954e2..fb2d1b5 100644 --- a/src/views/supermarketerp/stockTaking/form.vue +++ b/src/views/supermarketerp/stockTaking/form.vue @@ -2,26 +2,22 @@
-
-
-
- 单据编号: - {{ baseDataForm.inventoryCode }} -
-
- 单据日期: - {{ baseDataForm.inventoryDate }} -
-
- 经办人: - {{ baseDataForm.handlerUserId }} -
+
+
+ 单据编号: + {{ baseDataForm.inventoryCode }}
-
-
- 备注: - {{ baseDataForm.remark }} -
+
+ 单据日期: + {{ baseDataForm.inventoryDate }} +
+
+ 经办人: + {{ baseDataForm.handlerUserId }} +
+
+ 备注: + {{ baseDataForm.remark }}
@@ -48,22 +44,6 @@ - 商品选择 删除选中 清空数据 @@ -399,66 +379,6 @@ const handleRealNumberChange = (row: any) => { row._cachedLoss = null } -// 顶部表格行新增 -const addEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.unshift(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 底部表格行新增 -const pushEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.push(newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - -// 在指定行插入 -const insertEvent = () => { - const newRow: any = { - id: "", - erpSpuId: "", - quantity: null, - unitPrice: null, - totalAmount: null, - remark: "", - unitId: "", - } - state.editableTableData.splice(state.insertedRowNumber, 0, newRow) - nextTick(() => { - const $table = editableTableRef.value - if ($table) { - $table.setEditRow(newRow) - } - }) -} - // 删除选中的行 const removeSelectRowEvent = () => { const $table = editableTableRef.value