Added confirmationModal.vue
This commit is contained in:
		
							
								
								
									
										13
									
								
								src/App.vue
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								src/App.vue
									
									
									
									
									
								
							@@ -61,6 +61,8 @@
 | 
				
			|||||||
                              required/>
 | 
					                              required/>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
 | 
					          <button class="button is-primary mt-5">Submit</button>
 | 
				
			||||||
 | 
					          <button class="button is-primary mt-5 ml-3" @click="showModal = true">Potwierdź</button>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <div v-for="(kategoria, index) in wares" :key="kategoria.Kod">
 | 
					      <div v-for="(kategoria, index) in wares" :key="kategoria.Kod">
 | 
				
			||||||
@@ -110,7 +112,6 @@
 | 
				
			|||||||
        <div class="mb-3" v-if="!(index == wares.length - 1)"></div>
 | 
					        <div class="mb-3" v-if="!(index == wares.length - 1)"></div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <button class="button is-primary mt-3 is-large is-fullwidth">Submit</button>
 | 
					      <button class="button is-primary mt-3 is-large is-fullwidth">Submit</button>
 | 
				
			||||||
      <button class="button is-primary mt-3 is-large is-fullwidth" @click="parseOrderJSON">Submit</button>
 | 
					 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
  <div class="box is-shadowless" v-else-if="isOrders">
 | 
					  <div class="box is-shadowless" v-else-if="isOrders">
 | 
				
			||||||
@@ -194,20 +195,23 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
 | 
					  <ConfirmationModal v-show="showModal" @close="showModal = false" :order-uuid="uuid"></ConfirmationModal>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script lang="ts">
 | 
					<script lang="ts">
 | 
				
			||||||
import './assets/style.scss'
 | 
					import './assets/style.scss';
 | 
				
			||||||
import { ref } from 'vue';
 | 
					import { ref } from 'vue';
 | 
				
			||||||
 | 
					import ConfirmationModal from '@/components/ConfirmationModal.vue';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
 | 
					  components: { ConfirmationModal },
 | 
				
			||||||
  data() {
 | 
					  data() {
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      contractors: [],
 | 
					      contractors: [],
 | 
				
			||||||
      contractor: {},
 | 
					      contractor: {},
 | 
				
			||||||
      wares: [],
 | 
					      wares: [],
 | 
				
			||||||
      orders: ref(new Array<Object>),
 | 
					      orders: ref(new Array<Object>),
 | 
				
			||||||
      order: {},
 | 
					      order: ref(),
 | 
				
			||||||
      deliveryDate: ref(),
 | 
					      deliveryDate: ref(),
 | 
				
			||||||
      searchOrderDate: ref(null),
 | 
					      searchOrderDate: ref(null),
 | 
				
			||||||
      isInBufor: ref(false),
 | 
					      isInBufor: ref(false),
 | 
				
			||||||
@@ -215,7 +219,8 @@ export default {
 | 
				
			|||||||
      uuid: ref(),
 | 
					      uuid: ref(),
 | 
				
			||||||
      activator: ref(false),
 | 
					      activator: ref(false),
 | 
				
			||||||
      isForm: ref(true),
 | 
					      isForm: ref(true),
 | 
				
			||||||
      isOrders: ref(false)
 | 
					      isOrders: ref(false),
 | 
				
			||||||
 | 
					      showModal: ref(false)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  watch: {
 | 
					  watch: {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user