- fix bug generate แนบท้ายไม่ generate ใหม่

- ปิด log
This commit is contained in:
Warunee Tamkoo 2023-09-20 00:58:45 +07:00
parent eea8ce1b6d
commit 3da536acb0
7 changed files with 132 additions and 479 deletions

View file

@ -207,7 +207,6 @@ const getData = async (id: string) => {
.get(config.API.copyOrderId(id))
.then((res) => {
const data = res.data.result;
// console.log(data);
let list: DataCopyOrder[] = [];
data.map((r: ResponseCopyOrder) => {
let selectCopyOrder = [];
@ -248,7 +247,6 @@ const getData = async (id: string) => {
};
const saveData = async () => {
// console.log("select", selectedModal.value);
const id = route.params.orderid
? route.params.orderid.toString()
: localStorage.getItem("orderId")
@ -258,10 +256,6 @@ const saveData = async () => {
showLoader();
await http
.post(config.API.copyOrderPersonsId(id), selectedModal.value)
.then((res) => {
// const data = res.data.result;
// console.log(res);
})
.catch((e) => {
messageError($q, e);
})
@ -332,8 +326,6 @@ const deleteData = async (id: string) => {
await http
.delete(config.API.copyOrderId(id))
.then((res) => {
// const data = res.data.result;
// console.log(res);
success($q, "ลบข้อมูลสำเร็จ");
})
.catch((e) => {