update
This commit is contained in:
parent
f0833a6392
commit
0e4a02944b
@ -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){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user