From c34adbea7897f44a20cb996b13ac3515cf75a233 Mon Sep 17 00:00:00 2001
From: zhang_li
Date: Thu, 7 Aug 2025 11:43:52 +0800
Subject: [PATCH] =?UTF-8?q?YT-2391SCP=E4=BE=9B=E5=BA=94=E5=95=86=E5=BC=80?=
=?UTF-8?q?=E7=A5=A8=E7=94=B3=E8=AF=B7=E6=98=8E=E7=BB=86=E4=B8=AD=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierinvoiceRecordMain.data.ts | 467 ++++++++++--------
1 file changed, 268 insertions(+), 199 deletions(-)
diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts
index 268dfd5a4..f26424a63 100644
--- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts
+++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts
@@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
-import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
+import { dateFormatter, dateFormatter2 } from '@/utils/formatTime'
import { accountantFormart } from '@/utils/formatter'
/**
@@ -8,7 +8,7 @@ import { accountantFormart } from '@/utils/formatter'
export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '单据号',
- field:'number',
+ field: 'number',
sort: 'custom',
table: {
width: 180,
@@ -16,16 +16,16 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
},
isSearch: false
},
-
+
{
label: '发票申请单号',
- field:'requestNumber',
+ field: 'requestNumber',
sort: 'custom',
table: {
width: 180,
},
- sortSearchDefault:1,
- sortTableDefault:1,
+ sortSearchDefault: 1,
+ sortTableDefault: 1,
isSearch: true
},
{
@@ -35,7 +35,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:1,
+ sortTableDefault: 1,
isSearch: true
},
{
@@ -45,9 +45,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 180,
},
- sortTableDefault:2,
+ sortTableDefault: 2,
isForm: false,
- isSearch:true
+ isSearch: true
},
{
label: '税率',
@@ -56,12 +56,12 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:3,
+ sortTableDefault: 3,
form: {
component: 'InputNumber',
}
},
-
+
{
label: '价差合计',
field: 'differencePriceTotalMain',
@@ -81,8 +81,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
dictType: DICT_TYPE.SUPPLIERINVOICE_REQUEST_STATUS,
dictClass: 'string',
isTable: true,
- sortTableDefault:7,
- isForm:false,
+ sortTableDefault: 7,
+ isForm: false,
sort: 'custom',
table: {
width: 150
@@ -102,7 +102,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
}
}
},
-
+
// {
// label: '申请单号',
// field: 'requestNumber',
@@ -117,7 +117,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
label: '订单号',
field: 'poNumber',
sort: 'custom',
- isTable:false,
+ isTable: false,
table: {
width: 150
},
@@ -129,7 +129,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 200
},
- sortTableDefault:5,
+ sortTableDefault: 5,
isSearch: true
},
{
@@ -139,9 +139,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:5,
- isForm:false,
- isTableForm:false
+ sortTableDefault: 5,
+ isForm: false,
+ isTableForm: false
},
{
label: '税额尾差',
@@ -150,9 +150,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:5,
- isForm:false,
- isTableForm:false
+ sortTableDefault: 5,
+ isForm: false,
+ isTableForm: false
},
{
label: '价税合计尾差',
@@ -161,11 +161,11 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:5,
- isForm:false,
- isTableForm:false
+ sortTableDefault: 5,
+ isForm: false,
+ isTableForm: false
},
-
+
{
label: '供应商维护税额',
field: 'taxAmount',
@@ -174,7 +174,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:8,
+ sortTableDefault: 8,
form: {
component: 'InputNumber',
}
@@ -186,9 +186,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:3,
- isForm:false,
- isTableForm:false
+ sortTableDefault: 3,
+ isForm: false,
+ isTableForm: false
},
{
label: '发票税额',
@@ -197,9 +197,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:3,
- isForm:false,
- isTableForm:false
+ sortTableDefault: 3,
+ isForm: false,
+ isTableForm: false
},
{
label: '发票价税合计',
@@ -208,9 +208,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:3,
- isForm:false,
- isTableForm:false
+ sortTableDefault: 3,
+ isForm: false,
+ isTableForm: false
},
{
label: '是否有价差',
@@ -218,26 +218,26 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
dictType: DICT_TYPE.INVOICE_BALANCE_STATEMENT_STATUS,
dictClass: 'string',
isTable: true,
- isForm:false,
- isSearch:false,
+ isForm: false,
+ isSearch: false,
sort: 'custom',
table: {
width: 150
},
- sortTableDefault:3,
+ sortTableDefault: 3,
},
{
label: '价差说明',
field: 'balanceStatement',
isTable: false,
- isForm:false,
- isSearch:false,
+ isForm: false,
+ isSearch: false,
sort: 'custom',
table: {
width: 150
},
- sortTableDefault:5,
+ sortTableDefault: 5,
},
{
label: '供应商维护价税合计',//税后金额
@@ -247,12 +247,12 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 160
},
- sortTableDefault:9,
+ sortTableDefault: 9,
form: {
component: 'InputNumber',
}
},
-
+
{
label: '价差',//总差额
field: 'totalDifference',
@@ -282,7 +282,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 160
},
- sortTableDefault:8,
+ sortTableDefault: 8,
form: {
component: 'InputNumber',
}
@@ -308,7 +308,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- isDetail:false,
+ isDetail: false,
isTable: false,
form: {
component: 'InputNumber',
@@ -319,7 +319,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
field: 'adjustingTaxAmount',
formatter: accountantFormart,
sort: 'custom',
- isDetail:false,
+ isDetail: false,
table: {
width: 150
},
@@ -375,9 +375,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
label: '快递单号',
field: 'expressTrackingNumber',
sort: 'custom',
- isTable:false,
- isForm:false,
- isSearch:false,
+ isTable: false,
+ isForm: false,
+ isSearch: false,
table: {
width: 150
},
@@ -390,16 +390,16 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
- form:{
+ form: {
component: 'DatePicker',
componentProps: {
- style: {width:'100%'},
+ style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
}
},
- sortTableDefault:4,
+ sortTableDefault: 4,
sort: 'custom',
table: {
width: 180
@@ -426,24 +426,24 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
- form:{
+ form: {
component: 'DatePicker',
componentProps: {
- style: {width:'100%'},
+ style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
}
},
isTable: true,
- sortTableDefault:6,
+ sortTableDefault: 6,
sort: 'custom',
table: {
width: 180
},
isSearch: true,
search: {
- value:[],
+ value: [],
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
@@ -462,9 +462,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
width: 180,
fixed: 'left'
},
- isTableForm:false,
- isTable:false,
- isDetail:false,
+ isTableForm: false,
+ isTable: false,
+ isDetail: false,
isSearch: true,
isForm: false,
},
@@ -475,18 +475,18 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 200,
},
- isTable:true,
- sortTableDefault:6,
+ isTable: true,
+ sortTableDefault: 6,
isForm: false
},
-
+
{
label: '业务类型',
- field:'businessType',
+ field: 'businessType',
sort: 'custom',
- isTable:false,
- isTableForm:false,
- isDetail:false,
+ isTable: false,
+ isTableForm: false,
+ isDetail: false,
table: {
width: 150
},
@@ -495,9 +495,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
- isTable:false,
- isTableForm:false,
- isDetail:false,
+ isTable: false,
+ isTableForm: false,
+ isDetail: false,
table: {
width: 150
},
@@ -505,9 +505,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '入库事务类型',
field: 'inTransactionType',
- isTable:false,
- isTableForm:false,
- isDetail:false,
+ isTable: false,
+ isTableForm: false,
+ isDetail: false,
sort: 'custom',
table: {
width: 150
@@ -516,8 +516,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '执行时间',
field: 'executeTime',
- isTable:false,
- isTableForm:false,
+ isTable: false,
+ isTableForm: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@@ -530,8 +530,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '生效日期',
field: 'activeDate',
- isTable:false,
- isTableForm:false,
+ isTable: false,
+ isTableForm: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD'
@@ -544,8 +544,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '申请时间',
field: 'requestTime',
- isTable:false,
- isTableForm:false,
+ isTable: false,
+ isTableForm: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@@ -558,8 +558,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '截止时间',
field: 'dueTime',
- isTable:false,
- isTableForm:false,
+ isTable: false,
+ isTableForm: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@@ -572,8 +572,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '部门',
field: 'departmentCode',
- isTable:false,
- isTableForm:false,
+ isTable: false,
+ isTableForm: false,
sort: 'custom',
table: {
width: 150
@@ -582,9 +582,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '代码',
field: 'code',
- isTable:false,
- isTableForm:false,
- isDetail:false,
+ isTable: false,
+ isTableForm: false,
+ isDetail: false,
sort: 'custom',
table: {
width: 150
@@ -595,9 +595,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
- isTable:false,
- isDetail:false,
- isTableForm:false,
+ isTable: false,
+ isDetail: false,
+ isTableForm: false,
sort: 'custom',
table: {
width: 150
@@ -607,15 +607,15 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
- isTable:false,
- isTableForm:false,
+ isTable: false,
+ isTableForm: false,
dictClass: 'string',
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
- sortTableDefault:1000,
+ sortTableDefault: 1000,
isTable: false,
table: {
width: 150
@@ -650,7 +650,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
label: '供应商创建时间',
field: 'requestTime',
isTable: true,
- sortTableDefault:1001,
+ sortTableDefault: 1001,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@@ -685,7 +685,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
// isTable: false,
// isForm: false,
// },
-
+
{
label: '回转日期',
field: 'reversepostingdate',
@@ -697,12 +697,12 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:11,
+ sortTableDefault: 11,
},
{
label: '发票说明',//回转说明
field: 'tcCInvoiceRemark',
- sortTableDefault:11,
+ sortTableDefault: 11,
table: {
width: 150
},
@@ -714,8 +714,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 200,
},
- sortTableDefault:11,
- isTable:true,
+ sortTableDefault: 11,
+ isTable: true,
isForm: false
},
{
@@ -725,8 +725,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 200,
},
- sortTableDefault:11,
- isTable:true,
+ sortTableDefault: 11,
+ isTable: true,
isForm: false
},
// {
@@ -761,11 +761,11 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 180
},
- isTable:true,
+ isTable: true,
isDetail: true,
isTableForm: false,
isForm: true,
- isSearch:false,
+ isSearch: false,
sortTableDefault: 12,
form: {
component: 'InputNumber',
@@ -779,16 +779,16 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '采购审批时间',
field: 'procurementCreateTime',
- sortTableDefault:11,
+ sortTableDefault: 11,
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
- form:{
+ form: {
component: 'DatePicker',
componentProps: {
- style: {width:'100%'},
+ style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
@@ -807,7 +807,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:12,
+ sortTableDefault: 12,
isForm: false,
},
{
@@ -817,23 +817,23 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
table: {
width: 150
},
- sortTableDefault:12,
+ sortTableDefault: 12,
isForm: false,
},
-
+
{
label: '财务审批时间',
field: 'financialCreateTime',
- sortTableDefault:13,
+ sortTableDefault: 13,
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
- form:{
+ form: {
component: 'DatePicker',
componentProps: {
- style: {width:'100%'},
+ style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
@@ -873,8 +873,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
label: '供应商审批人',
field: 'supplierCreatorName',
sort: 'custom',
- isTable:false,
- isTableForm:false,
+ isTable: false,
+ isTableForm: false,
table: {
width: 150
},
@@ -883,8 +883,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '供应商审批时间',
field: 'supplierCreateTime',
- isTable:false,
- isTableForm:false,
+ isTable: false,
+ isTableForm: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
@@ -898,8 +898,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
{
label: '凭证描述',
field: 'voucherNumberRemark',
- isTable:true,
- isTableForm:false,
+ isTable: true,
+ isTableForm: false,
sort: 'custom',
table: {
width: 180
@@ -917,23 +917,23 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
},
}
]))
-export const accountantFormartDetail = ( cellValue) => {
- if(cellValue == 0){
+export const accountantFormartDetail = (row, column, cellValue) => {
+ if (cellValue == 0) {
return cellValue
}
- if(!cellValue){
- return ''
+ if (!cellValue) {
+ return 0
}
cellValue = cellValue + '' || ''
cellValue = Number(cellValue).toFixed(2)
let x = cellValue.split('.')
let x1 = x[0]
- let x2 = x.length > 1 ? '.' + x[1] : ''
+ let x2 = x.length > 1 ? '.' + x[1] : ''
const reg = /(\d+)(\d{3})/
- while(reg.test(x1)){
+ while (reg.test(x1)) {
x1 = x1.replace(reg, '$1,$2')
}
- return x1+x2
+ return x1 + x2
}
/**
* @returns {Array} 供应商发票在详情展示的主表字段
@@ -978,12 +978,12 @@ export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive {
- cellValue= Number(cellValue).toFixed(5)
+ if (cellValue == 0) {
+ return cellValue
+ }
+ if (!cellValue) {
+ return 0
+ }
+ cellValue = String(Math.round(Number(cellValue) * 100000) / 100000)
cellValue = cellValue + '' || ''
let x = cellValue.split('.')
let x1 = x[0]
- let x2 = x.length > 1 ? '.' + x[1] : ''
+ let x2 = x.length > 1 ? '.' + x[1] : ''
const reg = /(\d+)(\d{3})/
- while(reg.test(x1)){
+ while (reg.test(x1)) {
x1 = x1.replace(reg, '$1,$2')
}
- return x1+x2
+ return x1 + x2
}
//表单校验
@@ -1573,7 +1579,7 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
{
label: '项目编号',
field: 'projectCode',
- isTable:false,
+ isTable: false,
sort: 'custom',
table: {
width: 150
@@ -1604,7 +1610,7 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
table: {
width: 150
},
- sortTableDefault:7,
+ sortTableDefault: 7,
},
{
label: '订单行',
@@ -1620,20 +1626,20 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
table: {
width: 150
},
- sortTableDefault:9,
+ sortTableDefault: 9,
form: {
componentProps: {
disabled: true
}
},
- tableForm:{
+ tableForm: {
disabled: true
}
},
{
label: '单据号',
field: 'number',
- hiddenInMain:true,
+ hiddenInMain: true,
sort: 'custom',
table: {
width: 180
@@ -1646,7 +1652,7 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
table: {
width: 180
},
- sortTableDefault:8,
+ sortTableDefault: 8,
},
{
label: '供应商代码',
@@ -1660,7 +1666,7 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
label: '品番',
field: 'itemCode',
sort: 'custom',
- sortTableDefault:3,
+ sortTableDefault: 3,
table: {
width: 150
},
@@ -1670,12 +1676,12 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
field: 'backNumber',
sort: 'custom',
isSearch: false,
- hiddenSearchHigh:true,
+ hiddenSearchHigh: true,
table: {
width: 150
},
- sortTableDefault:4,
- isTableForm:false,
+ sortTableDefault: 4,
+ isTableForm: false,
isDetail: false,
isTable: true,
},
@@ -1685,9 +1691,9 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
table: {
width: 150
},
- sortTableDefault:4,
- isForm:false,
- isTableForm:false,
+ sortTableDefault: 4,
+ isForm: false,
+ isTableForm: false,
isDetail: false,
isTable: true,
},
@@ -1698,9 +1704,9 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
width: 150
},
formatter: dateFormatter2,
- sortTableDefault:5,
- isForm:false,
- isTableForm:false,
+ sortTableDefault: 5,
+ isForm: false,
+ isTableForm: false,
isDetail: false,
isTable: true,
},
@@ -1710,9 +1716,9 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
table: {
width: 150
},
- sortTableDefault:6,
- isForm:false,
- isTableForm:false,
+ sortTableDefault: 6,
+ isForm: false,
+ isTableForm: false,
isDetail: false,
isTable: true,
},
@@ -1721,16 +1727,16 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
field: 'purchaseStdUom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
- sortTableDefault:6,
+ sortTableDefault: 6,
table: {
width: 150
},
- isForm:false,
- isTableForm:true,
+ isForm: false,
+ isTableForm: true,
isDetail: false,
isTable: true,
- tableForm:{
- disabled:true
+ tableForm: {
+ disabled: true
}
},
{
@@ -1750,8 +1756,8 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
table: {
width: 150
},
- tableForm:{
- type:'Select',
+ tableForm: {
+ type: 'Select',
disabled: true
}
},
@@ -1783,8 +1789,8 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
table: {
width: 150
},
- isForm:false,
- tableForm:{
+ isForm: false,
+ tableForm: {
disabled: true
}
},
@@ -1794,19 +1800,40 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
table: {
width: 150
},
- isForm:false,
- tableForm:{
+ isForm: false,
+ tableForm: {
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',
table: {
width: 150
},
- isForm:false,
- tableForm:{
+ isForm: false,
+ tableForm: {
disabled: true
}
},
@@ -1821,11 +1848,32 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
disabled: true
}
},
- tableForm:{
+ tableForm: {
type: 'slot',
disabled: true
}
},
+ {
+ 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',
@@ -1833,7 +1881,7 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
table: {
width: 150
},
- isForm:false,
+ isForm: false,
form: {
componentProps: {
disabled: true,
@@ -1846,6 +1894,27 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
precision: 2,
}
},
+ {
+ 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: 'untaxedDifference',
@@ -1901,7 +1970,7 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive
form: {
component: 'DatePicker',
componentProps: {
- style: {width:'100%'},
+ style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
@@ -1982,7 +2051,7 @@ export const SupplierinvoiceRecordMainTransfer = useCrudSchemas(reactive