|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<ContentWrap> |
|
|
|
<!-- 搜索工作栏 --> |
|
|
|
<Search :schema="[...CustomerSaleInvoiceMain.allSchemas.searchSchema,...CustomerSaleInvoiceDetail.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
|
<Search :schema="CustomerSaleInvoiceMain.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<!-- 列表头部 --> |
|
|
@ -12,7 +12,6 @@ |
|
|
|
@updataTableColumns="updataTableColumns" |
|
|
|
@searchFormClick="searchFormClick" |
|
|
|
:allSchemas="CustomerSaleInvoiceMain.allSchemas" |
|
|
|
:detailAllSchemas="CustomerSaleInvoiceDetail.allSchemas" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 列表 --> |
|
|
@ -105,10 +104,10 @@ const businessType = ref() |
|
|
|
const importFileName = ref() |
|
|
|
console.log(99 , routeName.value) |
|
|
|
const customerCode = ref() |
|
|
|
const tableColumns = ref([...CustomerSaleInvoiceMain.allSchemas.tableColumns,...CustomerSaleInvoiceDetail.allSchemas.tableMainColumns]) |
|
|
|
const tableColumns = ref(CustomerSaleInvoiceMain.allSchemas.tableColumns) |
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: CustomerSaleInvoiceDetailApi.getCustomerSaleInvoiceDetailPage // 分页接口 |
|
|
|
getListApi: CustomerSaleInvoiceMainApi.getCustomerSaleInvoiceMainPage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -181,33 +180,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// 修改 tableform 属性 |
|
|
|
CustomerSaleInvoiceDetail.allSchemas.tableFormColumns.map(item => { |
|
|
|
if(item.field == 'itemCode') { |
|
|
|
item.tableForm.searchCondition = [ |
|
|
|
{ |
|
|
|
key: 'businessType', |
|
|
|
value: businessType.value , |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'customerCode', |
|
|
|
value: 'customerCode' , |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
item.form.componentProps.searchCondition = [ |
|
|
|
{ |
|
|
|
key: 'businessType', |
|
|
|
value: businessType.value, |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'customerCode', |
|
|
|
value: 'customerCode' , |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
// 子表新增的时候选择表格之后需要会显得字段 |
|
|
|
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom'] |
|
|
@ -215,12 +187,11 @@ const Echo = [] |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
|
const { getList, setSearchParams } = tableMethods |
|
|
|
|
|
|
|
// 列表头部按钮 |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultAddBtn({hasPermi:`wms:${routeName.value}:create` }), // 新增 |
|
|
|
defaultButtons.defaultImportBtn({hasPermi:`wms:${routeName.value}:import` }), // 导入 |
|
|
|
defaultButtons.defaultExportBtn({hasPermi:`wms:${routeName.value}:export` }), // 导出 |
|
|
|
defaultButtons.defaultAddBtn({hasPermi:`wms:customer-sale-invoice-main:create` }), // 新增 |
|
|
|
defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-main:import` }), // 导入 |
|
|
|
defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-main:export` }), // 导出 |
|
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
|