parent
b5994049a3
commit
91d9db1ee1
|
@ -1,6 +1,6 @@
|
|||
import {Notify} from "zent"
|
||||
// export const baseurl = 'https://marketapi.1688sup.com'
|
||||
window.baseurl = 'https://marketapi.1688sup.com';
|
||||
window.baseurl = 'http://pre.marketapi.1688sup.com';
|
||||
const Version = "v1.1.0"
|
||||
let baseurl="";
|
||||
if (process.env.NODE_ENV == "test"||process.env.NODE_ENV == "development") { // 测试环境
|
||||
|
@ -8,7 +8,7 @@ if (process.env.NODE_ENV == "test"||process.env.NODE_ENV == "development") { //
|
|||
window.baseurl = 'http://192.168.6.75';
|
||||
}
|
||||
if (process.env.NODE_ENV == "production") { // 生成环境
|
||||
baseurl = "https://marketapi.1688sup.com"
|
||||
baseurl = "http://pre.marketapi.1688sup.com"
|
||||
}
|
||||
// export let HOST = host;
|
||||
// export let API_URL = api_url;
|
||||
|
|
|
@ -93,7 +93,7 @@ export default class exchangedit extends React.Component{
|
|||
issued:req.quantity,
|
||||
stock:req.stock,
|
||||
describe:req.describe,
|
||||
date_time:[req.begin_time,req.end_time],
|
||||
date_time:[req.begin_time,req.plan.end_time],
|
||||
range:req.update_product
|
||||
}
|
||||
|
||||
|
@ -197,13 +197,12 @@ export default class exchangedit extends React.Component{
|
|||
else{
|
||||
getCodesDetail(code_batch_id).then(res=>{
|
||||
handelResponse(res,(req,msg)=>{
|
||||
|
||||
let codeInfo={
|
||||
code_name:req.title,
|
||||
issued:req.quantity,
|
||||
stock:req.stock,
|
||||
describe:req.describe,
|
||||
date_time:[req.begin_time,req.end_time],
|
||||
date_time:[req.begin_time,req.plan.end_time],
|
||||
range:req.code_batch_stock
|
||||
}
|
||||
//获取分销商
|
||||
|
|
|
@ -47,6 +47,7 @@ export default class add extends React.Component{
|
|||
isload:false,
|
||||
is_Edit:false,
|
||||
whiteStyle:false,
|
||||
btn_loading:false,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -360,6 +361,12 @@ export default class add extends React.Component{
|
|||
}
|
||||
onConfirm(e){
|
||||
|
||||
if(this.state.btn_loading == true)
|
||||
{
|
||||
return
|
||||
}
|
||||
this.setState({btn_loading : true})
|
||||
|
||||
let plan_id = sessionStorage.getItem("plan_id")
|
||||
let plan_status = sessionStorage.getItem("plan_status");
|
||||
this.setState({audit_visible:false})
|
||||
|
@ -369,6 +376,9 @@ export default class add extends React.Component{
|
|||
if(approval_id > 0)
|
||||
{
|
||||
getApprovalsStatus(approval_id).then((res)=>{
|
||||
setTimeout(()=>{
|
||||
this.setState({btn_loading : false})
|
||||
},500)
|
||||
handelResponse(res,(req,msg)=>{
|
||||
if(req.status == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue