Document item new item changeable item name..
This commit is contained in:
@ -190,6 +190,7 @@ const app = new Vue({
|
|||||||
sub_total += item.total;
|
sub_total += item.total;
|
||||||
grand_total += item.grand_total;
|
grand_total += item.grand_total;
|
||||||
|
|
||||||
|
this.form.items[index].name = item.name;
|
||||||
this.form.items[index].description = item.description;
|
this.form.items[index].description = item.description;
|
||||||
this.form.items[index].quantity = item.quantity;
|
this.form.items[index].quantity = item.quantity;
|
||||||
this.form.items[index].price = item.price;
|
this.form.items[index].price = item.price;
|
||||||
|
@ -29,7 +29,25 @@
|
|||||||
@stack('name_td_start')
|
@stack('name_td_start')
|
||||||
@if (!$hideName)
|
@if (!$hideName)
|
||||||
<td class="pb-3 align-middle border-bottom-0" colspan="1">
|
<td class="pb-3 align-middle border-bottom-0" colspan="1">
|
||||||
<span class="aka-text aka-text--body" tabindex="0" v-html="row.name"></span>
|
<span class="aka-text aka-text--body" tabindex="0" v-html="row.name" v-if="row.item_id"></span>
|
||||||
|
<div v-else>
|
||||||
|
@stack('name_input_start')
|
||||||
|
<input type="text"
|
||||||
|
class="form-control"
|
||||||
|
:name="'items.' + index + '.name'"
|
||||||
|
autocomplete="off"
|
||||||
|
required="required"
|
||||||
|
data-item="name"
|
||||||
|
v-model="row.name"
|
||||||
|
@input="onCalculateTotal"
|
||||||
|
@change="form.errors.clear('items.' + index + '.name')">
|
||||||
|
|
||||||
|
<div class="invalid-feedback d-block"
|
||||||
|
v-if="form.errors.has('items.' + index + '.name')"
|
||||||
|
v-html="form.errors.get('items.' + index + '.name')">
|
||||||
|
</div>
|
||||||
|
@stack('name_input_end')
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@endif
|
@endif
|
||||||
@stack('name_td_end')
|
@stack('name_td_end')
|
||||||
|
Reference in New Issue
Block a user