|
@@ -38,7 +38,7 @@
|
|
|
<el-input size="small" v-model="listQuery.userName" clearable :placeholder="$t('finance.receiveMemberCodeHint')" class="filter-item" style="width: 100%; margin: 10px 0;"></el-input>
|
|
<el-input size="small" v-model="listQuery.userName" clearable :placeholder="$t('finance.receiveMemberCodeHint')" class="filter-item" style="width: 100%; margin: 10px 0;"></el-input>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="24" :lg="6" :span="6">
|
|
<el-col :xs="24" :sm="24" :lg="6" :span="6">
|
|
|
- <el-input size="small" v-model="listQuery.realName" clearable :placeholder="$t('finance.receiveMemberNameHint')" class="filter-item" auto-complate="false" style="width: 100%; margin: 10px 0;"></el-input>
|
|
|
|
|
|
|
+ <el-input size="small" v-model="listQuery.realName" clearable :placeholder="$t('finance.receiveMemberNameHint')" class="filter-item" autoComplete="off" style="width: 100%; margin: 10px 0;"></el-input>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="24" :lg="12" :span="12">
|
|
<el-col :xs="24" :sm="24" :lg="12" :span="12">
|
|
|
<div class="grid-content bg-purple" align="right" style="width: 100%; margin: 10px 0;">
|
|
<div class="grid-content bg-purple" align="right" style="width: 100%; margin: 10px 0;">
|
|
@@ -83,11 +83,11 @@
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
|
|
<div class="white-box-footer" style="margin-top: 5px;">
|
|
<div class="white-box-footer" style="margin-top: 5px;">
|
|
|
- <el-button size="small" type="primary" @click="dialog = true">{{ $t('finance.applyTransfer') }}</el-button>
|
|
|
|
|
|
|
+ <el-button size="small" type="primary" @click="handleApplyTransfer">{{ $t('finance.applyTransfer') }}</el-button>
|
|
|
<pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.pageSize" @pagination="getList" />
|
|
<pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.pageSize" @pagination="getList" />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <el-dialog :title="$t('finance.applyTransfer')" :visible.sync="dialog" :width="screenWidth" v-loading="loading" style="margin-top: -70px;">
|
|
|
|
|
|
|
+ <el-dialog :title="$t('finance.applyTransfer')" :visible.sync="dialog" :width="screenWidth" v-loading="loading" :close-on-click-modal="false" :destroy-on-close="true" style="margin-top: -70px;">
|
|
|
<el-form ref="form" :model="form" :label-position="labelPosition" v-loading="loading" style="margin-top: -20px; margin-bottom: -30px;">
|
|
<el-form ref="form" :model="form" :label-position="labelPosition" v-loading="loading" style="margin-top: -20px; margin-bottom: -30px;">
|
|
|
<el-row :gutter="5">
|
|
<el-row :gutter="5">
|
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
|
@@ -135,8 +135,8 @@
|
|
|
<el-input size="small" v-model.trim="form.remark" type="text"></el-input>
|
|
<el-input size="small" v-model.trim="form.remark" type="text"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <el-button type="warning" size="small" @click="transferList">{{ $t('table.cancel') }}</el-button>
|
|
|
|
|
- <el-button type="primary" size="small" @click="submit('form')">{{ $t('table.confirm') }}</el-button>
|
|
|
|
|
|
|
+ <el-button type="warning" size="small" @click="onCancel">{{ $t('table.cancel') }}</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small" @click="onSubmit('form')">{{ $t('table.confirm') }}</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
listLoading: true,
|
|
listLoading: true,
|
|
|
listQuery: {
|
|
listQuery: {
|
|
|
page: 1,
|
|
page: 1,
|
|
|
- pageSize: 5,
|
|
|
|
|
|
|
+ pageSize: 20,
|
|
|
inWallet: '',
|
|
inWallet: '',
|
|
|
outWallet: '',
|
|
outWallet: '',
|
|
|
realName: '',
|
|
realName: '',
|
|
@@ -240,7 +240,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
handleFilterClear(){
|
|
handleFilterClear(){
|
|
|
this.listQuery.page = 1
|
|
this.listQuery.page = 1
|
|
|
- this.listQuery.pageSize = 5
|
|
|
|
|
|
|
+ this.listQuery.pageSize = 20
|
|
|
this.listQuery.inWallet = ''
|
|
this.listQuery.inWallet = ''
|
|
|
this.listQuery.outWallet = ''
|
|
this.listQuery.outWallet = ''
|
|
|
this.listQuery.realName = ''
|
|
this.listQuery.realName = ''
|
|
@@ -248,6 +248,20 @@ export default {
|
|
|
this.listQuery.dateRange = []
|
|
this.listQuery.dateRange = []
|
|
|
this.getList()
|
|
this.getList()
|
|
|
},
|
|
},
|
|
|
|
|
+ handleApplyTransfer() {
|
|
|
|
|
+ // 获取转账码
|
|
|
|
|
+ fetchTransferCode().then(response => {
|
|
|
|
|
+ this.form.transferCode = response.data.transferCode
|
|
|
|
|
+ }).catch((err) => {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ message: err,
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ duration: 3 * 1000
|
|
|
|
|
+ })
|
|
|
|
|
+ return false
|
|
|
|
|
+ })
|
|
|
|
|
+ this.dialog = true
|
|
|
|
|
+ },
|
|
|
applyTransfer() {
|
|
applyTransfer() {
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
fetchChkTransferUser().then(response => {
|
|
fetchChkTransferUser().then(response => {
|
|
@@ -270,7 +284,7 @@ export default {
|
|
|
this.transferProp = this.userInfo.TRANSFER_PROP
|
|
this.transferProp = this.userInfo.TRANSFER_PROP
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- fetchMember () {
|
|
|
|
|
|
|
+ fetchMember() {
|
|
|
let toUserName = this.form.toUserName.trim()
|
|
let toUserName = this.form.toUserName.trim()
|
|
|
// 不允许向自己转账
|
|
// 不允许向自己转账
|
|
|
if (usersInfo.userName() === toUserName) {
|
|
if (usersInfo.userName() === toUserName) {
|
|
@@ -300,61 +314,45 @@ export default {
|
|
|
}
|
|
}
|
|
|
return true
|
|
return true
|
|
|
},
|
|
},
|
|
|
- submit() {
|
|
|
|
|
|
|
+ onSubmit() {
|
|
|
if (this.chkReal() === false) {
|
|
if (this.chkReal() === false) {
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 获取转账码
|
|
|
|
|
- fetchTransferCode().then(response => {
|
|
|
|
|
- this.form.transferCode = response.data.transferCode
|
|
|
|
|
- }).catch((err) => {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- message: err,
|
|
|
|
|
- type: 'error',
|
|
|
|
|
- duration: 3 * 1000
|
|
|
|
|
- })
|
|
|
|
|
- return false
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
this.$prompt(this.$t('finance.enterPasswordTips'), this.$t('common.hint'), {
|
|
this.$prompt(this.$t('finance.enterPasswordTips'), this.$t('common.hint'), {
|
|
|
confirmButtonText: this.$t('common.confirm'),
|
|
confirmButtonText: this.$t('common.confirm'),
|
|
|
cancelButtonText: this.$t('common.cancel'),
|
|
cancelButtonText: this.$t('common.cancel'),
|
|
|
inputType: 'password',
|
|
inputType: 'password',
|
|
|
inputPattern: /\S+/,
|
|
inputPattern: /\S+/,
|
|
|
inputErrorMessage: this.$t('finance.enterPasswordTips'),
|
|
inputErrorMessage: this.$t('finance.enterPasswordTips'),
|
|
|
- beforeClose: async (action, instance, done) => {
|
|
|
|
|
- if (action === 'confirm') {
|
|
|
|
|
- instance.confirmButtonLoading = true
|
|
|
|
|
- instance.confirmButtonText = 'executing..'// this.$t('finance.executing')
|
|
|
|
|
- this.form.payPassword = instance.inputValue
|
|
|
|
|
- this.submitButtonStat = true
|
|
|
|
|
- fetchApplyTransfer(this.form).then(() => {
|
|
|
|
|
- this.$refs['form'].resetFields()
|
|
|
|
|
- this.$message({
|
|
|
|
|
- message: this.$t('finance.messageApplyTransfer'),
|
|
|
|
|
- type: 'success',
|
|
|
|
|
- duration: 3 * 1000
|
|
|
|
|
- })
|
|
|
|
|
- this.submitButtonStat = false
|
|
|
|
|
- }).catch((err) => {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- message: err,
|
|
|
|
|
- type: 'error',
|
|
|
|
|
- duration: 3 * 1000
|
|
|
|
|
- })
|
|
|
|
|
- this.submitButtonStat = false
|
|
|
|
|
- })
|
|
|
|
|
- } else {
|
|
|
|
|
- this.submitButtonStat = false
|
|
|
|
|
- done()
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }).then(({ value }) => {
|
|
|
|
|
+ this.form.payPassword = value.trim()
|
|
|
|
|
+ this.loading = true
|
|
|
|
|
+ fetchApplyTransfer(this.form).then(response => {
|
|
|
|
|
+ this.$refs['form'].resetFields()
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ message: response.data,
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ duration: 3 * 1000
|
|
|
|
|
+ })
|
|
|
|
|
+ this.submitButtonStat = false
|
|
|
|
|
+ this.dialog = false
|
|
|
|
|
+ this.handleFilterClear()
|
|
|
|
|
+ this.getList()
|
|
|
|
|
+ }).catch((err) => {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ message: err,
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ duration: 3 * 1000
|
|
|
|
|
+ })
|
|
|
|
|
+ this.submitButtonStat = false
|
|
|
|
|
+ this.loading = false
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- transferList() {
|
|
|
|
|
|
|
+ onCancel() {
|
|
|
|
|
+ this.dialog = false
|
|
|
this.$refs['form'].resetFields()
|
|
this.$refs['form'].resetFields()
|
|
|
- this.$router.push({path: `/finance/transfer-list`})
|
|
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|