修正 【营销计划】新增普通商品,权重默认为0,未手动输入权重,提交后,前端提示“请输入权重”
This commit is contained in:
parent
11cc15d542
commit
b13a2814ce
|
@ -83,7 +83,7 @@ export default class adduserinfo extends React.Component {
|
||||||
model.quantity = model_temp.quantity
|
model.quantity = model_temp.quantity
|
||||||
model.product_name = model_temp.product_name
|
model.product_name = model_temp.product_name
|
||||||
model.show_url = model_temp.show_url
|
model.show_url = model_temp.show_url
|
||||||
model.weight = model_temp.weight
|
model.weight = model_temp.weight || '0'
|
||||||
model.detail_url = model_temp.detail_url
|
model.detail_url = model_temp.detail_url
|
||||||
model.account_type = model_temp.account_type
|
model.account_type = model_temp.account_type
|
||||||
let defaultPic = []
|
let defaultPic = []
|
||||||
|
@ -251,7 +251,6 @@ export default class adduserinfo extends React.Component {
|
||||||
model2.cost_price = cur_product.cost_price
|
model2.cost_price = cur_product.cost_price
|
||||||
model2.quantity = this.state.model.quantity
|
model2.quantity = this.state.model.quantity
|
||||||
model2.product_name = cur_product.title
|
model2.product_name = cur_product.title
|
||||||
model2.weight = cur_product.weight
|
|
||||||
model2.account_type = cur_product.account_type
|
model2.account_type = cur_product.account_type
|
||||||
model2.show_url = picItem ? picItem.pic : ''
|
model2.show_url = picItem ? picItem.pic : ''
|
||||||
model2.describe_url = ''
|
model2.describe_url = ''
|
||||||
|
@ -512,7 +511,7 @@ export default class adduserinfo extends React.Component {
|
||||||
}}
|
}}
|
||||||
onClearItem={(e) => {
|
onClearItem={(e) => {
|
||||||
let model2 = this.state.model
|
let model2 = this.state.model
|
||||||
model2.weight = ''
|
model2.weight = '0'
|
||||||
this.setState({ model: model2 })
|
this.setState({ model: model2 })
|
||||||
}}
|
}}
|
||||||
value={this.state.model.weight}
|
value={this.state.model.weight}
|
||||||
|
|
Loading…
Reference in New Issue