12 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[70,38],{535:function(t,e,n){"use strict";var r=n(2),o=n(27),l=n(10),c=n(5),path=n(320),d=n(4),_=n(119),f=n(13),m=n(217),v=n(58),h=n(118),y=n(319),S=n(3),w=n(96).f,N=n(59).f,E=n(28).f,k=n(536),I=n(321).trim,C="Number",T=c[C],x=path[C],D=T.prototype,M=c.TypeError,O=d("".slice),A=d("".charCodeAt),Q=function(t){var e,n,r,o,l,c,d,code,_=y(t,"number");if(h(_))throw new M("Cannot convert a Symbol value to a number");if("string"==typeof _&&_.length>2)if(_=I(_),43===(e=A(_,0))||45===e){if(88===(n=A(_,2))||120===n)return NaN}else if(48===e){switch(A(_,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+_}for(c=(l=O(_,2)).length,d=0;d<c;d++)if((code=A(l,d))<48||code>o)return NaN;return parseInt(l,r)}return+_},F=_(C,!T(" 0o1")||!T("0b1")||T("+0x1")),P=function(t){var e,n=arguments.length<1?0:T(function(t){var e=y(t,"number");return"bigint"==typeof e?e:Q(e)}(t));return v(D,e=this)&&S((function(){k(e)}))?m(Object(n),this,P):n};P.prototype=D,F&&!o&&(D.constructor=P),r({global:!0,constructor:!0,wrap:!0,forced:F},{Number:P});var G=function(t,source){for(var e,n=l?w(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;n.length>r;r++)f(source,e=n[r])&&!f(t,e)&&E(t,e,N(source,e))};o&&x&&G(path[C],x),(F||o)&&G(path[C],T)},536:function(t,e,n){"use strict";var r=n(4);t.exports=r(1..valueOf)},537:function(t,e,n){"use strict";var r=n(2),o=n(4),l=n(80),c=n(536),d=n(322),_=n(3),f=RangeError,m=String,v=Math.floor,h=o(d),y=o("".slice),S=o(1..toFixed),w=function(t,e,n){return 0===e?n:e%2==1?w(t,e-1,n*t):w(t*t,e/2,n)},N=function(data,t,e){for(var n=-1,r=e;++n<6;)r+=t*data[n],data[n]=r%1e7,r=v(r/1e7)},E=function(data,t){for(var e=6,n=0;--e>=0;)n+=data[e],data[e]=v(n/t),n=n%t*1e7},k=function(data){for(var t=6,s="";--t>=0;)if(""!==s||0===t||0!==data[t]){var e=m(data[t]);s=""===s?e:s+h("0",7-e.length)+e}return s};r({target:"Number",proto:!0,forced:_((function(){return"0.000"!==S(8e-5,3)||"1"!==S(.9,0)||"1.25"!==S(1.255,2)||"1000000000000000128"!==S(0xde0b6b3a7640080,0)}))||!_((function(){S({})}))},{toFixed:function(t){var e,n,r,o,d=c(this),_=l(t),data=[0,0,0,0,0,0],v="",S="0";if(_<0||_>20)throw new f("Incorrect fraction digits");if(d!=d)return"NaN";if(d<=-1e21||d>=1e21)return m(d);if(d<0&&(v="-",d=-d),d>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(d*w(2,69,1))-69)<0?d*w(2,-e,1):d/w(2,e,1),n*=4503599627370496,(e=52-e)>0){for(N(data,0,n),r=_;r>=7;)N(data,1e7,0),r-=7;for(N(data,w(10,r,1),0),r=e-1;r>=23;)E(data,1<<23),r-=23;E(data,1<<r),N(data,1,1),E(data,2),S=k(data)}else N(data,0,n),N(data,1<<-e,0),S=k(data)+h("0",_);return S=_>0?v+((o=S.length)<=_?"0."+h("0",_-o)+S:y(S,0,o-_)+"."+y(S,o-_)):v+S}})},545:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=15),+parseFloat(Number(t).toPrecision(e))}function o(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function l(t){if(-1===t.toString().indexOf("e"))return Number(t.toString().replace(".",""));var e=o(t);return e>0?r(Number(t)*Math.pow(10,e)):Number(t)}function c(t){h&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)&&console.warn(t+" is beyond boundary when transfer to integer, the results may not be accurate")}function d(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e.slice(1).reduce((function(e,n){return t(e,n)}),r)}}n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return m})),n.d(e,"d",(function(){return _})),n.d(e,"a",(function(){return v}));var _=d((function(t,e){var n=l(t),r=l(e),d=o(t)+o(e),_=n*r;return c(_),_/Math.pow(10,d)})),f=d((function(t,e){var n=Math.pow(10,Math.max(o(t),o(e)));return(_(t,n)+_(e,n))/n})),m=d((function(t,e){var n=Math.pow(10,Math.max(o(t),o(e)));return(_(t,n)-_(e,n))/n})),v=d((function(t,e){var n=l(t),d=l(e);return c(n),c(d),_(n/d,r(Math.pow(10,o(e)-o(t))))}));var h=!0},582:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n(44),n(62),n(583),n(535),n(584),n(325),n(11),n(22),n(98),n(545);function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return Math.round(function(t){return parseFloat((t*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:100)).toPrecision(12))}(t,e))/e}},583:function(t,e,n){"use strict";n(2)({target:"Math",stat:!0},{trunc:n(324)})},584:function(t,e,n){"use strict";n(2)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},661:function(t,e,n){t.exports={}},662:function(t,e,n){t.exports={}},763:function(t,e,n){"use strict";n(661)},764:function(t,e,n){"use strict";n(662)},809:function(t,e,n){"use strict";n.r(e);n(535),n(537),n(48),n(22),n(49);var r=n(582),o={name:"EnquiryDetail",components:{},filters:{},props:{},data:function(){return{activeEnquiryMail:"quote",loading:!1,detail:{orderInformation:[]},stepConfig:{"Enquiry Created":1,"Enquiry Confirmed":2,"Quote Drafted":3,"Quote Sent":4,"Order Confirmed":5,"Enquiry Closed":6}}},computed:{computedEnquiryState:function(){return this.detail.Customize_Pipeline_Stage?this.stepConfig[this.detail.Customize_Pipeline_Stage]:0}},watch:{},created:function(){this.getDetail()},mounted:function(){},updated:function(){},beforeDestroy:function(){},methods:{transformNumber:function(t){return Object(r.a)(Number(t)).toFixed(2)},formatStepDesc:function(t){return this.$utils.formatTime(t,"DD/MM/YYYY")},getDetail:function(){var t,e=this;this.$axios.post("/uk-api/crmdata/enquiries_detail",{accounts_id:(null===(t=this.$store.state.userInfo)||void 0===t?void 0:t.crm_accounts_id)||"",id:this.$route.query.id}).then((function(t){if(1==t.code){if("4002"===t.result||null===t.result)return console.log("id不一致 || 数据空"),void e.$router.replace("/");var n=JSON.parse(JSON.stringify(t.result));n.Orders_Information&&n.Orders_Information.Reference?n.orderInformation=[n.Orders_Information]:n.orderInformation=[],e.detail=n,e.detail.Email_link2&&e.detail.Email_link2.length||(e.activeEnquiryMail="enquiry")}})).catch((function(t){console.log(t,"eee"),10100===t.response.data.code&&(e.$router.replace("/"),console.log("not login"))}))},navToOrderDetail:function(t){console.log(t);var e=this.$router.resolve({path:"/home/myDetail/orderDetail",query:{id:t.sales_orders_id}});window.open(e.href,"_blank")}}},l=(n(763),n(764),n(21)),component=Object(l.a)(o,(function(){var t,e=this,n=e._self._c;return n("div",{staticClass:"page-enquiry-detail com-main com-margin-auto"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[n("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[e._v("Home")]),e._v(" "),n("el-breadcrumb-item",{attrs:{to:{path:"/home/myDetail",query:{type:"enquiry"}}}},[e._v("My Enquiry")]),e._v(" "),n("el-breadcrumb-item",[e._v("detail")])],1),e._v(" "),e.loading?n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadiding,expression:"loadiding"}],staticClass:"com-loading"}):e._e(),e._v(" "),e.loading?e._e():n("div",[n("section",{staticClass:"main-header"},[n("h1",[e._v("Job Name: "+e._s(e.detail.Enquiry_Title))]),e._v(" "),n("div",{staticClass:"main-header-mid flex between"},[n("div",{staticClass:"left"}),e._v(" "),n("ul",{staticClass:"right"},[n("li",[e._v("Enquiry No: "+e._s(e.detail.Auto_Number))]),e._v(" "),n("li",[e._v("Enquiry Date:\n "+e._s(e.formatStepDesc(e.detail.Created_Time)))]),e._v(" "),n("li",[e._v("Payment Terms: "+e._s(e.detail.Payment_Terms))])])]),e._v(" "),n("div",{staticClass:"steps"},[n("el-steps",{attrs:{active:e.computedEnquiryState,"align-center":"","finish-status":"success","process-status":"wait"}},[n("el-step",{attrs:{title:"Enquiry Submitted",description:e.formatStepDesc(e.detail.Enquiry_Created)}}),e._v(" "),n("el-step",{attrs:{title:"Enquiry Confirmed",description:e.formatStepDesc(e.detail.Enquiry_Allocated)}}),e._v(" "),n("el-step",{attrs:{title:"Quote Drafted",description:e.formatStepDesc(e.detail.Quote_Created)}}),e._v(" "),n("el-step",{attrs:{title:"Quote Sent",description:e.formatStepDesc(e.detail.Quote_Sent)}}),e._v(" "),n("el-step",{attrs:{title:"Order Confirmed"}}),e._v(" "),n("el-step",{attrs:{title:"Enquiry Closed",description:e.formatStepDesc(e.detail.Enquiry_Closed)}})],1)],1)]),e._v(" "),e.detail.Website_Message&&e.detail.Website_Message.length>1||e.detail.Artworklink&&e.detail.Artworklink.length?n("section",{},[n("p",{staticClass:"sharing-title"},[e._v("Enquiries Information")]),e._v(" "),n("div",{staticClass:"sharing-address"},[n("p",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.detail.Website_Message))]),e._v(" "),n("p",[e._v("\n Artwork link:\n "),n("a",{staticStyle:{color:"blue","text-decoration":"underline"},attrs:{href:e.detail.Artworklink,target:"_brank"}},[e._v(e._s(e.detail.Artworklink))])])])]):e._e(),e._v(" "),e.detail.Quotes_Information&&null!==(t=e.detail.Quotes_Information.quotes_details_data)&&void 0!==t&&t.length?n("section",[n("div",{staticClass:"sharing-title"},[e._v("Quotes Information")]),e._v(" "),n("el-table",{attrs:{data:[e.detail.Quotes_Information],"header-cell-style":{background:"#fff",color:"#101010",fontWeight:"normal"}}},[n("el-table-column",{attrs:{width:"200",prop:"Quote_Title",label:"Quote Name"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"Quote_Stage",label:"Status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(t.row.Quote_Stage||e.detail.Quote_Stage))])]}}],null,!1,3801520526)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"Total_Including_Tax",label:"Grand Total"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.transformNumber(t.row.Total_Including_Tax))+"\n ")]}}],null,!1,3681501733)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"",label:"Date"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e.formatStepDesc(t.row.Created_Time))+"\n ")])]}}],null,!1,1050211034)})],1),e._v(" "),n("br"),e._v(" "),n("el-table",{staticStyle:{"margin-left":"80px",width:"calc(100% - 80px)"},attrs:{"header-cell-style":{background:"#fff",color:"#101010",fontWeight:"normal"},data:e.detail.Quotes_Information.quotes_details_data}},[n("el-table-column",{attrs:{label:"S.No",type:"index",width:"65"}}),e._v(" "),n("el-table-column",{attrs:{"min-width":"300",prop:"product_name",label:"Product Name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("div",{staticClass:"text-link"},[e._v(e._s(t.row.product_name))]),e._v(" "),t.row.product_description?n("div",{staticStyle:{"white-space":"pre-wrap"}},[e._v("\n "+e._s(t.row.product_description)+"\n ")]):e._e()])]}}],null,!1,155598485)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"quantity",label:"Quantity"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"list_price",label:"List Prices"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.transformNumber(t.row.list_price))+"\n ")]}}],null,!1,2248021059)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"amount",label:"Amount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.transformNumber(t.row.amount))+"\n ")]}}],null,!1,2571101279)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"Tax",label:"Tax"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.transformNumber(t.row.Tax))+"\n ")]}}],null,!1,1276862622)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"Discount",label:"Discount"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.transformNumber(t.row.Discount))+"\n ")]}}],null,!1,1436355502)}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"net_total",label:"Total"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.transformNumber(t.row.net_total))+"\n ")]}}],null,!1,3728241425)})],1),e._v(" "),n("div",{staticClass:"table-wrap"},[n("table",{staticClass:"total"},[n("tr",[n("td",[e._v("Sub Total")]),e._v(" "),n("td",[e._v("\n "+e._s(e.detail.Currency)+" \n "),n("div",{staticClass:"num"},[e._v("\n "+e._s(e.transformNumber(e.detail.Quotes_Information.quotecalculation__Sub_Total_Amount))+"\n ")])])]),e._v(" "),n("tr",[n("td",[e._v("Total Taxes")]),e._v(" "),n("td",[e._v("\n "+e._s(e.detail.Currency)+" \n "),n("div",{staticClass:"num"},[e._v("\n "+e._s(e.transformNumber(e.detail.Quotes_Information.Tax_Total))+"\n ")])])]),e._v(" "),n("tr",[n("td",[e._v("Total Discount")]),e._v(" "),n("td",[e._v("\n "+e._s(e.detail.Currency)+" \n "),n("div",{staticClass:"num"},[e._v("\n "+e._s(e.transformNumber(e.detail.Quotes_Information.Discount_Amount))+"\n ")])])]),e._v(" "),n("tr",[n("td",[e._v("Adjustment")]),e._v(" "),n("td",[e._v("\n "+e._s(e.detail.Currency)+" \n "),n("div",{staticClass:"num"},[e._v("\n "+e._s(e.transformNumber(e.detail.Quotes_Information.Adjustment))+"\n ")])])]),e._v(" "),n("tr",[n("td",[e._v("Grand Total")]),e._v(" "),n("td",[e._v("\n "+e._s(e.detail.Currency)+" \n "),n("div",{staticClass:"num"},[e._v("\n "+e._s(e.transformNumber(e.detail.Quotes_Information.Total_Including_Tax))+"\n ")])])])])])],1):e._e(),e._v(" "),e.detail.orderInformation.length?n("section",[n("div",{staticClass:"sharing-title"},[e._v("Order Information")]),e._v(" "),n("el-table",{attrs:{data:e.detail.orderInformation,"header-cell-style":{background:"#fff",color:"#101010",fontWeight:"normal"},"row-style":{cursor:"pointer"}},on:{"row-click":e.navToOrderDetail}},[n("el-table-column",{attrs:{width:"100",label:"Order No",prop:"Reference"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{},[e._v(e._s(t.row.Reference))])]}}],null,!1,2088554928)}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"Job name",prop:"Sales_Order_Title_Job_Name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"text-link"},[e._v("\n "+e._s(t.row.Sales_Order_Title_Job_Name)+"\n ")])]}}],null,!1,1077885697)}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"Order Status",prop:"Order_Stage"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"Invoice status",prop:"Invoice_status1"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"Grand Total",prop:"Total_Including_Tax"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.transformNumber(t.row.Total_Including_Tax))+"\n ")]}}],null,!1,3681501733)}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"Date",prop:"Sales_Order_Created"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(e.formatStepDesc(t.row.Sales_Order_Created)))])]}}],null,!1,3904710774)}),e._v(" "),n("el-table-column",{attrs:{label:"Action",width:"90",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{staticStyle:{"background-color":"rgb(0, 33, 59)",color:"#fff"},attrs:{size:"small",type:"primary",plain:""},on:{click:function(n){return e.navToOrderDetail(t.row)}}},[e._v("View")])]}}],null,!1,778695663)})],1)],1):e._e(),e._v(" "),e.detail.Emaillink&&e.detail.Emaillink.length||e.detail.Email_link2&&e.detail.Email_link2.length?n("section",[n("br"),e._v(" "),n("br"),e._v(" "),n("el-tabs",{model:{value:e.activeEnquiryMail,callback:function(t){e.activeEnquiryMail=t},expression:"activeEnquiryMail"}},[e.detail.Email_link2&&e.detail.Email_link2.length?n("el-tab-pane",{attrs:{label:"Initial Quote",name:"quote"}},[n("iframe",{staticStyle:{overflow:"scroll"},attrs:{src:e.detail.Email_link2,frameborder:"0",height:"1200px",width:"100%"}})]):e._e(),e._v(" "),e.detail.Emaillink&&e.detail.Emaillink.length?n("el-tab-pane",{attrs:{label:"Initial Enquiry",name:"enquiry"}},[n("iframe",{staticStyle:{overflow:"scroll"},attrs:{src:e.detail.Emaillink,frameborder:"0",height:"1200px",width:"100%"}})]):e._e()],1)],1):e._e()])],1)}),[],!1,null,"0826eaac",null);e.default=component.exports}}]);
- //# sourceMappingURL=208ba42.js.map
|