增加批量删除

main
mo 1 year ago
parent 6a48086bc4
commit 482225da34

@ -46,6 +46,17 @@
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
@ -65,7 +76,12 @@
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="凭证号" align="center" prop="voucherNum" />
<!-- <el-table-column label="文件地址" align="center" prop="fileUrl">
<template slot-scope="scope">
@ -249,6 +265,12 @@ export default {
total: 0,
//
list: [],
//
single: true,
//
multiple: true,
//
ids: [],
//
title: "",
//
@ -363,6 +385,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@ -436,7 +464,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除会计附件编号为"' + id + '"的数据项?')
.then(function () {

@ -98,6 +98,17 @@
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
@ -126,7 +137,13 @@
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="账簿名称" align="center" prop="name">
</el-table-column>
<el-table-column label="业务实体" align="center" prop="company" />
@ -378,6 +395,12 @@ export default {
showSearch: true,
//
total: 0,
//
single: true,
//
multiple: true,
//
ids: [],
// 簿
list: [],
//
@ -505,6 +528,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@ -589,7 +618,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除会计账簿编号为"' + id + '"的数据项?')
.then(function () {

@ -46,6 +46,17 @@
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
@ -76,7 +87,12 @@
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="OA/ERP流程编号" align="center" prop="flowCode" />
<el-table-column label="凭证号" align="center" prop="voucherNum" />
<!-- <el-table-column label="文件地址" align="center" prop="fileUrl">
@ -287,6 +303,12 @@ export default {
showSearch: true,
//
total: 0,
//
single: true,
//
multiple: true,
//
ids: [],
//
list: [],
//
@ -400,6 +422,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@ -465,7 +493,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除审批流程编号为"' + id + '"的数据项?')
.then(function () {

@ -53,6 +53,17 @@
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
@ -82,7 +93,12 @@
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="文件名" align="center" prop="name" />
<el-table-column label="OA/ERP流程编号" align="center" prop="flowCode" />
<el-table-column label="文件来源" align="center" prop="source" />
@ -371,6 +387,12 @@ export default {
list: [],
//
title: "",
//
single: true,
//
multiple: true,
//
ids: [],
//
open: false,
open1: false,
@ -560,6 +582,12 @@ export default {
this.title = "修改其他资料";
});
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
@ -585,7 +613,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除其他资料编号为"' + id + '"的数据项?')
.then(function () {

@ -75,6 +75,17 @@
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
@ -104,7 +115,12 @@
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="报表文件名称" align="center" prop="name" />
<!-- <el-table-column label="报表文件" align="center" prop="url">
<template slot-scope="scope">
@ -355,6 +371,12 @@ export default {
total: 0,
//
list: [],
//
single: true,
//
multiple: true,
//
ids: [],
//
title: "",
fileList: [],
@ -475,6 +497,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@ -565,7 +593,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除会计报表编号为"' + id + '"的数据项?')
.then(function () {

@ -74,6 +74,17 @@
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
@ -103,7 +114,12 @@
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="凭证号" align="center" prop="voucherNum" />
<el-table-column label="凭证日期" align="center" prop="voucherTime" />
<el-table-column label="摘要" align="center" prop="digest" />
@ -537,6 +553,12 @@ export default {
showSearch: true,
//
total: 0,
//
single: true,
//
multiple: true,
//
ids: [],
//
list: [],
//
@ -819,6 +841,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@ -895,7 +923,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除会计凭证编号为"' + id + '"的数据项?')
.then(function () {

@ -46,6 +46,17 @@
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
@ -65,7 +76,12 @@
</el-row>
<!-- 列表 -->
<el-table v-loading="loading" :data="list">
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="条目顺序号" align="center" prop="lineNum" />
<el-table-column label="科目编码" align="center" prop="subjectCode" />
<el-table-column label="科目名称" align="center" prop="subjectName" />
@ -259,6 +275,12 @@ export default {
title: "",
//
open: false,
//
single: true,
//
multiple: true,
//
ids: [],
//
queryParams: {
pageNo: 1,
@ -341,6 +363,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@ -400,7 +428,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
const id = row.id;
const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除凭证详情编号为"' + id + '"的数据项?')
.then(function () {

Loading…
Cancel
Save