Commit 23af8b8e by 王志慧

fixed

1 parent bdd3a116
......@@ -465,8 +465,8 @@ export default {
label: '付款渠道',
type: 'select',
name: 'channel',
optionId: 'id',
optionLabel: 'text',
optionId: 'confId',
optionLabel: 'confLabel',
optionList: [
{
confId: 'TXIAT',
......@@ -503,8 +503,8 @@ export default {
channel: [{ required: true, message: '请选择付款渠道', trigger: 'change' }],
captcha: [{ required: true, message: '请输入验证码', trigger: 'blur' }]
},
importRule:{
fileName: [{ required: true, message: '请选择', trigger: 'blur' }],
importRule: {
fileName: [{ required: true, message: '请选择', trigger: 'blur' }]
},
importForm: {
isLoading: 0,
......@@ -658,11 +658,12 @@ export default {
}
return headers
},
handleSaveImport(data) {
handleSaveImport() {
let params = {
batchNo: data.batchNo
batchNo: this.importForm.batchNo
}
this.$apis.withdraw.handleSaveImport(params).then(res => {
this.handleSearch()
})
},
//提现导入
......@@ -683,21 +684,23 @@ export default {
},
comfirmImport() {
let {
importForm: { isSuccess,fileName ,isLoading},
importForm: { isSuccess, fileName, isLoading },
isImport
} = this
if(fileName==''&&isLoading == 0){
if (fileName == '' && isLoading == 0) {
this.$message({
message: '请先选择文件',
type: 'error'
})
return
message: '请先选择文件',
type: 'error'
})
return
}
if (isImport && isSuccess != 0) {
if (isImport && isSuccess == 1) {
this.isImport = false
this.handleSaveImport()
this.clearFile()
return
}
this.importForm.isLoading = 1
this.$apis.withdraw.uploadXlsx({ file: this.importForm.fileUrl }).then(res => {
if (res.code == 0) {
......@@ -705,7 +708,7 @@ export default {
if (res.data.importStatue == 0) {
this.importForm.successCount = res.data.successCount
this.importForm.isSuccess = 1 //处理成功
this.handleSaveImport(res.data)
this.importForm.batchNo = res.data.batchNo
} else {
this.importForm.errorUrl = res.data.errorUrl
this.importForm.isSuccess = 2 //处理失败
......@@ -964,7 +967,7 @@ export default {
line-height: 20px;
display: block;
}
.err-url{
.err-url {
margin-top: 7px;
font-size: 14px;
font-weight: 400;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!