Browse Source

Merge branch 'dev_web' into dev_web_online

dev_web_online 1.23.0726.1
安虹睿 2 years ago
parent
commit
5edf8527a6
  1. 2
      fe/PC/public/version.json
  2. 6
      fe/PC/src/components/StepsCountPlanForm/index.vue
  3. 2
      fe/PC/src/components/searchOverall/style/index.scss
  4. 4
      fe/PC/src/views/inventoryManage/Count/CountNote-msQuery.vue
  5. 42
      fe/PC/src/views/inventoryManage/InventoryQuery/InventoryBalance.vue

2
fe/PC/public/version.json

@ -1,3 +1,3 @@
{ {
"version": "1.0.62" "version": "1.0.65"
} }

6
fe/PC/src/components/StepsCountPlanForm/index.vue

@ -407,7 +407,9 @@ export default {
// pda 使 locationTypeForPADPlan 线 // pda 使 locationTypeForPADPlan 线
// Excel 使 locationTypeForExcelPlan // Excel 使 locationTypeForExcelPlan
if(item.prop == 'type'){ if(item.prop == 'type'){
// todo:
item.filters = this.CreateFormData.requestType == 2 ? 'locationTypeForPADPlan' : 'locationTypeForExcelPlan' item.filters = this.CreateFormData.requestType == 2 ? 'locationTypeForPADPlan' : 'locationTypeForExcelPlan'
// item.filters = this.CreateFormData.requestType == 2 ? 'locationTypeForPADPlan' : 'locationType'
} }
}); });
return _list return _list
@ -451,7 +453,9 @@ export default {
// 线 20230703 // 线 20230703
// Excel(this.CreateFormData.requestType == 1)2 // Excel(this.CreateFormData.requestType == 1)2
// Excel(this.CreateFormData.requestType != 1)线5 // Excel(this.CreateFormData.requestType != 1)线5
// todo://
let type_value = this.CreateFormData.requestType == 1 ? '2' : '5' let type_value = this.CreateFormData.requestType == 1 ? '2' : '5'
// let type_value = this.CreateFormData.requestType == 1 ? null : '5'
let _filter = { let _filter = {
action: "!=", action: "!=",
column: "type", column: "type",
@ -468,7 +472,7 @@ export default {
hide: true hide: true
} }
if(this.pageListLocation.condition.filters.length <= 0){ if(this.pageListLocation.condition.filters.length <= 0){
this.pageListLocation.condition.filters.push(_filter) if(type_value)this.pageListLocation.condition.filters.push(_filter)
this.pageListLocation.condition.filters.push(_filter_code) this.pageListLocation.condition.filters.push(_filter_code)
} }
// code 20230705 // code 20230705

2
fe/PC/src/components/searchOverall/style/index.scss

@ -1,7 +1,7 @@
.searchOverallComponent{ .searchOverallComponent{
height: 0; height: 0;
transition:all 0.5s; transition:all 0.5s;
z-index: 1; z-index: 2;
overflow: hidden; overflow: hidden;
.border-outer{ .border-outer{

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

@ -114,6 +114,10 @@ export default {
// //
drawerbutton (val) { drawerbutton (val) {
if(val == 'adjust'){ if(val == 'adjust'){
if(this.propsData.creatorId != this.$store.getters.name.id){
this.$errorMsg('当前用户与创建用户不符,不能进行生成盘点调整申请')
return
}
const data = this.propsData.id const data = this.propsData.id
this.Loading.appMainLoading = true this.Loading.appMainLoading = true
StartAdjust(data).then(res=>{ StartAdjust(data).then(res=>{

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