parent
0904d9a947
commit
342fe92ab0
|
@ -60,7 +60,8 @@ export default class exchangedit extends React.Component{
|
||||||
isAudit:false,
|
isAudit:false,
|
||||||
approvalsStatus:false,
|
approvalsStatus:false,
|
||||||
oldTable:[],
|
oldTable:[],
|
||||||
product_title:"新建商品"
|
product_title:"新建商品",
|
||||||
|
plan_time:""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +94,7 @@ export default class exchangedit extends React.Component{
|
||||||
issued:req.quantity,
|
issued:req.quantity,
|
||||||
stock:req.stock,
|
stock:req.stock,
|
||||||
describe:req.describe,
|
describe:req.describe,
|
||||||
date_time:[req.begin_time,req.plan.end_time],
|
date_time:[req.begin_time,req.end_time],
|
||||||
range:req.update_product
|
range:req.update_product
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +122,7 @@ export default class exchangedit extends React.Component{
|
||||||
getCodesDetail(code_batch_id).then(res=>{
|
getCodesDetail(code_batch_id).then(res=>{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
codeInfo.stock = req.stock;
|
codeInfo.stock = req.stock;
|
||||||
|
this.setState({plan_time:req.plan.end_time})
|
||||||
this.setState({oldTable:req.code_batch_stock})
|
this.setState({oldTable:req.code_batch_stock})
|
||||||
|
|
||||||
let deleteArr = []
|
let deleteArr = []
|
||||||
|
@ -202,9 +203,10 @@ export default class exchangedit extends React.Component{
|
||||||
issued:req.quantity,
|
issued:req.quantity,
|
||||||
stock:req.stock,
|
stock:req.stock,
|
||||||
describe:req.describe,
|
describe:req.describe,
|
||||||
date_time:[req.begin_time,req.plan.end_time],
|
date_time:[req.begin_time,req.end_time],
|
||||||
range:req.code_batch_stock
|
range:req.code_batch_stock
|
||||||
}
|
}
|
||||||
|
this.setState({plan_time:req.plan.end_time})
|
||||||
//获取分销商
|
//获取分销商
|
||||||
getReseller(req.plan.reseller_id).then((res)=>{
|
getReseller(req.plan.reseller_id).then((res)=>{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
|
@ -653,7 +655,7 @@ export default class exchangedit extends React.Component{
|
||||||
|
|
||||||
onDisabledCombinedDate = (val)=>{
|
onDisabledCombinedDate = (val)=>{
|
||||||
let str = moment(val).format("YYYY-MM-DD HH:mm:ss")
|
let str = moment(val).format("YYYY-MM-DD HH:mm:ss")
|
||||||
let isBetween = moment(str).isBetween(this.state.codeInfo.date_time[0],this.state.codeInfo.date_time[1],null,'(]');
|
let isBetween = moment(str).isBetween(this.state.codeInfo.date_time[0],this.state.plan_time,null,'(]');
|
||||||
return !isBetween
|
return !isBetween
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -692,7 +694,7 @@ export default class exchangedit extends React.Component{
|
||||||
|
|
||||||
if( type == "end" )
|
if( type == "end" )
|
||||||
{
|
{
|
||||||
isdisabled = moment(str).isAfter(this.state.codeInfo.date_time[1])
|
isdisabled = moment(str).isAfter(this.state.plan_time)
|
||||||
}
|
}
|
||||||
return isdisabled
|
return isdisabled
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue