Browse Source

YT-2391SCP供应商开票申请明细中增加字段,

intex_online20250725
张立 2 days ago
parent
commit
2b4ae267ed
  1. 75
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

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

@ -172,7 +172,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
isSearch: true, isSearch: true,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: {     componentProps: {
enterSearch: true, enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
@ -1291,12 +1291,12 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
} }
])) ]))
export const accountantFormartDetail = ( cellValue) => { export const accountantFormartDetail = (row, column, cellValue) => {
if (cellValue == 0) { if (cellValue == 0) {
return cellValue return cellValue
} }
if (!cellValue) { if (!cellValue) {
return '' return 0
} }
cellValue = cellValue + '' || '' cellValue = cellValue + '' || ''
cellValue = String(Math.round(Number(cellValue) * 100) / 100) cellValue = String(Math.round(Number(cellValue) * 100) / 100)
@ -1942,6 +1942,12 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
])) ]))
const singlePriceFormart = (row, column, cellValue) => { const singlePriceFormart = (row, column, cellValue) => {
if (cellValue == 0) {
return cellValue
}
if (!cellValue) {
return 0
}
cellValue = String(Math.round(Number(cellValue) * 100000) / 100000) cellValue = String(Math.round(Number(cellValue) * 100000) / 100000)
cellValue = cellValue + '' || '' cellValue = cellValue + '' || ''
@ -2249,6 +2255,27 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
disabled: true disabled: true
} }
}, },
{
label: '金额(含模具费)',
field: 'singleAndAllocateAmount',
formatter: accountantFormartDetail,
table: {
width: 150
},
isForm: false,
form: {
componentProps: {
disabled: true,
precision: 2,
}
},
isTableForm: false,
tableForm: {
disabled: true,
type: 'InputNumber',
precision: 2,
}
},
{ {
label: '总差额', label: '总差额',
field: 'differencePriceTotal', field: 'differencePriceTotal',
@ -2281,6 +2308,27 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
precision: 5, precision: 5,
} }
}, },
{
label: '金额(模具费)',
field: 'allocationAmount',
formatter: accountantFormartDetail,
table: {
width: 150
},
isForm: false,
form: {
componentProps: {
disabled: true,
precision: 2,
}
},
isTableForm: false,
tableForm: {
disabled: true,
type: 'InputNumber',
precision: 2,
}
},
{ {
label: '模具分摊单价', label: '模具分摊单价',
field: 'allocationPrice', field: 'allocationPrice',
@ -2301,6 +2349,27 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
precision: 5, precision: 5,
} }
}, },
{
label: '含模具费单价',
field: 'singleAndAllocatePrice',
formatter: singlePriceFormart,
table: {
width: 150
},
isForm: false,
form: {
componentProps: {
disabled: true,
precision: 5,
}
},
isTableForm: false,
tableForm: {
disabled: true,
type: 'InputNumber',
precision: 5,
}
},
{ {
label: '到货数量', label: '到货数量',
field: 'arrivalQty', field: 'arrivalQty',

Loading…
Cancel
Save