mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 19:06:43 +08:00
'出单信息列表'
This commit is contained in:
@@ -9,10 +9,10 @@ export function queryOutOrderList(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//日期查询
|
//获取当前人机构
|
||||||
export function getDayDetail(data) {
|
export function getBranchByUser(data) {
|
||||||
return request({
|
return request({
|
||||||
url: getUrl(`/agent/Performance/getDayDetail`, 1),
|
url: getUrl(`/data/branch/getBranchByUser`, 1),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -8,13 +8,11 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(item, index) in tableData" :key="index">
|
<tr v-for="(item, index) in tableData" :key="index">
|
||||||
<td :class="isLink?'td-fixed':'th-fixed'" @click="goLink(item)">{{item.convokeOrgCn}}</td>
|
<td class="th-fixed" @click="goLink(item)">{{item.name}}</td>
|
||||||
<td>{{item.splan}}</td>
|
<td class="th-fixed">{{item.productName}}</td>
|
||||||
<td>{{item.estimatePeople}}</td>
|
<td>{{item.prem}}</td>
|
||||||
<td>{{item.estimatePremium}}</td>
|
<td>{{item.commitDate}}</td>
|
||||||
<td>{{item.rplan}}</td>
|
<td>{{item.appntDate}}</td>
|
||||||
<td>{{item.realityPeople}}</td>
|
|
||||||
<td>{{item.estimateGetPremium}}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -86,14 +84,14 @@ table {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.th-fixed {
|
.th-fixed {
|
||||||
position: sticky;
|
// position: sticky;
|
||||||
left: 0;
|
left: 0;
|
||||||
width:100px;
|
width:150px;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
.td-fixed {
|
.td-fixed {
|
||||||
position: sticky;
|
// position: sticky;
|
||||||
width:100px;
|
width:150px;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
left: 0;
|
left: 0;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|||||||
@@ -70,6 +70,8 @@ import { Icon } from 'vant'
|
|||||||
import tableDetail from '@/components/ebiz/billingDetail/tableDetail'
|
import tableDetail from '@/components/ebiz/billingDetail/tableDetail'
|
||||||
import { getComPerformance, getOrgList } from '@/api/ebiz/branchOffice/branchOffice'
|
import { getComPerformance, getOrgList } from '@/api/ebiz/branchOffice/branchOffice'
|
||||||
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
||||||
|
import { queryOutOrderList, getBranchByUser } from '@/api/ebiz/billingDetail/billingDetail'
|
||||||
|
|
||||||
// 当前时间
|
// 当前时间
|
||||||
const currentDate = new Date()
|
const currentDate = new Date()
|
||||||
export default {
|
export default {
|
||||||
@@ -80,7 +82,7 @@ export default {
|
|||||||
return this.OrgLv2Name !== '全国'
|
return this.OrgLv2Name !== '全国'
|
||||||
},
|
},
|
||||||
province() {
|
province() {
|
||||||
const name = ['全国']
|
const name = []
|
||||||
this.OrgLv2s.forEach((item) => {
|
this.OrgLv2s.forEach((item) => {
|
||||||
name.push(item.name)
|
name.push(item.name)
|
||||||
})
|
})
|
||||||
@@ -111,22 +113,24 @@ export default {
|
|||||||
tableData: [],
|
tableData: [],
|
||||||
maxDate: new Date(),
|
maxDate: new Date(),
|
||||||
filterDate: '',
|
filterDate: '',
|
||||||
postDate:'',//实际给后台传的时间
|
postDate: '', //实际给后台传的时间
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
manageLv: 1, //当前人机构等级
|
||||||
// 二级机构筛选是否显示
|
// 二级机构筛选是否显示
|
||||||
isOrgLv2ConditionShow: false,
|
isOrgLv2ConditionShow: false,
|
||||||
// 三级机构筛选是否显示
|
// 三级机构筛选是否显示
|
||||||
isOrgLv3ConditionShow: false,
|
isOrgLv3ConditionShow: false,
|
||||||
// 四级机构筛选是否显示
|
// 四级机构筛选是否显示
|
||||||
isOrgLv4ConditionShow: false,
|
isOrgLv4ConditionShow: false,
|
||||||
orgCode:0,
|
OrgLv2Name: '',
|
||||||
OrgLv2Name: '全国',
|
|
||||||
OrgLv4Name: '全部',
|
OrgLv4Name: '全部',
|
||||||
OrgLv3Name: '全部',
|
OrgLv3Name: '全部',
|
||||||
OrgLv2Code: 0,
|
OrgLv2Code: '',
|
||||||
OrgLv2s: [],
|
OrgLv2s: [],
|
||||||
OrgLv3Code: 0,
|
OrgLv3Code: '',
|
||||||
OrgLv3s: [],
|
OrgLv3s: [],
|
||||||
areaCode: 0,
|
areaCode: '',
|
||||||
OrgLv4s: [],
|
OrgLv4s: [],
|
||||||
|
|
||||||
params: {
|
params: {
|
||||||
@@ -157,27 +161,45 @@ export default {
|
|||||||
* 查询机构下拉列表
|
* 查询机构下拉列表
|
||||||
* manageCode, manageLv传空查全国所有二级机构
|
* manageCode, manageLv传空查全国所有二级机构
|
||||||
**/
|
**/
|
||||||
|
let resData = await getBranchByUser({})
|
||||||
|
if (resData.result != '0') return this.$toast(resData.resultMessage)
|
||||||
|
this.manageLv = resData.content.level
|
||||||
console.log('getOrgList :>> ', getOrgList)
|
console.log('getOrgList :>> ', getOrgList)
|
||||||
const res = await getOrgList({
|
const res = await getOrgList({
|
||||||
bussinessType: 'normal',
|
bussinessType: 'normal',
|
||||||
manageCode: '',
|
manageCode: resData.content.code,
|
||||||
manageLv: '',
|
manageLv: '0' + resData.content.level,
|
||||||
})
|
})
|
||||||
if (res.result === '0') {
|
if (res.result === '0') {
|
||||||
this.OrgLv2s.push(...res.content)
|
this.OrgLv2s.push(...res.content)
|
||||||
|
this.OrgLv2Name = this.OrgLv2s[0].name
|
||||||
|
this.OrgLv2Code = this.OrgLv2s[0].code
|
||||||
|
// this.orgCode = this.OrgLv2s[0].code
|
||||||
|
this.onOrgLv2ConditionConfirm(this.OrgLv2Name)
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
queryOutOrderList({
|
|
||||||
appntDate:new Date(),
|
|
||||||
orgCode:this.orgCode,
|
|
||||||
}).then(res=>{
|
|
||||||
|
|
||||||
})
|
|
||||||
// 查询默认数据
|
// 查询默认数据
|
||||||
// const result = await this.getRankData()
|
// const result = await this.getRankData()
|
||||||
// this.setSummarizingData(result)
|
// this.setSummarizingData(result)
|
||||||
},
|
},
|
||||||
|
// 查询列表数据
|
||||||
|
queryOutOrderList() {
|
||||||
|
queryOutOrderList({
|
||||||
|
appntDate: this.postDate,
|
||||||
|
distCode: this.OrgLv2Code,
|
||||||
|
depCode: this.OrgLv3Code,
|
||||||
|
orgCode: this.areaCode,
|
||||||
|
pageNum: this.pageNum,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.result == 0) {
|
||||||
|
if (res.content) {
|
||||||
|
this.tableData = this.tableData.concat(res.content.list)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 筛选二级机构
|
// 筛选二级机构
|
||||||
async onOrgLv2ConditionConfirm(data) {
|
async onOrgLv2ConditionConfirm(data) {
|
||||||
this.isOrgLv2ConditionShow = false
|
this.isOrgLv2ConditionShow = false
|
||||||
@@ -194,11 +216,16 @@ export default {
|
|||||||
this.OrgLv2Name = data
|
this.OrgLv2Name = data
|
||||||
this.OrgLv4Name = '全部'
|
this.OrgLv4Name = '全部'
|
||||||
this.OrgLv3Name = '全部'
|
this.OrgLv3Name = '全部'
|
||||||
|
this.OrgLv3Code = ''
|
||||||
|
this.areaCode = ''
|
||||||
|
|
||||||
|
this.pageNum = 1
|
||||||
|
this.queryOutOrderList()
|
||||||
// 查询三级机构
|
// 查询三级机构
|
||||||
const res = await getOrgList({
|
const res = await getOrgList({
|
||||||
bussinessType: 'normal',
|
bussinessType: 'normal',
|
||||||
manageCode: this.OrgLv2Code,
|
manageCode: this.OrgLv2Code,
|
||||||
manageLv: '02',
|
manageLv: '0' + (this.manageLv + 1),
|
||||||
})
|
})
|
||||||
this.OrgLv3s.splice(0)
|
this.OrgLv3s.splice(0)
|
||||||
this.OrgLv3s.push(...res.content)
|
this.OrgLv3s.push(...res.content)
|
||||||
@@ -219,11 +246,16 @@ export default {
|
|||||||
this.params.manageLv = '02'
|
this.params.manageLv = '02'
|
||||||
}
|
}
|
||||||
this.OrgLv3Name = '全部'
|
this.OrgLv3Name = '全部'
|
||||||
|
this.OrgLv2Code = ''
|
||||||
|
this.areaCode = ''
|
||||||
|
|
||||||
|
this.pageNum = 1
|
||||||
|
this.queryOutOrderList()
|
||||||
// 查询四级机构
|
// 查询四级机构
|
||||||
const res = await getOrgList({
|
const res = await getOrgList({
|
||||||
bussinessType: 'normal',
|
bussinessType: 'normal',
|
||||||
manageCode: this.OrgLv3Code,
|
manageCode: this.OrgLv3Code,
|
||||||
manageLv: '03',
|
manageLv: '0' + (this.manageLv + 2),
|
||||||
})
|
})
|
||||||
this.OrgLv4s.splice(0)
|
this.OrgLv4s.splice(0)
|
||||||
this.OrgLv4s.push(...res.content)
|
this.OrgLv4s.push(...res.content)
|
||||||
@@ -243,10 +275,20 @@ export default {
|
|||||||
this.params.manageCode = this.OrgLv3Code
|
this.params.manageCode = this.OrgLv3Code
|
||||||
this.params.manageLv = '03'
|
this.params.manageLv = '03'
|
||||||
}
|
}
|
||||||
|
this.OrgLv2Code = ''
|
||||||
|
this.OrgLv3Code = ''
|
||||||
|
this.pageNum = 1
|
||||||
|
this.queryOutOrderList()
|
||||||
// this.setRankData()
|
// this.setRankData()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
let date = new Date()
|
||||||
|
let month = date.getMonth() + 1
|
||||||
|
if (month <= 9) {
|
||||||
|
month = '0' + month
|
||||||
|
}
|
||||||
|
this.postDate = date.getFullYear() + '-' + month
|
||||||
this.initData()
|
this.initData()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user