|
@@ -263,6 +263,10 @@ const paymentStatus = ref([
|
|
|
value: "10",
|
|
|
},
|
|
|
{
|
|
|
+ label: "部分打款",
|
|
|
+ value: "15",
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "未打款",
|
|
|
value: "20",
|
|
|
},
|
|
@@ -734,14 +738,30 @@ const handleOpenFile = (row) => {
|
|
|
}
|
|
|
});
|
|
|
proxy
|
|
|
- .post("/fileInfo/getList", { businessIdList: [row.accountPaymentId] })
|
|
|
- .then((fileObj) => {
|
|
|
+ .post("/accountPayment/detail", { id: row.accountPaymentId })
|
|
|
+ .then((res) => {
|
|
|
+ let ids = [];
|
|
|
if (
|
|
|
- fileObj[row.accountPaymentId] &&
|
|
|
- fileObj[row.accountPaymentId].length > 0
|
|
|
+ res.accountPaymentRecordsList &&
|
|
|
+ res.accountPaymentRecordsList.length > 0
|
|
|
) {
|
|
|
- fileData.data.fileListOne = fileObj[row.accountPaymentId];
|
|
|
+ ids = res.accountPaymentRecordsList.map((x) => x.id);
|
|
|
}
|
|
|
+ proxy
|
|
|
+ .post("/fileInfo/getList", {
|
|
|
+ businessIdList: [row.accountPaymentId, ...ids],
|
|
|
+ })
|
|
|
+ .then((fileObj) => {
|
|
|
+ if (fileObj) {
|
|
|
+ let arr = [];
|
|
|
+ for (const key in fileObj) {
|
|
|
+ if (fileObj[key]) {
|
|
|
+ arr = [...arr, ...fileObj[key]];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fileData.data.fileListOne = arr;
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
openFileDialog.value = true;
|
|
|
};
|