给采购、销售明细和汇总报表增加机构参数

This commit is contained in:
jishenghua
2024-01-04 00:24:26 +08:00
parent 3fd8767c92
commit c3905016e4
9 changed files with 162 additions and 8 deletions

View File

@@ -65,6 +65,13 @@
</a-select>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24" v-if="orgaTree.length">
<a-form-item label="机构" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-tree-select style="width:100%" allow-clear :treeData="orgaTree"
v-model="queryParam.organizationId" placeholder="请选择机构">
</a-tree-select>
</a-form-item>
</a-col>
</template>
</a-row>
</a-form>
@@ -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('请选择单据日期!')