/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-597300a8.508bafe0.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.508bafe0.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure