diff --git a/webUI/src/views/acc/component/notes.vue b/webUI/src/views/acc/component/notes.vue
index 365d1e4..a8f4e7b 100644
--- a/webUI/src/views/acc/component/notes.vue
+++ b/webUI/src/views/acc/component/notes.vue
@@ -2,22 +2,40 @@
import { defineComponent } from 'vue';
import axios from 'axios';
+interface Note {
+ id: number;
+ des: string;
+}
+
+interface Stat {
+ count: number;
+}
+
export default defineComponent({
name: 'Notes',
props: {
- stat: Object,
- code: String,
- typeNote: String,
+ stat: {
+ type: Object as () => Stat,
+ required: true
+ },
+ code: {
+ type: String,
+ required: true
+ },
+ typeNote: {
+ type: String,
+ required: true
+ },
},
data() {
return {
dialog: false, // برای باز و بسته کردن دیالوگ
loading: false,
- items: [],
+ items: [] as Note[],
des: '',
snackbar: false, // برای نمایش اسنکبار
snackbarText: '', // متن پیام اسنکبار
- snackbarColor: 'success', // رنگ اسنکبار (success, error)
+ snackbarColor: 'success' as 'success' | 'error', // رنگ اسنکبار (success, error)
};
},
mounted() {
@@ -37,7 +55,7 @@ export default defineComponent({
this.loading = false;
});
},
- remove(id) {
+ remove(id: number) {
this.loading = true;
axios.post(`/api/notes/remove/${id}`).then((response) => {
this.loading = false;
@@ -65,7 +83,7 @@ export default defineComponent({
.post('/api/notes/add', {
des: this.des,
type: this.$props.typeNote,
- code: this.$route.params.id,
+ code: this.$props.code,
})
.then((response) => {
this.loading = false;
diff --git a/webUI/src/views/acc/transfer/list.vue b/webUI/src/views/acc/transfer/list.vue
index 2a8282e..b44bb8d 100644
--- a/webUI/src/views/acc/transfer/list.vue
+++ b/webUI/src/views/acc/transfer/list.vue
@@ -27,8 +27,8 @@
-
- mdi-dots-vertical
+
+ mdi-menu
@@ -36,7 +36,7 @@
سند حسابداری
-
+
مشاهده
@@ -67,19 +67,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+