mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 01:56:44 +08:00
Compare commits
5 Commits
20250430上线
...
xxj_xibaoB
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b18e0b9039 | ||
|
|
9c8d863232 | ||
|
|
d6bbdae734 | ||
|
|
89aea09de2 | ||
|
|
7a81b4e6eb |
@@ -52,10 +52,10 @@
|
||||
<span>保单号</span><span>{{ item.contNo }}</span>
|
||||
</p>
|
||||
<p>
|
||||
<span>被保人</span><span>{{ item.insuredName }}</span>
|
||||
<span>投保人</span><span>{{ item.appntName }}</span>
|
||||
</p>
|
||||
<p>
|
||||
<span>被保险人</span><span>{{ item.appntName }}</span>
|
||||
<span>被保险人</span><span>{{ item.insuredName }}</span>
|
||||
</p>
|
||||
<p v-if="active == 3">
|
||||
<span>转账银行</span><span>{{ item.bankName }}</span>
|
||||
|
||||
@@ -255,11 +255,13 @@
|
||||
@cancel="cancelChange"
|
||||
/>
|
||||
</van-popup>
|
||||
<div class="hebao" v-if="hebaoShow">
|
||||
<!-- <div class="hebao"> -->
|
||||
<generateImg
|
||||
v-if="hebaoShow"
|
||||
@child-colse="closeHebao"
|
||||
@custom-event="customEvent"
|
||||
></generateImg>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
<van-popup v-model="xiangqingShow" position="right" :style="{ width: '100%', height: '100%' }">
|
||||
<policyDetails
|
||||
v-if="xiangqingShow"
|
||||
@@ -631,33 +633,40 @@ export default {
|
||||
message: '加载中……'
|
||||
})
|
||||
let data = {}
|
||||
if(this.dateFlag == 'all') {
|
||||
data = {
|
||||
outOrderType: this.outOrderType, // "accept",//--出单类型 承保 accept 预收 advance
|
||||
// dateFlag: this.dateFlag, // -最近一月-m,最近一年y ,全部-all
|
||||
dateFlag: '', // 暂不使用改参数,默认给空
|
||||
// appntDate: this.postDate,
|
||||
distCode: this.OrgLv2Code,
|
||||
depCode: this.OrgLv3Code,
|
||||
orgCode: this.OrgLv4Code,
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
} else {
|
||||
data = {
|
||||
outOrderType: this.outOrderType, // "accept",//--出单类型 承保 accept 预收 advance
|
||||
startDate: this.dialogForm.startDate, // "2024-09-01",
|
||||
endDate: this.dialogForm.endDate, //"2024-09-30",
|
||||
// dateFlag: this.dateFlag, // -最近一月-m,最近一年y ,全部-all
|
||||
dateFlag: '', // 暂不使用改参数,默认给空
|
||||
// appntDate: this.postDate,
|
||||
distCode: this.OrgLv2Code,
|
||||
depCode: this.OrgLv3Code,
|
||||
orgCode: this.OrgLv4Code,
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize
|
||||
if(localStorage.getItem("billingShow")) {
|
||||
// console.log('用了');
|
||||
data = JSON.parse(localStorage.getItem("billingDetail"))
|
||||
}else {
|
||||
// console.log('没用');
|
||||
if(this.dateFlag == 'all') {
|
||||
data = {
|
||||
outOrderType: this.outOrderType, // "accept",//--出单类型 承保 accept 预收 advance
|
||||
// dateFlag: this.dateFlag, // -最近一月-m,最近一年y ,全部-all
|
||||
dateFlag: '', // 暂不使用改参数,默认给空
|
||||
// appntDate: this.postDate,
|
||||
distCode: this.OrgLv2Code,
|
||||
depCode: this.OrgLv3Code,
|
||||
orgCode: this.OrgLv4Code,
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
} else {
|
||||
data = {
|
||||
outOrderType: this.outOrderType, // "accept",//--出单类型 承保 accept 预收 advance
|
||||
startDate: this.dialogForm.startDate, // "2024-09-01",
|
||||
endDate: this.dialogForm.endDate, //"2024-09-30",
|
||||
// dateFlag: this.dateFlag, // -最近一月-m,最近一年y ,全部-all
|
||||
dateFlag: '', // 暂不使用改参数,默认给空
|
||||
// appntDate: this.postDate,
|
||||
distCode: this.OrgLv2Code,
|
||||
depCode: this.OrgLv3Code,
|
||||
orgCode: this.OrgLv4Code,
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
}
|
||||
}
|
||||
localStorage.setItem("billingDetail", JSON.stringify(data))
|
||||
queryOutOrderList(data).then((res) => {
|
||||
this.$toast.clear()
|
||||
if (res.result == 0) {
|
||||
@@ -673,6 +682,7 @@ export default {
|
||||
this.total = res.content.total
|
||||
this.loading = false
|
||||
this.listShow = true
|
||||
localStorage.setItem("billingShow", false)
|
||||
} else{
|
||||
this.tableData = []
|
||||
this.listShow = false
|
||||
@@ -856,6 +866,11 @@ export default {
|
||||
closeDetails() {
|
||||
this.xiangqingShow = !this.xiangqingShow
|
||||
},
|
||||
customEvent() {
|
||||
this.closeHebao();
|
||||
// console.log('缓存变true了');
|
||||
this.queryOutOrderListFunc();
|
||||
},
|
||||
closeHebao() {
|
||||
this.hebaoShow = !this.hebaoShow
|
||||
},
|
||||
|
||||
@@ -353,6 +353,7 @@
|
||||
item.productCode != 'GFRS_M0080' &&
|
||||
item.productCode != 'GFRS_M0083' &&
|
||||
item.productCode != 'GFRS_M0098' &&
|
||||
item.productCode != 'GFRS_M0103' &&
|
||||
item.productCode != 'GFRS_M0085'
|
||||
"
|
||||
>
|
||||
@@ -840,14 +841,14 @@ export default {
|
||||
this.isEnterAddtionRiskListFunc()
|
||||
}
|
||||
}
|
||||
if (item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0098' || item.mainRiskCode == 'GFRS_M0085') {
|
||||
if (item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0098' || item.mainRiskCode == 'GFRS_M0103'|| item.mainRiskCode == 'GFRS_M0085') {
|
||||
this.disabledShow = true
|
||||
}
|
||||
if (item.hasPredictTransferPrem == '1') {
|
||||
this.disabledShow = false
|
||||
}
|
||||
|
||||
if ((item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0098' || item.mainRiskCode == 'GFRS_M0085') && this.isFrom == 'proposal') {
|
||||
if ((item.mainRiskCode == 'GFRS_M0083' || item.mainRiskCode == 'GFRS_M0098' || item.mainRiskCode == 'GFRS_M0103'|| item.mainRiskCode == 'GFRS_M0085') && this.isFrom == 'proposal') {
|
||||
item.calFactorLst.forEach((i) => {
|
||||
if (i.code == 'inputPrem') {
|
||||
i.minPrem = 0.01
|
||||
@@ -2181,14 +2182,14 @@ export default {
|
||||
let thisproductInfo = JSON.parse(window.localStorage.getItem('chooseProducts'))
|
||||
if (thisproductInfo && thisproductInfo.length != 0) {
|
||||
thisproductInfo.forEach((item) => {
|
||||
if (item.productCode == 'GFRS_M0083' || item.productCode == 'GFRS_M0098' || item.productCode == 'GFRS_M0085') {
|
||||
if (item.productCode == 'GFRS_M0083' || item.productCode == 'GFRS_M0098' || item.productCode == 'GFRS_M0103'|| item.productCode == 'GFRS_M0085') {
|
||||
productCode = item.productCode
|
||||
hasPredictTransferPrem = item.hasPredictTransferPrem
|
||||
}
|
||||
})
|
||||
}
|
||||
if (this.isFrom != 'proposal') {
|
||||
if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0098' || productCode == 'GFRS_M0085') {
|
||||
if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0098' || productCode == 'GFRS_M0103'|| productCode == 'GFRS_M0085') {
|
||||
if (!that.policyNo) {
|
||||
this.disabledShow = true
|
||||
that.chooseProducts.forEach((item) => {
|
||||
@@ -2973,7 +2974,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0098' || productCode == 'GFRS_M0085') {
|
||||
} else if (productCode == 'GFRS_M0083' || productCode == 'GFRS_M0098' || productCode == 'GFRS_M0103'|| productCode == 'GFRS_M0085') {
|
||||
if (this.isFrom != 'proposal') {
|
||||
if (!this.policyNo && defalutValue < 5) {
|
||||
this.$toast('单独投保,保费为大于等于50000元')
|
||||
|
||||
@@ -56,7 +56,7 @@ export default {
|
||||
methods: {
|
||||
getList() {
|
||||
this.orderList = JSON.parse(localStorage.getItem('orderList'))
|
||||
console.log('页面数据',this.orderList);
|
||||
// console.log('页面数据',this.orderList);
|
||||
},
|
||||
// 将 Blob转base64
|
||||
blobToBase64(blob) {
|
||||
@@ -95,28 +95,25 @@ export default {
|
||||
})
|
||||
},
|
||||
// 生成图片并下载
|
||||
domToImage(domElement, quality, callback) {
|
||||
console.log(location);
|
||||
async domToImage(domElement, quality, callback) {
|
||||
html2canvas(domElement, {
|
||||
width: domElement.offsetWidth,
|
||||
height: domElement.offsetHeight,
|
||||
backgroundColor: '#fff',
|
||||
scale: 1,
|
||||
dpi: 300
|
||||
dpi: 300,
|
||||
useCORS: true,
|
||||
allowTaint: true,
|
||||
}).then((canvas) => {
|
||||
// 转换canvas为PNG图片并压缩
|
||||
this.$toast.loading({
|
||||
duration: 1000, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
canvas.toBlob(
|
||||
(blob) => {
|
||||
// const a = document.createElement('a')
|
||||
// a.href = URL.createObjectURL(blob)
|
||||
// a.download = '业绩贺报.png'
|
||||
// a.click()
|
||||
// let newimg = new Image()
|
||||
// newimg.src = URL.createObjectURL(blob)
|
||||
// newimg.onload = function () {
|
||||
// URL.revokeObjectURL(newimg.src)
|
||||
// callback(newimg)
|
||||
// }
|
||||
this.blobToBase64(blob).then((base64String) => {
|
||||
base64Excel({ base64Img: base64String }).then(res => {
|
||||
if (res.result == '0') {
|
||||
@@ -130,6 +127,10 @@ export default {
|
||||
.catch(() => {
|
||||
this.$toast.fail('图片下载失败,请重新下载!')
|
||||
})
|
||||
setTimeout(() => {
|
||||
localStorage.setItem("billingShow", true)
|
||||
location.reload(true)
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
})
|
||||
@@ -141,6 +142,14 @@ export default {
|
||||
)
|
||||
})
|
||||
},
|
||||
downloadImage(dataUrl) {
|
||||
const link = document.createElement('a')
|
||||
link.download = '业绩贺报.png'
|
||||
link.href = dataUrl
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
document.body.removeChild(link)
|
||||
},
|
||||
downLoadImagesFunc() {
|
||||
this.domToImage(this.$refs.generateImg)
|
||||
},
|
||||
|
||||
@@ -804,6 +804,7 @@ export default {
|
||||
item01.mainRiskCode == 'GFRS_M0083' ||
|
||||
item01.mainRiskCode == 'GFRS_M0085' ||
|
||||
item01.mainRiskCode == 'GFRS_M0098' ||
|
||||
item01.mainRiskCode == 'GFRS_M0103' ||
|
||||
item01.mainRiskCode == 'GFRS_M0100'
|
||||
) {
|
||||
that.ispremshow = false
|
||||
|
||||
Reference in New Issue
Block a user