From 5b14d32101e776e9a8e5f80c2a43a5cc7dc30e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Mon, 27 May 2024 10:21:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E8=BF=90=E5=87=BA=E5=8F=A3=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=BB=98=E8=AE=A4=E5=8E=BB=E9=99=A4=EF=BC=8C?= =?UTF-8?q?=20=E7=AE=B1=E4=BF=A1=E6=81=AF=20=E5=85=A8=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CostEntry/feeTable.vue | 422 ++++++++++-------- src/views/operation/seaexport/asd.json | 235 +--------- .../operation/seaexport/detail/index.vue | 9 + .../seaexport/detail/modules/ediMore.vue | 1 - .../seaexport/detail/modules/goodsTable.vue | 133 +++++- 5 files changed, 385 insertions(+), 415 deletions(-) diff --git a/src/components/CostEntry/feeTable.vue b/src/components/CostEntry/feeTable.vue index 434646ef..65188c46 100644 --- a/src/components/CostEntry/feeTable.vue +++ b/src/components/CostEntry/feeTable.vue @@ -11,7 +11,7 @@
- +
- \ No newline at end of file + diff --git a/src/views/operation/seaexport/asd.json b/src/views/operation/seaexport/asd.json index 07a1e479..e37b8ae1 100644 --- a/src/views/operation/seaexport/asd.json +++ b/src/views/operation/seaexport/asd.json @@ -1,231 +1,4 @@ -{ - "code": 0, - "multiCode": "Data_Query_Success", - "count": 0, - "message": "查询成功", - "succeeded": true, - "data": { - "ediInfo": null, - "id": "1793191584557305856", - "parentId": "0", - "businessStatus": 0, - "billFeeStatus": 0, - "businessStatusName": null, - "billFeeStatusName": null, - "billFeeStatusTime": "1900-01-01 00:00:00", - "feeStatus": 0, - "isBusinessLocking": false, - "isFeeLocking": false, - "businessDate": "2024-05-22 16:06:04", - "accountDate": "2024-10", - "mblno": "05221605", - "hblno": "05221605", - "customerNo": "2405220004", - "transNo": "", - "customerId": "0", - "customerName": "", - "blType": "拼箱单票", - "shipperId": null, - "consigneeId": null, - "notifyPartyId": null, - "agentId": "0", - "agent": "", - "shipperContent": "", - "consigneeContent": "", - "notifyPartyContent": "", - "agentContent": "", - "yardId": "0", - "yard": "", - "vessel": "", - "vesselId": "0", - "voyno": "", - "etd": null, - "eta": null, - "atd": null, - "ata": null, - "closingDate": null, - "receiptPlace": "", - "receiptPlaceId": "0", - "loadPortId": "0", - "loadPort": "", - "dischargePortId": "0", - "dischargePort": "", - "deliveryPlaceId": "0", - "deliveryPlace": "", - "destinationId": "0", - "destination": "", - "noBill": "", - "copyNoBill": "", - "issueType": "", - "issueDate": null, - "issuePlaceId": "0", - "issuePlace": "", - "blIssueSatus": null, - "prepareAtId": "0", - "prepareAt": "", - "payableAt": "", - "service": "", - "marks": "", - "cntrSealNo": "", - "noPkgs": "", - "description": "", - "goodsName": "", - "goodsId": "0", - "grossWeight": "", - "measurement": "", - "pkgs": null, - "kindPkgs": "", - "kgs": null, - "cbm": null, - "totalNo": "", - "cntrNo": "", - "cntr1": 0, - "cntr2": 0, - "cntr3": 0, - "cntr4": 0, - "cntr5": 0, - "cntr6": 0, - "cntr7": 0, - "cntr8": 0, - "cntr9": 0, - "cntr10": 0, - "otherCntr": 0, - "teu": 0, - "cntrTotal": "", - "operatorId": "0", - "customerService": "0", - "foreignCustomerService": "0", - "laneId": "0", - "lane": "", - "saleId": "0", - "sale": "", - "carrierId": "0", - "carrier": "", - "forwarderId": "0", - "forwarder": "", - "customserId": "0", - "customser": "", - "truckerId": "0", - "trucker": "", - "invoiceNo": "", - "cargoId": "", - "dangerClass": "", - "dangerNo": "", - "dangerPage": "", - "dangerLabel": "", - "reeferQuantity": "", - "temperatureUnit": "", - "temperatureSet": "", - "temperatureMin": "", - "temperatureMax": "", - "sourceId": "0", - "sourceDetailId": "0", - "sourceDetailName": null, - "customsNum": 0, - "contractNo": "", - "bookingType": "", - "bookingNo": "", - "insuranceer": "", - "insuranceNo": "", - "insuranceAmount": null, - "isVoucher": false, - "voucherNo": "", - "remark": "", - "status1": false, - "status2": false, - "status3": false, - "status4": false, - "status5": false, - "isFumigation": false, - "isStorage": false, - "isLand": false, - "isCustoms": false, - "isInspection": false, - "isBooking": false, - "isAgent": false, - "isHBLNO": false, - "service9": false, - "service10": false, - "doc": "0", - "packingType": "", - "wareHouse": "", - "closeDocDate": "0001-01-01 00:00:00", - "intoPortDocDate": "0001-01-01 00:00:00", - "saleDeptId": "0", - "mblFrt": "", - "stlName": "", - "stlDate": "0001-01-01 00:00:00", - "orderType": "", - "orderNo": "", - "operatorCode": "", - "isOperator": false, - "operatorEmail": "", - "operatorTel": "", - "operatorFax": "", - "financialStaffCode": "", - "isFinancialStaff": false, - "financialStaffEmail": "", - "financialStaffTel": "", - "financialStaffFax": "", - "sourceCode": "", - "linkMan": "", - "hsCode": "", - "ediRemark": "", - "mailProjectId": "0", - "irCode": "", - "serviceContractNo": "", - "applyNo": "", - "customNo": "", - "customDate": "0001-01-01 00:00:00", - "enterpriseId": null, - "enterprise": "", - "inspectionNo": "", - "inspectionDate": "0001-01-01 00:00:00", - "tradeTerm": "", - "termDelivery": "", - "clearCustomDate": "1900-01-01 00:00:00", - "insperctService": "", - "shipAgencyId": "0", - "shipAgency": "0", - "humidity": "", - "masterShipperId": null, - "masterConsigneeId": null, - "masterNotifyPartyId": null, - "masterConsigneeContent": "", - "masterNotifyPartyContent": "", - "masterShipperContent": "", - "masterDescription": "", - "isContainerSoc": true, - "tranStatus": "", - "manifestStatus": "", - "isMoreGood": true, - "isPrintReceipt": false, - "vessel2N": "", - "vesselId2N": "0", - "voyno2N": "", - "deliveryDate": "2024-05-22 16:05:37", - "yardATTN": "", - "yardTel": "", - "saleOrgId": "0", - "transport": "", - "transRemark": "", - "preRecord": 0, - "note": "", - "createTime": "2024-05-22 16:06:04", - "closeDocRemark": "0", - "bookingRemark": "0", - "blIssueStatus": 0, - "billSubmitStatus": 0, - "isBookingYZ": null, - "closeVgmDate": null, - "transportCode": "0", - "thirdPayAt": "", - "shipper": "", - "consignee": "", - "notifyParty": "", - "innerVoyno": null, - "secondNotifyPartyId": null, - "secondNotifyParty": null, - "secondNotifyPartyContent": null - } -} + +Error converting value {null} to type 'System.Int32' +Path 'preRecord', line 1, position 1531.|Error converting value {null} to type 'System.Int32' +Path 'customsNum', line 1, position 1328. \ No newline at end of file diff --git a/src/views/operation/seaexport/detail/index.vue b/src/views/operation/seaexport/detail/index.vue index 94c7e17f..be239e53 100644 --- a/src/views/operation/seaexport/detail/index.vue +++ b/src/views/operation/seaexport/detail/index.vue @@ -584,6 +584,15 @@ id: id.value, }) .then((res) => { + //处理 后端 返回默认值的 0 || 0001-01-01 00:00:00 + + res.data = JSON.parse( + JSON.stringify(res.data) + .replaceAll('"0001-01-01 00:00:00"', '""') + .replaceAll(':"0"', ':""') + .replaceAll(':0,', ':"",'), + ) + if (route.query.isCopy) { res.data = { ...res.data, diff --git a/src/views/operation/seaexport/detail/modules/ediMore.vue b/src/views/operation/seaexport/detail/modules/ediMore.vue index 1cad55a1..ec0b41d2 100644 --- a/src/views/operation/seaexport/detail/modules/ediMore.vue +++ b/src/views/operation/seaexport/detail/modules/ediMore.vue @@ -1,6 +1,5 @@