Add button to refresh contact info for new custorder
e.g. click that after changes are made in other screen / system
This commit is contained in:
parent
d4aef9ceac
commit
8e4079224f
|
@ -127,14 +127,22 @@
|
|||
@input="contactChanged">
|
||||
</tailbone-autocomplete>
|
||||
</b-field>
|
||||
<b-button v-if="contactUUID && contactProfileURL"
|
||||
type="is-primary"
|
||||
tag="a" target="_blank"
|
||||
:href="contactProfileURL"
|
||||
icon-pack="fas"
|
||||
icon-left="external-link-alt">
|
||||
View Profile
|
||||
</b-button>
|
||||
<div v-if="contactUUID"
|
||||
class="buttons">
|
||||
<b-button @click="refreshContact"
|
||||
icon-pack="fas"
|
||||
icon-left="redo">
|
||||
Refresh
|
||||
</b-button>
|
||||
<b-button v-if="contactProfileURL"
|
||||
type="is-primary"
|
||||
tag="a" target="_blank"
|
||||
:href="contactProfileURL"
|
||||
icon-pack="fas"
|
||||
icon-left="external-link-alt">
|
||||
View Profile
|
||||
</b-button>
|
||||
</div>
|
||||
</b-field>
|
||||
|
||||
<b-field grouped v-show="contactUUID"
|
||||
|
@ -532,7 +540,11 @@
|
|||
|
||||
customerPanelOpen: false,
|
||||
contactIsKnown: true,
|
||||
% if new_order_requires_customer:
|
||||
contactUUID: ${json.dumps(batch.customer_uuid)|n},
|
||||
% else:
|
||||
contactUUID: ${json.dumps(batch.person_uuid)|n},
|
||||
% endif
|
||||
contactDisplay: ${json.dumps(six.text_type(batch.customer or ''))|n},
|
||||
customerEntry: null,
|
||||
contactProfileURL: ${json.dumps(contact_profile_url)|n},
|
||||
|
@ -862,6 +874,10 @@
|
|||
})
|
||||
},
|
||||
|
||||
refreshContact() {
|
||||
this.contactChanged(this.contactUUID)
|
||||
},
|
||||
|
||||
editPhoneNumberInit() {
|
||||
this.existingPhoneUUID = null
|
||||
let normalOrderPhone = this.orderPhoneNumber.replace(/\D/g, '')
|
||||
|
|
Loading…
Reference in a new issue