mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Update: Vue 2 to Vue 3 with Typescript, node 14 to node 22, Jenkinsfile, Dockerfile, vapor.yml (Post PROD Deployment)
This commit is contained in:
+1
-2
@@ -181,11 +181,10 @@ const props = defineProps<{
|
||||
section: string;
|
||||
}>();
|
||||
|
||||
const { submit } = useModalFormHandler(props);
|
||||
const { submit, error } = useModalFormHandler(props);
|
||||
const authStore = useAuthStore();
|
||||
const uiStore = useUiStore();
|
||||
|
||||
const error = ref('');
|
||||
const step = ref(1);
|
||||
const parameters = reactive({
|
||||
name: '',
|
||||
|
||||
@@ -55,7 +55,7 @@ const props = defineProps<{
|
||||
section: string;
|
||||
}>();
|
||||
|
||||
const { submit } = useModalFormHandler(props);
|
||||
const { submit, error } = useModalFormHandler(props);
|
||||
const authStore = useAuthStore();
|
||||
const uiStore = useUiStore();
|
||||
const rules = {
|
||||
@@ -65,7 +65,6 @@ const rules = {
|
||||
}
|
||||
};
|
||||
|
||||
const error = ref('');
|
||||
const parameters = reactive({
|
||||
email: '',
|
||||
password: ''
|
||||
|
||||
@@ -90,11 +90,10 @@ const props = defineProps<{
|
||||
section: string;
|
||||
}>();
|
||||
|
||||
const { submit } = useModalFormHandler(props);
|
||||
const { submit, error } = useModalFormHandler(props);
|
||||
const authStore = useAuthStore();
|
||||
const uiStore = useUiStore();
|
||||
|
||||
const error = ref('');
|
||||
const parameters = reactive({
|
||||
company_id: props.id,
|
||||
name: '',
|
||||
|
||||
@@ -85,11 +85,10 @@ const props = defineProps<{
|
||||
section: string;
|
||||
}>();
|
||||
|
||||
const { submit } = useModalFormHandler(props);
|
||||
const { submit, error } = useModalFormHandler(props);
|
||||
const authStore = useAuthStore();
|
||||
const uiStore = useUiStore();
|
||||
|
||||
const error = ref('');
|
||||
const parameters = reactive({
|
||||
name: '',
|
||||
email: '',
|
||||
|
||||
@@ -270,10 +270,9 @@ const props = defineProps<{
|
||||
section: string;
|
||||
}>();
|
||||
|
||||
const { submit } = useModalFormHandler(props);
|
||||
const { submit, error } = useModalFormHandler(props);
|
||||
const authStore = useAuthStore();
|
||||
|
||||
const error = ref('');
|
||||
const step = ref(1);
|
||||
const parameters = reactive({
|
||||
name: '',
|
||||
|
||||
@@ -141,7 +141,6 @@ const { submit } = useModalFormHandler(props);
|
||||
|
||||
const item = ref(props.data ? JSON.parse(JSON.stringify(props.data)) : {});
|
||||
const isLoading = ref(false);
|
||||
const error = ref('');
|
||||
|
||||
watch(() => props.data, (newData) => {
|
||||
if (newData) {
|
||||
@@ -151,18 +150,6 @@ watch(() => props.data, (newData) => {
|
||||
}
|
||||
}, { deep: true });
|
||||
|
||||
const successHandler = () => {
|
||||
isLoading.value = false;
|
||||
queueStore.reloadList({ name: props.section });
|
||||
error.value = '';
|
||||
};
|
||||
|
||||
const errorHandler = (err: any) => {
|
||||
isLoading.value = false;
|
||||
queueStore.reloadList({ name: props.section });
|
||||
error.value = err.message || 'An error occurred';
|
||||
};
|
||||
|
||||
const approveAddress = (status: number) => {
|
||||
isLoading.value = true;
|
||||
const url = route('api.order.address.status.update', item.value.id, status);
|
||||
|
||||
-15
@@ -194,8 +194,6 @@ const props = defineProps<{
|
||||
section: string;
|
||||
}>();
|
||||
|
||||
const queueStore = useQueueStore();
|
||||
const uiStore = useUiStore();
|
||||
const authStore = useAuthStore();
|
||||
const { submit } = useModalFormHandler(props);
|
||||
|
||||
@@ -204,7 +202,6 @@ const isEditIdentificationNumber = ref(false);
|
||||
const isEditCompanyName = ref(false);
|
||||
const item = ref(props.data ? JSON.parse(JSON.stringify(props.data)) : {});
|
||||
const isLoading = ref(false);
|
||||
const error = ref('');
|
||||
|
||||
watch(() => props.data, (newData) => {
|
||||
if (newData) {
|
||||
@@ -214,18 +211,6 @@ watch(() => props.data, (newData) => {
|
||||
}
|
||||
}, { deep: true });
|
||||
|
||||
const successHandler = () => {
|
||||
isLoading.value = false;
|
||||
queueStore.reloadList({ name: props.section });
|
||||
error.value = '';
|
||||
};
|
||||
|
||||
const errorHandler = (err: any) => {
|
||||
isLoading.value = false;
|
||||
queueStore.reloadList({ name: props.section });
|
||||
error.value = err.message || 'An error occurred';
|
||||
};
|
||||
|
||||
const approveDocument = (status: string) => {
|
||||
isLoading.value = true;
|
||||
const url = route('api.company.identification.approval', item.value.owner.id, item.value.id, status);
|
||||
|
||||
@@ -76,7 +76,7 @@ const props = defineProps<{
|
||||
const emit = defineEmits(['close']);
|
||||
|
||||
const uiStore = useUiStore();
|
||||
const { submit } = useModalFormHandler({ section: props.section });
|
||||
const { submit, error } = useModalFormHandler({ section: props.section });
|
||||
|
||||
const parameters = ref({
|
||||
starting_on: '',
|
||||
@@ -85,7 +85,6 @@ const parameters = ref({
|
||||
description: '',
|
||||
});
|
||||
|
||||
const error = ref('');
|
||||
|
||||
const rules = {
|
||||
parameters: {
|
||||
|
||||
@@ -76,7 +76,7 @@ const props = defineProps<{
|
||||
const emit = defineEmits(['close', 'createdAdmin']);
|
||||
|
||||
const uiStore = useUiStore();
|
||||
const { submit, closeModal, formHandler: reloadQueue } = useModalFormHandler({ section: props.section });
|
||||
const { submit, closeModal, formHandler: reloadQueue , error} = useModalFormHandler({ section: props.section });
|
||||
|
||||
const parameters = ref({
|
||||
name: '',
|
||||
@@ -85,8 +85,6 @@ const parameters = ref({
|
||||
password_confirmation: '',
|
||||
});
|
||||
|
||||
const error = ref('');
|
||||
|
||||
const rules = computed(() => ({
|
||||
parameters: {
|
||||
name: { required },
|
||||
|
||||
Reference in New Issue
Block a user