Browse Source

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

intex
songguoqiang 1 day ago
parent
commit
8fb474422c
  1. 56
      src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts
  2. 29
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
  3. 46
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts
  4. 5
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/index.vue
  5. 20
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

56
src/views/wms/deliversettlementManage/customerSaleInvoiceRecordMain/customerSaleInvoiceRecordMain.data.ts

@ -280,25 +280,65 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
type: 'InputNumber', type: 'InputNumber',
precision: 2, precision: 2,
} }
}, { },
label: '模具未税尾差', // {
field: 'allocationDifferenceBeforeTax', // label: '模具未税尾差',
// field: 'allocationDifferenceBeforeTax',
// formatter: accountantFormart,
// table: {
// width: 160
// },
// form: {
// component: 'InputNumber',
// componentProps: {
// precision: 2,
// disabled: true,
// }
// },
// tableForm: {
// type: 'InputNumber',
// precision: 2,
// }
// },
{
label: '已分摊模具未税金额',
field: 'alreadyMoldUntaxedAmount',
formatter: accountantFormart, formatter: accountantFormart,
table: { table: {
width: 160 width: 160
}, },
form: { form: {
component: 'InputNumber',
componentProps: { componentProps: {
precision: 2,
disabled: true, disabled: true,
} }
}, },
tableForm: { },
type: 'InputNumber', {
precision: 2, label: '已分摊模具税额',
field: 'alreadyMoldTaxAmount',
formatter: accountantFormart,
table: {
width: 160
},
form: {
componentProps: {
disabled: true,
}
},
},
{
label: '模具未税差异',
field: 'moldTaxAmountDiff',
formatter: accountantFormart,
table: {
width: 160
},
form: {
componentProps: {
disabled: true,
} }
}, },
},
{ {
label: '金税票号', label: '金税票号',
field: 'goldenTaxInvoiceNumber', field: 'goldenTaxInvoiceNumber',

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

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

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

@ -61,6 +61,7 @@
@buttonBaseClick="detailButtonBaseClick" @buttonBaseClick="detailButtonBaseClick"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
@handleMainFefresh='handleMainFefresh'
> >
<template #taxAmount="scrop"> <template #taxAmount="scrop">
{{scrop.row.taxAmount.toFixed(2)}} {{scrop.row.taxAmount.toFixed(2)}}
@ -116,7 +117,9 @@ const { tableObject, tableMethods } = useTable({
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
const handleMainFefresh=()=>{
getList()
}
// //
const detailButtonBaseClick = async (val, item,tableObject) => { const detailButtonBaseClick = async (val, item,tableObject) => {
if (val == 'export') { 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', hasPermi: 'wms:supplierinvoice-request-main:financeApp',
link: true // 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({ defaultButtons.mainListEditBtn({
hasPermi: 'wms:supplierinvoice-request-main:update', hasPermi: 'wms:supplierinvoice-request-main:update',
hide: isShowMainButton(row, ['1', '3', '6', '7']) hide: isShowMainButton(row, ['1', '3', '6', '7'])
@ -851,6 +842,14 @@ const butttondata = (row, $index) => {
color: '', color: '',
link: true, // link: true, //
hasPermi: '' hasPermi: ''
},{
label: t('ts.财务驳回'),
name: 'finance_mainPlanTur',
hide: isShowMainButton(row, ['4']),
type: 'danger',
color: '',
link: true, //
hasPermi: 'wms:supplierinvoice-request-main:financeRej'
} }
,{ ,{
label: t('导出对账单明细'), label: t('导出对账单明细'),
@ -860,7 +859,8 @@ const butttondata = (row, $index) => {
color: '', color: '',
link: true, // link: true, //
hasPermi: 'wms:supplierinvoice-request-main:export_statement_detail' hasPermi: 'wms:supplierinvoice-request-main:export_statement_detail'
} },
] ]
} }

Loading…
Cancel
Save