This commit is contained in:
ylj20011123 2025-09-05 19:13:38 +08:00
parent 19d34b5fc2
commit e50e38c002
2 changed files with 55 additions and 11 deletions

View File

@ -41,8 +41,9 @@ const DigitalElectronics: React.FC<{ currentUser: any }> = (props) => {
includeTaxFlag: "1",// 判断是否含税
autoInvoice: "1",// 自动开票标记
invoiceType: record?.invoiceType, //发票种类
buyerTaxpayerId: record?.buyerTaxpayerId,// 购方税号
buyerName: record?.buyerName, // 购买方名称
buyerProperty: "0", // 购买方性质 0-企业1-个人2-非企业单位
buyerProperty: record?.buyerProperty || "0", // 购买方性质 0-企业1-个人2-非企业单位
sellerTaxpayerId: "91530112MA7MQ2JR9U", // 销方税号 写死
sellerName: "云南交投集团经营开发有限公司彩云驿商业管理分公司", // 销方名称 写死
sellerBankAndAccount: "13710884704", // 销方银行和账号 写死
@ -212,9 +213,6 @@ const DigitalElectronics: React.FC<{ currentUser: any }> = (props) => {
]
const handleSynchroBILL = async (obj: any) => {
console.log('调用同步接口', obj);
// 发票明细列表
let detailList: any = []
if (obj?.billDetail && obj?.billDetail.length > 0) {
@ -454,9 +452,10 @@ const DigitalElectronics: React.FC<{ currentUser: any }> = (props) => {
// taxRate: "0.09",
// units: "盒"
// },
// 专票
// 普票
{
billNo: "SRM_202509011365",
billNo: "SRM_202509011376",
billDate: "2025-09-01",
autoInvoice: "1",
includeTaxFlag: "1",
@ -495,7 +494,52 @@ const DigitalElectronics: React.FC<{ currentUser: any }> = (props) => {
taxRate: "0.13",
units: "盒"
}
],
]
},
// 专票
{
billNo: "SRM_202509011377",
billDate: "2025-09-02",
autoInvoice: "1",
includeTaxFlag: "1",
invoiceProperty: "0",
invoiceType: "08xdp",
totalAmount: 10.00,
buyerTaxpayerId: "91440300MA5G9GK78Y",
buyerName: "深圳市顺丰快运有限公司test01",
buyerProperty: "1",
sellerTaxpayerId: "91530112MA7MQ2JR9U",
sellerName: "云南交投集团经营开发有限公司彩云驿商业管理分公司",
sellerBankAndAccount: "13710884704",
sellerAddressAndTel: "高新技术产业园南区科技南十二路58996989",
drawer: "王协芬",
buyerRecipientPhone: "18158132615",
buyerRecipientMail: "",
billDetail: [
{
amount: 5,
detailId: "11112222333344445555",
goodsName: "通天口服液",
lineProperty: 2,
price: 5,
quantity: 1,
revenueCode: "1070304990000000000",
taxRate: "0.13",
units: "盒"
},
{
amount: 5,
detailId: "55554444333322221111",
goodsName: "通天口服液2",
lineProperty: 2,
price: 5,
quantity: 1,
revenueCode: "1070304990000000000",
taxRate: "0.13",
units: "盒"
}
]
}
];

View File

@ -246,7 +246,7 @@ const InvoiceSearch: React.FC = () => {
console.log('paramsparams', params);
let obj: any = {
billNo: "SRM_202509011366",
billNo: "SRM_202509011370",
billDate: "2025-09-01",
autoInvoice: "1",
includeTaxFlag: "1",
@ -263,8 +263,8 @@ const InvoiceSearch: React.FC = () => {
buyerRecipientPhone: "18158132615",
buyerRecipientMail: "",
autoMerge: "0",
blueinvoiceCode: "",
blueinvoiceNo: "22944630796032563200",
blueinvoiceCode: "", // 红冲时 blueinvoiceCode 不传的
blueinvoiceNo: "22951444153138083840",
redReason: "2",
billDetail: [
{
@ -376,7 +376,7 @@ const InvoiceSearch: React.FC = () => {
// 构造查询数据
const queryData = {
sellerTaxpayerId: "91530112MA7MQ2JR9U",
serialNo: params.serialNo || "SRM_202509011363",
serialNo: params.serialNo || "SRM_202509011373",
};
// 将data字段进行base64加密