1 line
7.9 KiB
JavaScript
1 line
7.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d50c1068"],{1396:function(e,t,i){var a=i("cfec");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var s=i("499e").default;s("0b89ee53",a,!0,{sourceMap:!1,shadowMode:!1})},6314:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"Invoice-header"},[i("div",{staticClass:"header"},[i("div",{staticClass:"total"},[e._v(" 总数: "),i("span",{staticStyle:{color:"#f14e4e"}},[e._v(e._s(e.total))])]),i("div",{on:{click:e.del}},[e.isDelete?i("span",[e._v("取消")]):i("span",{staticClass:"del"},[i("i",{staticClass:"iconfont icon-fontclass-shanchu"}),e._v("删除 ")])])]),e.list&&e.list.length>0?i("div",{staticClass:"content"},[i("div",{staticClass:"personal Invoice-header-item"},[i("div",{staticClass:"title"},[e._v("普通发票抬头-个人")]),i("ul",{staticClass:"list-box"},e._l(e.list,(function(t,a){return 0==t.type?i("li",{key:a,staticClass:"list-item"},[i("van-checkbox",{directives:[{name:"show",rawName:"v-show",value:e.isDelete,expression:"isDelete"}],staticClass:"checkbox van-checkbox__icon--checked",attrs:{"icon-size":"1rem"},on:{change:e.personalChange},scopedSlots:e._u([{key:"icon",fn:function(e){return[t.change?i("van-icon",{staticStyle:{"background-color":"#f15353","border-color":"#f15353"},attrs:{name:"success"}}):i("van-icon",{staticStyle:{"background-color":"#d4d4d4","border-color":"#d4d4d4"},attrs:{name:"success"}})]}}],null,!0),model:{value:t.change,callback:function(i){e.$set(t,"change",i)},expression:"item.change"}}),i("div",{staticClass:"list-text-box"},[i("div",{staticClass:"van-ellipsis text",on:{click:function(i){return e.personalChange(t.change,a,"personal")}}},[i("span",[e._v(e._s(t.collect_name))]),1==t.is_default?i("div",{staticClass:"default"},[e._v("默认")]):e._e()])]),i("div",[i("router-link",{attrs:{to:e.fun.getUrl("invoiceOperation",{type:"edit"},{id:t.id})}},[i("i",{staticClass:"iconfont icon-fontclass-xiugai"})])],1)],1):e._e()})),0)]),i("div",{staticClass:"company Invoice-header-item"},[i("div",{staticClass:"title"},[e._v("普通发票抬头-单位")]),i("ul",{staticClass:"list-box"},e._l(e.list,(function(t,a){return 1==t.type?i("li",{key:a,staticClass:"list-item"},[i("van-checkbox",{directives:[{name:"show",rawName:"v-show",value:e.isDelete,expression:"isDelete"}],staticClass:"checkbox van-checkbox__icon--checked",attrs:{"icon-size":"1rem"},on:{change:e.personalChange},scopedSlots:e._u([{key:"icon",fn:function(e){return[t.change?i("van-icon",{staticStyle:{"background-color":"#f15353","border-color":"#f15353"},attrs:{name:"success"}}):i("van-icon",{staticStyle:{"background-color":"#d4d4d4","border-color":"#d4d4d4"},attrs:{name:"success"}})]}}],null,!0),model:{value:t.change,callback:function(i){e.$set(t,"change",i)},expression:"item.change"}}),i("div",{staticClass:"list-text-box"},[i("div",{staticClass:"van-ellipsis text",on:{click:function(i){return e.personalChange(t.change,a,"company")}}},[i("span",[e._v(" "+e._s(t.collect_name))]),1==t.is_default?i("div",{staticClass:"default"},[e._v("默认")]):e._e()])]),i("div",[i("router-link",{attrs:{to:e.fun.getUrl("invoiceOperation",{type:"edit"},{id:t.id})}},[i("i",{staticClass:"iconfont icon-fontclass-xiugai"})])],1)],1):e._e()})),0)])]):e._e(),i("div",{staticClass:"addInvoice",class:3==e.fun.getPhoneEnv()?"pcStyle":""},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isDelete,expression:"!isDelete"}],staticClass:"addInvoice-item"},[i("router-link",{attrs:{to:e.fun.getUrl("invoiceOperation",{type:"add"},{})}},[e._v("添加发票抬头")])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.isDelete,expression:"isDelete"}],staticClass:"addInvoice-text"},[e._v(" 已选 "),i("span",{staticStyle:{margin:"0 1px"},style:{color:e.total>0?"#f15353":""}},[e._v(e._s(e.delTotal))]),e._v("个 ")]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.isDelete,expression:"isDelete"}],staticClass:"addInvoice-del",on:{click:e.deleteDate}},[e._v("删除")])])])},s=[],n=(i("e7e5"),i("d399")),o=(i("d81d"),i("d3b7"),i("25f0"),{props:["list","total"],data:function(){return{checked:!1,isDelete:!1,delTotal:0}},methods:{deleteDate:function(){var e=this,t=this.list.map((function(e){if(e.change)return e.id}));t=t.toString(),$http.get("plugin.invoice.frontend.rise.destory",{ids:t}).then((function(t){var i=t.result,a=t.msg;1==i?(n["a"].success(a),e.delTotal=0,e.isDelete=!1,e.$emit("getlist")):n["a"].fail(a)}))},personalChange:function(e,t,i){t>=0?this.$set(this.list[t],"change",!e):this.delTotal+=e?1:-1},del:function(){this.isDelete=!this.isDelete}}}),l=o,c=(i("7697"),i("2877")),d=Object(c["a"])(l,a,s,!1,null,"50110ff6",null);t["default"]=d.exports},7697:function(e,t,i){"use strict";i("1396")},cfec:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".addInvoice[data-v-50110ff6]{position:fixed;bottom:0;width:100%;padding:.8rem;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;background-color:#fff}.addInvoice .addInvoice-item[data-v-50110ff6]{width:18.75rem;margin:0 auto}.addInvoice .addInvoice-del[data-v-50110ff6],.addInvoice .addInvoice-item[data-v-50110ff6]{line-height:2.06rem;background-color:#f15353;border-radius:1.03rem;color:#fff;text-align:center}.addInvoice .addInvoice-del[data-v-50110ff6]{width:6.25rem}.addInvoice-text[data-v-50110ff6]{color:#343434;font-size:1rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.list-loading[data-v-50110ff6]{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;padding:1rem 0}[data-v-50110ff6] .pcStyle{max-width:375px}.empty[data-v-50110ff6]{text-align:center;padding:1rem 0}.empty img[data-v-50110ff6]{width:8.63rem;height:7.69rem}.Invoice-header[data-v-50110ff6]{text-align:left;padding-bottom:3.8rem}.Invoice-header .icon-fontclass-xiugai[data-v-50110ff6]{margin:0 .2rem}.Invoice-header .van-cell[data-v-50110ff6]{padding:0}.Invoice-header .header[data-v-50110ff6]{width:100%;line-height:2.76rem;height:2.76rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 1rem;font-size:.75rem}.Invoice-header .header .total[data-v-50110ff6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.Invoice-header .header .del[data-v-50110ff6]{color:#ff4c4c}.Invoice-header .content .Invoice-header-item[data-v-50110ff6]{width:22.19rem;margin:0 auto;background-color:#fff;border-radius:.31rem;padding:0 .78rem}.Invoice-header .content .Invoice-header-item .title[data-v-50110ff6]{font-size:.88rem;color:#0c0d0e;line-height:3rem;border-bottom:.03rem solid #efefef}.Invoice-header .content .Invoice-header-item .list-item[data-v-50110ff6]{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;height:2.7rem}.Invoice-header .content .Invoice-header-item .list-item .checkbox[data-v-50110ff6]{margin-right:.3rem}.Invoice-header .content .Invoice-header-item .list-item .list-text-box[data-v-50110ff6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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;overflow-x:hidden}.Invoice-header .content .Invoice-header-item .list-item .list-text-box .text[data-v-50110ff6]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.Invoice-header .content .Invoice-header-item .list-item .list-text-box .default[data-v-50110ff6]{width:2.19rem;height:1.06rem;display:inline-block;background-color:#ffecec;border-radius:.53rem;text-align:center;font-size:.63rem;color:#f15353;margin-left:.2rem}.Invoice-header .content .personal[data-v-50110ff6]{margin-bottom:1rem}.Invoice-header .van-contact-list__bottom[data-v-50110ff6]{display:none}",""]),e.exports=t}}]); |