This commit is contained in:
@@ -424,10 +424,9 @@ todo: many biz objects are not using new PUT methodology
|
|||||||
CURRENTLY DOING: more misc stuff below to complete workorder!!!
|
CURRENTLY DOING: more misc stuff below to complete workorder!!!
|
||||||
|
|
||||||
|
|
||||||
todo: units on work order are not limited to customer on work order??
|
|
||||||
make single unit picklist current customer only variant
|
|
||||||
|
|
||||||
TODO 1: Test address / units select alternate when have units working
|
TODO 1: Test address / units select alternate when have units working
|
||||||
|
not the address in wodata thing, but rather can select the main wo address from unit??
|
||||||
|
Nope, doesn't offer unit address, need to add that to the choices, thought I had coded it in advance....
|
||||||
|
|
||||||
todo: customer->show all units not coded yet! Gasp! So shock, much freaky
|
todo: customer->show all units not coded yet! Gasp! So shock, much freaky
|
||||||
|
|
||||||
|
|||||||
@@ -578,10 +578,10 @@ async function populateAlternateAddresses(vm) {
|
|||||||
let unitIdList = [];
|
let unitIdList = [];
|
||||||
vm.value.items.forEach(i => {
|
vm.value.items.forEach(i => {
|
||||||
i.units.forEach(async u => {
|
i.units.forEach(async u => {
|
||||||
if (u.id != null && !unitIdList.includes(u.id)) {
|
if (u.unitId != null && !unitIdList.includes(u.unitId)) {
|
||||||
unitIdList.push(u.id);
|
unitIdList.push(u.unitId);
|
||||||
//get address
|
//get address
|
||||||
let res = await window.$gz.api.get(`unit/address/${u.id}`);
|
let res = await window.$gz.api.get(`unit/address/${u.unitId}`);
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
vm.alternateAddresses.push({
|
vm.alternateAddresses.push({
|
||||||
name: res.data.unit.name,
|
name: res.data.unit.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user