This commit is contained in:
linfso 2025-05-23 02:51:19 +08:00
parent 3e52591178
commit b5332227fb

View File

@ -214,6 +214,7 @@ export default {
total: 0, total: 0,
// 渠道开票记录表表格数据 // 渠道开票记录表表格数据
emisSettleInvoiceChRecordList: [], emisSettleInvoiceChRecordList: [],
selectList: [],
currentId:null, currentId:null,
openForm: false, openForm: false,
@ -396,6 +397,7 @@ export default {
this.ids = selection.map(item => item.id) this.ids = selection.map(item => item.id)
this.single = selection.length!==1 this.single = selection.length!==1
this.multiple = !selection.length this.multiple = !selection.length
this.selectList=selection;
}, },
// 排序 查询字段是表格中字段名字 动态取值排序顺序 // 排序 查询字段是表格中字段名字 动态取值排序顺序
handleSortChange(column) { handleSortChange(column) {
@ -459,9 +461,15 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
if(row.openChStatus==1||row.openChStatus==2||row.openChStatus==3){ if(this.selectList&&this.selectList.length>0){
this.$modal.msgError("不允许删除"); for(let i=0;i<this.selectList.length;i++){
return; let item=this.selectList[i];
if(item.openChStatus==1||item.openChStatus==2||item.openChStatus==3){
this.$modal.msgError("不允许删除");
return;
}
}
} }
const ids = row.id || this.ids; const ids = row.id || this.ids;