|
|
@ -4043,7 +4043,6 @@ export default { |
|
|
return Promise.resolve(false) |
|
|
return Promise.resolve(false) |
|
|
} |
|
|
} |
|
|
return queryCustomer({ |
|
|
return queryCustomer({ |
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
customerNo |
|
|
customerNo |
|
|
}).then(({data}) => { |
|
|
}).then(({data}) => { |
|
|
if (data && data.code !== 0) { |
|
|
if (data && data.code !== 0) { |
|
|
@ -4051,9 +4050,8 @@ export default { |
|
|
this.modalData.customerDesc = '' |
|
|
this.modalData.customerDesc = '' |
|
|
return 'error' |
|
|
return 'error' |
|
|
} |
|
|
} |
|
|
const site = this.$store.state.user.site |
|
|
|
|
|
const rows = ((data && data.rows) || []).filter(row => !row.site || row.site === site) |
|
|
|
|
|
if (rows.length === 1) { |
|
|
|
|
|
|
|
|
const rows = (data && data.rows) || [] |
|
|
|
|
|
if (rows.length > 0) { |
|
|
this.modalData.customerDesc = rows[0].customerDesc |
|
|
this.modalData.customerDesc = rows[0].customerDesc |
|
|
return true |
|
|
return true |
|
|
} |
|
|
} |
|
|
|