mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-30 09:54:16 +00:00
59 lines
2.5 KiB
Vue
59 lines
2.5 KiB
Vue
<template>
|
|
<div class="row" style="width: 450px; margin: auto;" @keyup.enter="submitForm">
|
|
<div class="col bg-white padding-40 b-rad-lg">
|
|
<div class="row m-auto" style="width: 300px;">
|
|
<div class="col text-center">
|
|
<p :class="[{'hide': expanded}]">Are you sure this container has arrived the Destination Port today?</p>
|
|
<p :class="[{'hide': !expanded}]">Plese select the actual date of arrival for this container.</p>
|
|
</div>
|
|
</div>
|
|
<div class="row m-t-20" :class="[{'hide': !expanded}]">
|
|
<div class="col">
|
|
<div class="row m-auto mt-10 mb-10">
|
|
<div class="col">
|
|
<validation-wrapper-component class="m-b-15" :validator="$v.parameters.eta">
|
|
<label class="text-primary">Date of Arrival </label>
|
|
<date-picker-component :parameters="parameters" :value="'eta'"></date-picker-component>
|
|
</validation-wrapper-component>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row m-t-15">
|
|
<div class="col">
|
|
<div class="row">
|
|
<div class="col-auto p-r-5">
|
|
<div class="btn btn-lg btn-default b-rad-none" data-dismiss="modal">Cancel</div>
|
|
</div>
|
|
<div class="col p-l-5">
|
|
<div class="btn btn-primary w-100 btn-lg" @click="submit(route('api.packing_list.container.update_dispatch_date', data.id), 'put', section, true, true)">Confirm</div>
|
|
</div>
|
|
</div>
|
|
<p class="text-right small-text m-b-0" @click="expanded = !expanded" >Choose another Date</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import modalFormHandler from '../../../general/mixins/modalFormHandler';
|
|
import { required } from "vuelidate/lib/validators";
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
parameters: {
|
|
eta: new Date().toJSON().slice(0,10).replace(/-/g,'/'),
|
|
},
|
|
expanded: false,
|
|
};
|
|
},
|
|
validations: {
|
|
parameters: {
|
|
eta: { required },
|
|
}
|
|
},
|
|
mixins: [modalFormHandler]
|
|
}
|
|
</script>
|