Browse Source

Merge remote-tracking branch 'remotes/origin/intex_online20250427' into intex

intex
刘忱 1 day ago
parent
commit
47f48488cd
  1. 31
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
  2. 46
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
  3. 5
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
  4. 20
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

31
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue

@ -42,7 +42,9 @@
taxAmountDiff = 0,
rebateTax = 0,
moldUntaxedAmount=0,
materialsUntaxedAmount=0
materialsUntaxedAmount=0,
alreadyMoldUntaxedAmount=0
} = formModel
// 2X*2
if (formType == 'update') {
@ -62,9 +64,8 @@
let moldTaxAmount = Number(Number(moldUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2)
// 6 materialsTaxAmount = */100
let materialsTaxAmount = Number(Number(materialsUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2)
// *
let allAmount = tableData.reduce((prev, item) =>prev + Number((Number(item['allocationPrice'])*Number(item['qty'])).toFixed(2)),0).toFixed(2)
// 8 alreadyMoldTaxAmount = **
let alreadyMoldTaxAmount = tableData.reduce((prev, item) => prev + Number((Number(item['allocationPrice']) * Number(item['qty']) * Number(taxRate) * 0.01).toFixed(2)), 0).toFixed(2)
formRef.value.setValues({
//
taxAmount:mainTaxAmount,
@ -78,9 +79,8 @@
materialsTaxAmount: materialsTaxAmount,
// -= +
materialsTaxTotal: (Number(materialsUntaxedAmount) + Number(materialsTaxAmount)).toFixed(2),
// allocationDifferenceBeforeTax : *
// allocationDifferenceBeforeTax: (Number(moldUntaxedAmount) - Number(allAmount)).toFixed(2),
//
alreadyMoldTaxAmount: alreadyMoldTaxAmount,
})
}
}
@ -100,9 +100,11 @@
let materialsUntaxedAmount = tableData.reduce((prev, item) =>prev + Number((Number(item['price'])*Number(item['qty'])).toFixed(2)),0).toFixed(2)
// 6 materialsTaxAmount = */100
let materialsTaxAmount = Number(Number(materialsUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2)
// *
let allAmount = tableData.reduce((prev, item) =>prev + Number((Number(item['allocationPrice'])*Number(item['qty'])).toFixed(2)),0).toFixed(2)
//  7=*
let alreadyMoldUntaxedAmount = tableData.reduce((prev, item) =>prev + Number((Number(item['allocationPrice'])*Number(item['qty'])).toFixed(2)),0).toFixed(2)
// 8 alreadyMoldTaxAmount = **
let alreadyMoldTaxAmount = tableData.reduce((prev, item) => prev + Number((Number((Number(item['allocationPrice']) * Number(item['qty'])).toFixed(2)) * Number(taxRate) * 0.01).toFixed(2)), 0).toFixed(2)
const sumObject = {
//
beforeTaxAmount:mainBeforeTaxAmount,
@ -122,8 +124,13 @@
materialsTaxAmount: materialsTaxAmount,
// -= +
materialsTaxTotal: (Number(materialsUntaxedAmount) + Number(materialsTaxAmount)).toFixed(2),
// allocationDifferenceBeforeTax : *
allocationDifferenceBeforeTax: (Number(moldUntaxedAmount) - Number(allAmount)).toFixed(2),
//
alreadyMoldUntaxedAmount: alreadyMoldUntaxedAmount,
//
alreadyMoldTaxAmount: alreadyMoldTaxAmount,
// =-
moldTaxAmountDiff: (Number(alreadyMoldUntaxedAmount) - Number(moldUntaxedAmount)).toFixed(2),
}
formRef.value.setValues(sumObject)
}

46
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts

@ -290,9 +290,49 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true,
}
},
}, {
label: '模具未税尾差',
field: 'allocationDifferenceBeforeTax',
},
// {
// label: '模具未税尾差',
// field: 'allocationDifferenceBeforeTax',
// formatter: accountantFormart,
// table: {
// width: 160
// },
// form: {
// componentProps: {
// disabled: true,
// }
// },
// },
{
label: '已分摊模具未税金额',
field: 'alreadyMoldUntaxedAmount',
formatter: accountantFormart,
table: {
width: 160
},
form: {
componentProps: {
disabled: true,
}
},
},
{
label: '已分摊模具税额',
field: 'alreadyMoldTaxAmount',
formatter: accountantFormart,
table: {
width: 160
},
form: {
componentProps: {
disabled: true,
}
},
},
{
label: '模具未税差异',
field: 'moldTaxAmountDiff',
formatter: accountantFormart,
table: {
width: 160

5
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue

@ -61,6 +61,7 @@
@buttonBaseClick="detailButtonBaseClick"
@searchTableSuccessDetail="searchTableSuccessDetail"
@handleMainFefresh='handleMainFefresh'
>
<template #taxAmount="scrop">
{{scrop.row.taxAmount.toFixed(2)}}
@ -116,7 +117,9 @@ const { tableObject, tableMethods } = useTable({
const updataTableColumns = (val) => {
tableColumns.value = val
}
const handleMainFefresh=()=>{
getList()
}
//
const detailButtonBaseClick = async (val, item,tableObject) => {
if (val == 'export') {

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

@ -819,15 +819,6 @@ const butttondata = (row, $index) => {
hasPermi: 'wms:supplierinvoice-request-main:financeApp',
link: true //
},
{
label: t('ts.财务驳回'),
name: 'finance_mainPlanTur',
hide: isShowMainButton(row, ['4']),
type: 'danger',
color: '',
link: true, //
hasPermi: 'wms:supplierinvoice-request-main:financeRej'
},
defaultButtons.mainListEditBtn({
hasPermi: 'wms:supplierinvoice-request-main:update',
hide: isShowMainButton(row, ['1', '3', '6', '7'])
@ -851,6 +842,14 @@ const butttondata = (row, $index) => {
color: '',
link: true, //
hasPermi: ''
},{
label: t('ts.财务驳回'),
name: 'finance_mainPlanTur',
hide: isShowMainButton(row, ['4']),
type: 'danger',
color: '',
link: true, //
hasPermi: 'wms:supplierinvoice-request-main:financeRej'
}
,{
label: t('导出对账单明细'),
@ -860,7 +859,8 @@ const butttondata = (row, $index) => {
color: '',
link: true, //
hasPermi: 'wms:supplierinvoice-request-main:export_statement_detail'
}
},
]
}

Loading…
Cancel
Save