Browse Source

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

intex_online20250725
张立 3 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,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {    
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
@ -1291,12 +1291,12 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
},
}
]))
export const accountantFormartDetail = ( cellValue) => {
export const accountantFormartDetail = (row, column, cellValue) => {
if (cellValue == 0) {
return cellValue
}
if (!cellValue) {
return ''
return 0
}
cellValue = cellValue + '' || ''
cellValue = String(Math.round(Number(cellValue) * 100) / 100)
@ -1942,6 +1942,12 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive<CrudSche
]))
const singlePriceFormart = (row, column, cellValue) => {
if (cellValue == 0) {
return cellValue
}
if (!cellValue) {
return 0
}
cellValue = String(Math.round(Number(cellValue) * 100000) / 100000)
cellValue = cellValue + '' || ''
@ -2249,6 +2255,27 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
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: '总差额',
field: 'differencePriceTotal',
@ -2281,6 +2308,27 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
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: '模具分摊单价',
field: 'allocationPrice',
@ -2301,6 +2349,27 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
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: '到货数量',
field: 'arrivalQty',

Loading…
Cancel
Save