From baa792be9dc2fc43ab745645ba57f325c94d3e3a Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 18 Jul 2024 11:48:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A2=E8=AF=81=E5=87=BD=E8=B0=83=E8=8A=82?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/supplierApbalanceMain/index.ts | 2 +- src/components/Detail/src/Detail.vue | 14 +- src/components/TableFormAdjustment/index.ts | 3 + .../src/AdjustmentDialog.vue | 63 +++ .../src/TableFormAdjustment.vue | 442 ++++++++++++++++++ .../supplierApbalanceMain/index.vue | 47 +- 6 files changed, 552 insertions(+), 19 deletions(-) create mode 100644 src/components/TableFormAdjustment/index.ts create mode 100644 src/components/TableFormAdjustment/src/AdjustmentDialog.vue create mode 100644 src/components/TableFormAdjustment/src/TableFormAdjustment.vue diff --git a/src/api/wms/supplierApbalanceMain/index.ts b/src/api/wms/supplierApbalanceMain/index.ts index eb43a9d37..1eed92870 100644 --- a/src/api/wms/supplierApbalanceMain/index.ts +++ b/src/api/wms/supplierApbalanceMain/index.ts @@ -47,7 +47,7 @@ export const createSupplierApbalanceMain = async (data: SupplierApbalanceMainVO) } // 修改供应商余额明细主 -export const updateSupplierApbalanceMain = async (data: SupplierApbalanceMainVO) => { +export const updateSupplierApbalanceMain = async (data: any) => { return await request.put({ url: `/wms/supplier-apbalance-main/update`, data }) } diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index df9993b8e..005429997 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -29,7 +29,7 @@ -->
+ [] }, + slotDetailTabList:{ + type:Array, + required: false, + default: () => [] + }, //主表单独操作--明细左上角新增按钮 mainSubmitCreateApi:{ type: Boolean, @@ -441,6 +447,10 @@ if (props.isBasic == true) { ] } } +// 插槽详情 +if(props.slotDetailTabList){ + tabsList.value = [...tabsList?.value,...props.slotDetailTabList] +} let otherList = [...props.annexTable,{ diff --git a/src/components/TableFormAdjustment/index.ts b/src/components/TableFormAdjustment/index.ts new file mode 100644 index 000000000..d078332ca --- /dev/null +++ b/src/components/TableFormAdjustment/index.ts @@ -0,0 +1,3 @@ +import TableFormAdjustment from './src/TableFormAdjustment.vue' + +export { TableFormAdjustment } diff --git a/src/components/TableFormAdjustment/src/AdjustmentDialog.vue b/src/components/TableFormAdjustment/src/AdjustmentDialog.vue new file mode 100644 index 000000000..9494e959a --- /dev/null +++ b/src/components/TableFormAdjustment/src/AdjustmentDialog.vue @@ -0,0 +1,63 @@ + + + + \ No newline at end of file diff --git a/src/components/TableFormAdjustment/src/TableFormAdjustment.vue b/src/components/TableFormAdjustment/src/TableFormAdjustment.vue new file mode 100644 index 000000000..0a9c01fbe --- /dev/null +++ b/src/components/TableFormAdjustment/src/TableFormAdjustment.vue @@ -0,0 +1,442 @@ + + + + \ No newline at end of file diff --git a/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue b/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue index 42b27103a..26ff5eed0 100644 --- a/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue +++ b/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue @@ -61,10 +61,22 @@ :detailButtonIsShowAdd=false :detailButtonIsShowEdit=false :detailButtonIsShowDelete=false - /> + :slotDetailTabList="[ + { + label: '回调函明细', + prop: 'adjustment' + } + ]" + > + + + +