chunk-13e137bc.1afa85fd.js 23 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-13e137bc"],{"0a49":function(e,t,n){var a=n("9b43"),r=n("626a"),i=n("4bf8"),o=n("9def"),c=n("cd1c");e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,s=4==e,p=6==e,f=5==e||p,d=t||c;return function(t,c,h){for(var b,g,y=i(t),m=r(y),v=a(c,h,3),O=o(m.length),w=0,k=n?d(t,O):u?d(t,0):void 0;O>w;w++)if((f||w in m)&&(b=m[w],g=v(b,w,y),e))if(n)k[w]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return w;case 2:k.push(b)}else if(s)return!1;return p?-1:l||s?s:k}}},1010:function(e,t,n){"use strict";n("d10d")},1169:function(e,t,n){var a=n("2d95");e.exports=Array.isArray||function(e){return"Array"==a(e)}},"1bcb":function(e,t,n){"use strict";n("4e8e")},"1f4a":function(e,t,n){},"20d6":function(e,t,n){"use strict";var a=n("5ca1"),r=n("0a49")(6),i="findIndex",o=!0;i in[]&&Array(1)[i]((function(){o=!1})),a(a.P+a.F*o,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},"3a10":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"i",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"j",(function(){return l})),n.d(t,"m",(function(){return s})),n.d(t,"f",(function(){return p})),n.d(t,"k",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"l",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"a",(function(){return g}));var a=n("a27e"),r=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/fetchByCustomerId",data:e})},i=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/user/performance",data:e})},o=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/fetch",data:e})},c=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/findOrderByOrderId",data:e})},u=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/fetchOrderProducts",data:e})},l=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/payment?lang=en-us",data:e})},s=function(e){var t=e.order_product_id,n=e.report;return Object(a["a"])({method:"POST",url:"/api.php/api/order/upload_numerology?lang=en-us",data:{order_product_id:t,report:n}})},p=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/fetchWaitGatherAnnualFee?lang=en-us",data:e})},f=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/paymentAnnualFee?lang=en-us",data:e})},d=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/fetchOrderByReturn?lang=en-us",data:e})},h=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/returnOrderProduct?lang=en-us",data:e})},b=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/findByOrderNo?lang=en-us",data:e})},g=function(e){return Object(a["a"])({method:"POST",url:"/api.php/api/order/exchange?lang=en-us",data:e})}},"44e1":function(e,t,n){"use strict";var a={};n.r(a),n.d(a,"layout",(function(){return d})),n.d(a,"dyiautocom",(function(){return w})),n.d(a,"dyicascader",(function(){return P})),n.d(a,"dyidaterange",(function(){return A})),n.d(a,"dyiinput",(function(){return I})),n.d(a,"dyinumberrange",(function(){return J})),n.d(a,"dyiselect",(function(){return Z})),n.d(a,"dyifilterSelect",(function(){return ce})),n.d(a,"dyiselfdaterange",(function(){return oe})),n.d(a,"dyinewdaterange",(function(){return ue}));n("7f7f");var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"searchV2-main"},[e.searchConfig&&e.searchConfig.length?t("div",{staticClass:"search-div",class:e.showBtnUp&&e.downActive?"h70":""},[t("div",{staticClass:"search-inputs"},[e._l(e.searchConfig,(function(n,a){return["slot"===n.type?[t("layout",{key:a,attrs:{label:n.label,showLabel:e.showLabel}},[e._t(n.name)],2)]:t("dyi"+n.type,{key:a,tag:"component",attrs:{config:n,showLabel:e.showLabel},on:{change:e.searchChange},model:{value:e.searchData,callback:function(t){e.searchData=t},expression:"searchData"}})]}))],2),t("div",{staticClass:"search-form-btn"},[e.config.hideSearchBtn?e._e():t("el-button",{staticClass:"buttonCtrl",attrs:{type:"primary"},on:{click:function(t){return e.onSearch()}}},[e._v("搜索")]),e.config.hideResetBtn?e._e():t("el-button",{staticClass:"buttonCtrl",attrs:{type:"default"},on:{click:e.clearSearch}},[e._v("重置")]),e.showBtnUp?t("el-button",{attrs:{type:"text"},on:{click:e.changehide}},[e._v("\n "+e._s(e.downActive?"展开":"收起")+"\n "),t("i",{staticClass:"el-icon--right",class:e.downActive?"el-icon-arrow-down":"el-icon-arrow-up"})]):e._e()],1)]):e._e()])},i=[],o=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),c=function(){var e=this,t=e._self._c;return t("div",{staticClass:"search-form-item"},[e.showLabel?t("div",{staticClass:"label"},[e._t("label",(function(){return[e._v("\n "+e._s(e.label)+"\n ")]}))],2):e._e(),t("div",{staticClass:"formCon"},[e._t("default")],2)])},u=[],l={name:"layout",props:{label:{type:String,default:""},showLabel:{type:Boolean,default:!0}}},s=l,p=(n("1bcb"),n("2877")),f=Object(p["a"])(s,c,u,!1,null,null,null),d=f.exports,h=function(){var e=this,t=e._self._c;return t("layout",{attrs:{label:e.config.label,showLabel:e.showLabel}},[t("el-autocomplete",{staticClass:"formInput",attrs:{"fetch-suggestions":e.querySearchAsync,placeholder:e.config.placeholder},on:{change:e.onChange},model:{value:e.inputValue[e.config.key],callback:function(t){e.$set(e.inputValue,e.config.key,t)},expression:"inputValue[config.key]"}})],1)},b=[],g=n("cbc8"),y={mixins:[g["a"]],props:{config:{type:Object,default:function(){return{}}},showLabel:{type:Boolean,default:!0}},components:{layout:d},methods:{onEndDateChange:function(e,t){this.inputValue[t]=e+86399e3},onChange:function(e){this.$emit("change",e,this.config)}}},m={name:"autocom",mixins:[y],methods:{querySearchAsync:function(e,t){var n=this.config.data||[],a=n;e&&(a=n.filter((function(t){return 0===t.value.toLowerCase().indexOf(e.toLowerCase())}))),t(a)}}},v=m,O=Object(p["a"])(v,h,b,!1,null,null,null),w=O.exports;function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=function(){var e=this,t=e._self._c;return t("layout",{attrs:{label:e.config.label,showLabel:e.showLabel}},[t("el-cascader",e._b({attrs:{placeholder:e.config.placeholder,options:e.config.data,props:S({label:"name",value:"id"},e.config.props),clearable:""},on:{change:e.onChange},model:{value:e.inputValue[e.config.key],callback:function(t){e.$set(e.inputValue,e.config.key,t)},expression:"inputValue[config.key]"}},"el-cascader",e.config.attr,!1))],1)},C=[],_={name:"cascader",mixins:[y]},V=_,x=Object(p["a"])(V,j,C,!1,null,null,null),P=x.exports,L=function(){var e=this,t=e._self._c;return t("layout",{attrs:{label:e.config.label,showLabel:e.showLabel}},[t("el-date-picker",{staticClass:"datePicker",attrs:{type:"daterange","value-format":"timestamp","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)},T=[],D={name:"daterange",mixins:[y],data:function(){return{time:[]}},watch:{time:function(e){var t=this.config.key;e||(e=[]),this.inputValue[t+"Start"]=e[0],this.inputValue[t+"End"]=e[1]?e[1]+86399e3:void 0},inputValue:function(){var e=this.config.key;this.time=[this.inputValue[e+"Start"],this.inputValue[e+"End"]]}},methods:{onChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.inputValue,e.config)}))}}},E=D,$=(n("1010"),Object(p["a"])(E,L,T,!1,null,"6e3329b0",null)),A=$.exports,B=function(){var e=this,t=e._self._c;return t("layout",{attrs:{label:e.config.label,showLabel:e.showLabel}},[t("el-input",{ref:"input",staticClass:"formInput",attrs:{type:"input",maxlength:e.config.maxSize||50,placeholder:e.config.placeholder,clearable:""},on:{clear:e.onChange},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onChange.apply(null,arguments)}},model:{value:e.inputValue[e.config.key],callback:function(t){e.$set(e.inputValue,e.config.key,"string"===typeof t?t.trim():t)},expression:"inputValue[config.key]"}})],1)},R=[],F={name:"dyiinput",mixins:[y],data:function(){return{}},methods:{onChange:function(){this.$emit("change",this.inputValue[this.config.key],this.config)}}},M=F,N=Object(p["a"])(M,B,R,!1,null,null,null),I=N.exports,z=function(){var e=this,t=e._self._c;return t("layout",{attrs:{label:e.config.label,showLabel:e.showLabel}},[t("el-input",{staticClass:"numberrange",attrs:{placeholder:"请输入最低值",clearable:""},model:{value:e.inputValue[e.config.key],callback:function(t){e.$set(e.inputValue,e.config.key,"string"===typeof t?t.trim():t)},expression:"inputValue[config.key]"}}),e._v("\n -\n "),t("el-input",{staticClass:"numberrange",attrs:{placeholder:"请输入最高值",clearable:""},model:{value:e.inputValue[e.config.key1],callback:function(t){e.$set(e.inputValue,e.config.key1,"string"===typeof t?t.trim():t)},expression:"inputValue[config.key1]"}})],1)},q=[],G={name:"numberrange",mixins:[y]},H=G,U=Object(p["a"])(H,z,q,!1,null,null,null),J=U.exports,W=function(){var e=this,t=e._self._c;return t("layout",{attrs:{label:e.config.label,showLabel:e.showLabel}},[t("el-select",{attrs:{filterable:"",placeholder:e.config.placeholder||"请选择",clearable:"",multiple:e.config.multiple,"collapse-tags":""},on:{change:e.onChange},model:{value:e.inputValue[e.config.key],callback:function(t){e.$set(e.inputValue,e.config.key,t)},expression:"inputValue[config.key]"}},e._l(e.config.data,(function(e){return t("el-option",{key:"opt"+e.id,attrs:{label:e.value||e.name,value:e.id}})})),1)],1)},K=[],Y={name:"dyiselect",mixins:[y]},Q=Y,X=(n("ce68"),Object(p["a"])(Q,W,K,!1,null,"4c5733cf",null)),Z=X.exports,ee=function(){var e=this,t=e._self._c;return t("layout",{attrs:{label:e.config.label,showLabel:e.showLabel}},["selfdaterange"===e.config.type?t("el-radio-group",{attrs:{slot:"label",size:"mini"},on:{change:e.onRadioChange},slot:"label",model:{value:e.selectType,callback:function(t){e.selectType=t},expression:"selectType"}},[t("el-radio-button",{attrs:{label:"this"}},[e._v("本"+e._s(e.dateTypeName))]),t("el-radio-button",{attrs:{label:"custom"}},[e._v("自定义")])],1):e._e(),[t("el-date-picker",{staticClass:"datePicker",attrs:{type:e.config.dateType||"date",placeholder:e.config.placeholder||"请选择","value-format":"timestamp","picker-options":e.pickerStartOptions,disabled:e.disabled},model:{value:e.inputValue[e.config.key+"Start"],callback:function(t){e.$set(e.inputValue,e.config.key+"Start",t)},expression:"inputValue[config.key + 'Start']"}}),t("span",[e._v(" - ")]),t("el-date-picker",{staticClass:"datePicker",attrs:{type:e.config.dateType||"date",placeholder:e.config.placeholder||"请选择","value-format":"timestamp","picker-options":e.pickerEndOptions,disabled:e.disabled},on:{change:function(t){return e.onEndDateChange(t,e.config.key+"End")}},model:{value:e.inputValue[e.config.key+"End"],callback:function(t){e.$set(e.inputValue,e.config.key+"End",t)},expression:"inputValue[config.key + 'End']"}})]],2)},te=[],ne={month:"月",date:"日"},ae={mixins:[y],data:function(){var e=this;return{selectType:"this",pickerStartOptions:{disabledDate:function(t){var n=null;if(Object.keys(e.inputValue).map((function(t){var a=e.inputValue[t];"End"==t.slice(-3)&&a&&(n=a)})),n)return t.getTime()>n}},pickerEndOptions:{disabledDate:function(t){var n=null;return Object.keys(e.inputValue).map((function(t){var a=e.inputValue[t];"Start"==t.slice(-5)&&a&&(n=a)})),t.getTime()<n}}}},computed:{dateTypeName:function(){return ne[this.config.dateType]},disabled:function(){return"selfdaterange"===this.config.type&&"this"===this.selectType}},methods:{getCurrentMonthLast:function(){var e=new Date,t=e.getMonth(),n=++t,a=new Date(e.getFullYear(),n,1),r=864e5;return new Date(a-r).getTime()+864e5-1},getCurrentMonthFirst:function(){var e=new Date;return e.setDate(1),new Date(new Date(e).toLocaleDateString()).getTime()},onRadioChange:function(e){if("this"==e)switch(this.config.dateType){case"month":this.inputValue[this.config.key+"Start"]=+this.getCurrentMonthFirst(),this.inputValue[this.config.key+"End"]=+this.getCurrentMonthLast();break;case"date":this.inputValue[this.config.key+"Start"]=+this.getCurrentDayFirst(),this.inputValue[this.config.key+"End"]=+this.getCurrentDayLast();break;default:this.inputValue[this.config.key+"Start"]=this.inputValue[this.config.key+"End"]=null;break}this.onChange([this.inputValue[this.config.key+"Start"],this.inputValue[this.config.key+"End"]])},onEndDateChange:function(e,t){this.inputValue[t]&&(this.inputValue[t]=e+86399e3)}},mounted:function(){this.onRadioChange(this.selectType)}},re=ae,ie=Object(p["a"])(re,ee,te,!1,null,null,null),oe=ie.exports,ce=Z,ue=oe;function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pe={name:"commonSearch",props:{searchConfig:Array,searchData:Object,showBtnUp:{type:Boolean,default:!1},config:{type:Object,default:function(){return{showResetBtn:!0,showSearchBtn:!1,autoSearch:!0}}},history:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!0}},data:function(){return{downActive:!0}},components:se({},a),methods:{clearSearch:function(){var e={};for(var t in this.searchData)Object.hasOwnProperty.call(this.searchData,t)&&(e[t]="");this.$emit("clear"),this.onSearch(e)},onSearch:function(e){this.history&&this.$router.push({path:this.$route.path,query:se(se({},this.$route.query),e||this.searchData)}),this.$emit("search")},changehide:function(){this.downActive=!this.downActive},searchChange:function(){this.config.autoSearch&&this.onSearch()}},created:function(){if(this.history){for(var e in this.$route.query)Object.hasOwnProperty.call(this.$route.query,e)&&(this.searchData[e]=this.$route.query[e]);this.$emit("search")}}},fe=pe,de=(n("b558"),Object(p["a"])(fe,r,i,!1,null,"4a62edf2",null));t["a"]=de.exports},"456d":function(e,t,n){var a=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(e){return r(a(e))}}))},"4e8e":function(e,t,n){},"4f68":function(e,t,n){"use strict";n("eb46")},6206:function(e,t,n){},"7f7f":function(e,t,n){var a=n("86cc").f,r=Function.prototype,i=/^\s*function ([^ (]*)/,o="name";o in r||n("9e1e")&&a(r,o,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},"8e6e":function(e,t,n){var a=n("5ca1"),r=n("990b"),i=n("6821"),o=n("11e9"),c=n("f1ae");a(a.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,a=i(e),u=o.f,l=r(a),s={},p=0;while(l.length>p)n=u(a,t=l[p++]),void 0!==n&&c(s,t,n);return s}})},"990b":function(e,t,n){var a=n("9093"),r=n("2621"),i=n("cb7c"),o=n("7726").Reflect;e.exports=o&&o.ownKeys||function(e){var t=a.f(i(e)),n=r.f;return n?t.concat(n(e)):t}},a21b:function(e,t,n){"use strict";n("6206")},ac6a:function(e,t,n){for(var a=n("cadf"),r=n("0d58"),i=n("2aba"),o=n("7726"),c=n("32e9"),u=n("84f2"),l=n("2b4c"),s=l("iterator"),p=l("toStringTag"),f=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=r(d),b=0;b<h.length;b++){var g,y=h[b],m=d[y],v=o[y],O=v&&v.prototype;if(O&&(O[s]||c(O,s,f),O[p]||c(O,p,y),u[y]=f,m))for(g in a)O[g]||i(O,g,a[g],!0)}},ade3:function(e,t,n){"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function r(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function i(e){var t=r(e,"string");return"symbol"===a(t)?t:String(t)}function o(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return o}))},b236:function(e,t,n){"use strict";var a=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.inputValue,width:"880px"},on:{"update:visible":function(t){e.inputValue=t}}},[t("div",{staticClass:"selectOrder-div"},[t("div",{staticClass:"table-div"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.listResult}},[t("el-table-column",{attrs:{prop:"order_no",label:"订单编号",align:"center"}}),t("el-table-column",{attrs:{prop:"advisers",label:"销售顾问",align:"center"}}),t("el-table-column",{attrs:{prop:"product_name",label:"商品名称",align:"center"}}),t("el-table-column",{attrs:{prop:"create_time",label:"创建时间",align:"center"}}),t("el-table-column",{attrs:{prop:"transaction_price",label:"商品金额",align:"center"}}),t("el-table-column",{attrs:{label:"操作",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[e.isView?[t("el-button",{staticStyle:{color:"#165DFF"},attrs:{type:"text"},on:{click:function(t){return e.viewClick(n.row)}}},[e._v("查看\n ")])]:[1==n.row.is_upload_numerology?[n.row.is_upload?t("el-button",{key:"dis-btn",attrs:{type:"text",disabled:""}},[e._v("已上传\n ")]):t("el-upload",{staticClass:"upload-demo",attrs:{action:"","http-request":e.uploadFunc.bind(this,n.row),"show-file-list":!1,limit:1}},[t("el-button",{staticStyle:{color:"#165DFF"},attrs:{type:"text"}},[e._v("上传\n ")])],1)]:e._e()]]}}])})],1)],1),t("div",{staticClass:"table-pager"},[t("el-pagination",{attrs:{background:"",layout:"total, prev, pager, next, sizes, jumper",total:e.total},on:{"current-change":e.onChangePage,"size-change":e.onChangeSize}})],1)]),t("img",{attrs:{url:e.url}}),t("preview",{attrs:{url:e.url},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},r=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("20d6"),n("ade3")),o=(n("96cf"),n("1da1")),c=n("cbc8"),u=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.inputValue,width:"880px","append-to-body":""},on:{"update:visible":function(t){e.inputValue=t},opened:e.opened}},[t("div",{staticClass:"selectOrder-div",attrs:{id:"pre-img"}},[t("img",{key:e.url,attrs:{src:e.url,height:"100%"}})])])},l=[],s={mixins:[c["a"]],props:["url"],data:function(){return{}},methods:{opened:function(){}}},p=s,f=(n("4f68"),n("2877")),d=Object(f["a"])(p,u,l,!1,null,null,null),h=d.exports,b=n("3a10"),g=n("a27e"),y=function(e){return Object(g["a"])({headers:{"Content-Type":"multipart/form-data"},url:"/api.php/api/upload",method:"post",data:e})};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O={mixins:[c["a"]],props:{isView:{type:Boolean,default:!1},isWait:{type:Boolean,default:!1}},data:function(){return{url:"",previewVisible:!1,loading:!1,list:[],page:1,size:10,total:0}},computed:{listResult:function(){return this.list}},components:{preview:h},methods:{onChangePage:function(e){this.page=e,this.setOrderId(this.oid)},onChangeSize:function(e){this.size=e,this.setOrderId(this.oid)},setOrderId:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,this.oid=t,e.next=4,Object(b["d"])({order_id:t,page:this.page,size:this.size});case 4:n=e.sent,200===n.data.code?(this.list=n.data.data[0].map((function(e){return v(v({},e),{},{advisers:[e.adviser_1_name,e.adviser_2_name].filter((function(e){return null!=e})).join(",")})})),this.total=n.data.data[1]):this.$message({message:n.data.message,type:"warning"}),this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),uploadFunc:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n){var a,r,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=new FormData,a.append("file",n.file),e.next=4,y(a).catch((function(e){i.$message.error("上传失败")}));case 4:r=e.sent,200===r.data.code&&this.uploadNumerology(t.id,r.data.data);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}(),uploadNumerology:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,n){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Object(b["m"])({order_product_id:t,report:n}).then((function(e){if(200===e.data.code){var n=a.list.findIndex((function(e){return e.id===t}));n>=0&&(a.list[n].is_upload=1),a.$message.success("上传成功")}else a.$message.error(e.data.message)}));case 1:case"end":return e.stop()}}),e)})));function t(t,n){return e.apply(this,arguments)}return t}(),viewClick:function(e){var t=this;t.url=e.url,setTimeout((function(){t.previewVisible=!0}))}}},w=O,k=(n("a21b"),Object(f["a"])(w,a,r,!1,null,null,null));t["a"]=k.exports},b251:function(e,t,n){},b558:function(e,t,n){"use strict";n("b251")},cbc8:function(e,t,n){"use strict";n("c5f6");t["a"]={model:{prop:"value",event:"input"},props:{value:{type:[String,Number,Array,Object,Boolean]}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e},inputValue:function(e){this.$emit("input",e)}}}},cd1c:function(e,t,n){var a=n("e853");e.exports=function(e,t){return new(a(e))(t)}},ce68:function(e,t,n){"use strict";n("1f4a")},d10d:function(e,t,n){},e853:function(e,t,n){var a=n("d3f4"),r=n("1169"),i=n("2b4c")("species");e.exports=function(e){var t;return r(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!r(t.prototype)||(t=void 0),a(t)&&(t=t[i],null===t&&(t=void 0))),void 0===t?Array:t}},eb46:function(e,t,n){},f1ae:function(e,t,n){"use strict";var a=n("86cc"),r=n("4630");e.exports=function(e,t,n){t in e?a.f(e,t,r(0,n)):e[t]=n}}}]);
  2. //# sourceMappingURL=chunk-13e137bc.1afa85fd.js.map