From c3905016e46d989382a36cd98c4c0278b0573374 Mon Sep 17 00:00:00 2001
From: jishenghua <752718920@qq.com>
Date: Thu, 4 Jan 2024 00:24:26 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E9=87=87=E8=B4=AD=E3=80=81=E9=94=80?=
=?UTF-8?q?=E5=94=AE=E6=98=8E=E7=BB=86=E5=92=8C=E6=B1=87=E6=80=BB=E6=8A=A5?=
=?UTF-8?q?=E8=A1=A8=E5=A2=9E=E5=8A=A0=E6=9C=BA=E6=9E=84=E5=8F=82=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jshERP-web/src/api/api.js | 2 ++
.../src/views/report/AllocationDetail.vue | 21 ++++++++++++++++++-
jshERP-web/src/views/report/BuyInReport.vue | 21 ++++++++++++++++++-
jshERP-web/src/views/report/InDetail.vue | 21 ++++++++++++++++++-
.../src/views/report/InMaterialCount.vue | 21 ++++++++++++++++++-
jshERP-web/src/views/report/OutDetail.vue | 21 ++++++++++++++++++-
.../src/views/report/OutMaterialCount.vue | 21 ++++++++++++++++++-
.../src/views/report/RetailOutReport.vue | 21 ++++++++++++++++++-
jshERP-web/src/views/report/SaleOutReport.vue | 21 ++++++++++++++++++-
9 files changed, 162 insertions(+), 8 deletions(-)
diff --git a/jshERP-web/src/api/api.js b/jshERP-web/src/api/api.js
index f2c1e051..32239730 100644
--- a/jshERP-web/src/api/api.js
+++ b/jshERP-web/src/api/api.js
@@ -20,6 +20,7 @@ const getUserBtnByCurrentUser = (params)=>getAction("/user/getUserBtnByCurrentUs
const queryPermissionsByUser = (params)=>postAction("/function/findMenuByPNumber",params);
//机构管理
const queryOrganizationTreeList = (params)=>getAction("/organization/getOrganizationTree",params);
+const getAllOrganizationTreeByUser = (params)=>getAction("/organization/getAllOrganizationTreeByUser",params);
const queryOrganizationById = (params)=>getAction("/organization/findById",params);
const checkOrganization = (params)=>getAction("/organization/checkIsNameExist",params);
//经手人管理
@@ -127,6 +128,7 @@ export {
getUserBtnByCurrentUser,
queryPermissionsByUser,
queryOrganizationTreeList,
+ getAllOrganizationTreeByUser,
queryOrganizationById,
checkOrganization,
addPerson,
diff --git a/jshERP-web/src/views/report/AllocationDetail.vue b/jshERP-web/src/views/report/AllocationDetail.vue
index 58ffe771..c9ae3c50 100644
--- a/jshERP-web/src/views/report/AllocationDetail.vue
+++ b/jshERP-web/src/views/report/AllocationDetail.vue
@@ -73,6 +73,13 @@
+
+
+
+
+
+
@@ -130,7 +137,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
import {getAction} from '@/api/manage'
- import {findBySelectSup, findBillDetailByNumber} from '@/api/api'
+ import {findBySelectSup, findBillDetailByNumber, getAllOrganizationTreeByUser} from '@/api/api'
import JEllipsis from '@/components/jeecg/JEllipsis'
import moment from 'moment'
import Vue from 'vue'
@@ -157,6 +164,7 @@
materialParam:'',
depotId: '',
depotIdF: '',
+ organizationId: '',
beginTime: getNowFormatYear() + '-01-01',
endTime: moment().format('YYYY-MM-DD'),
subType: "调拨",
@@ -171,6 +179,7 @@
defaultTimeStr: '',
supList: [],
depotList: [],
+ orgaTree: [],
tabKey: "1",
// 表头
columns: [
@@ -205,6 +214,7 @@
created () {
this.getDepotData()
this.initSupplier()
+ this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
},
mounted () {
@@ -241,6 +251,15 @@
}
})
},
+ loadAllOrgaData(){
+ let that = this
+ let params = {}
+ getAllOrganizationTreeByUser(params).then((res)=>{
+ if(res){
+ that.orgaTree = res
+ }
+ })
+ },
myHandleDetail(record) {
findBillDetailByNumber({ number: record.number }).then((res) => {
if (res && res.code === 200) {
diff --git a/jshERP-web/src/views/report/BuyInReport.vue b/jshERP-web/src/views/report/BuyInReport.vue
index 37083a13..8ca85e85 100644
--- a/jshERP-web/src/views/report/BuyInReport.vue
+++ b/jshERP-web/src/views/report/BuyInReport.vue
@@ -65,6 +65,13 @@
+
+
+
+
+
+
@@ -111,7 +118,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getNowFormatYear, getMpListShort, openDownloadDialog, sheet2blob} from "@/utils/util"
import {getAction} from '@/api/manage'
- import {findBySelectSup} from '@/api/api'
+ import {findBySelectSup, getAllOrganizationTreeByUser} from '@/api/api'
import JEllipsis from '@/components/jeecg/JEllipsis'
import moment from 'moment'
import Vue from 'vue'
@@ -136,6 +143,7 @@
endTime: moment().format('YYYY-MM-DD'),
organId: '',
depotId: '',
+ organizationId: '',
mpList: getMpListShort(Vue.ls.get('materialPropertyList'))
},
ipagination:{
@@ -147,6 +155,7 @@
defaultTimeStr: '',
supList: [],
depotList: [],
+ orgaTree: [],
realityPriceTotal: '',
tabKey: "1",
// 表头
@@ -177,6 +186,7 @@
created () {
this.initSupplier()
this.getDepotData()
+ this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
},
mounted () {
@@ -234,6 +244,15 @@
}
})
},
+ loadAllOrgaData(){
+ let that = this
+ let params = {}
+ getAllOrganizationTreeByUser(params).then((res)=>{
+ if(res){
+ that.orgaTree = res
+ }
+ })
+ },
searchQuery() {
if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){
this.$message.warning('请选择单据日期!')
diff --git a/jshERP-web/src/views/report/InDetail.vue b/jshERP-web/src/views/report/InDetail.vue
index 15330720..e5bdc222 100644
--- a/jshERP-web/src/views/report/InDetail.vue
+++ b/jshERP-web/src/views/report/InDetail.vue
@@ -74,6 +74,13 @@
+
+
+
+
+
+
@@ -131,7 +138,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
import {getAction} from '@/api/manage'
- import {findBySelectOrgan, findBillDetailByNumber, getUserList} from '@/api/api'
+ import {findBySelectOrgan, findBillDetailByNumber, getUserList, getAllOrganizationTreeByUser} from '@/api/api'
import JEllipsis from '@/components/jeecg/JEllipsis'
import moment from 'moment'
import Vue from 'vue'
@@ -161,6 +168,7 @@
endTime: moment().format('YYYY-MM-DD'),
type: "入库",
creator: "",
+ organizationId: '',
remark: '',
},
ipagination:{
@@ -173,6 +181,7 @@
organList: [],
depotList: [],
userList: [],
+ orgaTree: [],
tabKey: "1",
// 表头
columns: [
@@ -210,6 +219,7 @@
this.getDepotData()
this.initSupplier()
this.initUser()
+ this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
},
mounted () {
@@ -253,6 +263,15 @@
}
});
},
+ loadAllOrgaData(){
+ let that = this
+ let params = {}
+ getAllOrganizationTreeByUser(params).then((res)=>{
+ if(res){
+ that.orgaTree = res
+ }
+ })
+ },
myHandleDetail(record) {
findBillDetailByNumber({ number: record.number }).then((res) => {
if (res && res.code === 200) {
diff --git a/jshERP-web/src/views/report/InMaterialCount.vue b/jshERP-web/src/views/report/InMaterialCount.vue
index 9de7211d..c6bd897d 100644
--- a/jshERP-web/src/views/report/InMaterialCount.vue
+++ b/jshERP-web/src/views/report/InMaterialCount.vue
@@ -59,6 +59,13 @@
+
+
+
+
+
+
@@ -105,7 +112,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
import {getAction} from '@/api/manage'
- import {findBySelectOrgan} from '@/api/api'
+ import {findBySelectOrgan, getAllOrganizationTreeByUser} from '@/api/api'
import JEllipsis from '@/components/jeecg/JEllipsis'
import moment from 'moment'
import Vue from 'vue'
@@ -129,6 +136,7 @@
organId: '',
materialParam:'',
depotId: '',
+ organizationId: '',
beginTime: getNowFormatYear() + '-01-01',
endTime: moment().format('YYYY-MM-DD'),
type: "入库",
@@ -142,6 +150,7 @@
defaultTimeStr: '',
organList: [],
depotList: [],
+ orgaTree: [],
tabKey: "1",
// 表头
columns: [
@@ -168,6 +177,7 @@
created () {
this.getDepotData()
this.initSupplier()
+ this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
},
methods: {
@@ -201,6 +211,15 @@
}
})
},
+ loadAllOrgaData(){
+ let that = this
+ let params = {}
+ getAllOrganizationTreeByUser(params).then((res)=>{
+ if(res){
+ that.orgaTree = res
+ }
+ })
+ },
searchQuery() {
if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){
this.$message.warning('请选择单据日期!')
diff --git a/jshERP-web/src/views/report/OutDetail.vue b/jshERP-web/src/views/report/OutDetail.vue
index 4ced6231..d745d552 100644
--- a/jshERP-web/src/views/report/OutDetail.vue
+++ b/jshERP-web/src/views/report/OutDetail.vue
@@ -74,6 +74,13 @@
+
+
+
+
+
+
@@ -131,7 +138,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
import {getAction} from '@/api/manage'
- import {findBySelectOrgan, findBillDetailByNumber, getUserList} from '@/api/api'
+ import {findBySelectOrgan, findBillDetailByNumber, getUserList, getAllOrganizationTreeByUser} from '@/api/api'
import JEllipsis from '@/components/jeecg/JEllipsis'
import moment from 'moment'
import Vue from 'vue'
@@ -161,6 +168,7 @@
endTime: moment().format('YYYY-MM-DD'),
type: "出库",
creator: "",
+ organizationId: '',
remark: ''
},
ipagination:{
@@ -173,6 +181,7 @@
organList: [],
depotList: [],
userList: [],
+ orgaTree: [],
tabKey: "1",
// 表头
columns: [
@@ -210,6 +219,7 @@
this.getDepotData()
this.initSupplier()
this.initUser()
+ this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
},
mounted () {
@@ -253,6 +263,15 @@
}
});
},
+ loadAllOrgaData(){
+ let that = this
+ let params = {}
+ getAllOrganizationTreeByUser(params).then((res)=>{
+ if(res){
+ that.orgaTree = res
+ }
+ })
+ },
myHandleDetail(record) {
findBillDetailByNumber({ number: record.number }).then((res) => {
if (res && res.code === 200) {
diff --git a/jshERP-web/src/views/report/OutMaterialCount.vue b/jshERP-web/src/views/report/OutMaterialCount.vue
index 83dd9a21..993a0581 100644
--- a/jshERP-web/src/views/report/OutMaterialCount.vue
+++ b/jshERP-web/src/views/report/OutMaterialCount.vue
@@ -59,6 +59,13 @@
+
+
+
+
+
+
@@ -105,7 +112,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
import {getAction} from '@/api/manage'
- import {findBySelectOrgan} from '@/api/api'
+ import {findBySelectOrgan, getAllOrganizationTreeByUser} from '@/api/api'
import JEllipsis from '@/components/jeecg/JEllipsis'
import moment from 'moment'
import Vue from 'vue'
@@ -129,6 +136,7 @@
organId: '',
materialParam:'',
depotId: '',
+ organizationId: '',
beginTime: getNowFormatYear() + '-01-01',
endTime: moment().format('YYYY-MM-DD'),
type: "出库",
@@ -142,6 +150,7 @@
defaultTimeStr: '',
organList: [],
depotList: [],
+ orgaTree: [],
tabKey: "1",
// 表头
columns: [
@@ -168,6 +177,7 @@
created () {
this.getDepotData()
this.initSupplier()
+ this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
},
methods: {
@@ -201,6 +211,15 @@
}
})
},
+ loadAllOrgaData(){
+ let that = this
+ let params = {}
+ getAllOrganizationTreeByUser(params).then((res)=>{
+ if(res){
+ that.orgaTree = res
+ }
+ })
+ },
searchQuery() {
if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){
this.$message.warning('请选择单据日期!')
diff --git a/jshERP-web/src/views/report/RetailOutReport.vue b/jshERP-web/src/views/report/RetailOutReport.vue
index 1b8ae4c0..31c9832f 100644
--- a/jshERP-web/src/views/report/RetailOutReport.vue
+++ b/jshERP-web/src/views/report/RetailOutReport.vue
@@ -65,6 +65,13 @@
+
+
+
+
+
+
@@ -111,7 +118,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getNowFormatYear, getMpListShort, openDownloadDialog, sheet2blob} from "@/utils/util"
import {getAction} from '@/api/manage'
- import {findBySelectRetail} from '@/api/api'
+ import {findBySelectRetail, getAllOrganizationTreeByUser} from '@/api/api'
import JEllipsis from '@/components/jeecg/JEllipsis'
import moment from 'moment'
import Vue from 'vue'
@@ -136,6 +143,7 @@
endTime: moment().format('YYYY-MM-DD'),
organId: '',
depotId: '',
+ organizationId: '',
mpList: getMpListShort(Vue.ls.get('materialPropertyList')),
},
ipagination:{
@@ -147,6 +155,7 @@
defaultTimeStr: '',
retailList: [],
depotList: [],
+ orgaTree: [],
realityPriceTotal: '',
tabKey: "1",
// 表头
@@ -177,6 +186,7 @@
created () {
this.initRetail()
this.getDepotData()
+ this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
},
mounted () {
@@ -236,6 +246,15 @@
}
})
},
+ loadAllOrgaData(){
+ let that = this
+ let params = {}
+ getAllOrganizationTreeByUser(params).then((res)=>{
+ if(res){
+ that.orgaTree = res
+ }
+ })
+ },
searchQuery() {
if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){
this.$message.warning('请选择单据日期!')
diff --git a/jshERP-web/src/views/report/SaleOutReport.vue b/jshERP-web/src/views/report/SaleOutReport.vue
index 9fbd1c77..56a986f1 100644
--- a/jshERP-web/src/views/report/SaleOutReport.vue
+++ b/jshERP-web/src/views/report/SaleOutReport.vue
@@ -65,6 +65,13 @@
+
+
+
+
+
+
@@ -111,7 +118,7 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getNowFormatYear, getMpListShort, openDownloadDialog, sheet2blob} from "@/utils/util"
import {getAction} from '@/api/manage'
- import {findBySelectCus} from '@/api/api'
+ import {findBySelectCus, getAllOrganizationTreeByUser} from '@/api/api'
import JEllipsis from '@/components/jeecg/JEllipsis'
import moment from 'moment'
import Vue from 'vue'
@@ -136,6 +143,7 @@
endTime: moment().format('YYYY-MM-DD'),
organId: '',
depotId: '',
+ organizationId: '',
mpList: getMpListShort(Vue.ls.get('materialPropertyList')),
},
ipagination:{
@@ -147,6 +155,7 @@
defaultTimeStr: '',
cusList: [],
depotList: [],
+ orgaTree: [],
realityPriceTotal: '',
tabKey: "1",
// 表头
@@ -177,6 +186,7 @@
created () {
this.initCustomer()
this.getDepotData()
+ this.loadAllOrgaData()
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
},
mounted () {
@@ -236,6 +246,15 @@
}
})
},
+ loadAllOrgaData(){
+ let that = this
+ let params = {}
+ getAllOrganizationTreeByUser(params).then((res)=>{
+ if(res){
+ that.orgaTree = res
+ }
+ })
+ },
searchQuery() {
if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){
this.$message.warning('请选择单据日期!')