兑换码审批流程更新
This commit is contained in:
parent
2b551783db
commit
d7d4c848b8
|
@ -103,39 +103,70 @@ export default class exchangedit extends React.Component{
|
|||
|
||||
|
||||
this.setState({new_product:new_ids})
|
||||
|
||||
this.setState({codeInfo:codeInfo})
|
||||
this.setState({isload:true});
|
||||
let table = _.map(codeInfo.range,(res)=>{
|
||||
res.checked = true;
|
||||
return res
|
||||
});
|
||||
let delete_product = req.delete_product
|
||||
let payment_direction = req.payment_direction
|
||||
getCodesDetail(code_batch_id).then(res=>{
|
||||
handelResponse(res,(req,msg)=>{
|
||||
codeInfo.stock = req.stock;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this.setState({codeInfo:codeInfo})
|
||||
this.setState({isload:true});
|
||||
let table = _.map(codeInfo.range,(res)=>{
|
||||
let obj = req.code_batch_stock.find(o=>o.product_id == res.product_id);
|
||||
res.usage = obj ? obj.usage : 0;
|
||||
res.stock =obj ? obj.stock : res.quantity - res.usage;
|
||||
res.checked = true;
|
||||
return res
|
||||
});
|
||||
|
||||
|
||||
this.setState({deleteProduct:delete_product})
|
||||
|
||||
this.setState({tempdata:codeInfo.range})
|
||||
|
||||
let arr = [];
|
||||
|
||||
_.map(codeInfo.range,(res)=>{
|
||||
let obj = {};
|
||||
obj.key = res.product_id;
|
||||
obj.text= res.product_name;
|
||||
this.state.oldProduct.push(res.product_id);
|
||||
arr.push(obj)
|
||||
return obj;
|
||||
})
|
||||
|
||||
this.setState({rankoptions:arr})
|
||||
this.setState({rank:arr})
|
||||
|
||||
|
||||
if(payment_direction)
|
||||
{
|
||||
let index = this.state.payment_direction.indexOf(payment_direction)
|
||||
this.setState({paytype: index+1})
|
||||
}
|
||||
|
||||
},(err)=>{
|
||||
|
||||
})
|
||||
}).catch(err=>{
|
||||
});
|
||||
|
||||
|
||||
this.setState({deleteProduct:req.delete_product})
|
||||
|
||||
this.setState({tempdata:codeInfo.range})
|
||||
|
||||
let arr = [];
|
||||
|
||||
_.map(codeInfo.range,(res)=>{
|
||||
let obj = {};
|
||||
obj.key = res.product_id;
|
||||
obj.text= res.product_name;
|
||||
this.state.oldProduct.push(res.product_id);
|
||||
arr.push(obj)
|
||||
return obj;
|
||||
})
|
||||
|
||||
this.setState({rankoptions:arr})
|
||||
this.setState({rank:arr})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(req.payment_direction)
|
||||
{
|
||||
let index = this.state.payment_direction.indexOf(req.payment_direction)
|
||||
this.setState({paytype: index+1})
|
||||
}
|
||||
|
||||
|
||||
},(err)=>{
|
||||
|
|
|
@ -62,6 +62,12 @@ const Column = [
|
|||
type: "slot",
|
||||
width:'auto',
|
||||
|
||||
},{
|
||||
title: '状态',
|
||||
name: 'status',
|
||||
type: "slot",
|
||||
prop:'status',
|
||||
width:'auto',
|
||||
},
|
||||
{
|
||||
title: '券总数(已发放)',
|
||||
|
@ -99,13 +105,7 @@ const Column = [
|
|||
type: "normal",
|
||||
prop:'invalid',
|
||||
width:'auto',
|
||||
},{
|
||||
title: '状态',
|
||||
name: 'status',
|
||||
type: "slot",
|
||||
prop:'status',
|
||||
width:'auto',
|
||||
},
|
||||
}
|
||||
|
||||
];
|
||||
|
||||
|
@ -117,7 +117,7 @@ export default class acclist extends React.Component{
|
|||
total:0,
|
||||
page:1,
|
||||
limit:10,
|
||||
tabList:[{title:"全部",index:0},{title:"未开始",index:3},{title:"进行中",index:1},{title:"暂停中",index:2},{title:"已完结",index:4},{title:"已作废",index:5},{title:"创建中",index:-1},{title:"审核中",index:6},{title:"审核驳回",index:7}],
|
||||
tabList:[{title:"全部",index:0},{title:"创建中",index:-1},{title:"未开始",index:3},{title:"审核中",index:6},{title:"审核驳回",index:7},{title:"进行中",index:1},{title:"暂停中",index:2},{title:"已结束",index:4},{title:"已作废",index:5}],
|
||||
combinedValue:[],
|
||||
DateTime:'',//数据更新时间
|
||||
key_word:'',
|
||||
|
|
|
@ -631,6 +631,7 @@ linkTo(row){
|
|||
let str = ""
|
||||
let str2 = <span>
|
||||
<a className="grid-link disabled" >编辑</a>
|
||||
<a className="grid-link disabled" >复制</a>
|
||||
<Dropdown position={DropdownPosition.RightTop } onVisibleChange={(e)=>{
|
||||
|
||||
keysIsSend(rowData.id).then((res)=>{
|
||||
|
@ -681,28 +682,8 @@ linkTo(row){
|
|||
</Dropdown>
|
||||
</span>
|
||||
|
||||
|
||||
if(rowData.status >= 6 )
|
||||
{
|
||||
str2 =<div> <a className="grid-link" style={{color:"#d8dbdd"}} >编辑</a>
|
||||
<Dropdown position={DropdownPosition.RightTop }>
|
||||
<DropdownClickTrigger>
|
||||
<div className="linkmore" style={{"padding-left":"2px",color:"#d8dbdd"}} onClick={(e)=>{
|
||||
}}> 更多 <Icon type={"down"} /> </div>
|
||||
</DropdownClickTrigger>
|
||||
<DropdownContent>
|
||||
|
||||
|
||||
</DropdownContent>
|
||||
</Dropdown>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return rowData.status >= 6 ? str2 : str
|
||||
return rowData.status == 7 || rowData.status == 6 ? str2 : str
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
@ -714,7 +695,7 @@ linkTo(row){
|
|||
this.state.audit_visible ? (
|
||||
|
||||
<div>
|
||||
<div className="modal"> </div>
|
||||
<div className="modal"> </div>
|
||||
<div className="audit-box" >
|
||||
|
||||
<Icon type="close" className="audit-close" onClick={(e)=>{this.cancel(e)}} />
|
||||
|
|
Loading…
Reference in New Issue