Compare commits
2 Commits
087756c014
...
3a3e268f69
Author | SHA1 | Date | |
---|---|---|---|
|
3a3e268f69 | ||
|
a1fa3a29d9 |
|
@ -465,3 +465,4 @@ onMounted(() => {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@/pages/finance-bill-manage/billCancel
|
||||||
|
|
|
@ -392,12 +392,13 @@ const refresh = () => {
|
||||||
getTableData();
|
getTableData();
|
||||||
};
|
};
|
||||||
// 判断menuManagement里面是否存在数据
|
// 判断menuManagement里面是否存在数据
|
||||||
const getPersonName = () => {
|
const getPersonName = async () => {
|
||||||
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 {
|
||||||
personList();
|
await personList();
|
||||||
|
getTableData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 判断menuManagement里面是否存在数据
|
// 判断menuManagement里面是否存在数据
|
||||||
|
@ -429,8 +430,8 @@ const getTableData = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
getPersonName();
|
await getPersonName();
|
||||||
getTableData();
|
await getTableData();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user