chore: install prettier

This commit is contained in:
Viet An
2026-05-04 15:22:27 +07:00
parent 93d29ca7d8
commit bd58e2b847
267 changed files with 22950 additions and 13581 deletions

View File

@@ -1,5 +1,8 @@
<template>
<div :id="docid" v-if="record">
<div
:id="docid"
v-if="record"
>
<div>
<Caption
v-bind="{
@@ -12,9 +15,11 @@
<div class="field">
<label class="label">Mã</label>
<div class="control">
<span class="hyperlink" @click="$copyToClipboard(record.code)">{{
record.code
}}</span>
<span
class="hyperlink"
@click="$copyToClipboard(record.code)"
>{{ record.code }}</span
>
</div>
</div>
</div>
@@ -28,14 +33,21 @@
<div class="field">
<label class="label">Điện thoại</label>
<div class="control">
<span class="hyperlink" @click="openPhone()">{{ record.phone }}</span>
<span
class="hyperlink"
@click="openPhone()"
>{{ record.phone }}</span
>
</div>
</div>
</div>
<div class="column is-3 pb-1 px-0">
<div class="field">
<label class="label">Email</label>
<div class="control" style="word-break: break-all">
<div
class="control"
style="word-break: break-all"
>
{{ record.email || "/" }}
</div>
</div>
@@ -116,7 +128,10 @@
<div class="field">
<label class="label">{{ findLang("update") }}</label>
<div class="control">
<span class="hyperlink" @click="openUser()">
<span
class="hyperlink"
@click="openUser()"
>
{{ record.updater__fullname }}
</span>
</div>
@@ -131,12 +146,20 @@
type: 'has-text-primary',
}"
></Caption>
<ImageGallery
v-bind="{ row: record, api: 'peoplefile', hideopt: true }"
></ImageGallery>
<div class="mt-2 border-bottom" id="ignore"></div>
<div class="buttons mt-3" id="ignore">
<button v-if="$getEditRights('edit', { code: 'customer', category: 'topmenu' })" class="button is-primary has-text-white" @click="edit()">
<ImageGallery v-bind="{ row: record, api: 'peoplefile', hideopt: true }"></ImageGallery>
<div
class="mt-2 border-bottom"
id="ignore"
></div>
<div
class="buttons mt-3"
id="ignore"
>
<button
v-if="$getEditRights('edit', { code: 'customer', category: 'topmenu' })"
class="button is-primary has-text-white"
@click="edit()"
>
Chỉnh sửa
</button>
<button
@@ -171,12 +194,7 @@ export default {
};
},
async created() {
this.record = await this.$getdata(
"people",
{ id: this.row.people || this.row.id },
undefined,
true
);
this.record = await this.$getdata("people", { id: this.row.people || this.row.id }, undefined, true);
},
methods: {
findLang(code) {
@@ -203,8 +221,8 @@ export default {
this.showmodal = {
component: "people/People",
title: "Chỉnh sửa người liên quan",
width: '65%',
height: '400px',
width: "65%",
height: "400px",
vbind: { row: this.record },
};
},