|
@@ -444,7 +444,7 @@ import { getTradeConfigList } from '@/api/basic_data/sectorAllocation'
|
|
|
import GeographicalPosi from './geographicalPosi.vue'
|
|
|
import FileUpload from '@/components/Common/file-upload.vue'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
-import { getPositionProject } from '@/api/frock'
|
|
|
+import { getPositionProject, getHistory } from '@/api/frock'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -566,6 +566,9 @@ export default {
|
|
|
this.formData.customerNumber = '100503'
|
|
|
this.formData.customerName = '韶关弘格贸易有限公司'
|
|
|
}
|
|
|
+ if (!this.isTradeExaminer) {
|
|
|
+ this.getHistory(this.formData.customerId)
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -748,6 +751,7 @@ export default {
|
|
|
const item = this.commonData.customerList.find(k => k.value === e)
|
|
|
this.formData.customerName = item.label
|
|
|
this.formData.customerNumber = item.number
|
|
|
+ this.getHistory(this.formData.customerId)
|
|
|
} else {
|
|
|
this.formData.customerName = ''
|
|
|
this.formData.customerNumber = ''
|
|
@@ -792,6 +796,13 @@ export default {
|
|
|
document.body.appendChild(link)
|
|
|
link.click()
|
|
|
document.body.removeChild(link)
|
|
|
+ },
|
|
|
+ getHistory(id) {
|
|
|
+ getHistory({ customerId: id }).then(res => {
|
|
|
+ this.formData.customerLinkName = res.data.linkName
|
|
|
+ this.formData.customerLinkMobile = res.data.linkMobile
|
|
|
+ this.formData.customerAddress = res.data.address
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|