|
@@ -18,7 +18,8 @@
|
|
|
action: () => start(),
|
|
|
},
|
|
|
]"
|
|
|
- @get-list="getList">
|
|
|
+ @get-list="getList"
|
|
|
+ >
|
|
|
<template #amount="{ item }">
|
|
|
<div style="width: 100%">
|
|
|
<span style="padding-right: 4px">{{ item.currency }}</span>
|
|
@@ -89,7 +90,7 @@ const selectConfig = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
label: "付款状态",
|
|
|
- prop: "type",
|
|
|
+ prop: "payStatus",
|
|
|
data: payStatus.value,
|
|
|
},
|
|
|
];
|
|
@@ -181,30 +182,34 @@ const config = computed(() => {
|
|
|
];
|
|
|
});
|
|
|
const getDict = () => {
|
|
|
- proxy.post("/supplierInfo/page", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
- if (res.rows && res.rows.length > 0) {
|
|
|
- supplierList.value = res.rows.map((item) => {
|
|
|
- return {
|
|
|
- label: item.name,
|
|
|
- value: item.id,
|
|
|
- };
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ proxy
|
|
|
+ .post("/supplierInfo/page", { pageNum: 1, pageSize: 999 })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.rows && res.rows.length > 0) {
|
|
|
+ supplierList.value = res.rows.map((item) => {
|
|
|
+ return {
|
|
|
+ label: item.name,
|
|
|
+ value: item.id,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
};
|
|
|
const getList = async (req) => {
|
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
|
loading.value = true;
|
|
|
- proxy.post("/purchase/paymentBill", sourceList.value.pagination).then((message) => {
|
|
|
- message.rows.forEach((x) => {
|
|
|
- x.isCheck = true;
|
|
|
+ proxy
|
|
|
+ .post("/purchase/paymentBill", sourceList.value.pagination)
|
|
|
+ .then((message) => {
|
|
|
+ message.rows.forEach((x) => {
|
|
|
+ x.isCheck = true;
|
|
|
+ });
|
|
|
+ sourceList.value.data = message.rows;
|
|
|
+ sourceList.value.pagination.total = message.total;
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.value = false;
|
|
|
+ }, 200);
|
|
|
});
|
|
|
- sourceList.value.data = message.rows;
|
|
|
- sourceList.value.pagination.total = message.total;
|
|
|
- setTimeout(() => {
|
|
|
- loading.value = false;
|
|
|
- }, 200);
|
|
|
- });
|
|
|
};
|
|
|
getDict();
|
|
|
getList();
|