|
@@ -193,7 +193,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
mounted () {
|
|
mounted () {
|
|
|
this.getData(this.currentPage, this.pageSize)
|
|
this.getData(this.currentPage, this.pageSize)
|
|
|
- store.state.socket.onMessageCallback = this.onMessageCallback
|
|
|
|
|
|
|
+ // store.state.socket.onMessageCallback = this.onMessageCallback
|
|
|
},
|
|
},
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
@@ -253,7 +253,7 @@ export default {
|
|
|
autoCalcHandle(currentPeriod) {
|
|
autoCalcHandle(currentPeriod) {
|
|
|
this.$confirm(this.$t('bonus.autoSettlementHint'), this.$t('common.hint'), { // '确定对当前期进行结算操作?', '提示'
|
|
this.$confirm(this.$t('bonus.autoSettlementHint'), this.$t('common.hint'), { // '确定对当前期进行结算操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
// return network.getData(`calc/auto-calc/${currentPeriod}`)
|
|
// return network.getData(`calc/auto-calc/${currentPeriod}`)
|
|
@@ -273,7 +273,7 @@ export default {
|
|
|
perfOrderHandle(currentPeriod) {
|
|
perfOrderHandle(currentPeriod) {
|
|
|
this.$confirm(this.$t('bonus.generatePerformanceOrderHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
this.$confirm(this.$t('bonus.generatePerformanceOrderHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchPerfOrderList(currentPeriod)
|
|
return fetchPerfOrderList(currentPeriod)
|
|
@@ -292,7 +292,7 @@ export default {
|
|
|
initDataHandle(currentPeriod) {
|
|
initDataHandle(currentPeriod) {
|
|
|
this.$confirm(this.$t('bonus.generatePerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
this.$confirm(this.$t('bonus.generatePerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchInitData(currentPeriod)
|
|
return fetchInitData(currentPeriod)
|
|
@@ -311,7 +311,7 @@ export default {
|
|
|
perfPeriodHandle(currentPeriod) {
|
|
perfPeriodHandle(currentPeriod) {
|
|
|
this.$confirm(this.$t('bonus.generatePerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
this.$confirm(this.$t('bonus.generatePerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchCalcPerfPeriod(currentPeriod)
|
|
return fetchCalcPerfPeriod(currentPeriod)
|
|
@@ -330,7 +330,7 @@ export default {
|
|
|
pullPerfPeriodHandle(currentPeriod) {
|
|
pullPerfPeriodHandle(currentPeriod) {
|
|
|
this.$confirm(this.$t('bonus.pullPerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
this.$confirm(this.$t('bonus.pullPerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchPullPerfPeriod(currentPeriod)
|
|
return fetchPullPerfPeriod(currentPeriod)
|
|
@@ -349,7 +349,7 @@ export default {
|
|
|
calcBonusHandle(currentPeriod) {
|
|
calcBonusHandle(currentPeriod) {
|
|
|
this.$confirm(this.$t('bonus.calculateBonusDataHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
this.$confirm(this.$t('bonus.calculateBonusDataHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchCalcBonus(currentPeriod)
|
|
return fetchCalcBonus(currentPeriod)
|
|
@@ -368,7 +368,7 @@ export default {
|
|
|
calcBonusRecordHandle(currentPeriod) {
|
|
calcBonusRecordHandle(currentPeriod) {
|
|
|
this.$confirm(this.$t('bonus.syncCalculateBonusRecordHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
this.$confirm(this.$t('bonus.syncCalculateBonusRecordHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchSyncCalcRecord(currentPeriod)
|
|
return fetchSyncCalcRecord(currentPeriod)
|
|
@@ -387,7 +387,7 @@ export default {
|
|
|
pullBonusHandle(currentPeriod) {
|
|
pullBonusHandle(currentPeriod) {
|
|
|
this.$confirm(this.$t('bonus.calculateBonusDataHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
this.$confirm(this.$t('bonus.calculateBonusDataHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchPullBonus(currentPeriod)
|
|
return fetchPullBonus(currentPeriod)
|
|
@@ -406,7 +406,7 @@ export default {
|
|
|
// trialCalcHandle (currentPeriod) {
|
|
// trialCalcHandle (currentPeriod) {
|
|
|
// this.$confirm('Confirm to calculate bonus data for the current period?', this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
// this.$confirm('Confirm to calculate bonus data for the current period?', this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
// confirmButtonText: this.$t('common.confirm'), // 确定
|
|
// confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- // cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ // cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
// type: 'warning'
|
|
// type: 'warning'
|
|
|
// }).then(() => {
|
|
// }).then(() => {
|
|
|
// return network.getData(`calc/trial-calc/${currentPeriod}`)
|
|
// return network.getData(`calc/trial-calc/${currentPeriod}`)
|
|
@@ -435,7 +435,7 @@ export default {
|
|
|
closeHandle (row) {
|
|
closeHandle (row) {
|
|
|
this.$confirm(this.$t('bonus.manuallySealHint'), this.$t('common.hint'), { // '确定对当前期进行手动封期操作?', '提示'
|
|
this.$confirm(this.$t('bonus.manuallySealHint'), this.$t('common.hint'), { // '确定对当前期进行手动封期操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchClosePeriod(row.PERIOD_NUM)
|
|
return fetchClosePeriod(row.PERIOD_NUM)
|
|
@@ -454,7 +454,7 @@ export default {
|
|
|
calcHandle (row) {
|
|
calcHandle (row) {
|
|
|
this.$confirm(this.$t('bonus.performSettlementOperationHint'), this.$t('common.hint'), { // '确定对当前期进行结算操作?', '提示'
|
|
this.$confirm(this.$t('bonus.performSettlementOperationHint'), this.$t('common.hint'), { // '确定对当前期进行结算操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchCalcPeriod(row.PERIOD_NUM)
|
|
return fetchCalcPeriod(row.PERIOD_NUM)
|
|
@@ -473,7 +473,7 @@ export default {
|
|
|
perfHandle (row) {
|
|
perfHandle (row) {
|
|
|
this.$confirm(this.$t('bonus.generatePerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
this.$confirm(this.$t('bonus.generatePerformanceSheetHint'), this.$t('common.hint'), { // '确定对当前期进行生成业绩单操作?', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchPerfPeriod(row.PERIOD_NUM)
|
|
return fetchPerfPeriod(row.PERIOD_NUM)
|
|
@@ -492,7 +492,7 @@ export default {
|
|
|
sentHandle (row) {
|
|
sentHandle (row) {
|
|
|
this.$confirm(this.$t('bonus.spreadNetHint'), this.$t('common.hint'), { // '确定对当前期进行挂网操作?挂网后无法生成业绩单和结算', '提示'
|
|
this.$confirm(this.$t('bonus.spreadNetHint'), this.$t('common.hint'), { // '确定对当前期进行挂网操作?挂网后无法生成业绩单和结算', '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
return fetchSendPeriod(row.PERIOD_NUM)
|
|
return fetchSendPeriod(row.PERIOD_NUM)
|
|
@@ -511,7 +511,7 @@ export default {
|
|
|
doAutoWithdraw () {
|
|
doAutoWithdraw () {
|
|
|
this.$confirm(this.$t('bonus.allWithdrawalHint'), this.$t('common.hint'), {
|
|
this.$confirm(this.$t('bonus.allWithdrawalHint'), this.$t('common.hint'), {
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
- cancelButtonText: this.$t('cancel'), // 取消
|
|
|
|
|
|
|
+ cancelButtonText: this.$t('common.cancel'), // 取消
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
//return network.getData(`bonus/auto-withdraw`)
|
|
//return network.getData(`bonus/auto-withdraw`)
|