|
@@ -132,7 +132,7 @@ export default {
|
|
|
"content": {
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 100,
|
|
|
- "type":"0",//1按部门 0按人员
|
|
|
+ "type":"1",//1按部门 0按人员
|
|
|
"dataid":JSON.parse(sessionStorage.getItem('active_account')).userid,//部门人员id
|
|
|
"querytype":0,//0按业务员 1按客户
|
|
|
"point":"全部",// 入账节点
|
|
@@ -146,7 +146,6 @@ export default {
|
|
|
methods:{
|
|
|
async listData(){
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
- console.log(res.data,'数据')
|
|
|
this.list = res.data
|
|
|
this.allList = res.data.length > 0 ? res.data[0]:{}
|
|
|
this.total = res.total
|
|
@@ -156,8 +155,10 @@ export default {
|
|
|
const res = await this.$api.requested(this.depmentParam)
|
|
|
this.$refs.departmentSalesperson.deplist = this.createMenu(res.data.dep)
|
|
|
this.$refs.departmentSalesperson.personnelList = res.data.hr
|
|
|
- const name = JSON.parse(sessionStorage.getItem('active_account')).name
|
|
|
- this.$refs.departmentSalesperson.person = name
|
|
|
+ this.$refs.departmentSalesperson.depment = res.data.dep[0].departmentid
|
|
|
+ this.param.content.type = 1
|
|
|
+ this.param.content.dataid = res.data.dep[0].departmentid
|
|
|
+ this.listData()
|
|
|
},
|
|
|
createMenu (array) {
|
|
|
var that = this
|
|
@@ -240,7 +241,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.departmentrtment()
|
|
|
- this.listData()
|
|
|
+ /* this.listData()*/
|
|
|
},
|
|
|
created() {
|
|
|
this.tablecolsSaler = this.tool.tabelCol(this.$route.name).accountsReceivableSalerTable.tablecols
|