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
17 KiB
1 lines
17 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f710ff6"],{"08d8":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"selCard"},[n("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small",inline:"","label-width":"85px"}},[n("el-form-item",{staticClass:"width100",attrs:{label:"订单状态:",prop:"order_type"}},[n("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.order_type,callback:function(e){t.$set(t.tableFrom,"order_type",e)},expression:"tableFrom.order_type"}},[n("el-radio-button",{attrs:{label:""}},[t._v("全部 ")]),t._v(" "),n("el-radio-button",{attrs:{label:"1"}},[t._v("待付款")]),t._v(" "),n("el-radio-button",{attrs:{label:"2"}},[t._v("待发货")]),t._v(" "),n("el-radio-button",{attrs:{label:"3"}},[t._v("待收货")]),t._v(" "),n("el-radio-button",{attrs:{label:"4"}},[t._v("待评价")]),t._v(" "),n("el-radio-button",{attrs:{label:"5"}},[t._v("交易完成")]),t._v(" "),n("el-radio-button",{attrs:{label:"6"}},[t._v("已退款")]),t._v(" "),n("el-radio-button",{attrs:{label:"7"}},[t._v("已删除")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"时间选择:"}},[n("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"自定义时间",clearable:"","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"商户名称:",prop:"mer_id"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_id,callback:function(e){t.$set(t.tableFrom,"mer_id",e)},expression:"tableFrom.mer_id"}},t._l(t.merSelect,(function(t){return n("el-option",{key:t.mer_id,attrs:{label:t.mer_name,value:t.mer_id}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"开票状态:",prop:"status"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.invoiceStatusList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"用户信息:",prop:"username"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户昵称/手机号"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.username,callback:function(e){t.$set(t.tableFrom,"username",e)},expression:"tableFrom.username"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"关键字:",prop:"keyword"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号/收货人/联系方式",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),n("el-card",{staticClass:"mt14"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleSelection",staticClass:"table",attrs:{data:t.tableData.data,size:"small"}},[n("el-table-column",{attrs:{prop:"storeOrder.order_sn",label:"订单号","min-width":"170"}}),t._v(" "),n("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"160"}}),t._v(" "),n("el-table-column",{attrs:{prop:"user.nickname",label:"用户昵称","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{prop:"order_price",label:"订单金额","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"订单状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.storeOrder&&0===e.row.storeOrder.paid&&0===e.row.storeOrder.status?n("span",[t._v("待付款")]):n("span",[t._v(t._s(t._f("orderStatusFilter")(e.row.storeOrder&&e.row.storeOrder.status)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"receipt_price",label:"发票金额","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{prop:"receipt_sn",label:"发票单号","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"发票类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receipt_info?n("span",[t._v(t._s(1==e.row.receipt_info.receipt_type?"普通发票":"专用发票"))]):n("span",[t._v("--")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"发票抬头","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s("1"===e.row.receipt_info.receipt_title_type?"个人":"企业"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"发票联系人","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.storeOrder&&e.row.storeOrder.real_name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"发票联系信息","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.delivery_info.email?e.row.delivery_info.email:e.row.delivery_info.user_address&&e.row.delivery_info.user_address+e.row.delivery_info.user_phone&&e.row.delivery_info.user_phone))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"下单时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"开票状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1==e.row.status?"已开":"未开"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"mer_mark",label:"发票备注","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.getInvoiceInfo(e.row.order_receipt_id)}}},[t._v("详情")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?n("el-dialog",{attrs:{title:t.invoiceInfo.title,visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("div",{staticClass:"box-container"},[n("div",{staticClass:"title"},[t._v("发票详情")]),t._v(" "),n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name",staticStyle:{color:"#333"}},[t._v("发票申请单号:")]),t._v(t._s(t.invoiceInfo.receipt_sn))])]),t._v(" "),n("div",{staticClass:"title"},[t._v("发票信息")]),t._v(" "),n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("发票抬头:")]),t._v(t._s(t.invoiceInfo.receipt_info.receipt_title))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("发票类型:")]),t._v(t._s(1==t.invoiceInfo.receipt_info.receipt_type?"普通发票":"专用发票"))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("发票抬头类型:")]),t._v(t._s("1"==t.invoiceInfo.receipt_info.receipt_title_type?"个人":"企业"))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("发票金额:")]),t._v(t._s(t.invoiceInfo.receipt_price))]),t._v(" "),"2"==t.invoiceInfo.receipt_info.receipt_title_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("企业税号:")]),t._v(t._s(t.invoiceInfo.receipt_info.duty_paragraph))]):t._e(),t._v(" "),2==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("开户银行:")]),t._v(t._s(t.invoiceInfo.receipt_info.bank_name))]):t._e(),t._v(" "),2==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("银行账号:")]),t._v(t._s(t.invoiceInfo.receipt_info.bank_code))]):t._e(),t._v(" "),2==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("企业地址:")]),t._v(t._s(t.invoiceInfo.receipt_info.address))]):t._e(),t._v(" "),2==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("企业电话:")]),t._v(t._s(t.invoiceInfo.receipt_info.tel))]):t._e()]),t._v(" "),n("div",{staticClass:"title"},[t._v("联系信息:")]),t._v(" "),1==t.invoiceInfo.receipt_info.receipt_type?n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("联系邮箱:")]),t._v(t._s(t.invoiceInfo.delivery_info.email))])]):n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("联系人姓名:")]),t._v(t._s(t.invoiceInfo.delivery_info.user_name))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("联系人电话:")]),t._v(t._s(t.invoiceInfo.delivery_info.user_phone))]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("联系人地址:")]),t._v(t._s(t.invoiceInfo.delivery_info.user_address))])]),t._v(" "),n("div",{staticClass:"acea-row"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("开票状态:")]),t._v(t._s(1==t.invoiceInfo.status?"已开":"未开"))]),t._v(" "),1==t.invoiceInfo.status?n("div",{staticClass:"list sp100"},[n("label",{staticClass:"name"},[t._v("发票号码:")]),t._v(t._s(t.invoiceInfo.receipt_no))]):t._e(),t._v(" "),n("div",{staticClass:"list sp100"},[n("label",{staticClass:"name"},[t._v("发票备注:")]),t._v(t._s(t.invoiceInfo.mer_mark))])])])])]):t._e()],1)},i=[],r=n("2801"),o=n("c4c8"),l=n("0b65"),s={name:"AccountsReceipt",data:function(){return{pickerOptions:l["a"],logisticsName:"refund",dialogVisible:!1,id:0,type:"",tableData:{data:[],total:0},merSelect:[],invoiceStatusList:[{label:"已开票",value:1},{label:"未开票",value:0}],listLoading:!0,tableFrom:{username:"",type:"",date:"",page:1,limit:20,receipt_sn:"",order_type:"",keyword:"",status:"",mer_id:""},orderChartType:{},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},loading:!1,invoiceInfo:{}}},mounted:function(){this.getList(1),this.getMerSelect()},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},getMerSelect:function(){var t=this;Object(o["Q"])().then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},getInvoiceInfo:function(t){var e=this;this.loading=!0,Object(r["s"])(t).then((function(t){e.invoiceInfo=t.data,e.dialogVisible=!0,e.loading=!1})).catch((function(t){e.$message.error(t.message),e.loading=!1,e.dialogVisible=!1}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(r["t"])(this.tableFrom).then((function(t){e.orderChartType=t.data.stat,e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},handleClose:function(){this.dialogLogistics=!1}}},c=s,u=(n("ffa2"),n("2877")),d=Object(u["a"])(c,a,i,!1,null,"a69b31b8",null);e["default"]=d.exports},"0b65":function(t,e,n){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]}},2801:function(t,e,n){"use strict";n.d(e,"f",(function(){return i})),n.d(e,"j",(function(){return r})),n.d(e,"v",(function(){return o})),n.d(e,"w",(function(){return l})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return c})),n.d(e,"x",(function(){return u})),n.d(e,"B",(function(){return d})),n.d(e,"z",(function(){return f})),n.d(e,"A",(function(){return _})),n.d(e,"y",(function(){return v})),n.d(e,"d",(function(){return m})),n.d(e,"c",(function(){return p})),n.d(e,"L",(function(){return b})),n.d(e,"n",(function(){return g})),n.d(e,"i",(function(){return h})),n.d(e,"g",(function(){return w})),n.d(e,"h",(function(){return y})),n.d(e,"r",(function(){return C})),n.d(e,"N",(function(){return k})),n.d(e,"K",(function(){return x})),n.d(e,"I",(function(){return D})),n.d(e,"G",(function(){return F})),n.d(e,"M",(function(){return I})),n.d(e,"J",(function(){return L})),n.d(e,"H",(function(){return S})),n.d(e,"m",(function(){return O})),n.d(e,"l",(function(){return T})),n.d(e,"k",(function(){return $})),n.d(e,"e",(function(){return V})),n.d(e,"q",(function(){return z})),n.d(e,"o",(function(){return M})),n.d(e,"O",(function(){return j})),n.d(e,"t",(function(){return Y})),n.d(e,"s",(function(){return E})),n.d(e,"p",(function(){return N})),n.d(e,"P",(function(){return W})),n.d(e,"u",(function(){return J})),n.d(e,"F",(function(){return R})),n.d(e,"C",(function(){return A})),n.d(e,"D",(function(){return B})),n.d(e,"E",(function(){return q}));var a=n("0c6d");function i(t){return a["a"].get("user/extract/lst",t)}function r(t,e){return a["a"].post("user/extract/status/".concat(t),e)}function o(t){return a["a"].get("user/recharge/list",t)}function l(){return a["a"].get("user/recharge/total")}function s(t){return a["a"].get("bill/list",t)}function c(){return a["a"].get("bill/type")}function u(t){return a["a"].get("merchant/order/reconciliation/lst",t)}function d(t,e){return a["a"].post("merchant/order/reconciliation/status/".concat(t),e)}function f(t,e){return a["a"].get("merchant/order/reconciliation/".concat(t,"/order"),e)}function _(t,e){return a["a"].get("merchant/order/reconciliation/".concat(t,"/refund"),e)}function v(t){return a["a"].get("merchant/order/reconciliation/mark/".concat(t,"/form"))}function m(t){return a["a"].get("financial_record/list",t)}function p(t){return a["a"].get("financial_record/export",t)}function b(t){return a["a"].get("financial/export",t)}function g(t){return a["a"].get("bill/export",t)}function h(t){return a["a"].get("user/extract/export",t)}function w(t){return a["a"].get("user/extract/status_form/".concat(t))}function y(t){return a["a"].get("user/extract/detail/".concat(t))}function C(){return a["a"].get("version")}function k(t){return a["a"].get("config/".concat(t))}function x(t){return a["a"].get("financial/lst",t)}function D(){return a["a"].get("financial/title")}function F(t){return a["a"].get("financial/detail/".concat(t))}function I(t,e){return a["a"].post("financial/status/".concat(t),e)}function L(t){return a["a"].get("financial/mark/".concat(t,"/form"))}function S(t,e){return a["a"].post("financial/update/".concat(t),e)}function O(t){return a["a"].get("financial_record/lst",t)}function T(t,e){return a["a"].get("financial_record/detail/".concat(t),e)}function $(t){return a["a"].get("financial_record/title",t)}function V(t,e){return a["a"].get("financial_record/detail_export/".concat(t),e)}function z(t){return a["a"].get("financial_record/count",t)}function M(t){return a["a"].get("agreement/".concat(t))}function j(t,e){return a["a"].post("agreement/".concat(t),e)}function Y(t){return a["a"].get("receipt/lst",t)}function E(t){return a["a"].get("receipt/detail/".concat(t))}function N(){return a["a"].get("profitsharing/config")}function W(t){return a["a"].post("profitsharing/config",t)}function J(t){return a["a"].get("financial_record/mer_lst",t)}function R(t,e){return a["a"].get("financial_record/mer_list/".concat(t),e)}function A(t,e){return a["a"].get("financial_record/mer_detail/".concat(t),e)}function B(t,e){return a["a"].get("financial_record/mer_excel/".concat(t),e)}function q(t,e){return a["a"].get("financial_record/mer_title/".concat(t),e)}},a675:function(t,e,n){},ffa2:function(t,e,n){"use strict";n("a675")}}]); |