1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d5e0862"],{"5cea":function(t,e,a){var i=a("f9fe");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("8759e478",i,!0,{sourceMap:!1,shadowMode:!1})},"6eee":function(t,e,a){"use strict";a("5cea")},f835:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{attrs:{id:"balance_manage"}},[a("c-title",{attrs:{hide:!1,text:"保单管理"}}),a("section",{attrs:{id:"release-goods"}},[a("div",{staticClass:"left"},[t._m(0),a("span",[t._v("保单数量:"+t._s(t.goods_length))])]),a("div",{staticClass:"right"},[a("van-button",{attrs:{type:"danger",size:"small",round:""},on:{click:t.goToAddbalance}},[t._v("添加保单 ")])],1)]),a("section",{attrs:{id:"goods-list"}},t._l(t.data,(function(e,i){return a("div",{key:e,staticClass:"goods-list"},[a("div",{staticClass:"goods-list-top"},[a("span",[t._v("序号:"+t._s(e.serial_number))]),a("div",{staticClass:"contentright"},[a("div",{staticClass:"title"},[t._v(t._s(e.shop_name))]),a("div",{staticClass:"btn"},[a("span",{on:{click:function(e){return t.moreEvent(i)}}},[a("van-icon",{staticClass:"iconfont icon-more",staticStyle:{transform:"translateY(4px)"},attrs:{custom:"",color:"#c9c9c9",size:"1.5rem"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:e.edit_active,expression:"item.edit_active"}],staticClass:"more"},[a("ul",[a("li",{on:{click:function(a){return t.editJumpEvent(i,e.is_pay)}}},[a("van-icon",{staticClass:"iconfont icon-edit",attrs:{custom:"",color:"#fff",size:"1.125rem"}}),a("span",[t._v("编辑")])],1),a("li",{on:{click:function(e){return t.commodityDelete(i)}}},[a("van-icon",{staticClass:"iconfont icon-delete",attrs:{custom:"",color:"#fff",size:"1.125rem"}}),a("span",[t._v("删除")])],1)]),a("div",{staticClass:"icon"},[a("van-icon",{staticClass:"iconfont icon-down",attrs:{custom:"",size:"1.5rem"}})],1)])])])]),a("div",{staticClass:"goods-list-bottom",on:{click:function(a){return t.goTodetail(e.id)}}},[a("span",[t._v("查看记录")]),a("i",{staticClass:"fa fa-angle-right"})]),e.is_pay?a("div",{staticClass:"goods-list-time"},[a("div",{staticClass:"left"},[t._v("支付时间")]),a("div",{staticClass:"right"},[e.pay_time?a("div",{staticClass:"right-date"},[t._v(t._s(t._f("TimeFilter")(e.pay_time)))]):t._e(),e.pay_time?a("div",{staticClass:"right-day"},[t._v(t._s(t.lastTime(e.lost_time)))]):t._e()])]):t._e(),a("div",{staticClass:"goods-list-border"}),a("div",{staticClass:"goods-list-button"},[e.is_pay&&"1"==t.pay_status?a("div",{staticClass:"status success_tag"},[t._v("已支付")]):t._e(),e.is_pay||"1"!=t.pay_status?t._e():a("div",{staticClass:"status",on:{click:function(a){return a.stopPropagation(),t.gotoPay(e.id,e.supplier_id)}}},[t._v("未支付")]),e.is_pay&&"1"==t.renew_status?a("div",{staticClass:"button",on:{click:function(e){return t.contInsurance(i)}}},[t._v("一键续保")]):t._e()])])})),0),a("van-popup",{staticClass:"tanchuang tanchuangstate",attrs:{round:""},model:{value:t.showCallFisrt,callback:function(e){t.showCallFisrt=e},expression:"showCallFisrt"}},[a("div",{staticClass:"title"},[t._v("提示")]),t.phone1||t.phone2?a("span",[t._v("暂不可用,如需修改,请拨打"+t._s(t.phone1)+"或"+t._s(t.phone2))]):t._e(),a("van-button",{staticClass:"button button_pay button_call",attrs:{round:"",type:"primary",text:"一键拨号"},on:{click:t.showPhonePopup}})],1),a("van-popup",{staticClass:"tanchuang tanchuangstate1",attrs:{round:""},model:{value:t.showCallTwo,callback:function(e){t.showCallTwo=e},expression:"showCallTwo"}},[t.phone1?a("div",{staticClass:"call_list"},[a("span",[t._v(t._s(t.phone1))]),a("a",{staticClass:"callBotton button_call1",attrs:{href:"tel:"+t.phone1}},[t._v("拨号")])]):t._e(),t.phone2?a("div",{staticClass:"call_list"},[a("span",[t._v(t._s(t.phone2))]),a("a",{staticClass:"callBotton button_call1",attrs:{href:"tel:"+t.phone2}},[t._v("拨号")])]):t._e(),a("span",{staticClass:"tc_cancle",on:{click:function(e){return e.stopPropagation(),t.showHidden.apply(null,arguments)}}},[t._v("取消")])])],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"release-a",staticStyle:{display:"flex"}},[a("img",{staticStyle:{width:"30px"},attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/supplier-protect.png",alt:""}})])}],n=(a("e7e5"),a("d399")),o=(a("14d9"),a("a434"),a("a9e3"),a("6968")),l={data:function(){return{data:[],goods_length:0,pay_status:"0",renew_status:"0",is_show:!1,showCallFisrt:!1,showCallTwo:!1,phone1:null,phone2:null}},methods:{initData:function(){var t=this;$http.get("plugin.supplier.frontend.insurance.index",{},"").then((function(e){if(1==e.result){for(var a=0;a<e.data.list.length;a++)e.data.list[a].edit_active=!1;t.data=e.data.list,t.goods_length=e.data.list.length,t.pay_status=e.data.set.ins_pay_status,t.renew_status=e.data.set.ins_renew_status,t.phone1=e.data.set.ins_phone_1,t.phone2=e.data.set.ins_phone_2}else{if(e.data.url)return t.$notify(e.msg),window.location.href=e.data.url,0;Object(n["a"])(e.msg)}}))},contInsurance:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"确认续保吗?"}).then((function(){e.$router.push(e.fun.getUrl("edit_balance_manage",{id:e.data[t].id,type:"contInsurance"}))})).catch((function(){e.$notify({background:"#edf2fc",message:"已取消续保",color:"#909399"})}))},showPhonePopup:function(){this.showCallFisrt=!1,this.showCallTwo=!0},showHidden:function(){this.showCallTwo=!1},goTodetail:function(t){this.$router.push(this.fun.getUrl("balance_manageDetail",{id:t}))},goToAddbalance:function(){this.$router.push(this.fun.getUrl("add_balance_manage",{}))},moreEvent:function(t){0==this.data[t].edit_active?(this.emptyEditActive(),this.data[t].edit_active=!0):this.emptyEditActive()},emptyEditActive:function(){for(var t=0;t<this.data.length;t++)this.data[t].edit_active=!1},commodityDelete:function(t){var e=this,a=this;this.emptyEditActive(),this.$dialog.confirm({title:"提示",message:"此操作将永久删除该保单, 是否继续?"}).then((function(){var i={id:e.data[t].id},s="plugin.supplier.frontend.insurance.insurance-del";$http.post(s,i).then((function(e){1==e.result?(a.$notify({background:"#f0f9eb",message:"保单删除成功",color:"#67c23a"}),a.data.splice(t,1),a.goods_length=Number(a.goods_length)-1):a.$notify(e.msg)}),(function(t){}))})).catch((function(){e.$notify({background:"#edf2fc",message:"已取消删除",color:"#909399"})}))},editJumpEvent:function(t,e){1!=e?this.$router.push(this.fun.getUrl("edit_balance_manage",{id:this.data[t].id,type:"edit"})):this.showCallFisrt=!0},gotoPay:function(t,e){this.$router.push(this.fun.getUrl("policyPay",{id:t,supplier_id:e}))},lastTime:function(t){if(!t)return null;var e=Date.parse(new Date)/1e3,a=t-e,i=parseInt(a/86400);return i?i+"天后到期":"已到期"}},filters:{TimeFilter:function(t){if(!t)return null;var e=new Date(1e3*t),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",s=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",n=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",o=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",l=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+i+s+n+o+l}},activated:function(){this.initData()},components:{cTitle:o["a"]}},c=l,r=c,d=(a("6eee"),a("2877")),g=Object(d["a"])(r,i,s,!1,null,"2cc45f62",null);e["default"]=g.exports},f9fe:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#balance_manage #search-box[data-v-2cc45f62]{background-color:#fff;height:2.8125rem;line-height:2.8125rem;position:relative;padding-left:1.25rem;border-bottom:.0625rem solid #ebebeb}#balance_manage #search-box[data-v-2cc45f62],#balance_manage #search-box .search-a[data-v-2cc45f62]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#balance_manage #search-box .search-a[data-v-2cc45f62]{background-color:#f2f2f2;height:1.75rem;line-height:1.75rem;border-radius:.875rem;padding:0 .875rem;margin-top:.5313rem;width:18.75rem}#balance_manage #search-box .search-a input[data-v-2cc45f62]{border:none;width:90%;margin-left:.625rem}#balance_manage #search-box .search-b[data-v-2cc45f62]{width:2.8125rem;height:2.8125rem;position:absolute;right:0}#balance_manage #release-goods[data-v-2cc45f62]{background-color:#fff;font-size:16px;height:3rem;line-height:3rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:.5rem}#balance_manage #release-goods[data-v-2cc45f62],#balance_manage #release-goods .left[data-v-2cc45f62]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative}#balance_manage #release-goods .left[data-v-2cc45f62]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#balance_manage #release-goods .left .release-a[data-v-2cc45f62]{width:3rem;height:3rem}#balance_manage #release-goods .left .release-b[data-v-2cc45f62]{position:absolute;right:.875rem;top:.6875rem;font-size:14px;background-color:#f15353;height:1.625rem;line-height:1.625rem;padding:0 .625rem;display:block;border-radius:.8125rem;color:#fff}#balance_manage #release-goods .right[data-v-2cc45f62]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-right:.4rem}#balance_manage #release-goods .right button[data-v-2cc45f62]{padding-left:1rem;padding-right:1rem}#balance_manage #goods-list .goods-list[data-v-2cc45f62]{background-color:#fff;padding:.625rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-bottom:.5rem}#balance_manage #goods-list .goods-list .goods-list-top[data-v-2cc45f62]{height:2.5rem;line-height:2.5rem;font-size:.875rem;padding:0 .875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-weight:600}#balance_manage #goods-list .goods-list .goods-list-top .contentright[data-v-2cc45f62]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#balance_manage #goods-list .goods-list .goods-list-top .contentright .btn[data-v-2cc45f62]{position:relative;margin-left:.4rem;font-weight:500;font-size:.75rem}#balance_manage #goods-list .goods-list .goods-list-top .contentright .btn .more[data-v-2cc45f62]{line-height:normal;background:rgba(51,51,51,.9);border-radius:.25rem;color:#f0f0f0;width:5.5rem;position:absolute;right:0;top:-2rem}#balance_manage #goods-list .goods-list .goods-list-top .contentright .btn .more ul[data-v-2cc45f62]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#balance_manage #goods-list .goods-list .goods-list-top .contentright .btn .more ul li[data-v-2cc45f62]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}#balance_manage #goods-list .goods-list .goods-list-top .contentright .btn .more ul li i[data-v-2cc45f62]{display:block;margin-top:.125rem}#balance_manage #goods-list .goods-list .goods-list-top .contentright .btn .more .icon[data-v-2cc45f62]{position:absolute;right:0;top:1.85rem}#balance_manage #goods-list .goods-list .goods-list-top .contentright .btn .more .icon i[data-v-2cc45f62]{color:rgba(51,51,51,.9)}#balance_manage #goods-list .goods-list .goods-list-bottom[data-v-2cc45f62]{height:2.5rem;line-height:2.5rem;font-size:14px;padding:0 .875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;color:#c9c9c9}#balance_manage #goods-list .goods-list .goods-list-bottom i[data-v-2cc45f62]{font-size:1.25rem;color:#c9c9c9;line-height:2.5rem}#balance_manage #goods-list .goods-list .goods-list-time[data-v-2cc45f62]{padding:0 .875rem;min-height:2rem;line-height:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#c9c9c9}#balance_manage #goods-list .goods-list .goods-list-time .left[data-v-2cc45f62]{-webkit-box-flex:0;-webkit-flex:0 0 6rem;-ms-flex:0 0 6rem;flex:0 0 6rem;text-align:left}#balance_manage #goods-list .goods-list .goods-list-time .right[data-v-2cc45f62]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}#balance_manage #goods-list .goods-list .goods-list-time .right .right-date[data-v-2cc45f62]{display:inline-block;padding-right:.25rem}#balance_manage #goods-list .goods-list .goods-list-time .right .right-day[data-v-2cc45f62]{display:inline-block;color:#ee0a24;border-radius:2rem;line-height:normal;padding:0 .35rem;font-size:.85rem;border:1px solid #ee0a24}#balance_manage #goods-list .goods-list .goods-list-border[data-v-2cc45f62]{border-bottom:1px solid #f5f5f5;margin:.25rem .875rem;height:1px}#balance_manage #goods-list .goods-list .goods-list-button[data-v-2cc45f62]{padding:0 .875rem;height:2.5rem;line-height:2.5rem;text-align:right}#balance_manage #goods-list .goods-list .goods-list-button .status[data-v-2cc45f62]{display:inline-block;margin-right:.5rem;line-height:normal;background:#ee0a24;color:#fff;padding:.35rem .75rem;border-radius:1rem}#balance_manage #goods-list .goods-list .goods-list-button .success_tag[data-v-2cc45f62]{background:#fff;color:#666;border:1px solid #666}#balance_manage #goods-list .goods-list .goods-list-button .button[data-v-2cc45f62]{display:inline-block;color:#ee0a24;border-radius:1rem;line-height:normal;padding:.35rem .75rem;font-size:.85rem;border:1px solid #ee0a24}#balance_manage .tanchuang[data-v-2cc45f62]{width:19rem;display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#balance_manage .tanchuang .title[data-v-2cc45f62]{font-size:1rem;font-weight:700;padding:1rem;border-bottom:1px solid #f2f2f7}#balance_manage .tanchuang span[data-v-2cc45f62]{text-align:center;line-height:1.5rem;padding:.8rem;font-size:1rem}#balance_manage .tanchuang .call_list[data-v-2cc45f62]{display:-webkit-box;display:-ms-flexbox;display:flex;display:-webkit-flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .5rem 0 .5rem}#balance_manage .tanchuang .callBotton[data-v-2cc45f62]{display:inline-block;padding:0 1rem;height:2rem;line-height:2rem;border-radius:1rem}#balance_manage .tanchuangstate[data-v-2cc45f62]{padding:.2rem 0 1rem 0}#balance_manage .tanchuangstate1[data-v-2cc45f62]{padding:1rem 0 0}#balance_manage .button_call[data-v-2cc45f62]{margin-top:1rem;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}#balance_manage .button_call1[data-v-2cc45f62]{background:#ff2c29;color:#fff;border:none}#balance_manage .content[data-v-2cc45f62]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}#balance_manage .content .content-a[data-v-2cc45f62]{width:75%;height:30vh;background:#fff;border-radius:1rem}#balance_manage[data-v-2cc45f62] .van-overlay{z-index:99}",""]),t.exports=e}}]); |