From bd682e3b812ebb88ebf4d94de7fad561a38b566e Mon Sep 17 00:00:00 2001
From: wangyufei <2267742828@qq.com>
Date: Fri, 12 Jul 2024 10:23:54 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=B7=E5=B7=AE=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../index.vue | 325 ++++
.../supplierinvoiceRecordMain.data.ts | 1557 +++++++++++++++++
2 files changed, 1882 insertions(+)
create mode 100644 src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/index.vue
create mode 100644 src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/supplierinvoiceRecordMain.data.ts
diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/index.vue
new file mode 100644
index 000000000..2e12c467d
--- /dev/null
+++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/index.vue
@@ -0,0 +1,325 @@
+
+
+
+
+
+
+
+ {{' 到 '}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.number }}
+
+
+
+ {{ row.differencePrice }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.differencePrice }}
+
+
+
+
+
+
diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/supplierinvoiceRecordMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/supplierinvoiceRecordMain.data.ts
new file mode 100644
index 000000000..d8edcb341
--- /dev/null
+++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMainDifference/supplierinvoiceRecordMain.data.ts
@@ -0,0 +1,1557 @@
+import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
+import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
+import { accountantFormart } from '@/utils/formatter'
+
+/**
+ * @returns {Array} 供应商发票记录主表
+ */
+export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([
+ {
+ label: '单据号',
+ field:'number',
+ sort: 'custom',
+ table: {
+ width: 180,
+ fixed: 'left'
+ },
+ isSearch: false
+ },
+ {
+ label: '发票申请单号',
+ field:'requestNumber',
+ sort: 'custom',
+ table: {
+ width: 180,
+ fixed: 'left'
+ },
+ sortSearchDefault:1,
+ sortTableDefault:1,
+ isSearch: true
+ },
+ {
+ label: '供应商代码',
+ field: 'supplierCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:1,
+ isSearch: true
+ },
+ {
+ label: '供应商名称',
+ field: 'supplierName',
+ sort: 'custom',
+ table: {
+ width: 180,
+ },
+ sortTableDefault:2,
+ isForm: false,
+ isSearch: true
+ },
+ {
+ label: '税率',
+ field: 'taxRate',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:3,
+ form: {
+ component: 'InputNumber',
+ }
+ },
+
+
+ {
+ label: '状态',
+ field: 'status',
+ dictType: DICT_TYPE.SUPPLIERINVOICE_REQUEST_STATUS,
+ dictClass: 'string',
+ isTable: true,
+ sortTableDefault:7,
+ isForm:false,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isSearch: true,
+ form: {
+ value: '1',
+ componentProps: {
+ disabled: true
+ }
+ }
+ },
+
+ // {
+ // label: '申请单号',
+ // field: 'requestNumber',
+ // sort: 'custom',
+ // table: {
+ // width: 180,
+ // },
+ // isTable: false,
+ // isSearch: true
+ // },
+ {
+ label: '订单号',
+ field: 'poNumber',
+ sort: 'custom',
+ isTable:false,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '金税票号',//金税票号
+ field: 'goldenTaxInvoiceNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:5,
+ isSearch: true
+ },
+ {
+ label: '未税差额',
+ field: 'beforeTaxDiffAmount',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ sortTableDefault:5,
+ isForm:false,
+ isTableForm:false
+ },
+ {
+ label: '税额差异',
+ field: 'taxAmountDiff',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ sortTableDefault:5,
+ isForm:false,
+ isTableForm:false
+ },
+ {
+ label: '价税合计差额',
+ field: 'totalTaxDiffAmount',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ sortTableDefault:5,
+ isForm:false,
+ isTableForm:false
+ },
+
+ {
+ label: '系统税额',
+ field: 'taxAmount',
+ formatter: accountantFormart,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:8,
+ form: {
+ component: 'InputNumber',
+ }
+ },
+ {
+ label: '未税金额',
+ field: 'beforeTaxAmount',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ sortTableDefault:3,
+ isForm:false,
+ isTableForm:false
+ },
+ {
+ label: '税额',
+ field: 'totalTaxAmount',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ sortTableDefault:3,
+ isForm:false,
+ isTableForm:false
+ },
+ {
+ label: '价税合计金额',
+ field: 'adTaxAmount',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ sortTableDefault:3,
+ isForm:false,
+ isTableForm:false
+ },
+ {
+ label: '是否有价差',
+ field: 'balanceStatementStatus',
+ dictType: DICT_TYPE.INVOICE_BALANCE_STATEMENT_STATUS,
+ dictClass: 'string',
+ isTable: true,
+ isForm:false,
+ isSearch:false,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:3,
+ },
+ {
+ label: '价差说明',
+ field: 'balanceStatement',
+ isTable: false,
+ isForm:false,
+ isSearch:false,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:5,
+ },
+ {
+ label: '系统价税合计',//税后金额
+ field: 'afterTaxAmount',
+ formatter: accountantFormart,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:9,
+ form: {
+ component: 'InputNumber',
+ }
+ },
+
+ {
+ label: '价差',//总差额
+ field: 'totalDifference',
+ table: {
+ width: 150
+ },
+ isTable: false,
+ form: {
+ component: 'InputNumber',
+ componentProps: {
+ min: 0,
+ precision: 6,
+ }
+ },
+ tableForm: {
+ type: 'InputNumber',
+ min: 0,
+ precision: 6,
+ }
+ },
+
+ {
+ label: '系统未税金额',
+ field: 'amount',
+ formatter: accountantFormart,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:8,
+ form: {
+ component: 'InputNumber',
+ }
+ },
+
+
+
+ {
+ label: '索赔金额',
+ field: 'claimAmount',
+ formatter: accountantFormart,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable: false,
+ form: {
+ component: 'InputNumber',
+ }
+ },
+ {
+ label: '调整价差',
+ field: 'discountAmount',
+ formatter: accountantFormart,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isDetail:false,
+ isTable: false,
+ form: {
+ component: 'InputNumber',
+ }
+ },
+ {
+ label: '调整税额',
+ field: 'adjustingTaxAmount',
+ formatter: accountantFormart,
+ sort: 'custom',
+ isDetail:false,
+ table: {
+ width: 150
+ },
+ isTable: false,
+ form: {
+ component: 'InputNumber',
+ }
+ },
+
+ {
+ label: '未税差额',
+ field: 'untaxedDifference',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber',
+ componentProps: {
+ min: 0,
+ precision: 6,
+ }
+ },
+ isTable: false,
+ tableForm: {
+ type: 'InputNumber',
+ min: 0,
+ precision: 6,
+ }
+ },
+ {
+ label: '含税差额',
+ field: 'taxInclusiveDifference',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ isTable: false,
+ form: {
+ component: 'InputNumber',
+ componentProps: {
+ min: 0,
+ precision: 6,
+ }
+ },
+ tableForm: {
+ type: 'InputNumber',
+ min: 0,
+ precision: 6,
+ }
+ },
+ {
+ label: '快递单号',
+ field: 'expressTrackingNumber',
+ sort: 'custom',
+ isTable:false,
+ isForm:false,
+ isSearch:false,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '开票日期',
+ field: 'invoiceTime',
+ isTable: true,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ form:{
+ component: 'DatePicker',
+ componentProps: {
+ style: {width:'100%'},
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD',//YYYY-MM-DD
+ valueFormat: 'x',//数据转成时间戳
+ }
+ },
+ sortTableDefault:4,
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ // {
+ // label: '采购审批人',
+ // field: 'procurementCreatorName',
+ // sort: 'custom',
+ // table: {
+ // width: 180
+ // },
+ // isTable:true,
+ // isDetail: true,
+ // isTableForm: false,
+ // isForm:false,
+ // isSearch:false,
+ // sortTableDefault:10
+ // },
+ {
+ label: '过账日期',
+ field: 'postingDate',
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ form:{
+ component: 'DatePicker',
+ componentProps: {
+ style: {width:'100%'},
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD',//YYYY-MM-DD
+ valueFormat: 'x',//数据转成时间戳
+ }
+ },
+ isTable: true,
+ sortTableDefault:6,
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isSearch: true,
+ search: {
+ value:[],
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ dateFormat: 'YYYY-MM-DD',
+ type: 'daterange',
+ defaultTime: [new Date('1 '), new Date('1 ')]
+ }
+ },
+ },
+ {
+ label: '创建日期',
+ field: 'createTime',
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ form:{
+ component: 'DatePicker',
+ componentProps: {
+ style: {width:'100%'},
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD',//YYYY-MM-DD
+ valueFormat: 'x',//数据转成时间戳
+ }
+ },
+ isTable: true,
+ sortTableDefault:6,
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isSearch: true,
+ search: {
+ value:[],
+ component: 'DatePicker',
+ componentProps: {
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ dateFormat: 'YYYY-MM-DD',
+ type: 'daterange',
+ defaultTime: [new Date('1 '), new Date('1 ')]
+ }
+ },
+ },
+ //子表数据,仅是查询条件
+ {
+ label: '货运单号',
+ field: 'asnBillNum',
+ sort: 'custom',
+ table: {
+ width: 180,
+ fixed: 'left'
+ },
+ isTableForm:false,
+ isTable:false,
+ isDetail:false,
+ isSearch: true,
+ isForm: false,
+ },
+ {
+ label: '差价范围',
+ field: 'cha',
+ sort: 'custom',
+ table: {
+ width: 180,
+ fixed: 'left'
+ },
+ isTableForm:false,
+ isTable:false,
+ isDetail:false,
+ isSearch: true,
+ isForm: false,
+ },
+ {
+ label: '财务凭证号',
+ field: 'voucherNumber',
+ sort: 'custom',
+ table: {
+ width: 180,
+ },
+ isTable:true,
+ sortTableDefault:6,
+ isForm: false
+ },
+ {
+ label: '业务类型',
+ field:'businessType',
+ sort: 'custom',
+ isTable:false,
+ isTableForm:false,
+ isDetail:false,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '出库事务类型',
+ field: 'outTransactionType',
+ sort: 'custom',
+ isTable:false,
+ isTableForm:false,
+ isDetail:false,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '入库事务类型',
+ field: 'inTransactionType',
+ isTable:false,
+ isTableForm:false,
+ isDetail:false,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '执行时间',
+ field: 'executeTime',
+ isTable:false,
+ isTableForm:false,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '生效日期',
+ field: 'activeDate',
+ isTable:false,
+ isTableForm:false,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '申请时间',
+ field: 'requestTime',
+ isTable:false,
+ isTableForm:false,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '截止时间',
+ field: 'dueTime',
+ isTable:false,
+ isTableForm:false,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '部门',
+ field: 'departmentCode',
+ isTable:false,
+ isTableForm:false,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '代码',
+ field: 'code',
+ isTable:false,
+ isTableForm:false,
+ isDetail:false,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '接口类型',
+ field: 'interfaceType',
+ dictType: DICT_TYPE.INTERFACE_TYPE,
+ dictClass: 'string',
+ isTable:false,
+ isDetail:false,
+ isTableForm:false,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '是否可用',
+ field: 'available',
+ dictType: DICT_TYPE.TRUE_FALSE,
+ isTable:false,
+ isTableForm:false,
+ dictClass: 'string',
+ },
+ {
+ label: '创建者',
+ field: 'creator',
+ sort: 'custom',
+ sortTableDefault:1000,
+ isTable: false,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ isTable: false,
+ sortTableDefault:1001,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '采购审批人',
+ field: 'procurementCreatorName',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isTable:true,
+ isDetail: true,
+ isTableForm: false,
+ isForm:false,
+ isSearch:false,
+ sortTableDefault:10
+ },
+ // {
+ // label: '采购审批人代码',
+ // field: 'procurementCreator',
+ // sortTableDefault:1002,
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // isTable: false,
+ // isForm: false,
+ // },
+ {
+ label: '采购审批时间',
+ field: 'procurementCreateTime',
+ sortTableDefault:11,
+ isTable: true,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ form:{
+ component: 'DatePicker',
+ componentProps: {
+ style: {width:'100%'},
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',//YYYY-MM-DD
+ valueFormat: 'x',//数据转成时间戳
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isForm: false,
+ },
+ {
+ label: '财务审批人',
+ field: 'financialCreatorName',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:12,
+ isForm: false,
+ },
+ {
+ label: '财务审批时间',
+ field: 'financialCreateTime',
+ sortTableDefault:13,
+ isTable: true,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ form:{
+ component: 'DatePicker',
+ componentProps: {
+ style: {width:'100%'},
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',//YYYY-MM-DD
+ valueFormat: 'x',//数据转成时间戳
+ }
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isForm: false,
+ },
+ // {
+ // label: '采购驳回原因',
+ // field: 'purchaseRejectCause',
+ // table: {
+ // width: 180
+ // },
+ // sortTableDefault:14,
+ // isTable: true,
+ // isSearch: false,
+ // isForm: false,
+ // isDetail:false,
+ // },
+ // {
+ // label: '财务驳回原因',
+ // field: 'financeRejectCause',
+ // table: {
+ // width: 180
+ // },
+ // sortTableDefault:15,
+ // isTable: true,
+ // isSearch: false,
+ // isForm: false,
+ // isDetail:false,
+ // },
+ {
+ label: '供应商审批人',
+ field: 'supplierCreatorName',
+ sort: 'custom',
+ isTable:false,
+ isTableForm:false,
+ table: {
+ width: 150
+ },
+ isForm: false,
+ },
+ {
+ label: '供应商审批时间',
+ field: 'supplierCreateTime',
+ isTable:false,
+ isTableForm:false,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isForm: false,
+ },
+ {
+ label: '凭证描述',
+ field: 'voucherNumberRemark',
+ isTable:true,
+ isTableForm:false,
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ isForm: false,
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isDetail: false,
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ },
+ }
+]))
+/**
+ * @returns {Array} 供应商发票在详情展示的主表字段
+ */
+export const SupplierinvoiceRecordDetailMain = useCrudSchemas(reactive([
+ {
+ label: '汇总信息',
+ field: '',
+ sort: 'custom',
+ isForm: false,
+ isSearch: false,
+ isTable: false,
+ isDetail: true,
+ },
+ {
+ label: '供应商信息',
+ field: '',
+ sort: 'custom',
+ isForm: false,
+ isSearch: false,
+ isTable: false,
+ isDetail: true,
+ },
+ {
+ label: 'SCP系统数据',
+ field: '',
+ sort: 'custom',
+ isForm: false,
+ isSearch: false,
+ isTable: false,
+ isDetail: true,
+ },
+
+ {
+ label: '单据号',
+ field: 'number',
+ sort: 'custom',
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '供应商代码',
+ field: 'supplierCode',
+ sort: 'custom',
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '系统价税合计',
+ field: 'afterTaxAmount',
+ formatter: accountantFormart,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '财务凭证号',
+ field: 'voucherNumber',
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '供应商名称',
+ field: 'supplierName',
+ sort: 'custom',
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '系统未税金额',
+ field: 'amount',
+ formatter: accountantFormart,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '供应商创建日期',
+ field: 'supplierDate',
+ sort: 'custom',
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '订单类型',
+ field: 'orderType',
+ dictType: DICT_TYPE.PURCHASE_INVOICE_ORDER_TYPE,
+ dictClass: 'string',
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '系统税额',
+ field: 'taxAmount',
+ formatter: accountantFormart,
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '状态',
+ field: 'status',
+ dictType: DICT_TYPE.SUPPLIERINVOICE_REQUEST_STATUS,
+ dictClass: 'string',
+ sort: 'custom',
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '发票号码',
+ field: 'goldenTaxInvoiceNumber',
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '',
+ field: '',
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '采购价格审批人',
+ field: 'procurementCreator',
+ sortTableDefault: 1003,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '开票日期',
+ field: 'invoiceTime',
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '',
+ field: '',
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '采购价格审批时间',
+ field: 'procurementCreateTime',
+ sortTableDefault: 1003,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '税率(%)',
+ field: 'taxRate',
+ dictType: DICT_TYPE.TAX_RATE_DICT,
+ dictClass: 'string',
+ sortTableDefault: 3,
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '',
+ field: '',
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '价差通过说明',
+ field: 'balanceStatement',
+ sort: 'custom',
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '价税合计',
+ field: 'adTaxAmount',
+ formatter: accountantFormart,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '',
+ field: '',
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+
+ {
+ label: '财务审批人',
+ field: 'financialCreatorName',
+ sort: 'custom',
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '未税金额',
+ field: 'beforeTaxAmount',
+ formatter: accountantFormart,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '差额',
+ field: '',
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '财务审批时间',
+ field: 'financialCreateTime',
+ formatter: dateFormatter,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '税额',
+ field: 'totalTaxAmount',
+ formatter: accountantFormart,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '价税合计差额(价税合计-系统价税合计)',
+ field: 'totalTaxDiffAmount',
+ formatter: accountantFormart,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '财务过账日期',
+ field: 'postingDate',
+ isTable: true,
+ sortTableDefault: 15,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+
+ },
+ {
+ label: '折扣金额',
+ field: 'discountAmount1',
+ formatter: accountantFormart,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '未税差额(未税金额-系统未税金额)',
+ field: 'beforeTaxDiffAmount',
+ formatter: accountantFormart,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ detail:{
+ span:2
+ }
+ },
+ {
+ label: '税额差异(税额-系统税额)',
+ field: 'taxAmountDiff',
+ formatter: accountantFormart,
+
+ sortTableDefault: 6,
+ isForm: false,
+ isTable: false,
+ isSearch: false,
+ isDetail: true,
+ },
+]))
+//表单校验
+export const SupplierinvoiceRecordMainRules = reactive({
+ requestNumber: [
+ { required: true, message: '请选择申请单号', trigger: 'change' }
+ ],
+ supplierCode: [
+ { required: true, message: '请选择供应商代码', trigger: 'change' }
+ ],
+ outTransaction: [
+ { required: true, message: '请输入出库事务类型', trigger: 'blur' }
+ ],
+ inTransaction: [
+ { required: true, message: '请输入入库事务类型', trigger: 'blur' }
+ ],
+ executeTime: [
+ { required: true, message: '请输入执行时间', trigger: 'blur' }
+ ],
+ activeDate: [
+ { required: true, message: '请输入生效日期', trigger: 'blur' }
+ ],
+ available: [
+ { required: true, message: '请输入是否可用', trigger: 'blur' }
+ ],
+ departmentCode: [
+ { required: true, message: '请输入部门', trigger: 'blur' }
+ ],
+ interfaceType: [
+ { required: true, message: '请选择接口类型', trigger: 'change' }
+ ],
+ number: [
+ { required: true, message: '请输入单据号', trigger: 'blur' }
+ ],
+ businessType: [
+ { required: true, message: '请输入业务类型', trigger: 'blur' }
+ ],
+ createTime: [
+ { required: true, message: '请输入创建时间', trigger: 'blur' }
+ ],
+ creator: [
+ { required: true, message: '请输入创建者', trigger: 'blur' }
+ ],
+})
+
+/**
+ * @returns {Array} 供应商发票记录子表
+ */
+export const SupplierinvoiceRecordDetail = useCrudSchemas(reactive([
+ {
+ label: '项目编号',
+ field: 'projectCode',
+ isTable:false,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '采购收货记录单号',
+ field: 'qadNumber',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '单据类型',
+ field: 'billType',
+ dictType: DICT_TYPE.BILL_TYPE,
+ dictClass: 'string',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '订单号',
+ field: 'poNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ sortTableDefault:7,
+ },
+ {
+ label: '订单行',
+ field: 'poLine',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '待开票单据号',
+ field: 'recvBillNum',
+ table: {
+ width: 150
+ },
+ sortTableDefault:9,
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '单据号',
+ field: 'number',
+ hiddenInMain:true,
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '供应商发货单号',
+ field: 'asnBillNum',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ sortTableDefault:8,
+ },
+ {
+ label: '供应商代码',
+ field: 'supplierCode',
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ },
+ {
+ label: '物料代码',
+ field: 'itemCode',
+ sort: 'custom',
+ sortTableDefault:3,
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '物料描述',
+ field: 'itemDesc',
+ table: {
+ width: 150
+ },
+ sortTableDefault:4,
+ isForm:false,
+ isTableForm:false,
+ isDetail: false,
+ isTable: true,
+ },
+ {
+ label: '到货时间',
+ field: 'planArriveTime',
+ table: {
+ width: 150
+ },
+ formatter: dateFormatter2,
+ sortTableDefault:5,
+ isForm:false,
+ isTableForm:false,
+ isDetail: false,
+ isTable: true,
+ },
+ {
+ label: '到货数量',
+ field: 'arrivalQty',
+ table: {
+ width: 150
+ },
+ sortTableDefault:6,
+ isForm:false,
+ isTableForm:false,
+ isDetail: false,
+ isTable: true,
+ },
+ {
+ label: '物料名称',
+ field: 'itemName',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '货币',
+ field: 'currency',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '合同价格',
+ field: 'singlePrice',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber',
+ }
+ },
+ {
+ label: '采购价格',
+ field: 'purchasePrice',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber',
+ }
+ },
+ {
+ label: '差额',
+ field: 'differencePrice',
+ table: {
+ width: 150
+ },
+ form: {
+ componentProps: {
+ disabled: true
+ }
+ },
+ tableForm:{
+ type: 'slot',
+ disabled: true
+ }
+ },
+ {
+ label: '未税差额',
+ field: 'untaxedDifference',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber',
+ componentProps: {
+ min: 0,
+ precision: 6,
+ }
+ },
+ tableForm: {
+ type: 'InputNumber',
+ min: 0,
+ precision: 6,
+ }
+ },
+ {
+ label: '含税差额',
+ field: 'taxInclusiveDifference',
+ formatter: accountantFormart,
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber',
+ componentProps: {
+ min: 0,
+ precision: 6,
+ }
+ },
+ tableForm: {
+ type: 'InputNumber',
+ min: 0,
+ precision: 6,
+ }
+ },
+ {
+ label: '收货日期',
+ field: 'deliveryDate',
+ isTable: true,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ style: {width:'100%'},
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x',
+ }
+ }
+ },
+ {
+ label: '开票数量',
+ field: 'invoicableQuantity',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ form: {
+ component: 'InputNumber',
+ }
+ },
+ {
+ label: '财务凭证号',
+ field: 'voucherNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ }
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+]))
+
+//表单校验
+export const SupplierinvoiceRecordDetailRules = reactive({
+ packingNumber: [
+ { required: true, message: '请输入包装号', trigger: 'blur' }
+ ],
+ batch: [
+ { required: true, message: '请输入批次', trigger: 'blur' }
+ ],
+ poNumber: [
+ { required: true, message: '请输入订单号', trigger: 'blur' }
+ ],
+ poLine: [
+ { required: true, message: '请输入订单行', trigger: 'blur' }
+ ],
+ packQty: [
+ { required: true, message: '请输入包装数量', trigger: 'blur' }
+ ],
+ packUnit: [
+ { required: true, message: '请输入包装规格', trigger: 'blur' }
+ ],
+ convertRate: [
+ { required: true, message: '请输入转换率', trigger: 'blur' }
+ ],
+ number: [
+ { required: true, message: '请输入单据号', trigger: 'blur' }
+ ],
+ itemCode: [
+ { required: true, message: '请输入物料代码', trigger: 'blur' }
+ ],
+ createTime: [
+ { required: true, message: '请输入创建时间', trigger: 'blur' }
+ ],
+ creator: [
+ { required: true, message: '请输入创建者', trigger: 'blur' }
+ ],
+})