mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 08:06:44 +08:00
1.贺报详情改弹窗2.表格左侧固定住3.时间筛选去掉全部月份保留近一年的
This commit is contained in:
@@ -124,13 +124,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查看详情 跳转至详情页面
|
// 查看详情 跳转至详情页面
|
||||||
look(num) {
|
look(num) {
|
||||||
|
this.$emit('fro-child', num);
|
||||||
console.log(num);
|
console.log(num);
|
||||||
this.$router.push({
|
// this.$router.push({
|
||||||
path: '/policyDetails',
|
// path: '/policyDetails',
|
||||||
query: {
|
// query: {
|
||||||
orderNo: num,
|
// orderNo: num,
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -173,6 +174,13 @@ export default {
|
|||||||
table {
|
table {
|
||||||
// width: 200vw;
|
// width: 200vw;
|
||||||
}
|
}
|
||||||
|
.th-fixed {
|
||||||
|
position: sticky;
|
||||||
|
border: 1px solid #999 !important;
|
||||||
|
left: 0;
|
||||||
|
width: 35px !important;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
.statisticsTable {
|
.statisticsTable {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
@@ -198,12 +206,7 @@ table {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.th-fixed {
|
|
||||||
// position: sticky;
|
|
||||||
left: 0;
|
|
||||||
width: 35px !important;
|
|
||||||
padding: 0 5px;
|
|
||||||
}
|
|
||||||
.td-fixed {
|
.td-fixed {
|
||||||
// position: sticky;
|
// position: sticky;
|
||||||
width: 33px !important;
|
width: 33px !important;
|
||||||
|
|||||||
@@ -103,6 +103,7 @@
|
|||||||
@currentChange="currentChange"
|
@currentChange="currentChange"
|
||||||
@double_click="double_click"
|
@double_click="double_click"
|
||||||
@from-child="double_click"
|
@from-child="double_click"
|
||||||
|
@fro-child="xiangqing"
|
||||||
></tableDetail2>
|
></tableDetail2>
|
||||||
<!-- </van-list>-->
|
<!-- </van-list>-->
|
||||||
</div>
|
</div>
|
||||||
@@ -126,7 +127,7 @@
|
|||||||
<div style="margin-top: 10px">
|
<div style="margin-top: 10px">
|
||||||
<div>时间</div>
|
<div>时间</div>
|
||||||
<div class="button_times">
|
<div class="button_times">
|
||||||
<van-button size="small" :class="dialogForm.dateFlag === 'all' ? 'checked' : ''" @click="typeCheck('all')">全部</van-button>
|
<!-- <van-button size="small" :class="dialogForm.dateFlag === 'all' ? 'checked' : ''" @click="typeCheck('all')">全部</van-button> -->
|
||||||
<van-button size="small" :class="dialogForm.dateFlag === 'm' ? 'checked' : ''" @click="typeCheck('m')">按月份查询</van-button>
|
<van-button size="small" :class="dialogForm.dateFlag === 'm' ? 'checked' : ''" @click="typeCheck('m')">按月份查询</van-button>
|
||||||
<van-button size="small" :class="dialogForm.dateFlag === 'y' ? 'checked' : ''" @click="typeCheck('y')">按时间范围查询</van-button>
|
<van-button size="small" :class="dialogForm.dateFlag === 'y' ? 'checked' : ''" @click="typeCheck('y')">按时间范围查询</van-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -234,18 +235,33 @@
|
|||||||
title="请选择月份"
|
title="请选择月份"
|
||||||
v-model="currentDate"
|
v-model="currentDate"
|
||||||
type="year-month"
|
type="year-month"
|
||||||
|
:min-date="minDate"
|
||||||
:max-date="maxDate"
|
:max-date="maxDate"
|
||||||
:formatter="formatter"
|
:formatter="formatter"
|
||||||
@confirm="confirmChange"
|
@confirm="confirmChange"
|
||||||
@cancel="cancelChange"
|
@cancel="cancelChange"
|
||||||
/>
|
/>
|
||||||
</van-popup>
|
</van-popup>
|
||||||
|
<div class="hebao" v-if="hebaoShow">
|
||||||
|
<generateImg
|
||||||
|
@child-colse="closeHebao"
|
||||||
|
></generateImg>
|
||||||
|
</div>
|
||||||
|
<div class="xiangqing" v-if="xiangqingShow" >
|
||||||
|
<policyDetails
|
||||||
|
:orderNo="orderNo"
|
||||||
|
@child-back="closeDetails"
|
||||||
|
>
|
||||||
|
</policyDetails>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Icon, RadioGroup, Radio, DatetimePicker } from 'vant'
|
import { Icon, RadioGroup, Radio, DatetimePicker } from 'vant'
|
||||||
import tableDetail2 from '@/components/ebiz/billingDetail/tableDetail2'
|
import tableDetail2 from '@/components/ebiz/billingDetail/tableDetail2'
|
||||||
|
import generateImg from '../generateImg/generateImg.vue'
|
||||||
|
import policyDetails from './policyDetails.vue'
|
||||||
import { getMisBranchComList2 } from '@/api/ebiz/branchOffice/branchOffice'
|
import { getMisBranchComList2 } 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'
|
import { queryOutOrderList, getBranchByUser } from '@/api/ebiz/billingDetail/billingDetail'
|
||||||
@@ -257,6 +273,8 @@ export default {
|
|||||||
name: 'billingDetail',
|
name: 'billingDetail',
|
||||||
components: {
|
components: {
|
||||||
tableDetail2,
|
tableDetail2,
|
||||||
|
generateImg,
|
||||||
|
policyDetails,
|
||||||
[Icon.name]: Icon,
|
[Icon.name]: Icon,
|
||||||
[RadioGroup.name]: RadioGroup,
|
[RadioGroup.name]: RadioGroup,
|
||||||
[Radio.name]: Radio,
|
[Radio.name]: Radio,
|
||||||
@@ -303,18 +321,19 @@ export default {
|
|||||||
timeShow: false,
|
timeShow: false,
|
||||||
dialogForm: {
|
dialogForm: {
|
||||||
outOrderType: '',
|
outOrderType: '',
|
||||||
dateFlag: 'all',
|
dateFlag: 'm',
|
||||||
startDate: '',
|
startDate: '',
|
||||||
endDate: ''
|
endDate: ''
|
||||||
},
|
},
|
||||||
show: false,
|
show: false,
|
||||||
outOrderType: 'accept', // advance
|
outOrderType: 'accept', // advance
|
||||||
dateFlag: '',
|
dateFlag: 'm',
|
||||||
style02: 'style02', //style02 时,显示红字红三角的样式,不写的话展示默认样式
|
style02: 'style02', //style02 时,显示红字红三角的样式,不写的话展示默认样式
|
||||||
currentIndex: 0, //0 当月 1当天
|
currentIndex: 0, //0 当月 1当天
|
||||||
theads: ['序号', '承保时间', '预收时间', '产品名称', '保费', '业务员姓名', '机构','查看'],
|
theads: ['序号', '承保时间', '预收时间', '产品名称', '保费', '业务员姓名', '机构','查看'],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
|
minDate: '',
|
||||||
maxDate: new Date(),
|
maxDate: new Date(),
|
||||||
filterDate: '',
|
filterDate: '',
|
||||||
postDate: '', //实际给后台传的时间
|
postDate: '', //实际给后台传的时间
|
||||||
@@ -359,10 +378,14 @@ export default {
|
|||||||
maxDate: new Date(),
|
maxDate: new Date(),
|
||||||
monthDate: new Date(),
|
monthDate: new Date(),
|
||||||
overlayShow: false,
|
overlayShow: false,
|
||||||
|
hebaoShow: false,
|
||||||
|
xiangqingShow: false,
|
||||||
|
orderNo: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getyaerMonth();
|
this.getyaerMonth();
|
||||||
|
this.getmonthList();
|
||||||
this.outOrderTypeChange();
|
this.outOrderTypeChange();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -392,12 +415,12 @@ export default {
|
|||||||
},
|
},
|
||||||
timeConfirm(t) {
|
timeConfirm(t) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
console.log(this.currentDate)
|
// console.log(this.currentDate)
|
||||||
let time = new Date(t)
|
let time = new Date(t)
|
||||||
let y = time.getFullYear()
|
let y = time.getFullYear()
|
||||||
let m = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1
|
let m = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1
|
||||||
let d = time.getDate() < 10 ? '0' + time.getDate() : time.getDate()
|
let d = time.getDate() < 10 ? '0' + time.getDate() : time.getDate()
|
||||||
console.log(y, m, d)
|
// console.log(y, m, d)
|
||||||
this.dialogForm[this.TimeFlag] = y + '-' + m + '-' + d
|
this.dialogForm[this.TimeFlag] = y + '-' + m + '-' + d
|
||||||
this.timeShow = false
|
this.timeShow = false
|
||||||
})
|
})
|
||||||
@@ -442,6 +465,7 @@ export default {
|
|||||||
this.outOrderType = this.dialogForm.outOrderType
|
this.outOrderType = this.dialogForm.outOrderType
|
||||||
this.dateFlag = this.dialogForm.dateFlag
|
this.dateFlag = this.dialogForm.dateFlag
|
||||||
this.show = false
|
this.show = false
|
||||||
|
this.titleText = this.dialogForm.startDate.toString() + '~' + this.dialogForm.endDate.toString()
|
||||||
this.outOrderTypeChange()
|
this.outOrderTypeChange()
|
||||||
this.queryOutOrderListFunc()
|
this.queryOutOrderListFunc()
|
||||||
},
|
},
|
||||||
@@ -461,7 +485,7 @@ export default {
|
|||||||
this.dialogForm.dateFlag = 'all'
|
this.dialogForm.dateFlag = 'all'
|
||||||
this.firstTime = false
|
this.firstTime = false
|
||||||
}
|
}
|
||||||
console.log(this.dialogForm.dateFlag);
|
// console.log(this.dialogForm.dateFlag);
|
||||||
this.show = true
|
this.show = true
|
||||||
},
|
},
|
||||||
//时间筛选
|
//时间筛选
|
||||||
@@ -605,10 +629,11 @@ export default {
|
|||||||
},
|
},
|
||||||
// 双击事件
|
// 双击事件
|
||||||
double_click(data) {
|
double_click(data) {
|
||||||
console.log(JSON.parse(JSON.stringify(data)), '发生了点击')
|
// console.log(JSON.parse(JSON.stringify(data)), '发生了点击')
|
||||||
this.$router.push({
|
this.hebaoShow = true
|
||||||
path: '/generateImg'
|
// this.$router.push({
|
||||||
})
|
// path: '/generateImg'
|
||||||
|
// })
|
||||||
localStorage.setItem('orderList', JSON.stringify(data))
|
localStorage.setItem('orderList', JSON.stringify(data))
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -711,16 +736,18 @@ export default {
|
|||||||
var currentYear = currentDate.getFullYear();
|
var currentYear = currentDate.getFullYear();
|
||||||
var currentMonth = currentDate.getMonth() + 1; // 月份从0开始,所以要加1
|
var currentMonth = currentDate.getMonth() + 1; // 月份从0开始,所以要加1
|
||||||
this.monthValue = currentYear + '-' + currentMonth
|
this.monthValue = currentYear + '-' + currentMonth
|
||||||
|
this.dialogForm.startDate = currentYear + '-' + currentMonth + '-' + '01' // "2024-09-01",
|
||||||
|
this.dialogForm.endDate = currentYear + '-' + currentMonth + '-' + '30'//"2024-09-30",
|
||||||
|
this.titleText = this.monthValue
|
||||||
},
|
},
|
||||||
typeCheck(e) {
|
typeCheck(e) {
|
||||||
this.dialogForm.dateFlag = e
|
this.dialogForm.dateFlag = e
|
||||||
if(e == 'all') {
|
// if(e == 'all') {
|
||||||
this.titleText = '全部'
|
// this.titleText = '全部'
|
||||||
}if(e == 'm') {
|
// }
|
||||||
|
if(e == 'm') {
|
||||||
this.overlayShow = true
|
this.overlayShow = true
|
||||||
this.titleText = '按月份查询'
|
this.titleText = this.monthValue
|
||||||
}if(e == 'y') {
|
|
||||||
this.titleText = '按时间范围查询'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -740,7 +767,6 @@ export default {
|
|||||||
// 月份选择确认按钮
|
// 月份选择确认按钮
|
||||||
confirmChange(t) {
|
confirmChange(t) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
console.log(this.currentDate)
|
|
||||||
let time = new Date(t)
|
let time = new Date(t)
|
||||||
let y = time.getFullYear()
|
let y = time.getFullYear()
|
||||||
let m = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1
|
let m = time.getMonth() + 1 < 10 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1
|
||||||
@@ -748,7 +774,6 @@ export default {
|
|||||||
this.monthValue = y + '-' + m
|
this.monthValue = y + '-' + m
|
||||||
this.dialogForm.startDate = y + '-' + m + '-' + '01' // "2024-09-01",
|
this.dialogForm.startDate = y + '-' + m + '-' + '01' // "2024-09-01",
|
||||||
this.dialogForm.endDate = y + '-' + m + '-' + '30'//"2024-09-30",
|
this.dialogForm.endDate = y + '-' + m + '-' + '30'//"2024-09-30",
|
||||||
console.log(this.startDate);
|
|
||||||
})
|
})
|
||||||
this.overlayShow = false
|
this.overlayShow = false
|
||||||
},
|
},
|
||||||
@@ -756,13 +781,30 @@ export default {
|
|||||||
this.theads = ['序号', '承保时间', '预收时间', '产品名称', '保费', '业务员姓名', '机构','查看']
|
this.theads = ['序号', '承保时间', '预收时间', '产品名称', '保费', '业务员姓名', '机构','查看']
|
||||||
if (this.outOrderType === 'accept') {
|
if (this.outOrderType === 'accept') {
|
||||||
this.theads.splice(2,1)
|
this.theads.splice(2,1)
|
||||||
console.log(this.theads);
|
|
||||||
} else {
|
} else {
|
||||||
this.theads.splice(1,1)
|
this.theads.splice(1,1)
|
||||||
console.log(this.theads);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
xiangqing(num) {
|
||||||
|
this.orderNo = num
|
||||||
|
this.xiangqingShow = true;
|
||||||
|
},
|
||||||
|
closeDetails() {
|
||||||
|
this.xiangqingShow = !this.xiangqingShow
|
||||||
|
},
|
||||||
|
closeHebao() {
|
||||||
|
this.hebaoShow = !this.hebaoShow
|
||||||
|
},
|
||||||
|
getmonthList() {
|
||||||
|
function getOneYearAgoDate() {
|
||||||
|
const now = new Date();
|
||||||
|
now.setFullYear(now.getFullYear() - 1);
|
||||||
|
return now;
|
||||||
|
}
|
||||||
|
const oneYearAgoDate = getOneYearAgoDate();
|
||||||
|
this.minDate = oneYearAgoDate
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -908,4 +950,13 @@ table {
|
|||||||
border-color: #ee3030;
|
border-color: #ee3030;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.hebao,
|
||||||
|
.xiangqing {
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
background-color: #fff;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -30,6 +30,9 @@
|
|||||||
<p class="list" v-show="policyData.subRiskNameList.length == 0" >暂无附加险信息</p>
|
<p class="list" v-show="policyData.subRiskNameList.length == 0" >暂无附加险信息</p>
|
||||||
</van-collapse-item>
|
</van-collapse-item>
|
||||||
</van-collapse>
|
</van-collapse>
|
||||||
|
<div class="bottom">
|
||||||
|
<button class="back" @click="goback()">返回</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -39,14 +42,21 @@ import { queryOutOrderDetail } from '@/api/ebiz/billingDetail/billingDetail'
|
|||||||
// 当前时间
|
// 当前时间
|
||||||
const currentDate = new Date()
|
const currentDate = new Date()
|
||||||
export default {
|
export default {
|
||||||
|
name: 'policyDetails',
|
||||||
components: {
|
components: {
|
||||||
[Collapse.name]: Collapse,
|
[Collapse.name]: Collapse,
|
||||||
[CollapseItem.name]: CollapseItem,
|
[CollapseItem.name]: CollapseItem,
|
||||||
},
|
},
|
||||||
|
props: {
|
||||||
|
orderNo: {
|
||||||
|
type: String,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentDate: '',
|
currentDate: '',
|
||||||
orderNo: this.$route.query.orderNo,
|
// orderNo: '',
|
||||||
activeName: ['1'],
|
activeName: ['1'],
|
||||||
policyData: {},
|
policyData: {},
|
||||||
}
|
}
|
||||||
@@ -64,6 +74,9 @@ export default {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.policyData = res.content;
|
this.policyData = res.content;
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
goback() {
|
||||||
|
this.$emit('child-back', '1');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -104,4 +117,21 @@ export default {
|
|||||||
.list {
|
.list {
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
}
|
}
|
||||||
|
.bottom {
|
||||||
|
width: 100%;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
.back {
|
||||||
|
width: 100%;
|
||||||
|
background-color: #e9332e;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 0px;
|
||||||
|
border-radius: 28px;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 20px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
<van-button square type="default" size="large" @click="shareImg" v-no-more-click="1000"> 分享 </van-button>
|
<van-button square type="default" size="large" @click="shareImg" v-no-more-click="1000"> 分享 </van-button>
|
||||||
<van-button square type="danger" size="large" @click="downLoadImagesFunc" v-no-more-click="1000"> 下载 </van-button>
|
<van-button square type="danger" size="large" @click="downLoadImagesFunc" v-no-more-click="1000"> 下载 </van-button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="close" @click="close()">
|
||||||
|
<van-icon name="cross" size="30" color="#fff" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -25,6 +28,13 @@ import html2canvas from 'html2canvas'
|
|||||||
import { base64Excel } from '@/api/ebiz/nbs'
|
import { base64Excel } from '@/api/ebiz/nbs'
|
||||||
export default {
|
export default {
|
||||||
name: 'generateImg',
|
name: 'generateImg',
|
||||||
|
// generateImgData
|
||||||
|
props: {
|
||||||
|
// generateImgData: {
|
||||||
|
// type: Object,
|
||||||
|
// default: {}
|
||||||
|
// },
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
orderList: {}
|
orderList: {}
|
||||||
@@ -122,6 +132,9 @@ export default {
|
|||||||
},
|
},
|
||||||
downLoadImagesFunc() {
|
downLoadImagesFunc() {
|
||||||
this.domToImage(this.$refs.generateImg)
|
this.domToImage(this.$refs.generateImg)
|
||||||
|
},
|
||||||
|
close() {
|
||||||
|
this.$emit('child-colse', '1')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -225,4 +238,9 @@ img {
|
|||||||
/*设置按钮为渐变颜色*/
|
/*设置按钮为渐变颜色*/
|
||||||
border: none !important;
|
border: none !important;
|
||||||
}
|
}
|
||||||
|
.close {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user