(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19ccd608"],{"02df":function(t,e,s){},1364:function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("van-empty",{staticClass:"custom-image",attrs:{image:t.emptyImage,description:t.description}})},n=[],a={data:function(){return{emptyImage:s("377b")}},props:{description:{type:String,default:""}}},r=a,o=(s("9090"),s("2877")),c=Object(o["a"])(r,i,n,!1,null,"ecf5875c",null);e["a"]=c.exports},"377b":function(t,e,s){t.exports=s.p+"static/img/empty-image.276c05f0.png"},"88b5":function(t,e,s){"use strict";s("02df")},9090:function(t,e,s){"use strict";s("eada")},b612:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"myOrder"},[s("div",{staticClass:"myOrder-wrapper"},[s("van-field",{staticClass:"search",attrs:{clearable:"",placeholder:t.$t("info.348")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSearch(e)}},scopedSlots:t._u([{key:"label",fn:function(){return[s("span",[t._v(t._s(t.title))]),s("van-icon",{attrs:{name:"search"}})]},proxy:!0},{key:"button",fn:function(){return[s("van-button",{staticClass:"btn",attrs:{color:"#5251e3",size:"small",type:"primary"},on:{click:t.onSearch}},[t._v(t._s(t.$t("info.225")))])]},proxy:!0}]),model:{value:t.condition,callback:function(e){t.condition=e},expression:"condition"}}),s("div",{staticClass:"main"},[s("div",{staticClass:"title"},[t._v(t._s(t.$t("info.349")))]),s("ul",{staticClass:"tabs"},[s("li",{class:{active:-1===t.state},on:{click:function(e){return t.clickTabs(-1)}}},[s("span",[t._v(t._s(t.$t("info.218"))+"("+t._s(t.totalQty)+")")])]),s("li",{class:{active:1===t.state},on:{click:function(e){return t.clickTabs(1)}}},[s("span",[t._v(t._s(t.$t("info.235"))+"("+t._s(t.confirmQty)+")")])]),s("li",{class:{active:0===t.state},on:{click:function(e){return t.clickTabs(0)}}},[s("span",[t._v(t._s(t.$t("info.234"))+"("+t._s(t.totalQty-t.confirmQty)+")")])])]),t.orderList.length>0?s("div",{staticClass:"list-wrapper"},[s("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[s("van-list",{attrs:{offset:150,finished:t.finished,"finished-text":t.finishedText},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[s("ul",{staticClass:"list-content"},t._l(t.orderList,(function(e,i){return s("li",{key:i,on:{click:function(s){return t.navToHomePage(e)}}},[s("div",{staticClass:"left"},[s("div",{staticClass:"img"},[s("i",{staticClass:"iconfont icongoutong"})])]),s("div",{staticClass:"right"},[s("div",{staticClass:"row"},[s("div",{staticClass:"customer"},[t._v(t._s(e.Customer))]),s("div",{staticClass:"state"},[e.State?s("span",{staticClass:"confirmed"},[t._v(t._s(t.$t("info.235")))]):s("span",{staticClass:"unconfirmed"},[t._v(t._s(t.$t("info.234")))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"phone"},[t._v(t._s(e.CustomerPhone))]),s("div",{staticClass:"qty"},[s("span",{staticClass:"num"},[t._v(t._s(e.ConfirmedNumber))]),t._v("/"),s("span",{staticClass:"num"},[t._v(t._s(e.Qty))]),s("span",{staticClass:"unit"},[t._v(t._s(t.$t("info.350")))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"address"},[t._v(" "+t._s(e.InstallAddress)+" ")]),e.Confirmed?s("div",{staticClass:"more-detail",on:{click:function(s){return s.stopPropagation(),t.viewDetails(e)}}},[s("i",{staticClass:"iconchakan iconfont"})]):t._e()])])])})),0)])],1)],1):s("div",{staticClass:"empty-wrapper"},[s("my-empty",{staticClass:"empty",attrs:{description:t.description}})],1)]),s("router-view")],1)])},n=[],a=(s("a4d3"),s("e01a"),s("99af"),s("4160"),s("ac1f"),s("5319"),s("159b"),s("96cf"),s("1da1")),r=s("1364"),o=s("e04d"),c={data:function(){return{title:"",loading:!1,finished:!1,finishedText:this.$t("info.199"),refreshing:!1,pageSize:10,pageIndex:1,totalQty:0,confirmQty:0,state:-1,description:this.$t("info.351"),condition:"",orderList:[]}},components:{"my-empty":r["a"]},mounted:function(){var t=Object({NODE_ENV:"production",VUE_APP_LANGUAGE_KEY:"zh",VUE_APP_NEW_COMPANY:"false",VUE_APP_VERSION:"6.3.3",BASE_URL:"./"}),e=t.VUE_APP_NEW_COMPANY,s=t.VUE_APP_LANGUAGE_KEY,i=t.VUE_APP_VERSION;this.title="true"===e||"en"===s?"".concat(this.$t("info.183"),"v").concat(i):"宏光千里眼v".concat(i);var n=!0;this.getOrderList(n)},methods:{clickTabs:function(t){switch(t){case-1:this.description=this.$t("info.244");break;case 0:this.description=this.$t("info.352");break;case 1:this.description=this.$t("info.353");break}this.resetRequestInfo(),this.state=t;var e=!0;this.getOrderList(e)},onLoad:function(){this.getOrderList()},onRefresh:function(){var t=!0;this.resetRequestInfo(),this.getOrderList(t)},resetRequestInfo:function(){this.pageIndex=1,this.loading=!1,this.finished=!1,this.orderList=[]},getOrderList:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,s,i,n,a,r,o,c,u,l,d,f,h,m,p,v,_=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=_.length>0&&void 0!==_[0]&&_[0],s={loading:e},i=this.$store.state.loginInfo,n=i.isLoggedIn,a=i.phone,r=i.email,o=i.lockNum,c=i.projectNum,n){t.next=6;break}return this.$router.replace({name:"login"}),t.abrupt("return");case 6:return u={url:this.$Api1Proxy,params:{url:"".concat(this.$QLY_API,"/api/hgsoftapi.aspx?method=getordercategroy&phone=").concat(a,"&email=").concat(r,"&locknum=").concat(o,"&projectcode=").concat(c)},data:{PageIndex:this.pageIndex,PageSize:this.pageSize,Phone:a,Email:r,Condition:this.condition,LockNum:"",Customer:"",CustomerPhone:"",InstallAddress:"",State:this.state}},t.next=9,this.$Api.post(u,{},s);case 9:if(l=t.sent,l.Result){t.next=13;break}return this.$toast(l.Message),t.abrupt("return");case 13:d=l.Data,f=d.Total,h=d.TotalQty,m=d.ConfirmQty,p=d.List,v=d.Url,this.totalQty=h,this.confirmQty=m,this.finishedText=f<=5&&f>=0?"":this.$t("info.199"),p.forEach((function(t){var e=!1,s=[];t.List.forEach((function(t){t.IsConfirm&&(e=!0,s.push(t))})),t.Url=v,t.Confirmed=e,t.ConfirmedNumber=s.length})),this.orderList=this.orderList.concat(p),this.pageIndex++,this.loading=!1,this.orderList.length>=f&&(this.finished=!0);case 22:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onSearch:function(){var t=!0;this.resetRequestInfo(),this.getOrderList(t)},navToHomePage:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var s,i,n,a,r,c,u,l,d,f,h,m,p,v;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(s=e.Url,i=e.List,n=e.Customer,a=e.CustomerPhone,r=e.InstallAddress,c=i[0],u=c.HouseId,l=c.Qid,d=c.LockNum,f=c.ProjectNum,h={api:s,form:"myOrder"},l?h.qid=l:h.h=u,m=this.$store.state.loginInfo,m.lockNum||m.projectNum||!u){t.next=21;break}return p={url:"".concat(this.$AZT_API,"/data/House_").concat(u,"/house.json"),params2:{getjson:!0}},t.prev=7,t.next=10,this.$Api.get(p);case 10:v=t.sent,f=v.ProjectNum,m.lockNum=d,m.projectNum=f,Object(o["c"])("hg-user","loginInfo",m),this.$store.commit("UPDATE_LOGIN_INFO",m),t.next=21;break;case 18:t.prev=18,t.t0=t["catch"](7),console.log(t.t0);case 21:this.$store.commit("VISITING_TOURIST_ORDERS",!1),this.$store.commit("TARGET_ORDER_INFO",{Customer:n,CustomerPhone:a,InstallAddress:r,LockNum:d,ProjectNum:f}),Object(o["c"])("hg-user","targetOrderInfo",{Customer:n,CustomerPhone:a,InstallAddress:r,LockNum:d,ProjectNum:f}),this.$store.commit("SCROLL_POSITION_3D",0),this.$router.push({name:"home",query:h});case 26:case"end":return t.stop()}}),t,this,[[7,18]])})));function e(e){return t.apply(this,arguments)}return e}(),viewDetails:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var s,i,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=e.Customer,i=e.CustomerPhone,n=e.Email,a=e.InstallAddress,this.$router.push({name:"o-detail",params:{Customer:s,CustomerPhone:i,Email:n,InstallAddress:a}});case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}},u=c,l=(s("88b5"),s("2877")),d=Object(l["a"])(u,i,n,!1,null,"9b2c1526",null);e["default"]=d.exports},eada:function(t,e,s){}}]);