|
|
@@ -41,12 +41,19 @@
|
|
|
@handleButton4="handleButton4" button2Name="审核提现" @handleButton2="handleButton2"></kt-common-table>
|
|
|
<el-dialog :visible.sync="dialogVisibleBatch" width="35%" :before-close="handleCloseBatch">
|
|
|
<p>凭证号 :<el-input style="width: 200px;" v-model="voucherId" placeholder="请输入凭证号"></el-input></p>
|
|
|
- <div style="display: flex">上传图片: <el-upload action="#" :auto-upload="false" accept=".png, .jpg, .jpeg"
|
|
|
+ <div style="display: flex">上传图片: <el-upload action="#" drag :auto-upload="false" accept=".png, .jpg, .jpeg"
|
|
|
:show-file-list="false" :on-change="drivingupload">
|
|
|
<img v-if="qrCodeImage" :src="qrCodeImage" class="avatar">
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
</div>
|
|
|
+ <el-button type="text" @click="bindbankCard">绑定内部银行卡</el-button>
|
|
|
+ <div v-if="bankForm.accountName">
|
|
|
+ <p>银行卡号:{{ bankForm.bankCardNum }}</p>
|
|
|
+ <p>内部账户名称:{{ bankForm.accountName }}</p>
|
|
|
+ <p>内部开户行号:{{ bankForm.bankNum }}</p>
|
|
|
+ <p>内部开户行名称:{{ bankForm.bankName }}</p>
|
|
|
+ </div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="dialogVisibleBatch = false">取 消</el-button>
|
|
|
<el-button size="small" type="primary" @click="handleSumbit()">确 定</el-button>
|
|
|
@@ -64,6 +71,16 @@
|
|
|
<el-button size="small" type="primary" @click="auditRejectSubmit">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="绑定银行卡" :visible.sync="bankdialogVisible" width="50%">
|
|
|
+ <templateTable :formList="formList" ref="templateTable" @handleCurrentTableChange="handleCurrentTableChange"
|
|
|
+ :tableConfig="tableConfig" :data="bankDataTable" @findPage="findPage" @handleSearchList="handleSearchList"
|
|
|
+ :pagination="pageData" @getList="getList">
|
|
|
+ </templateTable>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="bankdialogVisible = false">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="bankdialogVisible = false">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
@@ -72,13 +89,61 @@ import Cookies from "js-cookie";
|
|
|
import KtCommonTable from "@/views/Core/KtCommonTable.vue"; //表格组件
|
|
|
import KtButton from "@/views/Core/KtButton";
|
|
|
import CommonUtil from "@/utils/comutil.js";
|
|
|
+import templateTable from '@/components/TemplateTable/index.vue'
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
KtCommonTable,
|
|
|
- KtButton
|
|
|
+ KtButton,
|
|
|
+ templateTable
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ bankForm:{},
|
|
|
+ formList: [
|
|
|
+ {
|
|
|
+ label: "账户名称",
|
|
|
+ prop: "accountName",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "银行卡号",
|
|
|
+ prop: "bankCardNum",
|
|
|
+ type: "input",
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ tableConfig: {
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ prop: "accountName",
|
|
|
+ label: "内部账户名称",
|
|
|
+ type: "text"
|
|
|
+
|
|
|
+ }, {
|
|
|
+ prop: "bankCardNum",
|
|
|
+ label: "内部银行卡号",
|
|
|
+ type: "text"
|
|
|
+ }, {
|
|
|
+ prop: "bankName",
|
|
|
+ label: "内部开户行",
|
|
|
+ type: "text"
|
|
|
+ }, {
|
|
|
+ prop: "bankNum",
|
|
|
+ label: "内部开户行号",
|
|
|
+ type: "text"
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ operationWidth: '180',
|
|
|
+ loading: true,
|
|
|
+ isPaginationShow: true,
|
|
|
+ isShowIndex: true,
|
|
|
+ },
|
|
|
+ pageData: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ },
|
|
|
+ bankdialogVisible:false,
|
|
|
+ bankDataTable:[],
|
|
|
auditRejectId:"",
|
|
|
auditRejectInput: "",
|
|
|
auditRejectdialogVisible: false,
|
|
|
@@ -121,6 +186,46 @@ export default {
|
|
|
},
|
|
|
mounted() { },
|
|
|
methods: {
|
|
|
+ handleSearchList(val){
|
|
|
+ this.bankfindPage(val);
|
|
|
+ },
|
|
|
+ handleCurrentTableChange(val){
|
|
|
+ this.bankForm=val
|
|
|
+ this.bankdialogVisible=false
|
|
|
+ },
|
|
|
+ tablePageChange(val) {
|
|
|
+ this.pageData.pageSize = val;
|
|
|
+ this.bankfindPage();
|
|
|
+ },
|
|
|
+ tableCurrentChange(val) {
|
|
|
+ this.pageData.pageNum = val;
|
|
|
+ this.bankfindPage();
|
|
|
+ },
|
|
|
+ getList(data) {
|
|
|
+ this.bankfindPage(data)
|
|
|
+ },
|
|
|
+ bankfindPage(data){
|
|
|
+ this.tableConfig.loading = true;
|
|
|
+ this.$api.task
|
|
|
+ .getAccountCardListByPage({ ...this.pageData, ...data })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.bankDataTable = res.data.content ? res.data.content : []
|
|
|
+ this.pageData.pageNum = res.data.pageNum;
|
|
|
+ this.pageData.pageSize = res.data.pageSize;
|
|
|
+ this.pageData.totalSize = res.data.totalSize;
|
|
|
+ this.tableConfig.loading = false;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.tableConfig.loading = false;
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ bindbankCard(){
|
|
|
+ this.bankdialogVisible=true
|
|
|
+ this.bankfindPage();
|
|
|
+ },
|
|
|
handleCloseBatch(){
|
|
|
this.dialogVisibleBatch=false
|
|
|
},
|
|
|
@@ -190,7 +295,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
handleSumbit() {
|
|
|
- this.$api.task.AmountReview({ ...this.rowlist, status: '1', picId: this.picId, voucherId: this.voucherId }).then(res => {
|
|
|
+ this.$api.task.AmountReview({ ...this.rowlist, status: '1', picId: this.picId, voucherId: this.voucherId,...this.bankForm }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.dialogVisibleBatch = false
|
|
|
this.findPage();
|
|
|
@@ -209,13 +314,8 @@ export default {
|
|
|
this.rowlist = row
|
|
|
this.picId = ''
|
|
|
this.voucherId = ''
|
|
|
- // this.$api.task.AmountReview(row).then(res => {
|
|
|
+ // this.$api.task.findById({id:row.id}).then(res => {
|
|
|
// if (res.code == 200) {
|
|
|
- // this.$message({
|
|
|
- // type: "success",
|
|
|
- // message: res.msg
|
|
|
- // });
|
|
|
- // this.findPage();
|
|
|
// }
|
|
|
// });
|
|
|
},
|
|
|
@@ -319,7 +419,12 @@ export default {
|
|
|
text-align: center;
|
|
|
border: 1px dashed #d9d9d9;
|
|
|
}
|
|
|
-
|
|
|
+/deep/{
|
|
|
+ .el-upload-dragger{
|
|
|
+ width: 150px;
|
|
|
+ height: 150px;
|
|
|
+}
|
|
|
+}
|
|
|
.avatar {
|
|
|
border: 1px dashed #d9d9d9;
|
|
|
padding: 5px;
|