Commit 19fe2c3f by Denglingling

完善借货订单【收单地点、收货地点】只有一条数据时,默认选择

parent 76e433c3
Showing with 2 additions and 0 deletions
...@@ -800,6 +800,7 @@ class EquipConsuPage extends Component { ...@@ -800,6 +800,7 @@ class EquipConsuPage extends Component {
let { localCustomersOption, listOptionData } = this.state let { localCustomersOption, listOptionData } = this.state
let that = this let that = this
let tempLocalOption = localCustomersOption.filter(item => item.customer_code === listOptionData[2].value) let tempLocalOption = localCustomersOption.filter(item => item.customer_code === listOptionData[2].value)
tempLocalOption = dedupQuoteArray(tempLocalOption, 'bill_to_site_code')
if(tempLocalOption.length === 0) { if(tempLocalOption.length === 0) {
show(`当前收单地点为空`) show(`当前收单地点为空`)
return return
...@@ -848,6 +849,7 @@ class EquipConsuPage extends Component { ...@@ -848,6 +849,7 @@ class EquipConsuPage extends Component {
let { localCustomersOption, listOptionData } = this.state let { localCustomersOption, listOptionData } = this.state
let that = this let that = this
let tempLocalOption = localCustomersOption.filter(item => item.customer_code === listOptionData[2].value) let tempLocalOption = localCustomersOption.filter(item => item.customer_code === listOptionData[2].value)
tempLocalOption = dedupQuoteArray(tempLocalOption, 'ship_to_site_code')
if(tempLocalOption.length === 0) { if(tempLocalOption.length === 0) {
show(`当前收货地点为空`) show(`当前收货地点为空`)
return return
......
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 sign in to comment