Merge branch 'couponV2.0' of https://codeup.aliyun.com/5f9118049cffa29cfdd3be1c/marketing/frontend into couponV2.0
This commit is contained in:
commit
5258d98c60
|
@ -224,7 +224,8 @@ export default class exchangeAdd extends React.Component {
|
||||||
getProductInfoSelectData(reseller_id) {
|
getProductInfoSelectData(reseller_id) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let param = {
|
let param = {
|
||||||
reseller_id: reseller_id
|
reseller_id: reseller_id,
|
||||||
|
type: 1
|
||||||
}
|
}
|
||||||
getProductInfoSelect(param).then((res) => {
|
getProductInfoSelect(param).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
|
@ -671,7 +672,8 @@ export default class exchangeAdd extends React.Component {
|
||||||
this.setState({ product_title: "新增立减金", newGoldLoading: true })
|
this.setState({ product_title: "新增立减金", newGoldLoading: true })
|
||||||
}
|
}
|
||||||
let param = {
|
let param = {
|
||||||
reseller_id: direct_reseller_ids
|
reseller_id: direct_reseller_ids,
|
||||||
|
type: 1
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
getProductInfoSelect(param).then((res) => {
|
getProductInfoSelect(param).then((res) => {
|
||||||
|
|
|
@ -574,6 +574,17 @@ export default class adduserinfo extends React.Component {
|
||||||
return (
|
return (
|
||||||
<div id='addproduct'>
|
<div id='addproduct'>
|
||||||
<Form model={this.state.model} rules={rules} ref='form1'>
|
<Form model={this.state.model} rules={rules} ref='form1'>
|
||||||
|
<FormItem labelname='商品类型' prop='type' id='type'>
|
||||||
|
<RadioGroup
|
||||||
|
onChange={(e) => {
|
||||||
|
this.onTypeChange(e)
|
||||||
|
}}
|
||||||
|
disabled={true}
|
||||||
|
value={this.state.model.product_type}>
|
||||||
|
<RadioButton value={1}>直充</RadioButton>
|
||||||
|
<RadioButton value={2}>卡密</RadioButton>
|
||||||
|
</RadioGroup>
|
||||||
|
</FormItem>
|
||||||
<FormItem labelname='映射商品' prop='product' id='product'>
|
<FormItem labelname='映射商品' prop='product' id='product'>
|
||||||
<Select
|
<Select
|
||||||
options={this.state.productOption}
|
options={this.state.productOption}
|
||||||
|
@ -587,17 +598,6 @@ export default class adduserinfo extends React.Component {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem labelname='商品类型' prop='type' id='type'>
|
|
||||||
<RadioGroup
|
|
||||||
onChange={(e) => {
|
|
||||||
this.onTypeChange(e)
|
|
||||||
}}
|
|
||||||
disabled={true}
|
|
||||||
value={this.state.model.product_type}>
|
|
||||||
<RadioButton value={1}>直充</RadioButton>
|
|
||||||
<RadioButton value={2}>卡密</RadioButton>
|
|
||||||
</RadioGroup>
|
|
||||||
</FormItem>
|
|
||||||
<FormItem labelname='预估成本价' prop='cost_price' id='cost_price'>
|
<FormItem labelname='预估成本价' prop='cost_price' id='cost_price'>
|
||||||
<div className='line-value'>{this.state.model.cost_price}</div>
|
<div className='line-value'>{this.state.model.cost_price}</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
Loading…
Reference in New Issue