This commit is contained in:
cclu 2023-07-06 19:02:49 +08:00
parent f0833a6392
commit 0e4a02944b

View File

@ -180,49 +180,63 @@ export default {
},
//
handleNoChange(){
uni.showLoading({
title:'正在加载'
})
this.$request.$webGet('EShangApiMain/BusinessProject/ApproveProinst',{
BusinessId: this.PROJECTWARNING_ID, //
StaffId:this.useDate.UserId,//
StaffName:this.useDate.UserName,//
SwitchRate:this.dataDetail.ROYALTY_RATE * 100,//
ApproveState:'9999',//
}).then(res=>{
uni.hideLoading()
uni.showToast({
uni.showModal({
title: '是否同意暂不切换分润比例?',
success: function (res) {
if (res.confirm) {
uni.showLoading({
title:'正在加载'
})
this.$request.$webGet('EShangApiMain/BusinessProject/ApproveProinst',{
BusinessId: this.PROJECTWARNING_ID, //
StaffId:this.useDate.UserId,//
StaffName:this.useDate.UserName,//
SwitchRate:this.dataDetail.ROYALTY_RATE * 100,//
ApproveState:'9999',//
}).then(res=>{
uni.hideLoading()
uni.showToast({
title: res.Result_Desc,
icon: 'none'
})
this.handleGetDetail()
uni.navigateBack({
delta: 1
})
})
this.handleGetDetail()
uni.navigateBack({
delta: 1
})
})
}
}
});
},
//
handleChange(){
uni.showLoading({
title:'正在加载'
})
uni.showModal({
title: '是否同意切换分润比例?',
success: function (res) {
if (res.confirm) {
uni.showLoading({
title:'正在加载'
})
this.$request.$webGet('EShangApiMain/BusinessProject/ApproveProinst',{
BusinessId: this.PROJECTWARNING_ID, //
StaffId:this.useDate.UserId,//
StaffName:this.useDate.UserName,//
SwitchRate:this.dataDetail.ROYALTY_CRATE,//
ApproveState:this.dataDetail.PROJECTWARNING_STATE===1000?'2000':'9000',//
BusinessId: this.PROJECTWARNING_ID, //
StaffId:this.useDate.UserId,//
StaffName:this.useDate.UserName,//
SwitchRate:this.dataDetail.ROYALTY_CRATE,//
ApproveState:this.dataDetail.PROJECTWARNING_STATE===1000?'2000':'9000',//
}).then(res=>{
uni.hideLoading()
if (this.dataDetail.PROJECTWARNING_STATE===1000){
this.handleBack()
}
uni.showToast({
title: res.Result_Desc,
icon: 'none'
})
this.handleGetDetail()
uni.showToast({
title: res.Result_Desc,
icon: 'none'
})
this.handleGetDetail()
})
}
}
});
},
handleBack(){
if (this.type){