changes
This commit is contained in:
@@ -269,7 +269,7 @@ async function update() {
|
||||
record.update_time = new Date();
|
||||
let rs = record.value.id ? await $updateapi("company", record.value) : await $insertapi("company", record.value);
|
||||
if (rs === "error") return;
|
||||
if (!record.value.id) $snackbar(`Khách hàng đã được khởi tạo với mã <b>${rs.code}</b>`, "Thành công", "Success");
|
||||
if (!record.value.id) $snackbar(`Khách hàng đã được khởi tạo với mã <b>${rs.code}</b>`, "Success");
|
||||
record.value.id = rs.id;
|
||||
let ele = await $getdata("company", { id: rs.id }, null, true);
|
||||
emit("update", ele);
|
||||
|
||||
@@ -712,7 +712,7 @@ async function update() {
|
||||
}
|
||||
|
||||
if (rs === "error") {
|
||||
$snackbar("Có lỗi xảy ra khi lưu dữ liệu", "Lỗi", "Error");
|
||||
$snackbar("Có lỗi xảy ra khi lưu dữ liệu", "Error");
|
||||
return;
|
||||
}
|
||||
record.value.id = rs.id;
|
||||
@@ -725,7 +725,6 @@ async function update() {
|
||||
`${
|
||||
isVietnamese.value ? "Khách hàng đã được khởi tạo với mã" : "Customer has been created with code"
|
||||
} <b>${rs.code}</b>`,
|
||||
"Thành công",
|
||||
"Success",
|
||||
);
|
||||
} else {
|
||||
@@ -733,7 +732,6 @@ async function update() {
|
||||
`${
|
||||
isVietnamese.value ? "Khách hàng đã được cập nhật với mã" : "Customer has been updated with code"
|
||||
} <b>${rs.code}</b>`,
|
||||
"Thành công",
|
||||
"Success",
|
||||
);
|
||||
}
|
||||
|
||||
@@ -345,7 +345,7 @@ export default {
|
||||
},
|
||||
copy(value) {
|
||||
this.$copyToClipboard(value);
|
||||
this.$snackbar("Đã copy vào clipboard.", "Copy", "Success");
|
||||
this.$snackbar("Đã copy vào clipboard", "Success");
|
||||
},
|
||||
openPhone() {
|
||||
this.showmodal = {
|
||||
|
||||
Reference in New Issue
Block a user