Compare commits

..

No commits in common. "3a3e268f6924d80174765f55c495e903e42466eb" and "087756c014b5e5b39822973ec210ff896978dcd0" have entirely different histories.

3 changed files with 5 additions and 7 deletions

View File

@ -465,4 +465,3 @@ onMounted(() => {
justify-content: space-between; justify-content: space-between;
} }
</style> </style>
@/pages/finance-bill-manage/billCancel

View File

@ -392,13 +392,12 @@ const refresh = () => {
getTableData(); getTableData();
}; };
// menuManagement // menuManagement
const getPersonName = async () => { const getPersonName = () => {
let arr = JSON.parse(localStorage.getItem("ReceiptList")); let arr = JSON.parse(localStorage.getItem("ReceiptList"));
if (arr) { if (arr) {
personName.value = arr.personName; personName.value = arr.personName;
} else { } else {
await personList(); personList();
getTableData();
} }
}; };
// menuManagement // menuManagement
@ -430,8 +429,8 @@ const getTableData = async () => {
}; };
onMounted(async () => { onMounted(async () => {
await getPersonName(); getPersonName();
await getTableData(); getTableData();
}); });
</script> </script>

View File

@ -16,11 +16,11 @@ export const useReceiptList = defineStore("ReceiptList", {
async getPersonNameList() { async getPersonNameList() {
const { data } = await reqPersonName(); const { data } = await reqPersonName();
this.personName = data; this.personName = data;
console.log(this.personName);
return this.personName; return this.personName;
}, },
async getReceiptList(obj) { async getReceiptList(obj) {
console.log("222");
const { data } = await reqReceiptList(obj); const { data } = await reqReceiptList(obj);
this.receiptList = data; this.receiptList = data;
return this.receiptList; return this.receiptList;