(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["953fd3a0"],{"4af9":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"full-height bg-white page-content content relative-position"},[r("div",{directives:[{name:"show",rawName:"v-show",value:!t.url,expression:"!url"}],staticClass:"row flex",staticStyle:{padding:"10px"}},t._l(t.customList,(function(e,n){return r("div",{key:n,staticClass:"card-item col-lg-card col-md-4 col-sm-6",on:{click:function(r){return t.goLink(e)}}},[r("div",{staticClass:"card"},[r("div",{staticClass:"mark"}),r("span",[t._v(t._s(e.reportingName))])])])})),0),r("div",{directives:[{name:"show",rawName:"v-show",value:t.url,expression:"url"}],staticClass:"detail"},[r("div",{staticClass:"back"},[r("q-btn",{staticClass:"btn",staticStyle:{width:"96px"},attrs:{unelevated:"",color:"primary",label:"返回"},on:{click:function(e){t.url=""}}})],1),r("iframe",{staticStyle:{flex:"1"},attrs:{src:t.url,width:"100%",name:"demo",frameborder:"0",scrolling:"auto"}})])])},a=[],s=r("c973"),o=r.n(s),c=r("a34a"),i=r.n(c),u=r("b5a2"),l=r("4ac6"),d={name:"custom-report",data:function(){return{token:"",url:"",customList:[]}},methods:{goLink:function(t){var e=Object(l["l"])(Object(l["f"])());this.url=t.reportingUrl+"&tenantId=".concat(this.token,"&tenantId01=").concat(e.tenant_id)},getReportingCompanyList:function(){var t=this;return o()(i.a.mark((function e(){var r;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["b"])();case 2:r=e.sent,"1200"===r.code&&(t.customList=r.data);case 4:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.getReportingCompanyList(),this.token=Object(l["f"])()}},p=d,v=(r("7f21"),r("2877")),f=Object(v["a"])(p,n,a,!1,null,"741b4342",null);e["default"]=f.exports},"7f21":function(t,e,r){"use strict";var n=r("b06d"),a=r.n(n);a.a},b06d:function(t,e,r){},b5a2:function(t,e,r){"use strict";r.d(e,"b",(function(){return l}));r("06db"),r("551c");var n=r("758b"),a=r("b21a"),s=a["a"].reportUrl;function o(t){var e="process/v1/products:searchKey",r={params:{searchKey:t}};return n["a"].get(e,r).then((function(t){return Promise.resolve(t)}))}function c(t){var e="planning/v1/workshop_plannings/order_numbers:search",r={params:{orderNumber:t}};return n["a"].get(e,r).then((function(t){return Promise.resolve(t)}))}function i(t){var e="".concat(s,"/v1/produce_reports"),r={params:t};return n["a"].get(e,r).then((function(t){return Promise.resolve(t)}))}function u(t){var e="".concat(s,"/v1/produce_reports/excel:export");return n["a"].post(e,t).then((function(t){return Promise.resolve(t)}))}function l(t){var e="".concat(s,"/v1/list_custom_reporting");return n["a"].get(e,t).then((function(t){return Promise.resolve(t)}))}e["a"]={getSearchMaterials:o,getSearchOrder:c,getProduceReports:i,exportProduceReports:u}}}]);