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="flex items-start justify-between">
|
||||||
<View className="text-base font-medium text-gray-800">
|
<View className="text-base font-medium text-gray-800">
|
||||||
{orderSupplierVO.name} (
|
{orderSupplierVO.name} (
|
||||||
{orderSupplierVO.orderVehicle?.origin}-
|
{orderSupplierVO.purchaseOrderVO?.orderVehicle?.origin}-
|
||||||
{orderSupplierVO.orderVehicle?.destination})
|
{
|
||||||
|
orderSupplierVO.purchaseOrderVO?.orderVehicle
|
||||||
|
?.destination
|
||||||
|
}
|
||||||
|
)
|
||||||
</View>
|
</View>
|
||||||
<View className={"flex-shrink-0"}>
|
<View className={"flex-shrink-0"}>
|
||||||
{orderSupplierVO.poState && (
|
{orderSupplierVO.poState && (
|
||||||
@ -120,14 +124,18 @@ export default hocAuth(function Page(props: CommonComponent) {
|
|||||||
</View>
|
</View>
|
||||||
<View className="my-1 flex flex-row flex-wrap gap-1 text-sm text-gray-600">
|
<View className="my-1 flex flex-row flex-wrap gap-1 text-sm text-gray-600">
|
||||||
<View className="text-primary">
|
<View className="text-primary">
|
||||||
{orderSupplierVO.orderVehicle?.vehicleNo
|
{orderSupplierVO.purchaseOrderVO?.orderVehicle?.vehicleNo
|
||||||
? "第" + orderSupplierVO.orderVehicle?.vehicleNo + "车"
|
? "第" +
|
||||||
|
orderSupplierVO.purchaseOrderVO?.orderVehicle
|
||||||
|
?.vehicleNo +
|
||||||
|
"车"
|
||||||
: "暂未生成车次"}
|
: "暂未生成车次"}
|
||||||
</View>
|
</View>
|
||||||
<View>
|
<View>
|
||||||
{dayjs(orderSupplierVO.orderVehicle?.deliveryTime).format(
|
{dayjs(
|
||||||
"MM-DD",
|
orderSupplierVO.purchaseOrderVO?.orderVehicle
|
||||||
)}
|
?.deliveryTime,
|
||||||
|
).format("MM-DD")}
|
||||||
</View>
|
</View>
|
||||||
<View>|</View>
|
<View>|</View>
|
||||||
<View>{orderSupplierVO.netWeight}斤</View>
|
<View>{orderSupplierVO.netWeight}斤</View>
|
||||||
@ -179,6 +187,8 @@ export default hocAuth(function Page(props: CommonComponent) {
|
|||||||
orderSupplierPageQry: {
|
orderSupplierPageQry: {
|
||||||
...params,
|
...params,
|
||||||
invoiceUpload: true,
|
invoiceUpload: true,
|
||||||
|
poStates: ["WAITING_AUDIT", "COMPLETED"],
|
||||||
|
poType: "PRODUCTION_PURCHASE",
|
||||||
...(supplierVO
|
...(supplierVO
|
||||||
? {
|
? {
|
||||||
supplierId: supplierVO.supplierId,
|
supplierId: supplierVO.supplierId,
|
||||||
|
|||||||
@ -448,6 +448,7 @@ export default hocAuth(function Page(props: CommonComponent) {
|
|||||||
...params,
|
...params,
|
||||||
invoiceUpload: false,
|
invoiceUpload: false,
|
||||||
poStates: ["WAITING_AUDIT", "COMPLETED"],
|
poStates: ["WAITING_AUDIT", "COMPLETED"],
|
||||||
|
poType: "PRODUCTION_PURCHASE",
|
||||||
...(supplierVO
|
...(supplierVO
|
||||||
? {
|
? {
|
||||||
supplierId: supplierVO.supplierId,
|
supplierId: supplierVO.supplierId,
|
||||||
|
|||||||
@ -430,6 +430,7 @@ export default hocAuth(function Page(props: CommonComponent) {
|
|||||||
...params,
|
...params,
|
||||||
invoiceUpload: false,
|
invoiceUpload: false,
|
||||||
poStates: ["WAITING_AUDIT", "COMPLETED"],
|
poStates: ["WAITING_AUDIT", "COMPLETED"],
|
||||||
|
poType: "PRODUCTION_PURCHASE",
|
||||||
...(supplierVO
|
...(supplierVO
|
||||||
? {
|
? {
|
||||||
supplierId: supplierVO.supplierId,
|
supplierId: supplierVO.supplierId,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user