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">
|
@input="contactChanged">
|
||||||
</tailbone-autocomplete>
|
</tailbone-autocomplete>
|
||||||
</b-field>
|
</b-field>
|
||||||
<b-button v-if="contactUUID && contactProfileURL"
|
<div v-if="contactUUID"
|
||||||
type="is-primary"
|
class="buttons">
|
||||||
tag="a" target="_blank"
|
<b-button @click="refreshContact"
|
||||||
:href="contactProfileURL"
|
icon-pack="fas"
|
||||||
icon-pack="fas"
|
icon-left="redo">
|
||||||
icon-left="external-link-alt">
|
Refresh
|
||||||
View Profile
|
</b-button>
|
||||||
</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>
|
||||||
|
|
||||||
<b-field grouped v-show="contactUUID"
|
<b-field grouped v-show="contactUUID"
|
||||||
|
@ -532,7 +540,11 @@
|
||||||
|
|
||||||
customerPanelOpen: false,
|
customerPanelOpen: false,
|
||||||
contactIsKnown: true,
|
contactIsKnown: true,
|
||||||
|
% if new_order_requires_customer:
|
||||||
contactUUID: ${json.dumps(batch.customer_uuid)|n},
|
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},
|
contactDisplay: ${json.dumps(six.text_type(batch.customer or ''))|n},
|
||||||
customerEntry: null,
|
customerEntry: null,
|
||||||
contactProfileURL: ${json.dumps(contact_profile_url)|n},
|
contactProfileURL: ${json.dumps(contact_profile_url)|n},
|
||||||
|
@ -862,6 +874,10 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
refreshContact() {
|
||||||
|
this.contactChanged(this.contactUUID)
|
||||||
|
},
|
||||||
|
|
||||||
editPhoneNumberInit() {
|
editPhoneNumberInit() {
|
||||||
this.existingPhoneUUID = null
|
this.existingPhoneUUID = null
|
||||||
let normalOrderPhone = this.orderPhoneNumber.replace(/\D/g, '')
|
let normalOrderPhone = this.orderPhoneNumber.replace(/\D/g, '')
|
||||||
|
|
Loading…
Reference in a new issue