|
@ -9,7 +9,7 @@ |
|
|
:totalCount="totalCount" |
|
|
:totalCount="totalCount" |
|
|
:multipleSelection="multipleSelection" |
|
|
:multipleSelection="multipleSelection" |
|
|
:MaxResultCount="PageListParams.MaxResultCount" |
|
|
:MaxResultCount="PageListParams.MaxResultCount" |
|
|
@topbutton="topbuttonHandle" |
|
|
@topbutton="topbutton" |
|
|
@inlineDialog="inlineDialog" |
|
|
@inlineDialog="inlineDialog" |
|
|
@sortChange="sortChange" |
|
|
@sortChange="sortChange" |
|
|
@alertoldSkipCount="alertoldSkipCount" |
|
|
@alertoldSkipCount="alertoldSkipCount" |
|
@ -22,7 +22,6 @@ |
|
|
:primarySearchOption="primarySearchOption" |
|
|
:primarySearchOption="primarySearchOption" |
|
|
@overallSearchFormClick="overallSearchFormClick" |
|
|
@overallSearchFormClick="overallSearchFormClick" |
|
|
:httpOverallSearchData="httpOverallSearchData" |
|
|
:httpOverallSearchData="httpOverallSearchData" |
|
|
:tableSelection="true" |
|
|
|
|
|
> |
|
|
> |
|
|
</tablePagination> |
|
|
</tablePagination> |
|
|
<!-- 新增与编辑 --> |
|
|
<!-- 新增与编辑 --> |
|
@ -107,14 +106,6 @@ export default { |
|
|
currenButtonData: [ |
|
|
currenButtonData: [ |
|
|
this.defaultImportBtn(),//导入 |
|
|
this.defaultImportBtn(),//导入 |
|
|
this.defaultExportBtn(),//导出 |
|
|
this.defaultExportBtn(),//导出 |
|
|
{ |
|
|
|
|
|
type: "success", |
|
|
|
|
|
icon: "el-icon-check", |
|
|
|
|
|
label: "批量启用", |
|
|
|
|
|
name: "batch-active", |
|
|
|
|
|
size: "mini", |
|
|
|
|
|
background:"#31bb99" |
|
|
|
|
|
}, |
|
|
|
|
|
this.defaultFieldSettingBtn(),//字段设置 |
|
|
this.defaultFieldSettingBtn(),//字段设置 |
|
|
this.defaultFreshBtn(),//刷新 |
|
|
this.defaultFreshBtn(),//刷新 |
|
|
this.defaultFilterBtn(),//筛选 |
|
|
this.defaultFilterBtn(),//筛选 |
|
@ -207,49 +198,6 @@ export default { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
topbuttonHandle(val,item){ |
|
|
|
|
|
if(val == 'batch-active'){ |
|
|
|
|
|
if(!this.multipleSelection || this.multipleSelection.length <= 0){ |
|
|
|
|
|
this.$warningMsg('请选择数据') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.$confirm('此操作将启用已选 ('+this.multipleSelection.length+'条) 数据, 是否继续?', '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.Loading.tableLoading = true |
|
|
|
|
|
let _ajaxs = [] |
|
|
|
|
|
this.multipleSelection.forEach(item=>{ |
|
|
|
|
|
_ajaxs.push(inventoryBalanceActive({id: item.id})) |
|
|
|
|
|
}) |
|
|
|
|
|
Promise.all(_ajaxs).then((allData) => { |
|
|
|
|
|
this.$successMsg('启用成功!') |
|
|
|
|
|
this.Loading.tableLoading = false |
|
|
|
|
|
this.paging() |
|
|
|
|
|
}).catch((err)=>{ |
|
|
|
|
|
this.Loading.tableLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// inventoryBalanceActive({id: this.propsData.id}).then(res => { |
|
|
|
|
|
// this.$successMsg('启用成功!') |
|
|
|
|
|
// this.Loading.tableLoading = false |
|
|
|
|
|
// this.displayDialog.detailsDialog = false |
|
|
|
|
|
// this.paging() |
|
|
|
|
|
// // getDetailed(this.propsData.id, this.URL).then(res => { |
|
|
|
|
|
// // this.propsData = res |
|
|
|
|
|
// // this.Loading.DrawerLoading = false |
|
|
|
|
|
// // }) |
|
|
|
|
|
// }).catch(err => { |
|
|
|
|
|
// this.Loading.tableLoading = false |
|
|
|
|
|
// }) |
|
|
|
|
|
}).catch((err) => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}); |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.topbutton(val,item) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
//抽屉下拉按钮操作 库存余额删除 只能删除库存数量为0的记录 |
|
|
//抽屉下拉按钮操作 库存余额删除 只能删除库存数量为0的记录 |
|
|
// drawerHandle(val) { |
|
|
// drawerHandle(val) { |
|
|
// if (val == 'delete') { |
|
|
// if (val == 'delete') { |
|
|