/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: //home/henzagold/adminold/export/js/chunk-91fc7a10.93159144.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-91fc7a10"],{2344:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-user-list"}},[e("vx-card",{ref:"filterCard",staticClass:"vx-card",attrs:{removeCardAction:!1,title:"لیست کارشناسان فروش"}},[e("div",[t.query&&t.query.count&&t.query.total?e("div",[t._v("\n "+t._s(t.query.total)+" رکورد یافت شد -\n "),e("span",{staticClass:"text-danger"},[t._v(t._s(t.query.count)+" رکورد غیر فعال")])]):t._e(),e("XTable",{ref:"tbl",attrs:{model:t.model},on:{query:t.setCount},scopedSlots:t._u([{key:"city",fn:function(i){var s=i.record;return e("div",{},[s.city&&s.city.title?e("div",[t._v(t._s(s.city.title))]):e("div",[t._v("-")])])}},{key:"opt",fn:function(i){i.text;var s=i.record;return e("div",{},[e("div",{staticClass:"flex"},[t.$hasPermission("persons.list.sellers.edit")?e("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-primary",icon:"EditIcon",title:"ویرایش"},on:{click:function(e){return t.toEdit(s.id)}}}):t._e(),t.$hasPermission("persons.list.sellers.view")?e("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-success",icon:"EyeIcon",title:"مشاهده اطلاعات"},on:{click:function(e){return t.toView(s.id)}}}):t._e(),t.$hasPermission("persons.list.sellers.view.orders")?e("TooltipBtn",{staticClass:"ml-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("persons.list.sellers.view.documents")?e("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-success",icon:"FileTextIcon",title:"سند های مالی"},on:{click:function(e){return t.viewCash(s)}}}):t._e(),1==s.sts&&t.$hasPermission("persons.list.sellers.unable.order")?e("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-danger",icon:t.getStsIcon(s),title:"توقف سفارش","pop-title":"آیا مطمئن هستید؟"},on:{click:function(e){return t.toggleSts(s)}}}):t._e(),1!==s.sts&&t.$hasPermission("persons.list.sellers.able.order")?e("TooltipBtn",{staticClass:"ml-3",attrs:{"icon-class":"w-5 h-5 text-success",icon:t.getStsIcon(s),title:"فعال سازی سفارش سفارش","pop-title":"آیا مطمئن هستید؟"},on:{click:function(e){return t.toggleSts(s)}}}):t._e(),1==s.active&&t.$hasPermission("persons.list.sellers.unable")?e("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(s)}}}):t._e(),1!==s.active&&t.$hasPermission("persons.list.sellers.able")?e("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(s)}}}):t._e()],1)])}},{key:"items_len",fn:function(i){var s=i.text;i.record;return e("div",{},[s?e("div",[t._v("\n "+t._s(s.length)+"\n ")]):t._e()])}},{key:"sts",fn:function(i){var s=i.text,n=i.record;return e("div",{},[1==n.sts?e("ATag",{attrs:{color:"green"}},[t._v(t._s(s))]):e("ATag",{attrs:{color:"red"}},[t._v(t._s(s))])],1)}},{key:"active",fn:function(i){i.text;var s=i.record;return e("div",{},[1==s.active?e("ATag",{attrs:{color:"green"}},[t._v("فعال")]):e("ATag",{attrs:{color:"red"}},[t._v("غیر فعال")])],1)}}])}),e("AModal",{attrs:{title:"مشاهده سفارش",width:"80%"},model:{value:t.visibleList,callback:function(e){t.visibleList=e},expression:"visibleList"}},[t.tempRow?e("div",[e("ATable",{attrs:{columns:t.orderCols,"data-source":t.tempRow.order}})],1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visibleList=!1}}},[t._v("باشه")])],1)]),e("AModal",{attrs:{title:"مشاهده سند های مالی",width:"80%"},model:{value:t.visibleCashList,callback:function(e){t.visibleCashList=e},expression:"visibleCashList"}},[t.tempRow?e("div",[e("ATable",{attrs:{columns:t.cashCols,"data-source":t.tempRow.cash},scopedSlots:t._u([{key:"info",fn:function(i,s){return[2==s.type||3==s.type?e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.viewDeatil(s)}}},[t._v("\n مشاهده اطلاعات\n ")]):t._e()]}},{key:"operation",fn:function(i,s){return[s.confirmed?e("ATag",{attrs:{color:"green"}},[t._v("تایید شده")]):e("ATag",{attrs:{color:"red"}},[t._v("تایید نشده")])]}}],null,!1,4186673351)})],1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visibleCashList=!1}}},[t._v("باشه")])],1)]),e("AModal",{attrs:{title:"اطلاعات سند مالی",width:"40%"},model:{value:t.visibleDetailList,callback:function(e){t.visibleDetailList=e},expression:"visibleDetailList"}},[t.detail?e("div",[3==t.detail.type?e("div",[e("p",[t._v("در تاریخ : "+t._s(t.detail.caj))]),e("p",[t._v("مبلغ چک : "+t._s(t.detail.no))]),e("p",[t._v("تاریخ سر رسید : "+t._s(t.detail.proceed_at))]),e("p",[t._v("نام صاحب حساب : "+t._s(t.detail.account_name))]),e("p",[t._v("نام بانک : "+t._s(t.detail.bank_name))])]):e("div",[e("p",[t._v("در تاریخ : "+t._s(t.detail.caj))]),e("p",[t._v("میزان طلا : "+t._s(t.detail.value))]),e("p",[t._v("حواله به : "+t._s(t.detail.to))])])]):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visibleDetailList=!1}}},[t._v("باشه")])],1)])],1)])],1)},n=[],o=(i("96cf"),i("1da1")),r=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,u,p,v,f,h=l,m=i("04c5"),w=i("98c0"),_=i("bb36"),b={components:{FeatherIcon:m["a"],TooltipBtn:w["a"],XTable:r["a"]},data:function(){return{gram:0,model:h,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(t){return(d=d||Object(o["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,_["b"].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]])})))).apply(this,arguments)},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(t){return(u=u||Object(o["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,_["b"].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]])})))).apply(this,arguments)},editRow:function(t){return(p=p||Object(o["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,_["b"].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]])})))).apply(this,arguments)},toView:function(t){window.open("/admin/bulkCustomer/view/".concat(t),"_blank").focus()},viewOrder:function(t){this.tempRow=t,this.visibleList=!0},viewCash:function(t){return(v=v||Object(o["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)})))).apply(this,arguments)},viewDeatil:function(t){return(f=f||Object(o["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)})))).apply(this,arguments)}},created:function(){},mounted:function(){}},g=b,x=(i("56b0"),i("2877")),k=Object(x["a"])(g,s,n,!1,null,null,null);e["default"]=k.exports},"56b0":function(t,e,i){"use strict";i("a2c8")},"98c0":function(t,e,i){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",[e("ATooltip",{attrs:{title:t.title}},[t.popTitle?e("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:t.popTitle},on:{confirm:t.onClick}},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass}})],1):e("div",[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass},on:{click:t.onClick}})],1)],1)],1)},n=[],o={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},r=o,a=i("2877"),c=Object(a["a"])(r,s,n,!1,null,"00dfccd3",null);e["a"]=c.exports},a2c8:function(t,e,i){}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure