Commit 9c82e980 authored by 邓春圆's avatar 邓春圆

文案修改

parent 1aa1a38e
......@@ -230,11 +230,11 @@ export default {
//提交
cancelWriteOffClick(){
if(!this.paymentValue) return this.$message.warning(this.$t('请输入理由!'))
let resolve = ()=>{
let resolve = (val = '操作成功')=>{
this.getList();
this.paymentShow = false;
this.paymentValue = ''
this.$message.success(this.$t('操作成功!'));
this.$message.success(val);
}
let reject = ()=>{
......@@ -248,31 +248,31 @@ export default {
switch (this.paymentIndex){
case 1:
// 反审核佣金付款单
commissionPaymentVerifyCancel(p).then(resolve, reject)
commissionPaymentVerifyCancel(p).then(()=>resolve(this.$t('佣金付款单付款单反审核成功!')), reject)
break;
case 2:
// 佣金付款单核销
commissionPaymentVerification(p).then(resolve, reject)
commissionPaymentVerification(p).then(() =>resolve(this.$t('佣金付款单核销成功!')), reject)
break;
case 3:
// 付款单反核销申请
commissionPaymentVerificationCancel(p).then(resolve, reject)
commissionPaymentVerificationCancel(p).then(() =>resolve(this.$t('佣金付款单反核销申请成功!')), reject)
break;
case 4:
// 取消付款单反审核
commissionPaymentCancelFinancePaymentApprovalNo(p).then(resolve, reject)
commissionPaymentCancelFinancePaymentApprovalNo(p).then(() =>resolve(this.$t('取消佣金付款单反审核成功!')), reject)
break;
case 5:
// 取消付款单核销
commissionPaymentCancelFinancePaymentWriteOff(p).then(resolve, reject)
commissionPaymentCancelFinancePaymentWriteOff(p).then(() =>resolve(this.$t('取消佣金付款单核销成功!')), reject)
break
case 6:
// 取消付款单反核销
commissionPaymentCancelFinancePaymentWriteOffNo(p).then(resolve, reject)
commissionPaymentCancelFinancePaymentWriteOffNo(p).then(() =>resolve(this.$t('取消佣金付款单反核销成功!')), reject)
break;
case 7:
// 取消付款单审核
commissionPaymentCancelFinancePaymentApproval(p).then(resolve, reject)
commissionPaymentCancelFinancePaymentApproval(p).then(() =>resolve(this.$t('取消佣金付款单审核成功!')), reject)
break;
}
......
......@@ -410,12 +410,12 @@ export default {
if(!this.cancelReason){
return this.$message.warning(this.$t('请输入申请理由!'))
}
let successFn = () => {
let resolve = (val = this.$t('操作成功吗!')) => {
this.getList();
this.$message('取消成功');
this.$message(val);
this.examineShow = false;
}
let loserFn = () => {
let reject = () => {
this.examineShow = false;
}
let {id: paymentId,paymentNo} = this.examineData
......@@ -423,31 +423,31 @@ export default {
switch (this.examineIndex) {
case 1:
// 取消审核
cancelFinancePaymentApproval(p).then(successFn,loserFn)
cancelFinancePaymentApproval(p).then(()=>resolve(this.$t('取消付款单审核成功!')),reject)
break
case 2:
// 取消付款单反审核
cancelFinancePaymentApprovalNo(p).then(successFn,loserFn)
cancelFinancePaymentApprovalNo(p).then(()=>resolve(this.$t('取消付款单反审核成功!')),reject)
break
case 3:
//取消付款单核销
cancelFinancePaymentWriteOffNo(p).then(successFn,loserFn)
cancelFinancePaymentWriteOffNo(p).then(()=>resolve(this.$t('取消付款单核销成功!')),reject)
break;
case 4:
// 反审核
paymentVerifyCancel(p).then(successFn,loserFn)
paymentVerifyCancel(p).then(()=>resolve(this.$t('取消反审核成功!')),reject)
break;
case 5:
// 核销
paymentVerification(p).then(successFn,loserFn);
paymentVerification(p).then(()=>resolve(this.$t('付款核销成功!')),reject);
break;
case 6:
// 反核销
paymentVerificationCancel(p).then(successFn,loserFn)
paymentVerificationCancel(p).then(()=>resolve(this.$t('付款单反核销成功!')),reject)
break;
case 7:
// 取消反核销
paymentCancelFinancePaymentWriteOffNo(p).then(successFn,loserFn)
paymentCancelFinancePaymentWriteOffNo(p).then(()=>resolve(this.$t('取消付款单反核销成功!')),reject)
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment