实现了部分收货UI。替换为张欢测试服务

This commit is contained in:
zxj
2025-07-18 08:49:06 +08:00
parent 5874e4ed9a
commit 4c6fa31787
22 changed files with 282 additions and 137 deletions
@@ -3,8 +3,9 @@ package com.sw.inbound.model.response
data class ApiResponse<T>(
val code: Int,
val success: Boolean? = false,
val msg: String? = "",
val data: T? = null
val message: String? = "",
val result: T? = null,
val timestamp: Long? = 0
) {
fun isSuccess(): Boolean = code == 200
}
@@ -105,6 +105,13 @@ data class GoodsInfo(
return receivedNum?.toFormattedString() ?: ""
}
val receivedNumListStr: String
get() {
if (receivedNum == null)
return "-"
return receivedNum?.toFormattedString() ?: "-"
}
val recUnitPriceTaxInStr: String
get() {
if (recUnitPriceTaxIn == 0f) return ""
@@ -38,8 +38,11 @@ data class SupplierInfo(
val pageNum: String? = "",
@SerializedName("pageSize")
val pageSize: String? = "",
/**
* 采购单位
*/
@SerializedName("purCode")
val purCode: String? = "",
val purCode: String? = "-",
@SerializedName("purDateStart")
val purDateStart: String? = "",
@SerializedName("purDateStop")
@@ -102,7 +105,7 @@ data class SupplierInfo(
* 供应商
*/
@SerializedName("supplierName")
val supplierName: String = "",
val supplierName: String? = "",
@SerializedName("taxRateAll")
val taxRateAll: Double? = 0.0,
@SerializedName("updateTime")