Browse Source

Revert "1、库存余额批量启用功能开发,"

This reverts commit be2138f6b7.
dev_web_online
安虹睿 2 years ago
parent
commit
84e5edaf88
  1. 1
      fe/PC/src/views/inventoryManage/Count/CountNote-msQuery.vue
  2. 54
      fe/PC/src/views/inventoryManage/InventoryQuery/InventoryBalance.vue

1
fe/PC/src/views/inventoryManage/Count/CountNote-msQuery.vue

@ -77,7 +77,6 @@ export default {
let data = true let data = true
val.forEach(key => { val.forEach(key => {
if (this.propsData.adjusted == key) { if (this.propsData.adjusted == key) {
// if (this.propsData.adjusted == key && this.propsData.creatorId == this.$store.getters.name.id) {
data = false data = false
} }
}) })

54
fe/PC/src/views/inventoryManage/InventoryQuery/InventoryBalance.vue

@ -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') {

Loading…
Cancel
Save