(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-10f5f884"],{"634a":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox relative"},[a("el-card",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:order:page:list"],expression:"['platform:order:page:list']"}],staticClass:"box-card"},[a("div",{staticClass:"clearfix"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px"}},[a("el-form-item",{attrs:{label:"订单类型:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(t){return e.getList(1)}},model:{value:e.tableFrom.type,callback:function(t){e.$set(e.tableFrom,"type",t)},expression:"tableFrom.type"}},e._l(e.fromType,(function(t,l){return a("el-radio-button",{key:l,attrs:{label:t.value}},[e._v(e._s(t.text)+"\n ")])})),1)],1),e._v(" "),e.checkPermi(["platform:order:status:num"])?a("el-form-item",{attrs:{label:"订单状态:"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:e.seachList},model:{value:e.tableFrom.status,callback:function(t){e.$set(e.tableFrom,"status",t)},expression:"tableFrom.status"}},[a("el-radio-button",{attrs:{label:"all"}},[e._v("全部 "+e._s(e.orderChartType.all))]),e._v(" "),a("el-radio-button",{attrs:{label:"unPaid"}},[e._v("未支付 "+e._s(e.orderChartType.unPaid))]),e._v(" "),a("el-radio-button",{attrs:{label:"notShipped"}},[e._v("未发货 "+e._s(e.orderChartType.notShipped))]),e._v(" "),a("el-radio-button",{attrs:{label:"spike"}},[e._v("待收货 "+e._s(e.orderChartType.spike))]),e._v(" "),a("el-radio-button",{attrs:{label:"receiving"}},[e._v("已收货 "+e._s(e.orderChartType.receiving))]),e._v(" "),a("el-radio-button",{attrs:{label:"awaitVerification"}},[e._v("待核销 "+e._s(e.orderChartType.verification))]),e._v(" "),a("el-radio-button",{attrs:{label:"complete"}},[e._v("交易完成 "+e._s(e.orderChartType.complete))]),e._v(" "),a("el-radio-button",{attrs:{label:"refunded"}},[e._v("已退款 "+e._s(e.orderChartType.refunded))]),e._v(" "),a("el-radio-button",{attrs:{label:"deleted"}},[e._v("已删除 "+e._s(e.orderChartType.deleted))])],1)],1):e._e(),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(t){return e.selectChange(e.tableFrom.dateLimit)}},model:{value:e.tableFrom.dateLimit,callback:function(t){e.$set(e.tableFrom,"dateLimit",t)},expression:"tableFrom.dateLimit"}},e._l(e.fromList.fromTxt,(function(t,l){return a("el-radio-button",{key:l,attrs:{label:t.val}},[e._v(e._s(t.text))])})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"220px"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"订单号:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",size:"small",clearable:""},model:{value:e.tableFrom.orderNo,callback:function(t){e.$set(e.tableFrom,"orderNo","string"===typeof t?t.trim():t)},expression:"tableFrom.orderNo"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:e.seachList},slot:"append"})],1)],1),e._v(" "),a("div",[a("div",{staticStyle:{width:"500px",display:"inline-block"}},[a("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:merchant:page:list"],expression:"['platform:merchant:page:list']"}],attrs:{label:"商户名称:"}},[a("merchant-name",{on:{getMerId:e.getMerId}})],1)],1),e._v(" "),a("div",{staticStyle:{display:"inline-block"}},[a("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:merchant:page:list"],expression:"['platform:merchant:page:list']"}],attrs:{label:"保费类:"}},[a("el-select",{staticStyle:{width:"350px"},attrs:{placeholder:"请选择保费类"},on:{change:function(t){return e.getList(1)}},model:{value:e.tableFrom.insuranceType,callback:function(t){e.$set(e.tableFrom,"insuranceType",t)},expression:"tableFrom.insuranceType"}},e._l(e.insuranceTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)]),e._v(" "),a("div",[a("div",{staticStyle:{width:"500px",display:"inline-block"}},[a("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:merchant:page:list"],expression:"['platform:merchant:page:list']"}],attrs:{label:"用户昵称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户昵称",size:"small",clearable:""},model:{value:e.tableFrom.userName,callback:function(t){e.$set(e.tableFrom,"userName","string"===typeof t?t.trim():t)},expression:"tableFrom.userName"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:e.seachList},slot:"append"})],1)],1)],1),e._v(" "),a("div",{staticStyle:{display:"inline-block"}},[a("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:merchant:page:list"],expression:"['platform:merchant:page:list']"}],attrs:{label:"业务人员:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入业务人员",size:"small",clearable:""},model:{value:e.tableFrom.memberName,callback:function(t){e.$set(e.tableFrom,"memberName","string"===typeof t?t.trim():t)},expression:"tableFrom.memberName"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:e.seachList},slot:"append"})],1)],1)],1)]),e._v(" "),a("div",[a("div",{staticStyle:{width:"500px",display:"inline-block"}},[a("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:merchant:page:list"],expression:"['platform:merchant:page:list']"}],attrs:{label:"商品名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称",size:"small",clearable:""},model:{value:e.tableFrom.productName,callback:function(t){e.$set(e.tableFrom,"productName","string"===typeof t?t.trim():t)},expression:"tableFrom.productName"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:e.seachList},slot:"append"})],1)],1)],1),e._v(" "),a("div",{staticStyle:{display:"inline-block"}},[a("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:merchant:page:list"],expression:"['platform:merchant:page:list']"}],attrs:{label:"支付方式:"}},[a("el-select",{staticStyle:{width:"350px"},attrs:{clearable:"",placeholder:"请选择支付方式"},on:{change:function(t){return e.getList(1)}},model:{value:e.tableFrom.payType,callback:function(t){e.$set(e.tableFrom,"payType",t)},expression:"tableFrom.payType"}},e._l(e.payTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)]),e._v(" "),a("div",[a("div",{staticStyle:{width:"500px",display:"inline-block"}},[a("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:merchant:page:list"],expression:"['platform:merchant:page:list']"}],attrs:{label:"平台商品分类:"}},[a("el-cascader",{staticStyle:{width:"350px"},attrs:{options:e.categoryOptions,props:e.props,filterable:"",clearable:"","show-all-levels":!1},on:{change:function(t){return e.getList(1)}},model:{value:e.tableFrom.categoryId,callback:function(t){e.$set(e.tableFrom,"categoryId",t)},expression:"tableFrom.categoryId"}})],1)],1),e._v(" "),a("div",{staticStyle:{display:"inline-block","margin-left":"40px"}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:export:order:excel"],expression:"['platform:export:order:excel']"}],attrs:{type:"primary",size:"small"},on:{click:e.exports}},[e._v("导出")])],1)]),e._v(" "),a("div",{staticClass:"total-amount"},[e._v("总笔数:"+e._s(e.totalCount)+"笔 | 总金额:"+e._s(e.totalPrice)+"元")])],1)],1)])]),e._v(" "),a("el-card",{staticClass:"box-card"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:e.tableData.data,size:"mini","highlight-current-row":"","header-cell-style":{fontWeight:"bold"},"row-key":function(e){return e.orderNo}}},[e.checkedCities.includes("订单号")?a("el-table-column",{attrs:{label:"订单号","min-width":"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"acea-row"},[a("font",{directives:[{name:"show",rawName:"v-show",value:1===t.row.type,expression:"scope.row.type === 1"}],attrs:{color:"#f6ae02"}},[e._v("[视频号]")]),e._v(" "),a("font",{directives:[{name:"show",rawName:"v-show",value:2===t.row.type,expression:"scope.row.type === 2"}],attrs:{color:"#1890ff"}},[e._v("[秒杀]")]),e._v(" "),a("span",{staticClass:"ml5",class:parseInt(t.row.refundStatus)>0?"red":"",staticStyle:{display:"block"},domProps:{textContent:e._s(t.row.orderNo)}})],1),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:parseInt(t.row.refundStatus)>0,expression:"parseInt(scope.row.refundStatus) > 0"}],staticStyle:{color:"#ed4014",display:"block"}},[e._v(e._s(e._f("orderRefundStatusFilter")(t.row.refundStatus)))]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.row.isUserDel,expression:"scope.row.isUserDel"}],staticStyle:{color:"#ed4014",display:"block"}},[e._v("用户已删除")]),e._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.row.isMerchantDel,expression:"scope.row.isMerchantDel"}],staticStyle:{color:"#ed4014",display:"block"}},[e._v("商户已删除")])]}}],null,!1,1667154584)}):e._e(),e._v(" "),e.checkedCities.includes("商品名称")?a("el-table-column",{attrs:{prop:"productName",label:"商品名称","min-width":"150"}}):e._e(),e._v(" "),e.checkedCities.includes("商户名称")?a("el-table-column",{attrs:{prop:"merName",label:"商户名称","min-width":"150"}}):e._e(),e._v(" "),e.checkedCities.includes("收货人")?a("el-table-column",{attrs:{prop:"nickName",label:"用户昵称","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:1==t.row.isLogoff?"red":""},[e._v(e._s(t.row.nickName))]),e._v(" "),1==t.row.isLogoff?a("span",{class:1==t.row.isLogoff?"red":""},[e._v("|")]):e._e(),e._v(" "),1==t.row.isLogoff?a("span",{staticClass:"red"},[e._v("(已注销)")]):e._e()]}}],null,!1,4076123740)}):e._e(),e._v(" "),e.checkedCities.includes("实际支付")?a("el-table-column",{attrs:{prop:"payPrice",label:"实际支付","min-width":"80"}}):e._e(),e._v(" "),e.checkedCities.includes("支付方式")?a("el-table-column",{attrs:{label:"支付方式","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("payTypeFilter")(t.row.payType)))])]}}],null,!1,2281245087)}):e._e(),e._v(" "),e.checkedCities.includes("订单状态")?a("el-table-column",{attrs:{label:"订单状态","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[3===t.row.refundStatus?a("span",{staticClass:"fontColor3"},[e._v("已退款")]):a("span",[e._v(e._s(e._f("orderStatusFilter")(t.row.status)))])]}}],null,!1,3658376581)}):e._e(),e._v(" "),e.checkedCities.includes("保费类")?a("el-table-column",{attrs:{label:"保费类","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.row.insuranceType?"保单保费":1===t.row.insuranceType?"保全保费":"")+"\n ")]}}],null,!1,1601194059)}):e._e(),e._v(" "),e.checkedCities.includes("下单时间")?a("el-table-column",{attrs:{prop:"createTime",label:"下单时间","min-width":"140"}}):e._e(),e._v(" "),e.checkedCities.includes("业务人员")?a("el-table-column",{attrs:{prop:"memberName",label:"业务人员","min-width":"150"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right",align:"center","render-header":e.renderHeader},scopedSlots:e._u([{key:"default",fn:function(t){return[e.checkPermi(["platform:order:info"])?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return e.onOrderDetails(t.row.orderNo)}}},[e._v("订单详情")]):e._e()]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.card_select_show,expression:"card_select_show"}],staticClass:"card_abs"},[[a("div",{staticClass:"cell_ht"},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.checkSave()}}},[e._v("保存")])],1),e._v(" "),a("el-checkbox-group",{on:{change:e.handleCheckedCitiesChange},model:{value:e.checkedCities,callback:function(t){e.checkedCities=t},expression:"checkedCities"}},e._l(e.columnData,(function(t){return a("el-checkbox",{key:t,staticClass:"check_cell",attrs:{label:t}},[e._v(e._s(t))])})),1)]],2),e._v(" "),a("details-from",{ref:"orderDetail",attrs:{orderNo:e.orderNo}})],1)},i=[],s=a("f8b7"),r=a("7ff6"),o=a("6ed5"),n=a("ed08"),c=a("e350"),d={name:"orderlistDetails",components:{detailsFrom:r["a"],merchantName:o["a"]},data:function(){return{options:[{value:0,label:"全部"},{value:2,label:"商城订单"},{value:1,label:"视频号订单"}],RefuseVisible:!1,RefuseData:{},orderNo:"",refundVisible:!1,refundData:{},dialogVisibleJI:!1,tableDataLog:{data:[],total:0},tableFromLog:{page:1,limit:10,orderNo:0},LogLoading:!1,isCreate:1,editData:null,dialogVisible:!1,tableData:{data:[],total:0},listLoading:!0,tableFrom:{categoryId:"",productName:"",userName:"",memberName:"",payType:"",insuranceType:"",status:"all",dateLimit:"",orderNo:"",page:1,limit:20,merId:"",type:""},orderChartType:{},timeVal:[],fromList:this.$constants.fromList,fromType:[{value:"",text:"全部"},{value:"0",text:"普通"},{value:"1",text:"视频号"},{value:"2",text:"秒杀"},{value:"50",text:"e站风评"}],insuranceTypeOptions:[{value:"",label:"全部"},{value:0,label:"保单保费"},{value:1,label:"保全保费"}],payTypeOptions:[{value:"wallet",label:"企业钱包"},{value:"bailianbao",label:"百联保"}],categoryOptions:[],props:{children:"childList",label:"name",value:"id",multiple:!1,emitPath:!1},selectionList:[],ids:"",orderids:"",cardLists:[],isWriteOff:Object(n["e"])(),proType:0,active:!1,card_select_show:!1,checkAll:!1,checkedCities:["订单号","订单类型","商品名称","商户名称","收货人","实际支付","支付方式","订单状态","保费类","下单时间","业务人员"],columnData:["订单号","订单类型","商品名称","商户名称","收货人","实际支付","支付方式","订单状态","保费类","下单时间","业务人员"],isIndeterminate:!0,totalCount:"",totalPrice:""}},mounted:function(){Object(c["a"])(["platform:order:page:list"])&&this.getList(),Object(c["a"])(["platform:order:status:num"])&&this.getOrderStatusNum(),this.getCategoryList()},methods:{checkPermi:c["a"],getMerId:function(e){this.tableFrom.merId=e,this.seachList()},resetFormRefundhandler:function(){this.refundVisible=!1},resetFormRefusehand:function(){this.RefuseVisible=!1},resetForm:function(e){this.dialogVisible=!1},seachList:function(){this.tableFrom.page=1,this.getList(),this.getOrderStatusNum()},onOrderDetails:function(e){this.orderNo=e,this.$refs.orderDetail.getDetail(e),this.$refs.orderDetail.getOrderInvoiceList(e),this.$refs.orderDetail.dialogVisible=!0},handleClose:function(){this.dialogVisible=!1},selectChange:function(e){this.timeVal=[],this.tableFrom.page=1,this.getList(),this.getOrderStatusNum()},onchangeTime:function(e){this.timeVal=e,this.tableFrom.dateLimit=e?this.timeVal.join(","):"",this.tableFrom.page=1,this.getList(),this.getOrderStatusNum()},getList:function(){var e=this;this.listLoading=!0,Object(s["f"])(this.tableFrom).then((function(t){e.tableData.data=t.list||[],e.tableData.total=t.total,e.listLoading=!1,e.checkedCities=e.$cache.local.has("order_stroge")?e.$cache.local.getJSON("order_stroge"):e.checkedCities,e.getOrderSummary()})).catch((function(){e.listLoading=!1}))},getOrderSummary:function(){var e=this;Object(s["i"])(this.tableFrom).then((function(t){e.totalCount=t.totalCount,e.totalPrice=t.totalPrice})).catch((function(e){console.log(e)}))},getCategoryList:function(){var e=this;Object(s["a"])().then((function(t){e.categoryOptions=e.changeNodes(t)})).catch((function(e){console.log(e)}))},changeNodes:function(e){if(e.length>0)for(var t=0;t0&&t