Update edit.js

This commit is contained in:
姜棚 2021-12-09 15:55:40 +08:00
parent b3f96b8b38
commit 4e4b9def52
1 changed files with 7 additions and 1 deletions

View File

@ -54,7 +54,8 @@ export default class exchangedit extends React.Component{
issued:'',//发放总量
describe:'',
date_time:"",
range:""
range:"",
stock:""
},
isload:false,
tempdata:[],
@ -82,6 +83,7 @@ export default class exchangedit extends React.Component{
let codeInfo={
code_name:req.title,
issued:req.quantity,
stock:req.stock,
describe:req.describe,
date_time:[req.begin_time,req.end_time],
range:req.code_batch_stock
@ -587,6 +589,10 @@ export default class exchangedit extends React.Component{
<div>{this.state.codeInfo.issued}</div>
</FormItem>
<FormItem labelname="剩余库存量" prop="issued" id="issued">
<div>{this.state.codeInfo.stock}</div>
</FormItem>
<FormItem labelname="使用说明" prop="describe" id="describe" >
<Input type="textarea" autoSize width="520px" maxLength={100} value={this.state.codeInfo.describe} onChange={(e)=>{
let model = this.state.codeInfo;