feat(invoice): 更新发票页面数据源及筛选条件
- 修改 all.tsx 页面中车辆信息和交付时间的取值路径 - 在 all.tsx、pending.tsx 和 upload.tsx 中增加 poType 筛选条件 - 设置默认查询状态为 WAITING_AUDIT 和 COMPLETED - 优化代码格式,调整导入语句末尾逗号
This commit is contained in:
parent
616d51fedf
commit
b4df78d549
@ -105,8 +105,12 @@ export default hocAuth(function Page(props: CommonComponent) {
|
||||
<View className="flex items-start justify-between">
|
||||
<View className="text-base font-medium text-gray-800">
|
||||
{orderSupplierVO.name} (
|
||||
{orderSupplierVO.orderVehicle?.origin}-
|
||||
{orderSupplierVO.orderVehicle?.destination})
|
||||
{orderSupplierVO.purchaseOrderVO?.orderVehicle?.origin}-
|
||||
{
|
||||
orderSupplierVO.purchaseOrderVO?.orderVehicle
|
||||
?.destination
|
||||
}
|
||||
)
|
||||
</View>
|
||||
<View className={"flex-shrink-0"}>
|
||||
{orderSupplierVO.poState && (
|
||||
@ -120,14 +124,18 @@ export default hocAuth(function Page(props: CommonComponent) {
|
||||
</View>
|
||||
<View className="my-1 flex flex-row flex-wrap gap-1 text-sm text-gray-600">
|
||||
<View className="text-primary">
|
||||
{orderSupplierVO.orderVehicle?.vehicleNo
|
||||
? "第" + orderSupplierVO.orderVehicle?.vehicleNo + "车"
|
||||
{orderSupplierVO.purchaseOrderVO?.orderVehicle?.vehicleNo
|
||||
? "第" +
|
||||
orderSupplierVO.purchaseOrderVO?.orderVehicle
|
||||
?.vehicleNo +
|
||||
"车"
|
||||
: "暂未生成车次"}
|
||||
</View>
|
||||
<View>
|
||||
{dayjs(orderSupplierVO.orderVehicle?.deliveryTime).format(
|
||||
"MM-DD",
|
||||
)}
|
||||
{dayjs(
|
||||
orderSupplierVO.purchaseOrderVO?.orderVehicle
|
||||
?.deliveryTime,
|
||||
).format("MM-DD")}
|
||||
</View>
|
||||
<View>|</View>
|
||||
<View>{orderSupplierVO.netWeight}斤</View>
|
||||
@ -179,6 +187,8 @@ export default hocAuth(function Page(props: CommonComponent) {
|
||||
orderSupplierPageQry: {
|
||||
...params,
|
||||
invoiceUpload: true,
|
||||
poStates: ["WAITING_AUDIT", "COMPLETED"],
|
||||
poType: "PRODUCTION_PURCHASE",
|
||||
...(supplierVO
|
||||
? {
|
||||
supplierId: supplierVO.supplierId,
|
||||
|
||||
@ -448,6 +448,7 @@ export default hocAuth(function Page(props: CommonComponent) {
|
||||
...params,
|
||||
invoiceUpload: false,
|
||||
poStates: ["WAITING_AUDIT", "COMPLETED"],
|
||||
poType: "PRODUCTION_PURCHASE",
|
||||
...(supplierVO
|
||||
? {
|
||||
supplierId: supplierVO.supplierId,
|
||||
|
||||
@ -430,6 +430,7 @@ export default hocAuth(function Page(props: CommonComponent) {
|
||||
...params,
|
||||
invoiceUpload: false,
|
||||
poStates: ["WAITING_AUDIT", "COMPLETED"],
|
||||
poType: "PRODUCTION_PURCHASE",
|
||||
...(supplierVO
|
||||
? {
|
||||
supplierId: supplierVO.supplierId,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user