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