Browse Source

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

2、盘点操作权限,创建用户与当前用户比对开发
faster_develop
安虹睿 2 years ago
parent
commit
b5336d2b37
  1. 1
      fe/PC/src/views/inventoryManage/Count/CountNote-msQuery.vue
  2. 42
      fe/PC/src/views/inventoryManage/InventoryQuery/InventoryBalance.vue

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

@ -77,6 +77,7 @@ 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
} }
}) })

42
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="topbutton" @topbutton="topbuttonHandle"
@inlineDialog="inlineDialog" @inlineDialog="inlineDialog"
@sortChange="sortChange" @sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount" @alertoldSkipCount="alertoldSkipCount"
@ -22,6 +22,7 @@
:primarySearchOption="primarySearchOption" :primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick" @overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:tableSelection="true"
> >
</tablePagination> </tablePagination>
<!-- 新增与编辑 --> <!-- 新增与编辑 -->
@ -106,6 +107,14 @@ 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(),//
@ -198,6 +207,37 @@ 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
})
}).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