214 lines
6.7 KiB
JavaScript
214 lines
6.7 KiB
JavaScript
// 商户中心 —— 发票管理模块种子数据:回款流水(4条)+ 发票(5条,覆盖 未匹配/部分匹配/已匹配 与
|
|
// 未结算/部分结算/已结算 及 生效/作废 状态组合)。字段严格对齐 InvoiceVo/RepaymentVo/InvoiceMatchVo
|
|
// 及前端 InvoiceList.vue/InvoiceRegisterModal.vue/InvoiceMatchModal.vue/InvoiceDetailModal.vue 实际使用字段。
|
|
import { initCounter } from '../utils/id.js'
|
|
|
|
const now = '2026-06-20 09:00:00'
|
|
|
|
// 回款流水(供人工匹配勾选),关联商户1(id=1)
|
|
export const repayments = [
|
|
{
|
|
id: 1,
|
|
repaymentSerialNo: 'RP20260601001',
|
|
merchantId: 1,
|
|
accountNo: '6220000000000001',
|
|
accountName: '上海凡荣贸易有限公司',
|
|
oppAccountNo: '6222021234569001',
|
|
oppAccountName: '北京中新百货有限公司',
|
|
repaymentAmount: '80000.00',
|
|
matchedAmount: '80000.00',
|
|
repaymentTime: '2026-06-10 14:00:00',
|
|
status: 'MATCHED'
|
|
},
|
|
{
|
|
id: 2,
|
|
repaymentSerialNo: 'RP20260601002',
|
|
merchantId: 1,
|
|
accountNo: '6220000000000001',
|
|
accountName: '上海凡荣贸易有限公司',
|
|
oppAccountNo: '6222021234569002',
|
|
oppAccountName: '天津宏泰商贸有限公司',
|
|
repaymentAmount: '50000.00',
|
|
matchedAmount: '20000.00',
|
|
repaymentTime: '2026-06-12 10:30:00',
|
|
status: 'MATCHED'
|
|
},
|
|
{
|
|
id: 3,
|
|
repaymentSerialNo: 'RP20260601003',
|
|
merchantId: 1,
|
|
accountNo: '6220000000000001',
|
|
accountName: '上海凡荣贸易有限公司',
|
|
oppAccountNo: '6222021234569003',
|
|
oppAccountName: '杭州锦程供应链有限公司',
|
|
repaymentAmount: '30000.00',
|
|
matchedAmount: '0.00',
|
|
repaymentTime: '2026-06-18 16:20:00',
|
|
status: 'PENDING'
|
|
},
|
|
// 关联商户2(id=2)
|
|
{
|
|
id: 4,
|
|
repaymentSerialNo: 'RP20260602001',
|
|
merchantId: 2,
|
|
accountNo: '6220000000000006',
|
|
accountName: '广州荣泰电子商务有限公司',
|
|
oppAccountNo: '6222021234569004',
|
|
oppAccountName: '深圳市美佰家电商贸有限公司',
|
|
repaymentAmount: '60000.00',
|
|
matchedAmount: '0.00',
|
|
repaymentTime: '2026-06-19 09:00:00',
|
|
status: 'PENDING'
|
|
}
|
|
]
|
|
initCounter('repayment', 5)
|
|
|
|
export const invoices = [
|
|
{
|
|
id: 1,
|
|
invoiceNo: 'INV20260601001',
|
|
merchantId: 1,
|
|
invoiceCode: '011001900211',
|
|
invoiceType: 'SPECIAL_VAT',
|
|
invoiceAmount: '80000.00',
|
|
invoiceDate: '2026-06-01 00:00:00',
|
|
registerDate: '2026-06-02 00:00:00',
|
|
belongStartDate: '2026-06-01 00:00:00',
|
|
belongEndDate: '2026-06-30 00:00:00',
|
|
accountNo: '6220000000000001',
|
|
accountName: '上海凡荣贸易有限公司',
|
|
oppAccountNo: '6222021234569001',
|
|
oppAccountName: '北京中新百货有限公司',
|
|
settleAccountNo: '6220000000000002',
|
|
settleAccountName: '上海凡荣贸易有限公司',
|
|
checkCode: '123456',
|
|
invoiceStatus: 'ACTIVE',
|
|
matchStatus: 'MATCHED',
|
|
matchedAmount: '80000.00',
|
|
settleStatus: 'SETTLED',
|
|
settledAmount: '80000.00',
|
|
matchRecordList: [
|
|
{ id: 1, repaymentSerialNo: 'RP20260601001', repaymentAmount: '80000.00', matchAmount: '80000.00', matchType: 'manual', matchTime: '2026-06-10 14:05:00', remark: '' }
|
|
],
|
|
creatorId: 1,
|
|
createdAt: now,
|
|
updatedAt: now
|
|
},
|
|
{
|
|
id: 2,
|
|
invoiceNo: 'INV20260601002',
|
|
merchantId: 1,
|
|
invoiceCode: '011001900212',
|
|
invoiceType: 'ORDINARY_VAT',
|
|
invoiceAmount: '60000.00',
|
|
invoiceDate: '2026-06-05 00:00:00',
|
|
registerDate: '2026-06-06 00:00:00',
|
|
belongStartDate: '2026-06-01 00:00:00',
|
|
belongEndDate: '2026-06-30 00:00:00',
|
|
accountNo: '6220000000000001',
|
|
accountName: '上海凡荣贸易有限公司',
|
|
oppAccountNo: '6222021234569002',
|
|
oppAccountName: '天津宏泰商贸有限公司',
|
|
settleAccountNo: '6220000000000002',
|
|
settleAccountName: '上海凡荣贸易有限公司',
|
|
checkCode: '234567',
|
|
invoiceStatus: 'ACTIVE',
|
|
matchStatus: 'PARTIAL_MATCH',
|
|
matchedAmount: '20000.00',
|
|
settleStatus: 'UNSETTLED',
|
|
settledAmount: '0.00',
|
|
matchRecordList: [
|
|
{ id: 2, repaymentSerialNo: 'RP20260601002', repaymentAmount: '50000.00', matchAmount: '20000.00', matchType: 'manual', matchTime: '2026-06-12 11:00:00', remark: '' }
|
|
],
|
|
creatorId: 1,
|
|
createdAt: now,
|
|
updatedAt: now
|
|
},
|
|
{
|
|
id: 3,
|
|
invoiceNo: 'INV20260601003',
|
|
merchantId: 1,
|
|
invoiceCode: '011001900213',
|
|
invoiceType: 'ELECTRONIC_SPECIAL_VAT',
|
|
invoiceAmount: '30000.00',
|
|
invoiceDate: '2026-06-15 00:00:00',
|
|
registerDate: '2026-06-16 00:00:00',
|
|
belongStartDate: '2026-06-01 00:00:00',
|
|
belongEndDate: '2026-06-30 00:00:00',
|
|
accountNo: '6220000000000001',
|
|
accountName: '上海凡荣贸易有限公司',
|
|
oppAccountNo: '6222021234569003',
|
|
oppAccountName: '杭州锦程供应链有限公司',
|
|
settleAccountNo: '',
|
|
settleAccountName: '',
|
|
checkCode: '345678',
|
|
invoiceStatus: 'ACTIVE',
|
|
matchStatus: 'UNMATCHED',
|
|
matchedAmount: '0.00',
|
|
settleStatus: 'UNSETTLED',
|
|
settledAmount: '0.00',
|
|
matchRecordList: [],
|
|
creatorId: 1,
|
|
createdAt: now,
|
|
updatedAt: now
|
|
},
|
|
{
|
|
id: 4,
|
|
invoiceNo: 'INV20260602001',
|
|
merchantId: 2,
|
|
invoiceCode: '011001900214',
|
|
invoiceType: 'ORDINARY_VAT',
|
|
invoiceAmount: '60000.00',
|
|
invoiceDate: '2026-06-18 00:00:00',
|
|
registerDate: '2026-06-19 00:00:00',
|
|
belongStartDate: '2026-06-01 00:00:00',
|
|
belongEndDate: '2026-06-30 00:00:00',
|
|
accountNo: '6220000000000006',
|
|
accountName: '广州荣泰电子商务有限公司',
|
|
oppAccountNo: '6222021234569004',
|
|
oppAccountName: '深圳市美佰家电商贸有限公司',
|
|
settleAccountNo: '',
|
|
settleAccountName: '',
|
|
checkCode: '456789',
|
|
invoiceStatus: 'ACTIVE',
|
|
matchStatus: 'UNMATCHED',
|
|
matchedAmount: '0.00',
|
|
settleStatus: 'UNSETTLED',
|
|
settledAmount: '0.00',
|
|
matchRecordList: [],
|
|
creatorId: 1,
|
|
createdAt: now,
|
|
updatedAt: now
|
|
},
|
|
{
|
|
id: 5,
|
|
invoiceNo: 'INV20260530001',
|
|
merchantId: 1,
|
|
invoiceCode: '011001900210',
|
|
invoiceType: 'FULL_ELECTRONIC_ORDINARY',
|
|
invoiceAmount: '15000.00',
|
|
invoiceDate: '2026-05-28 00:00:00',
|
|
registerDate: '2026-05-29 00:00:00',
|
|
belongStartDate: '2026-05-01 00:00:00',
|
|
belongEndDate: '2026-05-31 00:00:00',
|
|
accountNo: '6220000000000001',
|
|
accountName: '上海凡荣贸易有限公司',
|
|
oppAccountNo: '6222021234569005',
|
|
oppAccountName: '南京新联百货有限公司',
|
|
settleAccountNo: '',
|
|
settleAccountName: '',
|
|
checkCode: '567890',
|
|
invoiceStatus: 'CANCELLED',
|
|
matchStatus: 'UNMATCHED',
|
|
matchedAmount: '0.00',
|
|
settleStatus: 'UNSETTLED',
|
|
settledAmount: '0.00',
|
|
matchRecordList: [],
|
|
creatorId: 1,
|
|
createdAt: '2026-05-29 09:00:00',
|
|
updatedAt: '2026-05-29 09:00:00'
|
|
}
|
|
]
|
|
initCounter('invoice', 6)
|
|
initCounter('invoiceMatchRecord', 3)
|