(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22aff9ff"],{"07ac":function(s,t,a){var e=a("23e7"),o=a("6f53").values;e({target:"Object",stat:!0},{values:function(s){return o(s)}})},"14b7":function(s,t,a){"use strict";a("5c7f")},"167f":function(s,t,a){},"1f35":function(s){s.exports=JSON.parse('{"colorList":[{"state":0,"processState":"None","color":"#9a9a9a"},{"state":1,"processState":"DrawingCompleted","color":"#9400D3"},{"state":2,"processState":"Ordered","color":"#ff9800"},{"state":3,"processState":"Separate","color":"#3f51b5"},{"state":4,"processState":"Quoted","color":"#008B8B"},{"state":5,"processState":"Finances","color":"#00bcd4"},{"state":6,"processState":"InProduction","color":"#f44336"},{"state":7,"processState":"Packed","color":"#1E90FF"},{"state":8,"processState":"PartialDispatched","color":"#05ae0c"},{"state":9,"processState":"Dispatched","color":"#05ae0c"}],"colorListErp":["#abbac3","#82af6f","#3a87ad","#9585bf","#f89406","#FFA500","#FF83FA","#FF7F24","#EE7AE9","#EE5C42","#CD96CD","#CAE1FF","#BCEE68","#A0522D","#7D26CD","#36cccc","#63B8FF","#4EEE94","#3CB371","#1C86EE","#00CD66","#00B2EE","#218868","#A4D3EE","#912CEE","#ADFF2F","#B4EEB4","#8B4513","#76EEC6"]}')},2909:function(s,t,a){"use strict";a.d(t,"a",(function(){return l}));var e=a("6b75");function o(s){if(Array.isArray(s))return Object(e["a"])(s)}a("a4d3"),a("e01a"),a("d28b"),a("a630"),a("d3b7"),a("3ca3"),a("ddb0");function i(s){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(s))return Array.from(s)}var r=a("06c5");function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(s){return o(s)||i(s)||Object(r["a"])(s)||n()}},5530:function(s,t,a){"use strict";a.d(t,"a",(function(){return i}));a("a4d3"),a("4de4"),a("4160"),a("e439"),a("dbb4"),a("b64b"),a("159b");var e=a("ade3");function o(s,t){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(s);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(s,t).enumerable}))),a.push.apply(a,e)}return a}function i(s){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach((function(t){Object(e["a"])(s,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(a,t))}))}return s}},5899:function(s,t){s.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(s,t,a){var e=a("1d80"),o=a("5899"),i="["+o+"]",r=RegExp("^"+i+i+"*"),n=RegExp(i+i+"*$"),l=function(s){return function(t){var a=String(e(t));return 1&s&&(a=a.replace(r,"")),2&s&&(a=a.replace(n,"")),a}};s.exports={start:l(1),end:l(2),trim:l(3)}},5960:function(s,t,a){"use strict";a("59a4")},"59a4":function(s,t,a){},"5c7f":function(s,t,a){},"6d8d":function(s,t,a){"use strict";var e=function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("div",{staticClass:"erpDetail"},[a("main",[a("div",{staticClass:"d-header"},[a("div",{staticClass:"left"},[a("span",[s._v("【"+s._s(s.order.LogSaleorder&&s.order.LogSaleorder.Employee)+"】"+s._s(s.order.LogSaleorder&&s.order.LogSaleorder.OperateName))]),a("span",{staticClass:"date"},[s._v(s._s(s._f("formatterTimeYMDHMS")(s.order.LogSaleorder&&s.order.LogSaleorder.Operatetime,"en")))])]),a("div",{staticClass:"right"},[a("div",{staticClass:"state",style:{"background-color":s.orderColorList[s.order.ProcessStateValue]}},[s._v(" "+s._s(s.order.ProcessStateName)+" ")])])]),a("div",{ref:"scrollContent",staticClass:"d-content",on:{scroll:s.scroll}},[a("div",{staticClass:"customerInfo"},[a("h2",[s._v(s._s(s.$t("info.93")))]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.94")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(" "+s._s(s.order.Cusname)+" ")])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.95")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(" "+s._s(s.order.Ordermobilephoe)+" "+s._s(s.order.Phone&&"--"!==s.order.Phone?s.$t("info.96")+s.order.Phone:"")+" ")])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.97")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(" "+s._s(s.order.FullAddress)+" ")])])]),a("div",{staticClass:"orderInfo"},[a("h2",[s._v(s._s(s.$t("info.98")))]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.99")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(" "+s._s(s.order.Code)+" "),a("span",{class:["urgent",1===s.order.Urgencylevel?"orange":0===s.order.Urgencylevel?"green":"red"]},[s._v(" ["+s._s(s.order.Urgencylevelname)+"] ")])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.100")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Date))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.101")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Deliverdate||""))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.102")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.InstallDate||""))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.103")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Shopname))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.104")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.ProductType))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.105")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Ordertype))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.106")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Levelname))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.107")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Pname))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.108")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Mealname))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.109")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.DesignerName))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.110")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Shopper))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.111")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.DeliverPCA&&"------"!==s.order.DeliverPCA?s.order.DeliverPCA:"--"))])]),"Dispatched"===s.order.ProcessState?a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.112")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Deliverpkgqty))])]):s._e(),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.113")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.SupplementReason?s.order.SupplementReason:"--"))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.114")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.BackReason?s.order.BackReason:"--"))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.115")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(s._s(s.order.Remark?s.order.Remark:"--"))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.116")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(" "+s._s(s.order.Filename?s.order.Filename:"--")+" ")])]),s.cabinetPanelData.Table&&s.cabinetPanelData.Table.length>0?a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.117")))]),a("span",[s._v("：")])]),a("div",{staticClass:"value"},[s._v(" "+s._s(s.cabinetPanelData.Table?s.cabinetPanelData.Table.length:0)+s._s(s.$t("info.118"))+"/ "+s._s(s.cabinetPanelData.Table1?s.cabinetPanelData.Table1.length:0)+s._s(s.$t("info.119"))+" ")])]):s._e(),s.showQuotation?a("div",{staticClass:"line"}):s._e(),s.showQuotation?a("div",{staticClass:"viewRetailPrice"},[a("div",[a("span",[s._v(s._s(s.$t("info.120"))+"："+s._s(s.order.Estimatedprice))]),a("span",{staticClass:"flexCenter"},[s._v(s._s(s.$t("info.121"))+"："+s._s(s.order.Discount))]),a("span",{staticClass:"flexCenter"},[s._v(s._s(s.$t("info.122"))+"："+s._s(s.order.FavorablePrice))])]),a("div",[a("span",[s._v(s._s(s.$t("info.123"))+"："+s._s(s.order.Deductprice))]),a("span",{staticClass:"amountPayable"},[s._v(s._s(s.$t("info.124"))+"："+s._s(s.order.TotalPrice))])])]):s._e(),s.showQuotation?a("div",{staticClass:"line"}):s._e(),s.showQuotation?a("div",{staticClass:"viewSupplyPrice"},[a("div",[s._v(s._s(s.$t("info.125"))+"："+s._s(s.order.UserName||""))]),a("div",[s._v(s._s(s.$t("info.126"))+"："+s._s(s.order.Realamount||""))]),a("div",[s._v(s._s(s.$t("info.127"))+"："+s._s(s.order.QuotationDate||""))])]):s._e()]),s.showWorkshopProgress?a("div",{staticClass:"productionSchedule"},[a("h2",[s._v(s._s(s.$t("info.128")))]),a("div",{staticClass:"scheduleWrapper"},[s.workshopProgress.Code&&0!==s.workshopProgress.Items.length?s._e():a("div",{staticClass:"isNull"},[s._v(s._s(s.$t("info.129"))+" ")]),a("van-collapse",{on:{change:s.changeProgressActive},model:{value:s.progressActiveNames,callback:function(t){s.progressActiveNames=t},expression:"progressActiveNames"}},s._l(s.workshopProgress.Items,(function(t,e){return a("van-collapse-item",{key:e,attrs:{"custom-class":"collapseItem",name:e}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"productInfo"},[a("span",[s._v(s._s(t.ComponentName))]),a("span",[s._v(s._s(t.Series))]),a("span",[s._v(s._s(t.Color))]),a("span",[s._v(s._s(t.ExternalDepth?t.ExternalDepth+"mm":""))])]),a("div",{staticClass:"currentProcess"},s._l(t.DetailItems,(function(t,e){return a("div",{key:e,class:[t.State===s.$t("info.130")?"finished":t.State===s.$t("info.131")?"notStarted":"begining"]},[s._v(" "+s._s(t.CraftName))])})),0)]),a("div",{staticClass:"carftList"},s._l(t.DetailItems,(function(t,e){return a("div",{key:e,staticClass:"carftItem"},[a("div",{staticClass:"carftName"},[s._v(s._s(t.CraftName))]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.132"))+"：")])]),a("div",{staticClass:"value"},[s._v(" "+s._s(t.WorkStationName?t.WorkStationName:"")+" ")])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.133"))+"：")])]),a("div",{staticClass:"value"},[s._v(s._s(t.Machine?t.Machine:""))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.134"))+"：")])]),a("div",{staticClass:"value"},[s._v(" "+s._s(t.BeginOperator?t.BeginOperator:"")+s._s(t.EndOperator!==t.BeginOperator?t.EndOperator:"")+" ")])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[a("span",[s._v(s._s(s.$t("info.135"))+"：")])]),a("div",{staticClass:"value"},[s._v(s._s(s._f("formatterTimeYMDHMS")(t.BeginTime&&t.BeginTime,"en"))+" "+s._s(t.BeginTime?s.$t("info.136"):"")+" "+s._s(s._f("formatterTimeYMDHMS")(t.BeginTime&&t.BeginTime,"en")))])])])})),0)])})),1)],1)]):s._e(),s.showOperateRecord?a("div",{staticClass:"operateRecord"},[a("h2",[s._v(s._s(s.$t("info.137")))]),a("div",{staticClass:"stepsWrapper"},[a("van-steps",{attrs:{active:s.recordActive,direction:"vertical","active-color":"#07c160"}},s._l(s.operationList,(function(t,e){return a("van-step",{key:e},[a("h3",[s._v(s._s(t.text))]),t.coustom?a("p",[s._v(s._s(t.coustom))]):s._e(),a("p",[s._v(s._s(t.desc))])])})),1)],1)]):s._e()])]),a("backup-top",{directives:[{name:"show",rawName:"v-show",value:s.showBackupTop,expression:"showBackupTop"}],class:[s.showBackupTop?"back-top--active":""],on:{scrollTop:s.scrollTop}})],1)},o=[],i=(a("99af"),a("4de4"),a("4160"),a("caad"),a("d81d"),a("a9e3"),a("07ac"),a("ac1f"),a("2532"),a("1276"),a("159b"),a("5530")),r=a("2909"),n=a("1f35"),l=a("466f"),c=a("aeb5"),v={data:function(){return{showBackupTop:!1,viewRetailPrice:!1,viewSupplyPrice:!1,order:{},orderColorList:Object(r["a"])(n.colorListErp),cabinetPanelData:{},workshopProgress:{},progressActiveNames:[],recordActive:0,operationList:{},showQuotation:!1,showWorkshopProgress:!1,showOperateRecord:!1}},components:{"backup-top":c["a"]},props:{source:{type:Object,default:function(){}}},mounted:function(){this.initPageData()},methods:{initPageData:function(){var s=this,t=this.source,a=t.ComponentTrack,e=t.SaleOrder,o=t.Permissions,n=[];o&&o.Value&&(n=Object(r["a"])(o.Value));var c=this.$store.state,v=c.shareInfo,d=c.loginInfo,_=d.isLoggedIn;if(v&&!_){var p=v.split("-");if(p[2]){var f=p[2].split(",").map((function(s){return Number(s)}));n=n.filter((function(s){return!f.includes(s.value)}))}}n.forEach((function(t){switch(t.value){case 1:s.showQuotation=!0;break;case 2:s.showWorkshopProgress=!0;break;case 3:s.showOperateRecord=!0;break}})),e.CabinetPanelJson&&(this.cabinetPanelData=JSON.parse(e.CabinetPanelJson));var u=e.ListLogSaleorder;u||(u=[]);var C=u.map((function(s){return{text:"【".concat(s.Employee,"】 ").concat(s.OperateName),coustom:s.Remark?s.Remark:"",desc:l["a"].dateFormat("yyyy-MM-dd HH:mm:ss",s.Operatetime),saleOrderCode:s.SaleOrderCode}}));if(this.operationList=Object(r["a"])(C),a&&Object.values(a).length>0){var m=a.PGName,h=a.DeliverDate,b="";switch(m){case this.$t("info.138"):b="notStarted";break;case this.$t("info.139"):b="beginning";break;case this.$t("info.140"):b="inProduction";break;case this.$t("info.141"):b="finished";break;default:b="default"}a.status=b,a.DeliverDate=l["a"].dateFormat("yyyy-MM-dd HH:mm:ss",h),this.workshopProgress=a}this.order=Object(i["a"])({},e)},changeProgressActive:function(s){this.progressActiveNames=s},scroll:function(s){this.showBackupTop=s.target.scrollTop>500},scrollTop:function(){var s=this;this.$nextTick((function(){s.$refs.scrollContent.scrollTo?s.$refs.scrollContent.scrollTo({top:0,behavior:"smooth"}):s.$refs.scrollContent.scrollTop=0}))},toOperationDetails:function(){var s=this.order.ListLogSaleorder;this.$router.push({name:"operationDetails",params:{ListLogSaleorder:s,ComponentTrack:this.workshopProgress}})}}},d=v,_=(a("14b7"),a("2877")),p=Object(_["a"])(d,e,o,!1,null,"2011014a",null);t["a"]=p.exports},"6f53":function(s,t,a){var e=a("83ab"),o=a("df75"),i=a("fc6a"),r=a("d1e7").f,n=function(s){return function(t){var a,n=i(t),l=o(n),c=l.length,v=0,d=[];while(c>v)a=l[v++],e&&!r.call(n,a)||d.push(s?[a,n[a]]:n[a]);return d}};s.exports={entries:n(!0),values:n(!1)}},"7db0":function(s,t,a){"use strict";var e=a("23e7"),o=a("b727").find,i=a("44d2"),r=a("ae40"),n="find",l=!0,c=r(n);n in[]&&Array(1)[n]((function(){l=!1})),e({target:"Array",proto:!0,forced:l||!c},{find:function(s){return o(this,s,arguments.length>1?arguments[1]:void 0)}}),i(n)},a9e3:function(s,t,a){"use strict";var e=a("83ab"),o=a("da84"),i=a("94ca"),r=a("6eeb"),n=a("5135"),l=a("c6b6"),c=a("7156"),v=a("c04e"),d=a("d039"),_=a("7c73"),p=a("241c").f,f=a("06cf").f,u=a("9bf2").f,C=a("58a8").trim,m="Number",h=o[m],b=h.prototype,w=l(_(b))==m,I=function(s){var t,a,e,o,i,r,n,l,c=v(s,!1);if("string"==typeof c&&c.length>2)if(c=C(c),t=c.charCodeAt(0),43===t||45===t){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:e=2,o=49;break;case 79:case 111:e=8,o=55;break;default:return+c}for(i=c.slice(2),r=i.length,n=0;n<r;n++)if(l=i.charCodeAt(n),l<48||l>o)return NaN;return parseInt(i,e)}return+c};if(i(m,!h(" 0o1")||!h("0b1")||h("+0x1"))){for(var g,$=function(s){var t=arguments.length<1?0:s,a=this;return a instanceof $&&(w?d((function(){b.valueOf.call(a)})):l(a)!=m)?c(new h(I(t)),a,$):I(t)},D=e?p(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),P=0;D.length>P;P++)n(h,g=D[P])&&!n($,g)&&u($,g,f(h,g));$.prototype=b,b.constructor=$,r(o,m,$)}},aeb5:function(s,t,a){"use strict";var e=function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("div",{staticClass:"backupTop",on:{click:s.backToTop}},[a("i",{staticClass:"iconfont iconhuidaodingbu"})])},o=[],i={methods:{backToTop:function(){this.$emit("scrollTop")}}},r=i,n=(a("e16a"),a("2877")),l=Object(n["a"])(r,e,o,!1,null,"11e0b771",null);t["a"]=l.exports},ca5f:function(s,t,a){"use strict";var e=function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("div",{staticClass:"omsDetail"},[a("main",[a("div",{staticClass:"d-header"},[a("div",{staticClass:"left"},[a("span",{staticClass:"creator"},[s._v(s._s(s.createBasic.Creator))]),a("span",{staticClass:"date"},[s._v(s._s(s.createBasic.CreateTime))])]),a("div",{staticClass:"right"},[a("div",{staticClass:"state",style:{"background-color":s.orderInfo.StateColor}},[s._v(" "+s._s(s.orderInfo.ProcessStateText)+" ")])])]),a("div",{ref:"scrollContent",staticClass:"d-content",on:{scroll:s.scroll}},[a("div",{staticClass:"orderInfo block"},[a("div",{staticClass:"title"},[s._v(s._s(s.$t("info.98")))]),a("div",{staticClass:"content"},[a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.99"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.Code))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.100"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.Date?s.orderInfo.Date:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.101"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.DeliveryDate?s.orderInfo.DeliveryDate:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.102"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.InstallDate?s.orderInfo.InstallDate:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.104"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.ProductType))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.105"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.OrderName))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.143"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.ShopName))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.110"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.Salesman))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.109"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.Designer)+s._s(s.orderInfo.DesignerPhone?s.orderInfo.DesignerPhone:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.144"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.DesignCompletionDate?s.orderInfo.DesignCompletionDate:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.145"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.OrderTime?s.orderInfo.OrderTime:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.146"))+"：")]),a("div",{staticClass:"value splitInfo"},[a("span",[s._v(s._s(s.orderInfo.Spliter?s.orderInfo.Spliter:""))]),a("span",[s._v(s._s(s.orderInfo.SplitDate?s.orderInfo.SplitDate:""))]),s.orderInfo.Spliter?a("span",[s._v(s._s(s.orderInfo.PieceRateText))]):s._e(),s.orderInfo.Square?a("span",[s._v(s._s(s.orderInfo.Square)+"m²")]):s._e(),s.orderInfo.Meters?a("span",[s._v(s._s(s.orderInfo.Meters)+"m")]):s._e()])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.147"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.ProductionBatchNo?s.orderInfo.ProductionBatchNo:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.148"))+"：")]),a("div",{staticClass:"value"},[s.orderInfo.OrderPkgCount?a("span",[s._v(s._s(s.$t("info.149",{OrderPkgCount:s.orderInfo.OrderPkgCount})))]):s._e(),s.orderInfo.ShipPkgCount?a("span",[s._v(s._s(s.$t("info.150",{ShipPkgCount:s.orderInfo.ShipPkgCount})))]):s._e()])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.151"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.OrderRemark?s.orderInfo.OrderRemark:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.152"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.Remark1?s.orderInfo.Remark1:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.153"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.Remark2?s.orderInfo.Remark2:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.154"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.Remark3?s.orderInfo.Remark3:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.116"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.orderInfo.SceneFile))])])])]),a("div",{staticClass:"customerInfo block"},[a("div",{staticClass:"title"},[s._v(s._s(s.$t("info.93")))]),a("div",{staticClass:"content"},[a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.94"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.customerInfo.Customer))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.155"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.customerInfo.CustomerPhone))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.156"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.customerInfo.CustomerEmail))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.157"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.customerInfo.CustomerFax))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.158"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.customerInfo.InstallAddress))])])])]),a("div",{staticClass:"deliveryInfo block"},[a("div",{staticClass:"title"},[s._v(s._s(s.$t("info.159")))]),a("div",{staticClass:"content"},[a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.160"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.deliveryInfo.DeliveryWay||""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.161"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.deliveryInfo.DeliveryPerson||""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.162"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.deliveryInfo.DeliveryPhone||""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.163"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.deliveryInfo.DeliveryAddress||""))])])])]),s.showQuotation?a("div",{staticClass:"quotationInfo block"},[a("div",{staticClass:"title"},[s._v(s._s(s.$t("info.164")))]),a("div",{staticClass:"content"},[a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.125"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.quotationInfo.Quoter?s.quotationInfo.Quoter:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.165"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.quotationInfo.QuotationDate?s.quotationInfo.QuotationDate:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.166"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.quotationInfo.OrderAmount?s.quotationInfo.OrderAmount:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.167"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.quotationInfo.PayeeAmount?s.quotationInfo.PayeeAmount:""))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.168"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.quotationInfo.UnpaidAmount?s.quotationInfo.UnpaidAmount:""))])])])]):s._e(),s.showQuotation?a("div",{staticClass:"collectionRecord block"},[a("div",{staticClass:"title"},[s._v(s._s(s.$t("info.169")))]),a("div",{staticClass:"content"},[a("div",{staticClass:"list"},s._l(s.collectionRecords,(function(t,e){return a("div",{key:e,staticClass:"l-item"},[a("div",{staticClass:"i-row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.170"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(t.PayDate))])]),a("div",{staticClass:"i-row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.171"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(t.Amount))])]),a("div",{staticClass:"i-row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.172"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(t.Payee))])]),a("div",{staticClass:"i-row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.115"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(t.Remark))])])])})),0),0===s.collectionRecords.length?a("div",{staticClass:"noReacords"},[a("i",{staticClass:"icon-wushuju iconfont"}),a("span",[s._v(" "+s._s(s.$t("info.173")))])]):s._e()])]):s._e(),s.showWorkshopProgress?a("div",{staticClass:"productionInfo block"},[a("div",{staticClass:"title"},[s._v(s._s(s.$t("info.174")))]),a("div",{staticClass:"content"},[a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.175"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.productionInfo.CraftCount))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"label"},[s._v(s._s(s.$t("info.176"))+"：")]),a("span",{staticClass:"value"},[s._v(s._s(s.productionInfo.FinishCraftCount))])]),a("div",{staticClass:"row"},[a("ul",{staticClass:"AllLines"},s._l(s.lineItems,(function(t,e){return a("div",{key:e,staticClass:"line"},[a("div",{staticClass:"lineTitle"},[s._v(s._s(t.lineTitle)+" ("+s._s(t.finishcraftcount)+"/"+s._s(t.craftcount)+")")]),a("ul",{staticClass:"lineList"},s._l(t.lineList,(function(t,e){return a("div",{key:e,staticClass:"craft"},[a("div",{staticClass:"craftHeader"},[s._v(s._s(t.CraftName))]),a("div",{class:["craftBody","state"+t.State]},[a("div",{staticClass:"date"},[s._v(s._s(t.EndTime?t.EndTime:""))]),a("div",{staticClass:"producer",attrs:{title:t.Producer}},[s._v(s._s(t.Producer?t.Producer:""))]),1!==t.State?a("div",{staticClass:"noReport"},[s._v(" "+s._s(0===t.State?s.$t("info.177"):s.$t("info.178"))+" ")]):s._e()])])})),0)])})),0)])])]):s._e(),s.showOperateRecord&&"en"!==s.$i18n.locale?a("div",{staticClass:"operateRecord block"},[a("div",{staticClass:"title"},[s._v(s._s(s.$t("info.137")))]),a("div",{staticClass:"content"},[a("div",{staticClass:"stepsWrapper"},[a("van-steps",{attrs:{active:s.recordActive,direction:"vertical","active-color":"#07c160"}},s._l(s.operateList,(function(t,e){return a("van-step",{key:e},[a("h3",[s._v(s._s(t.OperationTypeStr))]),a("p",[a("span",[s._v(s._s(t.Operator))]),a("span",{staticClass:"remark"},[s._v(s._s(t.Remark))])]),a("p",[s._v(s._s(s._f("formatterTimeYMDHMS")(t.OperateTime,"en")))])])})),1)],1)])]):s._e()])]),a("backup-top",{directives:[{name:"show",rawName:"v-show",value:s.showBackupTop,expression:"showBackupTop"}],class:[s.showBackupTop?"back-top--active":""],on:{scrollTop:s.scrollTop}})],1)},o=[],i=(a("99af"),a("4de4"),a("7db0"),a("4160"),a("caad"),a("d81d"),a("a9e3"),a("ac1f"),a("2532"),a("1276"),a("159b"),a("2909")),r=a("1f35"),n=a("aeb5"),l={data:function(){return{showBackupTop:!1,lineItems:[],collectionRecords:[],quotationInfo:{},productionInfo:{},customerInfo:{},orderInfo:{},createBasic:{},deliveryInfo:{},recordActive:0,operateList:{},showQuotation:!1,showWorkshopProgress:!1,showOperateRecord:!1}},components:{"backup-top":n["a"]},props:{source:{type:Object,default:function(){}}},mounted:function(){this.initPageData()},methods:{initPageData:function(){var s=this,t=this.source,a=t.OperateList,e=t.LineItems,o=t.ReceiptList,n=t.SaleOrder,l=t.Permissions;e||(e=[]),o||(o=[]);var c=[];l&&l.Value&&(c=Object(i["a"])(l.Value));var v=this.$store.state,d=v.shareInfo,_=v.loginInfo,p=_.isLoggedIn;if(d&&!p){var f=d.split("-");if(f[2]){var u=f[2].split(",").map((function(s){return Number(s)}));c=c.filter((function(s){return!u.includes(s.value)}))}}c.forEach((function(t){switch(t.value){case 1:s.showQuotation=!0;break;case 2:s.showWorkshopProgress=!0;break;case 3:s.showOperateRecord=!0;break}})),a?a.forEach((function(s,t){0===t&&(s.color="#0bbd87")})):a=[];var C=[],m={};e.forEach((function(s){m[s.LineId]?C.forEach((function(t){t.lineid===s.LineId&&t.lineList.push(s)})):(C.push({lineid:s.LineId,lineTitle:s.Product,finishcraftcount:s.FinishCraftCount,craftcount:s.CraftCount,lineList:[s]}),m[s.LineId]=s.LineId)}));var h=n.Quoter,b=n.QuotationDate,w=n.OrderAmount,I=n.PayeeAmount,g=n.UnpaidAmount,$=n.CraftCount,D=n.FinishCraftCount;this.lineItems=[].concat(C),this.operateList=Object(i["a"])(a),this.collectionRecords=Object(i["a"])(o),this.quotationInfo={Quoter:h,QuotationDate:b,OrderAmount:w,PayeeAmount:I,UnpaidAmount:g},this.productionInfo={CraftCount:$,FinishCraftCount:D};var P=n.Customer,k=n.CustomerPhone,y=n.CustomerEmail,S=n.CustomerFax,O=n.InstallAddress;this.customerInfo={Customer:P,CustomerPhone:k,CustomerEmail:y,CustomerFax:S,InstallAddress:O};var T=n.DeliveryDate,E=n.DeliveryPerson,A=n.DeliveryPhone,N=n.DeliveryWay,R=n.DeliveryAddress;this.deliveryInfo={DeliveryDate:T,DeliveryPerson:E,DeliveryPhone:A,DeliveryWay:N,DeliveryAddress:R};var L=n.Code,F=n.Date,B=n.DeliveryDate,j=n.ProcessState,x=n.ProcessStateText,M=n.ProductType,Q=n.OrderName,q=n.ShopName,W=n.Designer,U=n.DesignerPhone,H=n.Spliter,V=n.SplitDate,J=n.PieceRate,Y=n.Square,G=n.Meters,X=n.Salesman,z=n.DesignCompletionDate,K=n.OrderTime,Z=n.InstallDate,ss=n.ProductionBatchNo,ts=n.OrderPkgCount,as=n.ShipPkgCount,es=n.OrderRemark,os=n.SceneFile,is=n.Remark1,rs=n.Remark2,ns=n.Remark3,ls="#4169E1",cs=r.colorList.find((function(s){return s.processState===j}));this.orderInfo={Code:L,Date:F,DeliveryDate:B,ProcessStateText:x,ProductType:M,OrderName:Q,ShopName:q,DeliveryWay:N,DeliveryPerson:E,DeliveryPhone:A,DeliveryAddress:R,Designer:W,DesignerPhone:U,Spliter:H,SplitDate:V,PieceRate:J,PieceRateText:0===J?this.$t("info.179"):1===J?this.$t("info.180"):this.$t("info.181"),Square:Y,Meters:G,Salesman:X,DesignCompletionDate:z,OrderTime:K,InstallDate:Z,ProductionBatchNo:ss,OrderPkgCount:ts,ShipPkgCount:as,OrderRemark:es,SceneFile:os,Remark1:is,Remark2:rs,Remark3:ns,StateColor:cs?cs.color:ls};var vs=n.CreateTime,ds=n.Creator;this.createBasic={CreateTime:vs,Creator:ds}},scroll:function(s){this.showBackupTop=s.target.scrollTop>500},scrollTop:function(){var s=this;this.$nextTick((function(){s.$refs.scrollContent.scrollTo?s.$refs.scrollContent.scrollTo({top:0,behavior:"smooth"}):s.$refs.scrollContent.scrollTop=0}))},navToOprationRecord:function(){this.$router.push({name:"operationDetailsOms",params:{operateList:this.operateList,orderCode:this.orderInfo.Code}})}}},c=l,v=(a("5960"),a("2877")),d=Object(v["a"])(c,e,o,!1,null,"6b3aa006",null);t["a"]=d.exports},dbb4:function(s,t,a){var e=a("23e7"),o=a("83ab"),i=a("56ef"),r=a("fc6a"),n=a("06cf"),l=a("8418");e({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(s){var t,a,e=r(s),o=n.f,c=i(e),v={},d=0;while(c.length>d)a=o(e,t=c[d++]),void 0!==a&&l(v,t,a);return v}})},e16a:function(s,t,a){"use strict";a("167f")},e439:function(s,t,a){var e=a("23e7"),o=a("d039"),i=a("fc6a"),r=a("06cf").f,n=a("83ab"),l=o((function(){r(1)})),c=!n||l;e({target:"Object",stat:!0,forced:c,sham:!n},{getOwnPropertyDescriptor:function(s,t){return r(i(s),t)}})}}]);