|  | @@ -96,8 +96,8 @@
 | 
		
	
		
			
			| 96 | 96 |                    <currency-input
 | 
		
	
		
			
			| 97 | 97 |                      onClick="this.setSelectionRange(0, this.value.length)"
 | 
		
	
		
			
			| 98 | 98 |                      name="price"
 | 
		
	
		
			
			| 99 |  | -                    :value="value"
 | 
		
	
		
			
			| 100 |  | -                    @input="value = $event"
 | 
		
	
		
			
			|  | 99 | +                    :value="property.price"
 | 
		
	
		
			
			|  | 100 | +                    @input="property.price = $event"
 | 
		
	
		
			
			| 101 | 101 |                      v-model="property.price"
 | 
		
	
		
			
			| 102 | 102 |                      id="price"
 | 
		
	
		
			
			| 103 | 103 |                      class="form-control uniInput"
 | 
		
	
	
		
			
			|  | @@ -139,7 +139,7 @@
 | 
		
	
		
			
			| 139 | 139 |                    class="form-control uniInput"
 | 
		
	
		
			
			| 140 | 140 |                    type="text"
 | 
		
	
		
			
			| 141 | 141 |                    name="streetNumber"
 | 
		
	
		
			
			| 142 |  | -                  id="unit"
 | 
		
	
		
			
			|  | 142 | +                  id="streetNumber"
 | 
		
	
		
			
			| 143 | 143 |                    v-model="property.streetNumber"
 | 
		
	
		
			
			| 144 | 144 |                    disabled
 | 
		
	
		
			
			| 145 | 145 |                  />
 | 
		
	
	
		
			
			|  | @@ -154,7 +154,7 @@
 | 
		
	
		
			
			| 154 | 154 |                    class="form-control uniInput"
 | 
		
	
		
			
			| 155 | 155 |                    type="text"
 | 
		
	
		
			
			| 156 | 156 |                    name="streetName"
 | 
		
	
		
			
			| 157 |  | -                  id="unit"
 | 
		
	
		
			
			|  | 157 | +                  id="streetName"
 | 
		
	
		
			
			| 158 | 158 |                    v-model="property.streetName"
 | 
		
	
		
			
			| 159 | 159 |                    disabled
 | 
		
	
		
			
			| 160 | 160 |                  />
 | 
		
	
	
		
			
			|  | @@ -169,7 +169,7 @@
 | 
		
	
		
			
			| 169 | 169 |                    class="form-control uniInput"
 | 
		
	
		
			
			| 170 | 170 |                    type="text"
 | 
		
	
		
			
			| 171 | 171 |                    name="suburb"
 | 
		
	
		
			
			| 172 |  | -                  id="unit"
 | 
		
	
		
			
			|  | 172 | +                  id="suburb"
 | 
		
	
		
			
			| 173 | 173 |                    v-model="property.suburb"
 | 
		
	
		
			
			| 174 | 174 |                    disabled
 | 
		
	
		
			
			| 175 | 175 |                  />
 | 
		
	
	
		
			
			|  | @@ -184,7 +184,7 @@
 | 
		
	
		
			
			| 184 | 184 |                    class="form-control uniInput"
 | 
		
	
		
			
			| 185 | 185 |                    type="text"
 | 
		
	
		
			
			| 186 | 186 |                    name="city"
 | 
		
	
		
			
			| 187 |  | -                  id="unit"
 | 
		
	
		
			
			|  | 187 | +                  id="city"
 | 
		
	
		
			
			| 188 | 188 |                    v-model="property.city"
 | 
		
	
		
			
			| 189 | 189 |                    disabled
 | 
		
	
		
			
			| 190 | 190 |                  />
 | 
		
	
	
		
			
			|  | @@ -199,7 +199,7 @@
 | 
		
	
		
			
			| 199 | 199 |                    class="form-control uniInput"
 | 
		
	
		
			
			| 200 | 200 |                    type="text"
 | 
		
	
		
			
			| 201 | 201 |                    name="province"
 | 
		
	
		
			
			| 202 |  | -                  id="unit"
 | 
		
	
		
			
			|  | 202 | +                  id="province"
 | 
		
	
		
			
			| 203 | 203 |                    v-model="property.province"
 | 
		
	
		
			
			| 204 | 204 |                    disabled
 | 
		
	
		
			
			| 205 | 205 |                  />
 | 
		
	
	
		
			
			|  | @@ -214,7 +214,7 @@
 | 
		
	
		
			
			| 214 | 214 |                    class="form-control uniInput"
 | 
		
	
		
			
			| 215 | 215 |                    type="text"
 | 
		
	
		
			
			| 216 | 216 |                    name="postalCode"
 | 
		
	
		
			
			| 217 |  | -                  id="unit"
 | 
		
	
		
			
			|  | 217 | +                  id="postalCode"
 | 
		
	
		
			
			| 218 | 218 |                    v-model="property.postalCode"
 | 
		
	
		
			
			| 219 | 219 |                    disabled
 | 
		
	
		
			
			| 220 | 220 |                  />
 | 
		
	
	
		
			
			|  | @@ -229,7 +229,7 @@
 | 
		
	
		
			
			| 229 | 229 |                    class="form-control uniInput"
 | 
		
	
		
			
			| 230 | 230 |                    type="text"
 | 
		
	
		
			
			| 231 | 231 |                    name="country"
 | 
		
	
		
			
			| 232 |  | -                  id="unit"
 | 
		
	
		
			
			|  | 232 | +                  id="country"
 | 
		
	
		
			
			| 233 | 233 |                    v-model="property.country"
 | 
		
	
		
			
			| 234 | 234 |                    disabled
 | 
		
	
		
			
			| 235 | 235 |                  />
 | 
		
	
	
		
			
			|  | @@ -261,13 +261,14 @@
 | 
		
	
		
			
			| 261 | 261 |          <div v-for="item in propertyFields" :key="item.id">
 | 
		
	
		
			
			| 262 | 262 |            <div v-if="item.name === 'Commercial Fields'">
 | 
		
	
		
			
			| 263 | 263 |              <UserField
 | 
		
	
		
			
			| 264 |  | -              :fields="item.fields"
 | 
		
	
		
			
			|  | 264 | +              :fields="sortFields"
 | 
		
	
		
			
			| 265 | 265 |                :id="item.name"
 | 
		
	
		
			
			| 266 | 266 |                @UpdateUserDefinedFields="UpdateUserDefinedFields"
 | 
		
	
		
			
			| 267 | 267 |                :fieldValues="item.fields"
 | 
		
	
		
			
			| 268 | 268 |              />
 | 
		
	
		
			
			| 269 | 269 |            </div>
 | 
		
	
		
			
			| 270 | 270 |          </div>
 | 
		
	
		
			
			|  | 271 | +
 | 
		
	
		
			
			| 271 | 272 |          <div class="row">
 | 
		
	
		
			
			| 272 | 273 |            <div class="col-sm-12">
 | 
		
	
		
			
			| 273 | 274 |              <div class="section-header">
 | 
		
	
	
		
			
			|  | @@ -374,7 +375,7 @@ export default {
 | 
		
	
		
			
			| 374 | 375 |        addressSet: false,
 | 
		
	
		
			
			| 375 | 376 |        showPropertyTypeError: false,
 | 
		
	
		
			
			| 376 | 377 |        showDateError: false,
 | 
		
	
		
			
			| 377 |  | -      user: Log.getUser(),
 | 
		
	
		
			
			|  | 378 | +      userParam: Log.getUser(),
 | 
		
	
		
			
			| 378 | 379 |        mayEdit: Log.isLoggedIn()
 | 
		
	
		
			
			| 379 | 380 |      };
 | 
		
	
		
			
			| 380 | 381 |    },
 | 
		
	
	
		
			
			|  | @@ -407,6 +408,7 @@ export default {
 | 
		
	
		
			
			| 407 | 408 |      TypeChanged() {
 | 
		
	
		
			
			| 408 | 409 |        this.property.propertyUsageType = this.propertyType;
 | 
		
	
		
			
			| 409 | 410 |      },
 | 
		
	
		
			
			|  | 411 | +
 | 
		
	
		
			
			| 410 | 412 |      SubmitData() {
 | 
		
	
		
			
			| 411 | 413 |        if (this.property.propertyTypeId === 0) {
 | 
		
	
		
			
			| 412 | 414 |          this.showPropertyTypeError = true;
 | 
		
	
	
		
			
			|  | @@ -542,6 +544,14 @@ export default {
 | 
		
	
		
			
			| 542 | 544 |      ]),
 | 
		
	
		
			
			| 543 | 545 |      ...mapState("authentication", ["user"]),
 | 
		
	
		
			
			| 544 | 546 |      ...mapGetters("fees", ["getListingFee"]),
 | 
		
	
		
			
			|  | 547 | +    sortFields() {
 | 
		
	
		
			
			|  | 548 | +      var display = [];
 | 
		
	
		
			
			|  | 549 | +
 | 
		
	
		
			
			|  | 550 | +      display = this.propertyFields[0].fields.sort((a, b) => (a.rank > b.rank ? 1 : -1));
 | 
		
	
		
			
			|  | 551 | +      console.log(display);
 | 
		
	
		
			
			|  | 552 | +
 | 
		
	
		
			
			|  | 553 | +      return display;
 | 
		
	
		
			
			|  | 554 | +    },
 | 
		
	
		
			
			| 545 | 555 |      SalesTypeChanged() {
 | 
		
	
		
			
			| 546 | 556 |        // eslint-disable-next-line vue/no-side-effects-in-computed-properties
 | 
		
	
		
			
			| 547 | 557 |        // this.propertyType = this.$route.params.propType;
 |