You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
19 KiB
1 lines
19 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_invoice_list-index"],{"03ff":function(e,t,i){"use strict";i.r(t);var n=i("344e"),r=i("1565");for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);i("15bc");var a=i("f0c5"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"5c721f6d",null,!1,n["a"],void 0);t["default"]=c.exports},"092b":function(e,t,i){"use strict";var n=i("9a2d"),r=i.n(n);r.a},1565:function(e,t,i){"use strict";i.r(t);var n=i("539e"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=r.a},"15bc":function(e,t,i){"use strict";var n=i("c257"),r=i.n(n);r.a},"344e":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{style:e.colorStyle},[i("v-uni-view",{staticStyle:{"touch-action":"none"}},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:e.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.setTouchMove.apply(void 0,arguments)}}},[e.homeActive?i("v-uni-view",{staticClass:"homeCon bg-color",class:!0===e.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/index/index"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/order_addcart/order_addcart"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/user/index"}})],1):e._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image",attrs:{src:!0===e.homeActive?e.imgHost+"/statics/images/close.gif":e.imgHost+"/statics/images/open.gif"}})],1)],1)],1)],1)],1)},r=[]},"451d":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.adminExpress=function(e,t){return o.default.get("admin/order/express/"+e+"".concat(t?"/refund":""))},t.aliPay=function(e,t){return o.default.get("ali_pay",{key:e,quitUrl:t},{noAuth:!0})},t.cancelRefundOrder=function(e){return o.default.post("order/refund/cancel/"+e)},t.cartDel=function(e){"object"===(0,r.default)(e)&&(e=e.join(","));return o.default.post("cart/del",{ids:e})},t.changeCartNum=function(e,t){return o.default.post("cart/num",{id:e,number:t})},t.checkShipping=function(e,t){return o.default.post("order/check_shipping",{cartId:e,new:t})},t.express=function(e,t){return o.default.get("order/express/"+e+"".concat(t?"/refund":""))},t.getCartCounts=function(e){return o.default.get("cart/count",{numType:void 0===e?0:e})},t.getCartList=function(e){return o.default.get("cart/list",e)},t.getCashierOrder=function(e,t){return o.default.get("order/cashier/".concat(e,"/").concat(t))},t.getCouponsOrderPrice=function(e,t){return o.default.get("coupons/order/"+e,t)},t.getNewOrderList=function(e){return o.default.get("order/refund/list",e)},t.getOrderDetail=function(e,t){return o.default.get("order/detail/"+e+"".concat(t?"/".concat(t):""))},t.getOrderList=function(e){return o.default.get("order/list",e)},t.getRefundOrderDetail=function(e,t){return o.default.get("order/refund_detail/"+e+"".concat(t?"/".concat(t):""))},t.getResetCart=function(e){return o.default.post("v2/reset_cart",e)},t.offlineCheckPrice=function(e){return o.default.post("order/offline/check/price",e)},t.offlineCreate=function(e){return o.default.post("order/offline/create",e)},t.ordeRefundReason=function(){return o.default.get("order/refund/reason")},t.orderAgain=function(e){return o.default.post("order/again",{uni:e})},t.orderCancel=function(e){return o.default.post("order/cancel",{id:e})},t.orderComment=function(e){return o.default.post("order/comment",e)},t.orderConfirm=function(e,t,i,n){return o.default.post("order/confirm",{cartId:e,new:t,addressId:i,shipping_type:n})},t.orderCoupon=function(e){return o.default.post("v2/order/product_coupon/"+e)},t.orderCreate=function(e,t){return o.default.post("order/create/"+e,t)},t.orderData=function(){return o.default.get("order/data")},t.orderDel=function(e){return o.default.post("order/del",{uni:e})},t.orderInvoiceDetail=function(e){return o.default.get("v2/order/invoice_detail/".concat(e))},t.orderInvoiceList=function(e){return o.default.get("v2/order/invoice_list",e)},t.orderOfflinePayType=function(){return o.default.get("order/offline/pay/type")},t.orderPay=function(e){return o.default.post("order/pay",e)},t.orderProduct=function(e){return o.default.post("order/product",{unique:e})},t.orderRefundVerify=function(e){return o.default.post("order/refund/verify",e)},t.orderTake=function(e){return o.default.post("order/take",{uni:e})},t.postOrderComputed=function(e,t){return o.default.post("order/computed/"+e,t)},t.postRefundGoods=function(e){return o.default.post("order/refund/cart_info",e)},t.refundExpress=function(e){return o.default.post("order/refund/express",e)},t.refundGoodsList=function(e){return o.default.get("order/refund/cart_info/".concat(e))},t.refundOrderDel=function(e){return o.default.get("order/refund/del/"+e,{})},t.refundOrderDetail=function(e){return o.default.get("order/refund/detail/"+e)},t.returnGoodsSubmit=function(e,t){return o.default.post("order/refund/apply/".concat(e),t)},t.vcartList=function(){return o.default.get("v2/cart_list")},i("99af");var r=n(i("53ca")),o=n(i("3160"))},"539e":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i("26cb"),o=n(i("66ca")),a=i("989b"),c={name:"Home",props:{},mixins:[o.default],data:function(){return{top:"545",imgHost:a.HTTP_REQUEST_URL}},computed:(0,r.mapGetters)(["homeActive"]),methods:{setTouchMove:function(e){e.touches[0].clientY<545&&e.touches[0].clientY>66&&(this.top=e.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};t.default=c},"90e0":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("99af"),i("c740"),i("a434");var r=n(i("03ff")),o=i("26cb"),a=i("8ba8"),c=i("451d"),s=n(i("66ca")),d=i("989b"),u={components:{home:r.default},mixins:[s.default],data:function(){return{imgHost:d.HTTP_REQUEST_URL,orderList:[],invoiceList:[],nav:1,page:1,limit:30,loading:!1,finished:!1,specialInvoice:!0}},watch:{nav:{immediate:!0,handler:function(e){switch(this.page=1,e){case 1:this.orderList=[],this.getOrderList();break;case 2:this.invoiceList=[],this.getInvoiceList();break}}}},computed:(0,o.mapGetters)(["isLogin"]),onLoad:function(e){"invoice_form"===e.from&&(this.nav=2),this.getUserInfo()},methods:{getUserInfo:function(){var e=this;(0,a.getUserInfo)().then((function(t){var i=t.data.special_invoice;e.specialInvoice=i}))},navTab:function(e){this.nav!==e&&(this.nav=e)},getOrderList:function(){var e=this;uni.showLoading({title:this.$t("加载中")}),(0,c.orderInvoiceList)({page:this.page,limit:this.limit}).then((function(t){var i=t.data;uni.hideLoading(),e.orderList=e.orderList.concat(i),e.finished=i.length<e.limit,e.page+=1})).catch((function(e){uni.showToast({title:e.msg,icon:"none"})}))},getInvoiceList:function(){var e=this;uni.showLoading({title:this.$t("加载中")}),(0,a.invoiceList)({page:this.page,limit:this.limit}).then((function(t){var i=t.data;uni.hideLoading(),e.invoiceList=e.invoiceList.concat(i),e.finished=i.length<e.limit,e.page+=1})).catch((function(e){uni.showToast({title:e.msg,icon:"none"})}))},editInvoice:function(e){uni.navigateTo({url:"/pages/users/user_invoice_form/index?id=".concat(e)})},deleteInvoice:function(e){var t=this;uni.showModal({content:t.$t("删除该发票?"),confirmColor:"#E93323",success:function(i){i.confirm&&(0,a.invoiceDelete)(e).then((function(){t.$util.Tips({title:t.$t("删除成功"),icon:"success"},(function(){var i=t.invoiceList.findIndex((function(t){return t.id==e}));t.invoiceList.splice(i,1)}))})).catch((function(e){return t.$util.Tips({title:e})}))}})}}};t.default=u},"9a2d":function(e,t,i){var n=i("abbb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("4f06").default;r("e99a7f60",n,!0,{sourceMap:!1,shadowMode:!1})},"9da4":function(e,t,i){"use strict";i.r(t);var n=i("da70"),r=i("f7c9");for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);i("092b");var a=i("f0c5"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"31f99ec0",null,!1,n["a"],void 0);t["default"]=c.exports},a798:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,".pictrueBox[data-v-5c721f6d]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-5c721f6d]{position:fixed;color:#fff;text-align:center;z-index:999;right:%?15?%;display:flex}.home .homeCon[data-v-5c721f6d]{border-radius:%?50?%;opacity:0;height:0;color:var(--view-theme);width:0}.home .homeCon.on[data-v-5c721f6d]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)!important;opacity:.8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.home .homeCon .iconfont[data-v-5c721f6d]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-5c721f6d]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme)}.home .pictrue .image[data-v-5c721f6d]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),e.exports=t},abbb:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.nav[data-v-31f99ec0]{position:fixed;top:0;left:0;z-index:9;width:100%;height:%?90?%;background-color:#fff}.nav .acea-row[data-v-31f99ec0]{flex:1;border-top:%?3?% solid transparent;border-bottom:%?3?% solid transparent;font-size:%?30?%;color:#282828}.nav .on[data-v-31f99ec0]{border-bottom-color:var(--view-theme);color:var(--view-theme)}.list[data-v-31f99ec0]{padding:%?14?% %?32?%;margin-top:%?90?%;padding-bottom:%?180?%}.list .item[data-v-31f99ec0]{padding:%?28?% %?32?%;background-color:#fff}.list .item ~ .item[data-v-31f99ec0]{margin-top:%?14?%}.list .item-hd .acea-row[data-v-31f99ec0]{flex:1;min-width:0}.list .name[data-v-31f99ec0]{font-weight:600;font-size:%?30?%;color:#282828}.list .label[data-v-31f99ec0]{width:%?56?%;height:%?28?%;border:%?1?% solid var(--view-theme);margin-left:%?18?%;font-size:%?20?%;line-height:%?26?%;text-align:center;color:var(--view-theme)}.list .type[data-v-31f99ec0]{height:%?42?%;margin-left:%?30?%;background-color:#fcf0e0;font-size:%?24?%;line-height:%?42?%;text-align:center;color:#d67300}.list .type.special[data-v-31f99ec0]{background-color:#fde9e7;color:#e93323}.list .item-bd[data-v-31f99ec0]{margin-top:%?18?%}.list .cell[data-v-31f99ec0]{font-size:%?26?%;color:#666}.list .cell ~ .cell[data-v-31f99ec0]{margin-top:%?12?%}.list .item-ft[data-v-31f99ec0]{margin-top:%?11?%}.list .btn[data-v-31f99ec0]{font-size:%?26?%;color:#282828;cursor:pointer}.list .btn ~ .btn[data-v-31f99ec0]{margin-left:%?35?%}.list .btn .iconfont[data-v-31f99ec0]{margin-right:%?10?%;font-size:%?24?%;color:#000}.add-link[data-v-31f99ec0]{position:fixed;right:%?30?%;bottom:%?53?%;left:%?30?%;height:%?86?%;border-radius:%?43?%;background-color:var(--view-theme);font-size:%?30?%;line-height:%?86?%;text-align:center;color:#fff}.add-link .iconfont[data-v-31f99ec0]{margin-right:%?14?%;font-size:%?28?%}.nothing[data-v-31f99ec0]{margin-top:%?254?%;font-size:%?26?%;text-align:center;color:#999}.nothing .image[data-v-31f99ec0]{width:%?400?%;height:%?260?%;margin-bottom:%?20?%}.record-wrapper[data-v-31f99ec0]{margin-top:%?110?%}.record-wrapper .item[data-v-31f99ec0]{padding-right:%?30?%;padding-left:%?30?%;border-radius:%?6?%;margin:%?30?%;background-color:#fff}.record-wrapper .item .item-hd[data-v-31f99ec0]{padding-top:%?36?%;padding-bottom:%?36?%}.record-wrapper .item .item-hd .image[data-v-31f99ec0]{width:%?78?%;height:%?78?%;border-radius:%?6?%}.record-wrapper .item .item-hd .text[data-v-31f99ec0]{flex:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-left:%?24?%;font-size:%?26?%;line-height:%?37?%;color:#282828}.record-wrapper .item .item-bd[data-v-31f99ec0]{padding:%?26?% %?30?% %?25?% %?32?%;border-radius:%?20?%;background-color:#f5f6f7;font-size:%?26?%;line-height:%?37?%;color:#818181}.record-wrapper .item .item-bd .name[data-v-31f99ec0]{margin-bottom:%?8?%;font-weight:700;font-size:%?26?%;color:#282828}.record-wrapper .item .item-bd .money[data-v-31f99ec0]{font-weight:700;font-size:%?24?%;color:#282828}.record-wrapper .item .item-bd .money .num[data-v-31f99ec0]{font-size:%?32?%}.record-wrapper .item .item-ft[data-v-31f99ec0]{padding-top:%?30?%;padding-bottom:%?30?%;font-weight:700;font-size:%?28?%;color:#282828}.record-wrapper .item .item-ft .link[data-v-31f99ec0]{width:%?150?%;height:%?57?%;border:%?1?% solid #707070;border-radius:%?29?%;font-weight:400;font-size:%?26?%;line-height:%?57?%;text-align:center;color:#282828}',""]),e.exports=t},c257:function(e,t,i){var n=i("a798");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("4f06").default;r("f61d2c94",n,!0,{sourceMap:!1,shadowMode:!1})},da70:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{style:e.colorStyle},[i("v-uni-view",{staticClass:"acea-row nav"},[i("v-uni-view",{staticClass:"acea-row row-center-wrapper",class:{on:1===e.nav},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.navTab(1)}}},[e._v(e._s(e.$t("发票记录")))]),i("v-uni-view",{staticClass:"acea-row row-center-wrapper",class:{on:2===e.nav},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.navTab(2)}}},[e._v(e._s(e.$t("抬头管理")))])],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1===e.nav,expression:"nav === 1"}],staticClass:"record-wrapper"},[e._l(e.orderList,(function(t){return i("v-uni-view",{key:t.id,staticClass:"item"},[i("v-uni-view",{staticClass:"item-hd acea-row"},[i("v-uni-image",{staticClass:"image",attrs:{src:t.order.cartInfo[0].productInfo.image}}),i("v-uni-view",{staticClass:"text"},[e._v(e._s(t.order.cartInfo[0].productInfo.store_name+t.order.cartInfo[0].productInfo.attrInfo.suk||""))])],1),i("v-uni-view",{staticClass:"item-bd acea-row row-between-wrapper"},[i("v-uni-view",[i("v-uni-view",{staticClass:"name"},[e._v(e._s(1===t.header_type?e.$t("个人"):e.$t("企业"))+e._s(1===t.type?e.$t("普通"):e.$t("专用"))+e._s(e.$t("发票")))]),i("v-uni-view",[e._v(e._s(e.$t("申请时间"))+" "+e._s(t.add_time))])],1),i("v-uni-view",{staticClass:"money"},[e._v(e._s(e.$t("¥"))),i("v-uni-text",{staticClass:"num"},[e._v(e._s(t.order.pay_price))])],1)],1),i("v-uni-view",{staticClass:"item-ft acea-row row-between-wrapper"},[i("v-uni-view",[e._v(e._s(t.is_invoice?e.$t("已开票"):e.$t("未开票")))]),i("v-uni-navigator",{staticClass:"link",attrs:{url:"/pages/users/user_invoice_order/index?order_id="+t.order.order_id}},[e._v(e._s(e.$t("查看详情")))])],1)],1)})),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===e.page&&!e.orderList.length,expression:"page === 2 && !orderList.length"}],staticClass:"nothing"},[i("v-uni-image",{attrs:{src:e.imgHost+"/statics/images/noInvoice.png"}}),i("v-uni-view",[e._v(e._s(e.$t("没有发票信息哟~")))])],1)],2),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===e.nav,expression:"nav === 2"}]},[e.invoiceList.length?i("v-uni-view",{staticClass:"list"},[e._l(e.invoiceList,(function(t){return[1===t.type||2===t.type&&e.specialInvoice?i("v-uni-view",{key:t.id,staticClass:"item"},[i("v-uni-view",{staticClass:"acea-row item-hd"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"name"},[e._v(e._s(t.name))]),t.is_default?i("v-uni-view",{staticClass:"label"},[e._v(e._s(e.$t("默认")))]):e._e()],1),i("v-uni-view",{staticClass:"type",class:{special:2===t.type}},[e._v(e._s(1===t.type&&1===t.header_type?e.$t("个人普通发票"):1===t.type&&2===t.header_type?e.$t("企业普通发票"):e.$t("企业专用发票")))])],1),i("v-uni-view",{staticClass:"item-bd"},[i("v-uni-view",{staticClass:"cell"},[e._v(e._s(e.$t("联系邮箱"))+" "+e._s(t.email))]),2===t.header_type?i("v-uni-view",{staticClass:"cell"},[e._v(e._s(e.$t("企业税号"))+" "+e._s(t.duty_number))]):e._e(),1===t.header_type&&t.drawer_phone?i("v-uni-view",{staticClass:"cell"},[e._v(e._s(e.$t("联系电话"))+" "+e._s(t.drawer_phone))]):e._e()],1),i("v-uni-view",{staticClass:"acea-row row-right item-ft"},[i("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.editInvoice(t.id)}}},[i("v-uni-text",{staticClass:"iconfont icon-bianji"}),e._v(e._s(e.$t("编辑")))],1),i("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.deleteInvoice(t.id)}}},[i("v-uni-text",{staticClass:"iconfont icon-shanchu"}),e._v(e._s(e.$t("删除")))],1)],1)],1):e._e()]}))],2):e._e(),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:2===e.page&&!e.invoiceList.length,expression:"page === 2 && !invoiceList.length"}],staticClass:"nothing"},[i("v-uni-image",{attrs:{src:e.imgHost+"/statics/images/noInvoice.png"}}),i("v-uni-view",[e._v(e._s(e.$t("没有发票信息哟~")))])],1),i("v-uni-navigator",{staticClass:"add-link",attrs:{url:"/pages/users/user_invoice_form/index?specialInvoice="+e.specialInvoice}},[i("v-uni-text",{staticClass:"iconfont icon-fapiao"}),e._v(e._s(e.$t("添加新发票")))],1)],1),i("home")],1)},r=[]},f7c9:function(e,t,i){"use strict";i.r(t);var n=i("90e0"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=r.a}}]); |