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

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

@ -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), //

Loading…
Cancel
Save