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

文案修改

parent 1aa1a38e
...@@ -230,11 +230,11 @@ export default { ...@@ -230,11 +230,11 @@ export default {
//提交 //提交
cancelWriteOffClick(){ cancelWriteOffClick(){
if(!this.paymentValue) return this.$message.warning(this.$t('请输入理由!')) if(!this.paymentValue) return this.$message.warning(this.$t('请输入理由!'))
let resolve = ()=>{ let resolve = (val = '操作成功')=>{
this.getList(); this.getList();
this.paymentShow = false; this.paymentShow = false;
this.paymentValue = '' this.paymentValue = ''
this.$message.success(this.$t('操作成功!')); this.$message.success(val);
} }
let reject = ()=>{ let reject = ()=>{
...@@ -248,31 +248,31 @@ export default { ...@@ -248,31 +248,31 @@ export default {
switch (this.paymentIndex){ switch (this.paymentIndex){
case 1: case 1:
// 反审核佣金付款单 // 反审核佣金付款单
commissionPaymentVerifyCancel(p).then(resolve, reject) commissionPaymentVerifyCancel(p).then(()=>resolve(this.$t('佣金付款单付款单反审核成功!')), reject)
break; break;
case 2: case 2:
// 佣金付款单核销 // 佣金付款单核销
commissionPaymentVerification(p).then(resolve, reject) commissionPaymentVerification(p).then(() =>resolve(this.$t('佣金付款单核销成功!')), reject)
break; break;
case 3: case 3:
// 付款单反核销申请 // 付款单反核销申请
commissionPaymentVerificationCancel(p).then(resolve, reject) commissionPaymentVerificationCancel(p).then(() =>resolve(this.$t('佣金付款单反核销申请成功!')), reject)
break; break;
case 4: case 4:
// 取消付款单反审核 // 取消付款单反审核
commissionPaymentCancelFinancePaymentApprovalNo(p).then(resolve, reject) commissionPaymentCancelFinancePaymentApprovalNo(p).then(() =>resolve(this.$t('取消佣金付款单反审核成功!')), reject)
break; break;
case 5: case 5:
// 取消付款单核销 // 取消付款单核销
commissionPaymentCancelFinancePaymentWriteOff(p).then(resolve, reject) commissionPaymentCancelFinancePaymentWriteOff(p).then(() =>resolve(this.$t('取消佣金付款单核销成功!')), reject)
break break
case 6: case 6:
// 取消付款单反核销 // 取消付款单反核销
commissionPaymentCancelFinancePaymentWriteOffNo(p).then(resolve, reject) commissionPaymentCancelFinancePaymentWriteOffNo(p).then(() =>resolve(this.$t('取消佣金付款单反核销成功!')), reject)
break; break;
case 7: case 7:
// 取消付款单审核 // 取消付款单审核
commissionPaymentCancelFinancePaymentApproval(p).then(resolve, reject) commissionPaymentCancelFinancePaymentApproval(p).then(() =>resolve(this.$t('取消佣金付款单审核成功!')), reject)
break; break;
} }
......
...@@ -410,12 +410,12 @@ export default { ...@@ -410,12 +410,12 @@ export default {
if(!this.cancelReason){ if(!this.cancelReason){
return this.$message.warning(this.$t('请输入申请理由!')) return this.$message.warning(this.$t('请输入申请理由!'))
} }
let successFn = () => { let resolve = (val = this.$t('操作成功吗!')) => {
this.getList(); this.getList();
this.$message('取消成功'); this.$message(val);
this.examineShow = false; this.examineShow = false;
} }
let loserFn = () => { let reject = () => {
this.examineShow = false; this.examineShow = false;
} }
let {id: paymentId,paymentNo} = this.examineData let {id: paymentId,paymentNo} = this.examineData
...@@ -423,31 +423,31 @@ export default { ...@@ -423,31 +423,31 @@ export default {
switch (this.examineIndex) { switch (this.examineIndex) {
case 1: case 1:
// 取消审核 // 取消审核
cancelFinancePaymentApproval(p).then(successFn,loserFn) cancelFinancePaymentApproval(p).then(()=>resolve(this.$t('取消付款单审核成功!')),reject)
break break
case 2: case 2:
// 取消付款单反审核 // 取消付款单反审核
cancelFinancePaymentApprovalNo(p).then(successFn,loserFn) cancelFinancePaymentApprovalNo(p).then(()=>resolve(this.$t('取消付款单反审核成功!')),reject)
break break
case 3: case 3:
//取消付款单核销 //取消付款单核销
cancelFinancePaymentWriteOffNo(p).then(successFn,loserFn) cancelFinancePaymentWriteOffNo(p).then(()=>resolve(this.$t('取消付款单核销成功!')),reject)
break; break;
case 4: case 4:
// 反审核 // 反审核
paymentVerifyCancel(p).then(successFn,loserFn) paymentVerifyCancel(p).then(()=>resolve(this.$t('取消反审核成功!')),reject)
break; break;
case 5: case 5:
// 核销 // 核销
paymentVerification(p).then(successFn,loserFn); paymentVerification(p).then(()=>resolve(this.$t('付款核销成功!')),reject);
break; break;
case 6: case 6:
// 反核销 // 反核销
paymentVerificationCancel(p).then(successFn,loserFn) paymentVerificationCancel(p).then(()=>resolve(this.$t('付款单反核销成功!')),reject)
break; break;
case 7: case 7:
// 取消反核销 // 取消反核销
paymentCancelFinancePaymentWriteOffNo(p).then(successFn,loserFn) paymentCancelFinancePaymentWriteOffNo(p).then(()=>resolve(this.$t('取消付款单反核销成功!')),reject)
break; 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