Browse Source

销售开票申请

intex_online20241111
yufei_wang 3 weeks ago
parent
commit
a18aa77680
  1. 24
      src/views/wms/deliversettlementManage/customerSaleInvoiceMain/customerSaleInvoiceMain.data.ts
  2. 41
      src/views/wms/deliversettlementManage/customerSaleInvoiceMain/index.vue

24
src/views/wms/deliversettlementManage/customerSaleInvoiceMain/customerSaleInvoiceMain.data.ts

@ -53,7 +53,7 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '客户代码', label: '客户代码',
field: 'customer', field: 'customerCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
form: { form: {
@ -74,7 +74,7 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '未税金额', label: '未税金额',
field: 'beforeTaxAmount', field: 'mainBeforeTaxAmount',
sort: 'custom', sort: 'custom',
form: { form: {
componentProps: { componentProps: {
@ -87,7 +87,6 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'taxRate', field: 'taxRate',
dictType: DICT_TYPE.TAX_RATE_DICT, dictType: DICT_TYPE.TAX_RATE_DICT,
dictClass: 'string', dictClass: 'string',
sortTableDefault: 3,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
@ -96,7 +95,7 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '税额', label: '税额',
field: 'taxAmount', field: 'mainTaxAmount',
sort: 'custom', sort: 'custom',
form: { form: {
componentProps: { componentProps: {
@ -106,7 +105,7 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '价税合计金额', label: '价税合计金额',
field: 'adTaxAmount', field: 'mainAdTaxAmount',
sort: 'custom', sort: 'custom',
form: { form: {
componentProps: { componentProps: {
@ -146,13 +145,6 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
}, },
{
label: '是否可用默认TRUE',
field: 'available',
sort: 'custom',
isTable: false,
isForm:false
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -189,7 +181,7 @@ export const CustomerSaleInvoiceDetailRules = reactive({
export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '品番', label: '品番',
field: 'number', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isForm: false, isForm: false,
@ -250,7 +242,7 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '合计单价', label: '合计单价',
field: 'beforeTaxAmount', field: 'sumPrice',
sort: 'custom', sort: 'custom',
form: { form: {
componentProps: { componentProps: {
@ -260,7 +252,7 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '未税金额', label: '未税金额',
field: 'taxRate', field: 'beforeTaxAmount',
sort: 'custom', sort: 'custom',
}, },
{ {
@ -275,7 +267,7 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '含税金额', label: '含税金额',
field: 'adTaxAmount', field: 'afterTaxAmount',
sort: 'custom', sort: 'custom',
form: { form: {
componentProps: { componentProps: {

41
src/views/wms/deliversettlementManage/customerSaleInvoiceMain/index.vue

@ -1,7 +1,7 @@
<template> <template>
<ContentWrap> <ContentWrap>
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<Search :schema="[...CustomerSaleInvoiceMain.allSchemas.searchSchema,...CustomerSaleInvoiceDetail.allSchemas.searchSchema]" @search="setSearchParams" @reset="setSearchParams" /> <Search :schema="CustomerSaleInvoiceMain.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
@ -12,7 +12,6 @@
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:allSchemas="CustomerSaleInvoiceMain.allSchemas" :allSchemas="CustomerSaleInvoiceMain.allSchemas"
:detailAllSchemas="CustomerSaleInvoiceDetail.allSchemas"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -105,10 +104,10 @@ const businessType = ref()
const importFileName = ref() const importFileName = ref()
console.log(99 , routeName.value) console.log(99 , routeName.value)
const customerCode = ref() const customerCode = ref()
const tableColumns = ref([...CustomerSaleInvoiceMain.allSchemas.tableColumns,...CustomerSaleInvoiceDetail.allSchemas.tableMainColumns]) const tableColumns = ref(CustomerSaleInvoiceMain.allSchemas.tableColumns)
const { tableObject, tableMethods } = useTable({ 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'] // const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
@ -215,12 +187,11 @@ const Echo = []
// //
const { getList, setSearchParams } = tableMethods const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:`wms:${routeName.value}:create` }), // defaultButtons.defaultAddBtn({hasPermi:`wms:customer-sale-invoice-main:create` }), //
defaultButtons.defaultImportBtn({hasPermi:`wms:${routeName.value}:import` }), // defaultButtons.defaultImportBtn({hasPermi:`wms:customer-sale-invoice-main:import` }), //
defaultButtons.defaultExportBtn({hasPermi:`wms:${routeName.value}:export` }), // defaultButtons.defaultExportBtn({hasPermi:`wms:customer-sale-invoice-main:export` }), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

Loading…
Cancel
Save