This commit is contained in:
parent
d58f414af3
commit
59a5473bd8
|
@ -21,8 +21,14 @@ export default class adduserinfo extends React.Component{
|
||||||
cost_price:"",
|
cost_price:"",
|
||||||
stock:"",
|
stock:"",
|
||||||
name:"",
|
name:"",
|
||||||
|
<<<<<<< HEAD
|
||||||
show_url:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20211126/4dc4e28e0ec4a563f36e99d8f5cabb5c.png",
|
show_url:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20211126/4dc4e28e0ec4a563f36e99d8f5cabb5c.png",
|
||||||
describe_url:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20211126/4dc4e28e0ec4a563f36e99d8f5cabb5c.png",
|
describe_url:"https://lsxd-yunshanfu.oss-cn-hangzhou.aliyuncs.com/common_image/20211126/4dc4e28e0ec4a563f36e99d8f5cabb5c.png",
|
||||||
|
=======
|
||||||
|
show_url:"",
|
||||||
|
loadshow:false,
|
||||||
|
describe_url:"",
|
||||||
|
>>>>>>> 3687c26107f5edfe223b8de6bf6eae6556a7be32
|
||||||
},
|
},
|
||||||
cur_product:null,
|
cur_product:null,
|
||||||
productOption:[],
|
productOption:[],
|
||||||
|
@ -293,7 +299,8 @@ export default class adduserinfo extends React.Component{
|
||||||
<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>
|
||||||
<FormItem labelname="商品库存" prop="stock" id="stock">
|
{
|
||||||
|
this.state.loadshow? <FormItem labelname="商品库存" prop="stock" id="stock">
|
||||||
<Ipt onChange={(e)=>{
|
<Ipt onChange={(e)=>{
|
||||||
let model2 = this.state.model;
|
let model2 = this.state.model;
|
||||||
model2.stock = e;
|
model2.stock = e;
|
||||||
|
@ -306,40 +313,43 @@ export default class adduserinfo extends React.Component{
|
||||||
this.setState({model:model2})
|
this.setState({model:model2})
|
||||||
}}
|
}}
|
||||||
|
|
||||||
value={this.state.model.stock} placeholder={"请输入"} labelWidth={'0px'} maxLength={5} height={'36px'} width={'520px'} alignment={'left'}/>
|
value={this.state.model.stock} placeholder={"请输入"} labelWidth={'0px'} maxLength={7} height={'36px'} width={'520px'} alignment={'left'}/>
|
||||||
</FormItem>
|
</FormItem> :null
|
||||||
|
}
|
||||||
|
{
|
||||||
<FormItem id="contract_price" labelname="合同价" prop="contract_price">
|
this.state.loadshow?<FormItem id="contract_price" labelname="合同价" prop="contract_price">
|
||||||
<Ipt onChange={(e)=>{
|
<Ipt onChange={(e)=>{
|
||||||
let model2 = this.state.model;
|
let model2 = this.state.model;
|
||||||
model2.contract_price = e;
|
model2.contract_price = e;
|
||||||
this.setState({model:model2})
|
this.setState({model:model2})
|
||||||
}}
|
}}
|
||||||
|
|
||||||
onClearItem={(e)=>{
|
onClearItem={(e)=>{
|
||||||
let model2 = this.state.model;
|
let model2 = this.state.model;
|
||||||
model2.contract_price = "";
|
model2.contract_price = "";
|
||||||
this.setState({model:model2})
|
this.setState({model:model2})
|
||||||
}}
|
}}
|
||||||
|
|
||||||
value={this.state.model.contract_price} placeholder={"请输入"} labelWidth={'0px'} maxLength={16} height={'36px'} width={'520px'} alignment={'left'}/>
|
value={this.state.model.contract_price} placeholder={"请输入"} labelWidth={'0px'} maxLength={16} height={'36px'} width={'520px'} alignment={'left'}/>
|
||||||
|
|
||||||
</FormItem>
|
</FormItem> :null
|
||||||
<FormItem id="name" labelname="商品名称" prop="name">
|
}
|
||||||
<Ipt onChange={(e)=>{
|
{
|
||||||
let model2 = this.state.model;
|
this.state.loadshow? <FormItem id="name" labelname="商品名称" prop="name">
|
||||||
model2.name = e;
|
<Ipt onChange={(e)=>{
|
||||||
this.setState({model:model2})
|
let model2 = this.state.model;
|
||||||
}}
|
model2.name = e;
|
||||||
onClearItem={(e)=>{
|
this.setState({model:model2})
|
||||||
let model2 = this.state.model;
|
}}
|
||||||
model2.name = "";
|
onClearItem={(e)=>{
|
||||||
this.setState({model:model2})
|
let model2 = this.state.model;
|
||||||
}}
|
model2.name = "";
|
||||||
value={this.state.model.name} placeholder={"请输入"} labelWidth={'0px'} maxLength={16} height={'36px'} width={'520px'} alignment={'left'}/>
|
this.setState({model:model2})
|
||||||
|
}}
|
||||||
</FormItem>
|
value={this.state.model.name} placeholder={"请输入"} labelWidth={'0px'} maxLength={16} height={'36px'} width={'520px'} alignment={'left'}/>
|
||||||
|
|
||||||
|
</FormItem> :null
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
<FormItem id="official_price" labelname="商品官方价" prop="official_price">
|
<FormItem id="official_price" labelname="商品官方价" prop="official_price">
|
||||||
|
|
Loading…
Reference in New Issue