verce-vue-test 0.0.160 → 0.0.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -775,15 +775,24 @@ function buildVerifyRequest(): any {
|
|
|
775
775
|
// 组装撤销核销接口所需的预报和流水字段。
|
|
776
776
|
function buildCancelVerifyRequest(): any {
|
|
777
777
|
const forecast = forecastSelectedRows.value[0]
|
|
778
|
+
const tranRefNos = flowSelectedRows.value
|
|
779
|
+
.map((row) => String(row.tranRefNo ?? '').trim())
|
|
780
|
+
const isSingleFlow = tranRefNos.length === 1
|
|
778
781
|
return {
|
|
779
782
|
// 预报已核销金额。
|
|
780
783
|
predAmt: toForeignSettlementOperationAmount(forecast?.verifyAmt),
|
|
781
784
|
// 预报流水号。
|
|
782
785
|
predRefNo: String(forecast?.predRefNo ?? '').trim(),
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
786
|
+
...(isSingleFlow
|
|
787
|
+
? {
|
|
788
|
+
// 单选流水按老接口字段传递,列表字段保持为空。
|
|
789
|
+
tranRefNos: '',
|
|
790
|
+
tranSeqId: tranRefNos[0],
|
|
791
|
+
}
|
|
792
|
+
: {
|
|
793
|
+
// 多选流水继续传递关联流水号列表。
|
|
794
|
+
tranRefNos: tranRefNos.join(','),
|
|
795
|
+
}),
|
|
787
796
|
}
|
|
788
797
|
}
|
|
789
798
|
|