Browse Source

Merge remote-tracking branch 'remotes/origin/intex_online20250409' into intex_online20250408

intex_online20250408
刘忱 2 weeks ago
parent
commit
f5077dfb9e
  1. 27
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  2. 176
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

27
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -89,7 +89,14 @@
taxAmountDiff = 0, taxAmountDiff = 0,
rebateTax = 0, rebateTax = 0,
claimAmount = 0, claimAmount = 0,
moldUntaxedAmount = 0 moldUntaxedAmount = 0,
moldTaxAmount = 0,
claimTaxAmount = 0,
adTaxAmount = 0,
afterTaxAmount = 0,
moldTaxTotal = 0,
rebateTotal = 0,
claimTaxTotal = 0,
} = formModel } = formModel
// 2X*2 // 2X*2
if (formType == 'update') { if (formType == 'update') {
@ -104,13 +111,16 @@
updateOriginFormModel(formModel) updateOriginFormModel(formModel)
} }
formRef.value.setValues({ formRef.value.setValues({
claimTaxAmount: Number(Number(claimAmount * taxRate * 0.01).toFixed(2)),// = *
claimTaxTotal :Number(Number(Number(claimAmount) + Number(claimTaxAmount)).toFixed(2)),// = +
moldTaxTotal :Number(Number(Number(moldUntaxedAmount) + Number(moldTaxAmount)).toFixed(2)),// = +
moldTaxAmount: Number(Number(moldUntaxedAmount * taxRate * 0.01).toFixed(2)),// = * moldTaxAmount: Number(Number(moldUntaxedAmount * taxRate * 0.01).toFixed(2)),// = *
afterTaxAmount: amount + taxAmount, // 3+- afterTaxAmount: amount + taxAmount, // 3+-
invoiceAmountMain: amount - claimAmount, // - invoiceAmountMain: amount - claimAmount, // -
adTaxAmount: beforeTaxAmount + totalTaxAmount, //6+ adTaxAmount: beforeTaxAmount + totalTaxAmount, //6+
beforeTaxDiffAmount: beforeTaxAmount - amount, //- beforeTaxDiffAmount : Number(Number(Number(beforeTaxAmount) - Number(amount)-Number(moldUntaxedAmount) - Number(discountAmount1)- Number(claimAmount)).toFixed(2)), // = - - - -
taxAmountDiff: totalTaxAmount - taxAmount, // - taxAmountDiff :Number(Number(Number(totalTaxAmount) - Number(taxAmount) - Number(moldTaxAmount) - Number(rebateTax) - Number(claimTaxAmount)).toFixed(2)),// = - - - -
totalTaxDiffAmount: beforeTaxDiffAmount + taxAmountDiff, // =+ totalTaxDiffAmount:Number(Number(Number(adTaxAmount) - Number(afterTaxAmount) - Number(moldTaxTotal) - Number(rebateTotal) - Number(claimTaxTotal)).toFixed(2)),// = - - - -
rebateTax: Number(Number(discountAmount1 * taxRate * 0.01).toFixed(2)), rebateTax: Number(Number(discountAmount1 * taxRate * 0.01).toFixed(2)),
rebateTotal: rebateTax + discountAmount1, rebateTotal: rebateTax + discountAmount1,
beforeTaxAmount : Number(Number(Number(moldUntaxedAmount) + Number(amount)-Number(claimAmount) - Number(discountAmount1)).toFixed(2)), // = +- beforeTaxAmount : Number(Number(Number(moldUntaxedAmount) + Number(amount)-Number(claimAmount) - Number(discountAmount1)).toFixed(2)), // = +-
@ -135,14 +145,17 @@
updateOriginFormModel(formModel) updateOriginFormModel(formModel)
} }
formRef.value.setValues({ formRef.value.setValues({
claimTaxAmount: Number(Number(claimAmount * taxRate * 0.01).toFixed(2)),// = *
claimTaxTotal :Number(Number(Number(claimAmount) + Number(claimTaxAmount)).toFixed(2)),// = +
moldTaxTotal :Number(Number(Number(moldUntaxedAmount) + Number(moldTaxAmount)).toFixed(2)),// = +
moldTaxAmount: Number(Number(moldUntaxedAmount * taxRate * 0.01).toFixed(2)),// = * moldTaxAmount: Number(Number(moldUntaxedAmount * taxRate * 0.01).toFixed(2)),// = *
taxAmount: taxAmount_, taxAmount: taxAmount_,
afterTaxAmount: amount + taxAmount, // 3+- afterTaxAmount: amount + taxAmount, // 3+-
invoiceAmountMain: amount - claimAmount, // - invoiceAmountMain: amount - claimAmount, // -
adTaxAmount: beforeTaxAmount + totalTaxAmount, //6+ adTaxAmount: beforeTaxAmount + totalTaxAmount, //6+
beforeTaxDiffAmount: beforeTaxAmount - amount, //- beforeTaxDiffAmount : Number(Number(Number(beforeTaxAmount) - Number(amount)-Number(moldUntaxedAmount) - Number(discountAmount1)- Number(claimAmount)).toFixed(2)), // = - - - -
taxAmountDiff: totalTaxAmount - taxAmount, // - taxAmountDiff :Number(Number(Number(totalTaxAmount) - Number(taxAmount) - Number(moldTaxAmount) - Number(rebateTax) - Number(claimTaxAmount)).toFixed(2)),// = - - - -
totalTaxDiffAmount: beforeTaxDiffAmount + taxAmountDiff, // =+ totalTaxDiffAmount:Number(Number(Number(adTaxAmount) - Number(afterTaxAmount) - Number(moldTaxTotal) - Number(rebateTotal) - Number(claimTaxTotal)).toFixed(2)),// = - - - -
rebateTax: Number(Number(discountAmount1 * taxRate * 0.01).toFixed(2)), rebateTax: Number(Number(discountAmount1 * taxRate * 0.01).toFixed(2)),
rebateTotal: rebateTax + discountAmount1, rebateTotal: rebateTax + discountAmount1,
beforeTaxAmount : Number(Number(Number(moldUntaxedAmount) + Number(amount)-Number(claimAmount) - Number(discountAmount1)).toFixed(2)), // = +- beforeTaxAmount : Number(Number(Number(moldUntaxedAmount) + Number(amount)-Number(claimAmount) - Number(discountAmount1)).toFixed(2)), // = +-

176
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -256,7 +256,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
{ {
label: '供应商维护未税金额', label: '材料款未税金额', // 供应商维护未税金额
field: 'amount', field: 'amount',
formatter: accountantFormart, formatter: accountantFormart,
table: { table: {
@ -275,14 +275,34 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
precision: 2, precision: 2,
} }
}, },
// {
// label: '发票总额',
// field: 'invoiceAmountMain',
// formatter: accountantFormart,
// sortTableDefault: 3,
// table: {
// width: 160
// },
// form: {
// component: 'InputNumber',
// componentProps: {
// precision: 2,
// disabled: true,
// }
// },
// tableForm: {
// type: 'InputNumber',
// precision: 2,
// },
// },
{ {
label: '发票总额', label: '模具未税金额',
field: 'invoiceAmountMain', field: 'moldUntaxedAmount',
formatter: accountantFormart, formatter: accountantFormart,
sortTableDefault: 3,
table: { table: {
width: 160 width: 160
}, },
sortTableDefault:8,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
@ -293,11 +313,11 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
precision: 2, precision: 2,
}, }
}, },
{ {
label: '模具额', label: '模具税额',
field: 'moldUntaxedAmount', field: 'moldTaxAmount',
formatter: accountantFormart, formatter: accountantFormart,
table: { table: {
width: 160 width: 160
@ -316,8 +336,8 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
{ {
label: '模具税额', label: '模具价税合计',
field: 'moldTaxAmount', field: 'moldTaxTotal',
formatter: accountantFormart, formatter: accountantFormart,
table: { table: {
width: 160 width: 160
@ -394,7 +414,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
// isTableForm:false // isTableForm:false
// }, // },
{ {
label: '供应商维护税额', label: '材料款税额',//'供应商维护税额',
field: 'taxAmount', field: 'taxAmount',
formatter: accountantFormart, formatter: accountantFormart,
table: { table: {
@ -414,7 +434,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
{ {
label: '供应商维护价税合计', label: '材料款价税合计',//'供应商维护价税合计',
field: 'afterTaxAmount', field: 'afterTaxAmount',
formatter: accountantFormart, formatter: accountantFormart,
table: { table: {
@ -955,7 +975,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
{ {
label: '索赔总额', label: '索赔未税金额',//'索赔总额',
field: 'claimAmount', field: 'claimAmount',
sort: 'custom', sort: 'custom',
table: { table: {
@ -976,6 +996,46 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
}, },
{
label: '索赔税额',
field: 'claimTaxAmount',
formatter: accountantFormart,
table: {
width: 160
},
sortTableDefault:8,
form: {
component: 'InputNumber',
componentProps: {
precision: 2,
disabled: true,
}
},
tableForm: {
type: 'InputNumber',
precision: 2,
}
},
{
label: '索赔价税合计',
field: 'claimTaxTotal',
formatter: accountantFormart,
table: {
width: 160
},
sortTableDefault:8,
form: {
component: 'InputNumber',
componentProps: {
precision: 2,
disabled: true,
}
},
tableForm: {
type: 'InputNumber',
precision: 2,
}
},
{ {
label: '采购审批时间', label: '采购审批时间',
field: 'procurementCreateTime', field: 'procurementCreateTime',
@ -1282,7 +1342,7 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
isDetail: true, isDetail: true,
}, },
{ {
label: '材料未税金额', label: '代开发票未税金额',
field: 'purchaseAmountTotalMain', field: 'purchaseAmountTotalMain',
formatter: accountantFormart, formatter: accountantFormart,
sortTableDefault: 6, sortTableDefault: 6,
@ -1417,7 +1477,7 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
isDetail: true, isDetail: true,
}, },
{ {
label: '供应商维护价税合计', label: '材料款价税合计',//'供应商维护价税合计',
field: 'afterTaxAmount', field: 'afterTaxAmount',
formatter: accountantFormart, formatter: accountantFormart,
@ -1452,7 +1512,7 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
}, },
}, },
{ {
label: '供应商维护未税金额', label: '材料款未税金额', //供应商维护未税金额
field: 'amount', field: 'amount',
formatter: accountantFormart, formatter: accountantFormart,
@ -1485,7 +1545,7 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
isDetail: true, isDetail: true,
}, },
{ {
label: '供应商维护税额', label: '材料款税额',//'供应商维护税额',
field: 'taxAmount', field: 'taxAmount',
formatter: accountantFormart, formatter: accountantFormart,
sortTableDefault: 6, sortTableDefault: 6,
@ -1637,7 +1697,7 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
} }
}, },
{ {
label: '索赔总额', label: '索赔未税金额',//'索赔总额',
field: 'claimAmount', field: 'claimAmount',
sort: 'custom', sort: 'custom',
table: { table: {
@ -1659,25 +1719,69 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
}, },
{ {
label: '发票总额', label: '索赔税额',
field: 'invoiceAmountMain', field: 'claimTaxAmount',
formatter: accountantFormart, sort: 'custom',
table: { table: {
width: 160 width: 180
}, },
sortTableDefault: 8, isTable: true,
isDetail: true,
isTableForm: false,
isForm: true,
isSearch: false,
sortTableDefault: 12,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
precision: 2, precision: 5,
disabled: true, disabled: true,
} }
}, },
tableForm: {
type: 'InputNumber',
precision: 2,
}, },
{
label: '索赔价税合计',
field: 'claimTaxTotal',
sort: 'custom',
table: {
width: 180
}, },
isTable: true,
isDetail: true,
isTableForm: false,
isForm: true,
isSearch: false,
sortTableDefault: 12,
form: {
component: 'InputNumber',
componentProps: {
precision: 5,
disabled: true,
}
},
},
// {
// label: '发票总额',
// field: 'invoiceAmountMain',
// formatter: accountantFormart,
// table: {
// width: 160
// },
// sortTableDefault: 8,
// form: {
// component: 'InputNumber',
// componentProps: {
// precision: 2,
// disabled: true,
// }
// },
// tableForm: {
// type: 'InputNumber',
// precision: 2,
// },
// },
{ {
label: '金税票号', label: '金税票号',
field: 'goldenTaxInvoiceNumber', field: 'goldenTaxInvoiceNumber',
@ -1734,6 +1838,26 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
precision: 2, precision: 2,
} }
}, },
{
label: '模具价税合计',
field: 'moldTaxTotal',
formatter: accountantFormart,
table: {
width: 160
},
sortTableDefault:8,
form: {
component: 'InputNumber',
componentProps: {
precision: 2,
disabled: true,
}
},
tableForm: {
type: 'InputNumber',
precision: 2,
}
},
])) ]))
const singlePriceFormart = (row, column, cellValue) => { const singlePriceFormart = (row, column, cellValue) => {

Loading…
Cancel
Save