'出单详情'

This commit is contained in:
proudlx
2021-04-21 15:10:15 +08:00
parent b6402287dd
commit ebe1a0ec60

View File

@@ -17,6 +17,30 @@
</span> </span>
</template> </template>
</div> </div>
<div class="filterDate">
<div class="number">总预收标保100万元</div>
<div class="filterTime">
<van-field
:value="filterDate"
readonly
label=""
name=""
right-icon="arrow"
placeholder="请选择"
v-validate="'required'"
@click="toSelect('8')"
/>
<!-- <FieldDatePicter
label=""
name=""
:value.sync="filterDate"
type="time"
:flag="true"
@confirm="onDateConfirm($event, '2')"
:maxDate="maxDate"
></FieldDatePicter> -->
</div>
</div>
<!-- 二级机构筛选栏 --> <!-- 二级机构筛选栏 -->
<van-popup v-model="isOrgLv2ConditionShow" position="bottom" :style="{ height: '40vh' }"> <van-popup v-model="isOrgLv2ConditionShow" position="bottom" :style="{ height: '40vh' }">
@@ -37,13 +61,14 @@
import { Icon } from 'vant' 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 beforeDate from '@/assets/js/utils/getBeforeDate.js'
// 当前时间 // 当前时间
const currentDate = new Date() const currentDate = new Date()
export default { export default {
name: 'billingDetail', name: 'billingDetail',
components: { tableDetail, [Icon.name]: Icon }, components: { tableDetail, [Icon.name]: Icon, FieldDatePicter },
computed: { computed: {
isMoreConditionShow() { isMoreConditionShow() {
return this.OrgLv2Name !== '全国' return this.OrgLv2Name !== '全国'
}, },
@@ -75,6 +100,8 @@ export default {
}, },
data() { data() {
return { return {
maxDate: beforeDate.getBeforeYear(16),
filterDate: '',
// 二级机构筛选是否显示 // 二级机构筛选是否显示
isOrgLv2ConditionShow: false, isOrgLv2ConditionShow: false,
// 三级机构筛选是否显示 // 三级机构筛选是否显示
@@ -102,11 +129,12 @@ export default {
// all: 汇总, prem: 保费排行, active人力排行, product: 产品 // all: 汇总, prem: 保费排行, active人力排行, product: 产品
type: 'all', type: 'all',
// 1: 中心支公司, 2: 营销服务部, 3: 下辖营业区 // 1: 中心支公司, 2: 营销服务部, 3: 下辖营业区
queryCom: '' queryCom: '',
}, },
} }
}, },
methods: { methods: {
onDateConfirm() {},
async initData() { async initData() {
// 初始化年份筛选数据 // 初始化年份筛选数据
// const currentYear = new Date().getFullYear() // const currentYear = new Date().getFullYear()
@@ -122,7 +150,7 @@ export default {
const res = await getOrgList({ const res = await getOrgList({
bussinessType: 'normal', bussinessType: 'normal',
manageCode: '', manageCode: '',
manageLv: '' manageLv: '',
}) })
if (res.result === '0') { if (res.result === '0') {
this.OrgLv2s.push(...res.content) this.OrgLv2s.push(...res.content)
@@ -201,8 +229,8 @@ export default {
// this.setRankData() // this.setRankData()
}, },
}, },
created(){ created() {
this.initData(); this.initData()
}, },
} }
</script> </script>
@@ -211,6 +239,8 @@ export default {
.classification { .classification {
font-size: 14px; font-size: 14px;
padding: 15px; padding: 15px;
background: #ee3030;
color: #fff;
} }
.van-icon { .van-icon {
font-weight: bolder; font-weight: bolder;
@@ -221,4 +251,20 @@ export default {
margin-right: 5px; margin-right: 5px;
margin-bottom: 3px; margin-bottom: 3px;
} }
.filterDate{
display: flex;
justify-content: space-between;
align-items: center;
padding: 7px 0;
.number{
flex-shrink: 0;
margin:0 5px;
}
.filterTime{
margin-right: 5px;
}
}
/deep/.van-field__label{
width:0px;
}
</style> </style>