changes
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-tooltip
|
||||
label="Bút toán hạch toán"
|
||||
position="is-left"
|
||||
type="is-primary"
|
||||
>
|
||||
<a
|
||||
class="mr-2"
|
||||
@click="list()"
|
||||
>
|
||||
<SvgIcon v-bind="{ name: 'menu.png', type: 'gray', size: 16 }"></SvgIcon>
|
||||
</a>
|
||||
</b-tooltip>
|
||||
<b-tooltip
|
||||
v-if="$getEditRights()"
|
||||
label="Hạch toán"
|
||||
position="is-left"
|
||||
type="is-primary"
|
||||
>
|
||||
<a
|
||||
class="mr-2"
|
||||
@click="entry()"
|
||||
>
|
||||
<SvgIcon v-bind="{ name: 'usd.png', type: 'gray', size: 16 }"></SvgIcon>
|
||||
</a>
|
||||
</b-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: ["row", "api", "pagename"],
|
||||
methods: {
|
||||
list() {
|
||||
let obj = {
|
||||
component: "common/ViewList",
|
||||
title: this.$lang("entry"),
|
||||
width: "80%",
|
||||
height: "400px",
|
||||
vbind: {
|
||||
vbind: {
|
||||
api: "internalentry",
|
||||
setting: "internal-entry-fields",
|
||||
filter: { account__code: this.row.code },
|
||||
},
|
||||
},
|
||||
};
|
||||
this.$emit("open", { name: "dataevent", data: { modal: obj } });
|
||||
},
|
||||
entry() {
|
||||
let obj = {
|
||||
component: "accounting/InternalDeposit",
|
||||
title: this.$lang("accounting-entry"),
|
||||
width: "1000px",
|
||||
height: "450px",
|
||||
vbind: { row: this.row, api: this.api, pagename: this.pagename },
|
||||
};
|
||||
this.$emit("open", { name: "dataevent", data: { modal: obj } });
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -1,35 +0,0 @@
|
||||
<template>
|
||||
<a
|
||||
class="has-text-link"
|
||||
@click="open"
|
||||
>{{ row["collaborator__code"] }}</a
|
||||
>
|
||||
</template>
|
||||
<script setup>
|
||||
import { useStore } from "~/stores/index";
|
||||
const store = useStore();
|
||||
const { $getdata } = useNuxtApp();
|
||||
|
||||
const emit = defineEmits(["clickevent"]);
|
||||
const props = defineProps({
|
||||
row: Object,
|
||||
});
|
||||
async function open() {
|
||||
const record = await $getdata("collaborator", {
|
||||
first: true,
|
||||
filter: { code: props.row.collaborator__code },
|
||||
});
|
||||
emit("clickevent", {
|
||||
name: "dataevent",
|
||||
data: {
|
||||
modal: {
|
||||
title: store.lang === "en" ? "Collaborator" : "Cộng tác viên",
|
||||
height: "400px",
|
||||
width: "60%",
|
||||
component: "collaborator/CollaboratorView",
|
||||
vbind: { row: record },
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -1,30 +0,0 @@
|
||||
<template>
|
||||
<a
|
||||
class="has-text-link"
|
||||
@click="open"
|
||||
>{{ row["payment_status__code"] }}</a
|
||||
>
|
||||
</template>
|
||||
<script setup>
|
||||
const { $store } = useNuxtApp();
|
||||
const emit = defineEmits(["clickevent"]);
|
||||
const props = defineProps({
|
||||
row: Object,
|
||||
api: String,
|
||||
pagename: String,
|
||||
});
|
||||
function open() {
|
||||
emit("clickevent", {
|
||||
name: "dataevent",
|
||||
data: {
|
||||
modal: {
|
||||
title: $store.lang === "en" ? "Payment status" : "Trạng thái thanh toán",
|
||||
height: "300px",
|
||||
width: "600px",
|
||||
component: "application/CommPayment",
|
||||
vbind: { row: props.row, api: props.api, pagename: "pagedata5" },
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user