0d06b2b2 by renchao@pashanhoo.com

style:信息备案

1 parent 2251f715
/*
* @Description: 企业银行接口
* @Autor: renchao
* @LastEditTime: 2023-09-07 16:53:25
* @LastEditTime: 2023-09-08 09:18:45
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
......@@ -58,6 +58,9 @@ export function uploadBatch (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/company/uploadBatch',
method: 'post',
headers: {
'Content-Type': 'multipart/form-data'
},
data
})
}
\ No newline at end of file
......
/*
* @Description: 信息备案
* @Autor:
* @LastEditTime: 2023-07-19 14:52:03
* @LastEditTime: 2023-09-08 09:27:58
*/
import request from '@/utils/request'
......@@ -58,3 +58,17 @@ export function queryYhByPage (data) {
})
}
/**
* @description: 删除列表
* @param {*} companyBsm
* @author: renchao
*/
export function remove (companyBsm) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/company/remove',
method: 'get',
params: {
companyBsm: companyBsm
}
})
}
\ No newline at end of file
......
......@@ -14,14 +14,25 @@
</el-col>
<el-col :span="12">
<el-form-item label="电话:" prop="dh">
<el-input v-model="ruleForm.dh"></el-input>
<el-input v-model.number="ruleForm.dh" maxlength="11"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="证件种类:">
<el-input v-model="ruleForm.zjzl"></el-input>
<el-form-item label="证件种类" prop="zjzl">
<el-select
clearable
v-model="ruleForm.zjzl"
class="width100"
placeholder="请选择">
<el-option
v-for="item in zjzlList"
:key="item.dcode"
:label="item.dname"
:value="item.dcode">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -81,6 +92,7 @@
},
data () {
return {
zjzlList: store.getters.dictData['A30'],
activeName: "1",
DJJGLIST: store.getters.dictData['ywly'],
readOnly: false,
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-07 16:54:37
* @LastEditTime: 2023-09-07 17:23:02
-->
<template>
<div class="rlPopup">
......@@ -268,7 +268,7 @@
this.key++
return;
}
formData.append("bsmMaterial ", this.previewImg.bsmMaterial);
formData.append("bsmMaterial", this.previewImg.bsmMaterial);
uploadBatch(formData).then((res) => {
if (res.code == 200) {
this.$emit('updateList', res.result)
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-07 14:56:54
* @LastEditTime: 2023-09-08 09:30:08
-->
<template>
<div class="from-clues">
......@@ -42,7 +42,7 @@
import { mapGetters } from 'vuex'
import table from "@/utils/mixin/table"
import { datas, sendThis } from "./data"
import { queryQyByPage, addQy } from "@/api/xxba.js";
import { queryQyByPage, addQy, remove } from "@/api/xxba.js";
export default {
name: "cwrz",
components: {},
......@@ -112,16 +112,26 @@
* @description: handleDelete
* @author: renchao
*/
handleDelete () {
handleDelete (row) {
let _this = this
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
remove(row.bsmCompany).then(res => {
if (res.code == 200) {
_this.$message({
type: 'success',
message: '删除成功!'
});
}
const totalPage = Math.ceil((_this.tableData.total - 1) / _this.pageData.pageSize) // 总页数
_this.pageData.currentPage = _this.pageData.currentPage > totalPage ? totalPage : _this.pageData.currentPage
_this.pageData.currentPage = _this.pageData.currentPage < 1 ? 1 : _this.pageData.currentPage
_this.queryClick(_this.pageData.currentPage);//重新渲染数
})
}).catch(() => {
this.$message({
type: 'info',
......
......@@ -42,7 +42,7 @@
import { mapGetters } from 'vuex'
import table from "@/utils/mixin/table"
import { datas, sendThis } from "./data"
import { queryYhByPage, addYh } from "@/api/xxba.js";
import { queryYhByPage, addYh, remove } from "@/api/xxba.js";
export default {
name: "cwrz",
components: {},
......@@ -112,22 +112,32 @@
* @description: handleDelete
* @author: renchao
*/
handleDelete () {
handleDelete (row) {
let _this = this
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
remove(row.bsmCompany).then(res => {
if (res.code == 200) {
_this.$message({
type: 'success',
message: '删除成功!'
});
}
const totalPage = Math.ceil((_this.tableData.total - 1) / _this.pageData.pageSize) // 总页数
_this.pageData.currentPage = _this.pageData.currentPage > totalPage ? totalPage : _this.pageData.currentPage
_this.pageData.currentPage = _this.pageData.currentPage < 1 ? 1 : _this.pageData.currentPage
_this.queryClick(_this.pageData.currentPage);//重新渲染数
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
})
})
}
}
}
......