diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts index fb194318a..efb1f04f5 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts @@ -204,16 +204,16 @@ export const InventorymoveJobMain = useCrudSchemas(reactive([ // }, // isTable: false, // }, - { - label: '备注', - field: 'remark', - sort: 'custom', - table: { - width: 150 - }, - isTable: true, - sortTableDefault:1000, - }, + // { + // label: '备注', + // field: 'remark', + // sort: 'custom', + // table: { + // width: 150 + // }, + // isTable: true, + // sortTableDefault:1000, + // }, // { // label: '自动完成', // field: 'autoComplete', diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts index b7100c73e..21dcf9de5 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts @@ -289,15 +289,15 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive([ // width: 150 // }, // }, - { - label: '备注', - field: 'remark', - sort: 'custom', - table: { - width: 150 - }, - sortTableDefault:32, - }, + // { + // label: '备注', + // field: 'remark', + // sort: 'custom', + // table: { + // width: 150 + // }, + // sortTableDefault:32, + // }, { label: '创建时间', field: 'createTime', diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue index c222d6d06..377240059 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue @@ -749,7 +749,7 @@ const submitForm = async (formType, submitData) => { parseFloat(filter.inventoryQty) > 0 && parseFloat(filter.inventoryQty) < parseFloat(filter.qty) ); if(cmdExists){ - message.warning("库存数量为正式,则数量不能大于库存数量") + message.warning("库存数量为正时,数量不能大于库存数量") return } // 1. 筛选出 inventoryQty <= 0 的记录,并提取它们的 itemCode diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue index 0a0844360..1ba93df32 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue @@ -76,6 +76,7 @@ :buttondataTable="buttondataTable" @tableFormButton="tableFormButton" :isShowPackNumber="true" + :tabsExtend="true" /> diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts index 268dfd5a4..859b24aa0 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,12 +1691,45 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive table: { width: 150 }, - sortTableDefault:4, - isForm:false, - isTableForm:false, + sortTableDefault: 4, + isForm: false, + isTableForm: false, isDetail: false, isTable: true, }, + { + label: '受入号', + field: 'receivedNumber', + table: { + width: 150 + }, + isForm: false, + isTableForm: false, + isDetail: false, + isTable: true, + }, + { + label: '车型', + field: 'project', + table: { + width: 150 + }, + isForm: false, + isTableForm: false, + isDetail: false, + isTable: true, + }, + { + label: '税率(%)', + field: 'taxRate', + dictType: DICT_TYPE.TAX_RATE_DICT, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + }, { label: '到货时间', field: 'planArriveTime', @@ -1698,9 +1737,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 +1749,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 +1760,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 +1789,8 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive table: { width: 150 }, - tableForm:{ - type:'Select', + tableForm: { + type: 'Select', disabled: true } }, @@ -1783,8 +1822,8 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive table: { width: 150 }, - isForm:false, - tableForm:{ + isForm: false, + tableForm: { disabled: true } }, @@ -1794,19 +1833,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 +1881,74 @@ 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: 'singleAndAllocateTaxAmount', + formatter: accountantFormartDetail, + table: { + width: 150 + }, + isForm: false, + form: { + componentProps: { + disabled: true, + precision: 2, + } + }, + isTableForm: false, + tableForm: { + disabled: true, + type: 'InputNumber', + precision: 2, + } + }, + { + label: '金额(合计金额) ', + field: 'singleAndAllocateTotal', + 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 +1956,7 @@ export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive table: { width: 150 }, - isForm:false, + isForm: false, form: { componentProps: { disabled: true, @@ -1846,6 +1969,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 +2045,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 +2126,7 @@ export const SupplierinvoiceRecordMainTransfer = useCrudSchemas(reactive item.id != 1) @@ -69,11 +69,11 @@ export const PurchaseReceiptOrReturnRecordDetail = useCrudSchemas(reactive( isSearch: true, isForm: false }, - + { label: '供应商代码', field: 'supplierCode', @@ -168,12 +168,12 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( width: 150, fixed: 'left' }, - sortTableDefault:1, + sortTableDefault: 1, isSearch: true, form: { // labelMessage: '信息提示说明!!!', - componentProps: {     - enterSearch:true, + componentProps: { + enterSearch: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 searchField: 'code', // 查询弹窗赋值字段 @@ -206,11 +206,11 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( label: '供应商名称', field: 'supplierName', sort: 'custom', - isSearch:true, + isSearch: true, table: { width: 180, }, - sortTableDefault:2, + sortTableDefault: 2, isForm: false }, { @@ -219,12 +219,12 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( dictType: DICT_TYPE.SUPPLIERINVOICE_REQUEST_STATUS, dictClass: 'string', isTable: true, - isForm:false, + isForm: false, sort: 'custom', table: { width: 150 }, - sortTableDefault:9, + sortTableDefault: 9, isSearch: true, search: { componentProps: { @@ -249,13 +249,13 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( width: 180, fixed: 'left' }, - isTableForm:false, - isTable:false, - isDetail:false, + isTableForm: false, + isTable: false, + isDetail: false, isSearch: true, isForm: false, }, - + { label: '材料款未税金额', // 供应商维护未税金额 field: 'amount', @@ -263,7 +263,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 160 }, - sortTableDefault:8, + sortTableDefault: 8, form: { component: 'InputNumber', componentProps: { @@ -303,7 +303,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 160 }, - sortTableDefault:8, + sortTableDefault: 8, form: { component: 'InputNumber', componentProps: { @@ -323,7 +323,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 160 }, - sortTableDefault:8, + sortTableDefault: 8, form: { component: 'InputNumber', componentProps: { @@ -343,7 +343,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 160 }, - sortTableDefault:8, + sortTableDefault: 8, form: { component: 'InputNumber', componentProps: { @@ -361,7 +361,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( field: 'taxRate', dictType: DICT_TYPE.TAX_RATE_DICT, dictClass: 'string', - sortTableDefault:3, + sortTableDefault: 3, isTable: true, sort: 'custom', table: { @@ -421,7 +421,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:6, + sortTableDefault: 6, form: { component: 'InputNumber', componentProps: { @@ -441,7 +441,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 160 }, - sortTableDefault:7, + sortTableDefault: 7, form: { component: 'InputNumber', componentProps: { @@ -456,7 +456,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( disabled: true, } }, - + // { // label: '调整价差', // field: 'discountAmount', @@ -503,7 +503,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:4, + sortTableDefault: 4, form: { component: 'InputNumber', componentProps: { @@ -523,7 +523,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:3, + sortTableDefault: 3, form: { component: 'InputNumber', componentProps: { @@ -531,7 +531,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( disabled: true, } }, - isTableForm:false, + isTableForm: false, }, { label: '返利税额', @@ -540,7 +540,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:4, + sortTableDefault: 4, form: { component: 'InputNumber', componentProps: { @@ -548,7 +548,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( disabled: true, } }, - isTableForm:false, + isTableForm: false, }, { label: '返利价税合计', @@ -557,7 +557,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:4, + sortTableDefault: 4, form: { component: 'InputNumber', componentProps: { @@ -565,7 +565,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( disabled: true, } }, - isTableForm:false, + isTableForm: false, }, { label: '发票税额', @@ -574,7 +574,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:4, + sortTableDefault: 4, form: { component: 'InputNumber', componentProps: { @@ -582,7 +582,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( disabled: true, } }, - isTableForm:false, + isTableForm: false, }, { label: '发票价税合计', @@ -591,7 +591,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:5, + sortTableDefault: 5, form: { component: 'InputNumber', componentProps: { @@ -599,7 +599,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( disabled: true, } }, - isTableForm:false, + isTableForm: false, }, { label: '是否有价差', @@ -607,25 +607,25 @@ export const SupplierinvoiceRequestMain = 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:5, + sortTableDefault: 5, }, { label: '价差说明', field: 'balanceStatement', isTable: false, - isForm:false, - isSearch:false, + isForm: false, + isSearch: false, sort: 'custom', table: { width: 150 }, - sortTableDefault:5, + sortTableDefault: 5, }, { label: '未税尾差', @@ -634,7 +634,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:5, + sortTableDefault: 5, form: { component: 'InputNumber', componentProps: { @@ -642,7 +642,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( disabled: true, } }, - isTableForm:false, + isTableForm: false, }, { label: '税额尾差', @@ -651,7 +651,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:5, + sortTableDefault: 5, form: { component: 'InputNumber', componentProps: { @@ -659,7 +659,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( disabled: true, } }, - isTableForm:false, + isTableForm: false, }, { label: '价税合计尾差', @@ -668,8 +668,8 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:5, - isTableForm:false, + sortTableDefault: 5, + isTableForm: false, form: { component: 'InputNumber', componentProps: { @@ -678,7 +678,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( } } }, - + // { // label: '总差额', // field: 'totalDifference', @@ -702,24 +702,24 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( { label: '金税票号', field: 'goldenTaxInvoiceNumber', - isTable:true, - isDetail:true, + isTable: true, + isDetail: true, table: { width: 200, }, - sortTableDefault:10, - form:{ + sortTableDefault: 10, + form: { componentProps: { - maxlength:20, - showWordLimit:true + maxlength: 20, + showWordLimit: true } } }, { label: '快递单号', field: 'expressTrackingNumber', - isTable:false, - isForm:false, + isTable: false, + isForm: false, table: { width: 150 }, @@ -735,11 +735,11 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 180 }, - sortTableDefault:11, + sortTableDefault: 11, form: { component: 'DatePicker', componentProps: { - style: {width:'100%'}, + style: { width: '100%' }, type: 'datetime', dateFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', @@ -771,20 +771,20 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 180 }, - isTable:false, - isDetail:false, + isTable: false, + isDetail: false, form: { component: 'DatePicker', componentProps: { disabled: true, - style: {width:'100%'}, + style: { width: '100%' }, type: 'datetime', dateFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', } }, }, - + { label: '申请时间', field: 'requestTime', @@ -796,8 +796,8 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 180 }, - isTable:false, - isForm:false, + isTable: false, + isForm: false, form: { component: 'DatePicker', componentProps: { @@ -814,9 +814,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - isTable:false, - isTableForm:false, - isForm:false, + isTable: false, + isTableForm: false, + isForm: false, formatter: (_: Recordable, __: TableColumn, cellValue: number) => { return userDeptArray.find((account) => account.id == cellValue)?.name }, @@ -839,8 +839,8 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - isTable:false, - sortTableDefault:1001, + isTable: false, + sortTableDefault: 1001, isForm: false, }, { @@ -871,9 +871,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( { label: '供应商创建时间', field: 'requestTime', - isTable:true, + isTable: true, formatter: dateFormatter, - sortTableDefault:1000, + sortTableDefault: 1000, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' }, @@ -890,7 +890,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - isTable:false, + isTable: false, isForm: false, }, { @@ -922,16 +922,16 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:14, + sortTableDefault: 14, isForm: true, - isTable:false, - isDetail:false, - isSearch:true, + isTable: false, + isDetail: false, + isSearch: true, form: { component: 'Select', api: () => purchasingPriceApprover, componentProps: { - options:[], + options: [], optionsAlias: { labelField: 'nickname', valueField: 'id' @@ -958,7 +958,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( component: 'Select', api: () => purchasingPriceApprover, componentProps: { - options:[], + options: [], optionsAlias: { labelField: 'nickname', valueField: 'id' @@ -972,10 +972,10 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:14, + sortTableDefault: 14, isForm: false, - isTable:true, - isDetail:false, + isTable: true, + isDetail: false, form: { component: 'Select', api: () => purchasingPriceApprover, @@ -994,16 +994,16 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 180 }, - isTable:true, + isTable: true, isDetail: true, isTableForm: false, isForm: true, - isSearch:false, + isSearch: false, sortTableDefault: 12, form: { component: 'InputNumber', componentProps: { - precision: 5, + precision: 2, disabled: true, } }, @@ -1016,7 +1016,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 160 }, - sortTableDefault:8, + sortTableDefault: 8, form: { component: 'InputNumber', componentProps: { @@ -1036,7 +1036,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 160 }, - sortTableDefault:8, + sortTableDefault: 8, form: { component: 'InputNumber', componentProps: { @@ -1053,15 +1053,15 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( label: '采购审批时间', field: 'procurementCreateTime', isTable: true, - sortTableDefault:13, + sortTableDefault: 13, 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',//数据转成时间戳 @@ -1080,7 +1080,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - sortTableDefault:14, + sortTableDefault: 14, isForm: false, }, { @@ -1089,11 +1089,11 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 180 }, - sortTableDefault:16, + sortTableDefault: 16, isTable: true, isSearch: false, isForm: false, - isDetail:false, + isDetail: false, }, { label: '财务驳回原因', @@ -1101,25 +1101,25 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 180 }, - sortTableDefault:17, + sortTableDefault: 17, isTable: true, isSearch: false, isForm: false, - isDetail:false, + isDetail: false, }, { label: '财务审批时间', field: 'financialCreateTime', isTable: true, - sortTableDefault:15, + sortTableDefault: 15, 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',//数据转成时间戳 @@ -1135,9 +1135,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( label: '供应商审批人', field: 'supplierCreator', sort: 'custom', - isTable:false, - isDetail:false, - sortTableDefault:1006, + isTable: false, + isDetail: false, + sortTableDefault: 1006, table: { width: 180 }, @@ -1147,9 +1147,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( label: '供应商审批人', field: 'supplierCreatorName', sort: 'custom', - isTable:false, - isDetail:true, - sortTableDefault:1006, + isTable: false, + isDetail: true, + sortTableDefault: 1006, table: { width: 180 }, @@ -1158,15 +1158,15 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( { label: '供应商审批时间', field: 'supplierCreateTime', - isTable:false, + isTable: false, 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',//数据转成时间戳 @@ -1185,7 +1185,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( table: { width: 150 }, - isForm:false, + isForm: false, isTable: false, }, { @@ -1194,9 +1194,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: false, - isForm:false, - isTableForm:false, - isDetail:false, + isForm: false, + isTableForm: false, + isDetail: false, sort: 'custom', table: { width: 150 @@ -1217,9 +1217,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: false, - isForm:false, - isTableForm:false, - isDetail:false, + isForm: false, + isTableForm: false, + isDetail: false, sort: 'custom', table: { width: 150 @@ -1240,9 +1240,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: false, - isForm:false, - isTableForm:false, - isDetail:false, + isForm: false, + isTableForm: false, + isDetail: false, sort: 'custom', table: { width: 150 @@ -1263,9 +1263,9 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive( dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', isTable: false, - isForm:false, - isTableForm:false, - isDetail:false, + isForm: false, + isTableForm: false, + isDetail: false, sort: 'custom', table: { width: 150 @@ -1291,23 +1291,23 @@ export const SupplierinvoiceRequestMain = 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 = String(Math.round(Number(cellValue) * 100) / 100) 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} 供应商发票在详情展示的主表字段 @@ -1349,12 +1349,12 @@ export const SupplierinvoiceRequestDetailMain = useCrudSchemas(reactive { + 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 } function validateTaxRate(rule, value, callback) { - if (value>0) { + if (value > 0) { callback() - }else{ + } else { callback(new Error('税率必须大于0')) } } const validateGoldenTaxInvoiceNumber = (rule, value, callback) => { const reg = /^[0-9]*$/ - if (value==null||value==''||reg.test(value)) { + if (value == null || value == '' || reg.test(value)) { callback() - }else{ + } else { callback(new Error('只能是数字')) } } @@ -1982,10 +1988,10 @@ export const SupplierinvoiceRequestMainRules = reactive({ supplierCode: [ { required: true, message: '请选择供应商代码', trigger: 'change' } ], - invoiceTime:[ + invoiceTime: [ { required: false, message: '请选择发票日期', trigger: 'blur' } ], - goldenTaxInvoiceNumber:[ + goldenTaxInvoiceNumber: [ { required: false, message: '请输入金税票号', trigger: 'blur' }, // { validator:validateGoldenTaxInvoiceNumber, message: '金税票号只能是数字', trigger: 'blur'} ], @@ -2007,7 +2013,7 @@ export const SupplierinvoiceRequestMainRules = reactive({ businessType: [ { required: true, message: '请输入业务类型', trigger: 'blur' } ], - remark: [ + remark: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], procurementCreator: [ @@ -2033,11 +2039,11 @@ export const SupplierinvoiceRequestFinance = useCrudSchemas(reactive { - if (Number(value)>0) { - callback(); + if (Number(value) > 0) { + callback(); } else { callback(new Error('请输入合同价格')); } @@ -2630,10 +2774,10 @@ export const PurchasePass = useCrudSchemas(reactive([ table: { width: 180 }, - isTable:false, + isTable: false, form: { - componentProps:{ - type:'textarea' + componentProps: { + type: 'textarea' } }, }, @@ -2641,8 +2785,8 @@ export const PurchasePass = useCrudSchemas(reactive([ //表单校验 export const PurchasePassRules = reactive({ balanceStatement: [ - { required: true, message: '请输入价差通过说明', trigger: 'blur'}, - { max: 100, message: '最多100字符', trigger: 'blur'} + { required: true, message: '请输入价差通过说明', trigger: 'blur' }, + { max: 100, message: '最多100字符', trigger: 'blur' } ], }) /** @@ -2656,7 +2800,7 @@ export const ClaimDetails = useCrudSchemas(reactive([ width: 150 }, tableForm: { - disabled:true + disabled: true } }, { @@ -2699,5 +2843,5 @@ export const ClaimDetails = useCrudSchemas(reactive([ disabled: true } }, - + ]))