Commit 65d8b0e4 authored by 高铭波's avatar 高铭波

feat(parts):地址逻辑优化

parent b069e46a
......@@ -51,7 +51,6 @@
</template>
<script>
import Utils from '@/utils/callUtils.js'
import SelectParts from '@/components/select-parts/adjust.vue'
export default {
components: {
......@@ -96,11 +95,6 @@ export default {
this.orderId = e && Number(e.orderId) || 0
this.initData()
},
mounted() {
Utils.$on('update-site',(site)=>{
this.updateSite(site);
})
},
methods: {
initData() {
this.loadMineAddress()
......@@ -144,10 +138,11 @@ export default {
this.order.contactCityText,
this.order.contactCommunityText,
]
let address = region.join("") + (this.order.contactStreetText || '') + this.order.contactAddress
this.customer = {
name: this.order.contactName,
mobile: this.order.contactPhone,
address: region.join("") + this.order.contactStreetText + this.order.contactAddress,
address: address,
region: region,
code: [
this.order.contactProvince,
......@@ -192,7 +187,11 @@ export default {
})
},
updateSite(site) {
console.log("updateSite", site)
if(this.curType) {
this.customer = site
} else {
this.mine = site
}
},
addParts() {
this.$u.route({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment