|
|
@@ -139,6 +139,33 @@
|
|
|
<el-button style="margin:50px;" type="primary" icon="document" @click="querenBtn">确认
|
|
|
</el-button>
|
|
|
</el-tab-pane>
|
|
|
+ <!-- 银行卡账号 -->
|
|
|
+ <el-tab-pane label="提现银行账号信息" name="fourth">
|
|
|
+ <div style="margin:10px 0;">
|
|
|
+ <span>银行卡号:</span>
|
|
|
+ <el-input style="width: 200px;" clearable placeholder="请输入银行卡号"
|
|
|
+ v-model="yinghangData.cardNo">
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
+ <div style="position: relative;margin: 10px 0px;">
|
|
|
+ <span>开户行:</span>
|
|
|
+ <el-input style="width: 200px;" placeholder="请输入开户行名称"
|
|
|
+ v-model="yinghangData.openBank">
|
|
|
+ </el-input>  
|
|
|
+ </div>
|
|
|
+ <div style="position: relative;margin: 10px 0px;">
|
|
|
+ <span>开户人姓名:</span>
|
|
|
+ <el-input style="width: 200px;" placeholder="请输入开户人姓名"
|
|
|
+ v-model="yinghangData.realName">
|
|
|
+ </el-input>  
|
|
|
+ </div>
|
|
|
+ <el-button v-if="ifkaihuying" style="margin:50px;" type="primary" icon="document" @click="querenyinghangBtn">确认
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="ifkaihuying==false" style="margin:50px;" type="primary" icon="document" @click="changeyinghangBtn">确定修改
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="ifkaihuying==false" style="margin:50px;" type="primary" icon="document" @click="deleteyinghangBtn">删除信息
|
|
|
+ </el-button>
|
|
|
+ </el-tab-pane>
|
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
@@ -299,6 +326,8 @@
|
|
|
label: '按年查询'
|
|
|
}],
|
|
|
tixianData: {},
|
|
|
+ yinghangData:{},//银行卡信息
|
|
|
+ ifkaihuying:true,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -446,6 +475,9 @@
|
|
|
if (tab._props.label == '提现账号') {
|
|
|
this.taskdataSelectZhb()
|
|
|
}
|
|
|
+ if (tab._props.label == '提现银行账号信息') {
|
|
|
+ this.taskdataSelectyhk()
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
// 下架
|
|
|
@@ -842,6 +874,28 @@
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ //银行卡信息
|
|
|
+ taskdataSelectyhk(){
|
|
|
+ this.tableDataLoading = true
|
|
|
+ this.shopId = this.$route.query.shopId
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl(`admin/shop/bank/getByShopId/${this.shopId}`),
|
|
|
+ method: 'get',
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ if(data.msg=='success'){
|
|
|
+ this.tableDataLoading = false
|
|
|
+ let returnData = data.data
|
|
|
+ this.yinghangData = returnData
|
|
|
+ this.yingId=returnData.id
|
|
|
+ this.ifkaihuying=false
|
|
|
+ }else if(data.msg=='shopId对应的银行卡记录不存在'){
|
|
|
+ this.ifkaihuying=true
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
querenBtn() {
|
|
|
if (this.tixianData.zhiFuBaoName == '') {
|
|
|
this.$notify({
|
|
|
@@ -884,7 +938,158 @@
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 银行卡提现信息新增
|
|
|
+ querenyinghangBtn(){
|
|
|
+ if (this.yinghangData.cardNo == '') {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ duration: 1800,
|
|
|
+ message: '请输入银行卡号',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.yinghangData.openBank == '') {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ duration: 1800,
|
|
|
+ message: '请输入开户行名称',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.yinghangData.realName == '') {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ duration: 1800,
|
|
|
+ message: '请输入开户人姓名',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl('admin/shop/bank'),
|
|
|
+ method: 'post',
|
|
|
+ data: this.$http.adornData({
|
|
|
+ "bankName": this.yinghangData.openBank,
|
|
|
+ "cardNo": this.yinghangData.cardNo,
|
|
|
+ "openBank": this.yinghangData.openBank,
|
|
|
+ "realName": this.yinghangData.realName,
|
|
|
+ "shopId": this.shopId
|
|
|
+ })
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ if(data.msg=='success'){
|
|
|
+ this.$message({
|
|
|
+ message: '操作成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 1500,
|
|
|
+ onClose: () => {
|
|
|
+ this.ifkaihuying=false
|
|
|
+ this.taskdataSelectyhk()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.$message({
|
|
|
+ message: data.msg,
|
|
|
+ type: 'warn',
|
|
|
+ duration: 1500,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 修改银行信息
|
|
|
+ changeyinghangBtn(){
|
|
|
+ if (this.yinghangData.cardNo == '') {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ duration: 1800,
|
|
|
+ message: '请输入银行卡号',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.yinghangData.openBank == '') {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ duration: 1800,
|
|
|
+ message: '请输入开户行名称',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.yinghangData.realName == '') {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ duration: 1800,
|
|
|
+ message: '请输入开户人姓名',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl('admin/shop/bank'),
|
|
|
+ method: 'put',
|
|
|
+ data: this.$http.adornData({
|
|
|
+ "bankName": this.yinghangData.openBank,
|
|
|
+ "cardNo": this.yinghangData.cardNo,
|
|
|
+ "id": this.yingId,
|
|
|
+ "openBank": this.yinghangData.openBank,
|
|
|
+ "realName": this.yinghangData.realName,
|
|
|
+ "shopId": this.shopId
|
|
|
+ })
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ if(data.msg=='success'){
|
|
|
+ this.$message({
|
|
|
+ message: '修改成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 1500,
|
|
|
+ onClose: () => {
|
|
|
+ this.ifkaihuying=false
|
|
|
+ this.taskdataSelectyhk()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.$message({
|
|
|
+ message: data.msg,
|
|
|
+ type: 'warn',
|
|
|
+ duration: 1500,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 删除银行信息
|
|
|
+ deleteyinghangBtn(){
|
|
|
+ this.$http({
|
|
|
+ url: this.$http.adornUrl(`admin/shop/bank/delete-by-shop-id/${this.shopId}`),
|
|
|
+ method: 'delete',
|
|
|
+ }).then(({
|
|
|
+ data
|
|
|
+ }) => {
|
|
|
+ if(data.msg=='success'){
|
|
|
+ this.yinghangData.openBank=''
|
|
|
+ this.yinghangData.cardNo=''
|
|
|
+ this.yinghangData.realName=''
|
|
|
+ this.$message({
|
|
|
+ message: '删除成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 1500,
|
|
|
+ onClose: () => {
|
|
|
+ this.ifkaihuying=true
|
|
|
+ this.taskdataSelectyhk()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.shopId = this.$route.query.shopId
|