/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-0b66466c.2974ec44.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b66466c"],{4130:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"page-user-list"}},[t("vx-card",{ref:"filterCard",staticClass:"vx-card",attrs:{removeCardAction:!1,title:"لیست مشتریان های عمده"}},[e.query&&e.query.count&&e.query.total?t("div",[e._v("\n "+e._s(e.query.total)+" رکورد یافت شد -\n "),t("span",{staticClass:"text-danger"},[e._v(e._s(e.query.count)+" رکورد غیر فعال")])]):e._e(),t("XTable",{ref:"tbl",attrs:{model:e.model},on:{query:e.setCount},scopedSlots:e._u([{key:"city",fn:function(i){var n=i.record;return t("div",{},[n.city&&n.city.title?t("div",[e._v(e._s(n.city.title))]):t("div",[e._v("-")])])}},{key:"opt",fn:function(i){i.text;var n=i.record;return t("div",{},[t("div",{staticClass:"flex"},[t("a-dropdown",{model:{value:e.optionVisible[n.id],callback:function(t){e.$set(e.optionVisible,n.id,t)},expression:"optionVisible[record.id]"}},[t("a-menu",{attrs:{slot:"overlay"},on:{click:e.handleMenuClick},slot:"overlay"},[e.$hasPermission("persons.list.client.omde.edit")?t("a-menu-item",{key:"1",on:{click:function(t){return e.toEdit(n.id)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",attrs:{icon:"EditIcon"}}),t("div",[e._v("ویرایش")])],1)]):e._e(),e.$hasPermission("persons.list.client.omde.view")?t("a-menu-item",{key:"2",on:{click:function(t){return e.toView(n.id)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",attrs:{icon:"EyeIcon"}}),t("div",[e._v("مشاهده اطلاعات")])],1)]):e._e(),e.$hasPermission("persons.list.client.omde.view.orders")?t("a-menu-item",{key:"3",on:{click:function(t){return e.viewOrder(n)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",attrs:{icon:"ListIcon"}}),t("div",[e._v("مشاهده سفارش")])],1)]):e._e(),e.$hasPermission("persons.list.client.omde.view.documents")?t("a-menu-item",{key:"4",on:{click:function(t){return e.viewCash(n)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",attrs:{icon:"FileTextIcon"}}),t("div",[e._v("سند های مالی")])],1)]):e._e(),e.$hasPermission("persons.list.client.omde.able")?t("a-menu-item",{key:"7"},[t("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:"آیا مطمئن هستید؟"},on:{confirm:function(t){return e.toggleArchive(n.id)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",attrs:{icon:"DownloadCloudIcon"}}),t("div",[e._v("بایگانی کردن")])],1)])],1):e._e(),t("a-menu-item",{key:"8"},[t("APopconfirm",{attrs:{"ok-text":1===n.sts_verify_step_one?"تایید":"بله","cancel-text":1===n.sts_verify_step_one?"رد":"خیر",title:1===n.sts_verify_step_one?"وضعیت تایید اولیه مشتری به چه نحوی تغییر یابد؟":"آیا از تغییر وضعیت مشتری اطمینان دارید؟"},on:{confirm:function(t){1===n.sts_verify_step_one?e.acceptStepOne(n.id):(n.sts_verify_step_one,e.rejectStepOne(n.id))},cancel:function(t){1===n.sts_verify_step_one&&e.rejectStepOne(n.id)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",class:"HelpCircleIcon"===e.getStepOneIcon(n)?"text-primary":"CheckIcon"===e.getStepOneIcon(n)?"text-success":"text-danger",attrs:{icon:e.getStepOneIcon(n)}}),t("div",[e._v(e._s(e.getStepOneText(n)))])],1)])],1),t("a-menu-item",{key:"9",attrs:{disabled:2!==n.sts_verify_step_one}},[t("APopconfirm",{attrs:{"ok-text":1===n.sts_verify_step_two?"تایید":"بله","cancel-text":1===n.sts_verify_step_two?"رد":"خیر",title:1===n.sts_verify_step_two?"وضعیت تایید سفارش مشتری به چه نحوی تغییر یابد؟":"آیا از تغییر وضعیت سفارش مشتری اطمینان دارید؟"},on:{confirm:function(t){1===n.sts_verify_step_two?e.acceptStepTwo(n.id):2===n.sts_verify_step_two?e.rejectStepTwo(n.id):e.acceptStepTwo(n.id)},cancel:function(t){1===n.sts_verify_step_two&&e.rejectStepTwo(n.id)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",class:"HelpCircleIcon"===e.getStepTwoIcon(n)?"text-primary":"CheckIcon"===e.getStepTwoIcon(n)?"text-success":"text-danger",attrs:{icon:e.getStepTwoIcon(n)}}),t("div",[e._v(e._s(e.getStepTwoText(n)))])],1)])],1),e.$hasPermission("persons.list.client.omde.able.order")?t("a-menu-item",{key:"5",attrs:{disabled:2!==n.sts_verify_step_one}},[t("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:"آیا مطمئن هستید؟"},on:{confirm:function(t){return e.toggleSts(n)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",class:"CheckIcon"===e.getStsIcon(n)?"text-success":"text-danger",attrs:{icon:e.getStsIcon(n)}}),t("div",[e._v(e._s(1===n.sts?"معلق کردن سفارش":"فعال کردن سفارش"))])],1)])],1):e._e(),e.$hasPermission("persons.list.client.omde.able")?t("a-menu-item",{key:"6",attrs:{disabled:2!==n.sts_verify_step_one}},[t("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:"آیا مطمئن هستید؟"},on:{confirm:function(t){return e.toggleActive(n)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",class:"CheckIcon"===e.getActiveIcon(n)?"text-success":"text-danger",attrs:{icon:e.getStsIcon(n)}}),t("div",[e._v(e._s(1===n.active?"معلق کردن حساب کاربری":" فعال کردن حساب کاربری"))])],1)])],1):e._e()],1),t("div",{staticClass:"cursor-pointer flex items-center"},[t("a-icon",{attrs:{type:"down"}}),t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",attrs:{icon:"SettingsIcon"}})],1)],1)],1)])}},{key:"items_len",fn:function(i){var n=i.text;i.record;return t("div",{},[n?t("div",[e._v("\n "+e._s(n.length)+"\n ")]):e._e()])}},{key:"sts",fn:function(i){var n=i.text,s=i.record;return t("div",{},[1===s.sts?t("ATag",{attrs:{color:"green"}},[e._v(e._s(n))]):t("ATag",{attrs:{color:"red"}},[e._v(e._s(n))])],1)}},{key:"active",fn:function(i){i.text;var n=i.record;return t("div",{},[1===n.active?t("ATag",{attrs:{color:"green"}},[e._v("فعال")]):t("ATag",{attrs:{color:"red"}},[e._v("غیر فعال")])],1)}}])}),t("AModal",{attrs:{title:"مشاهده سفارش",width:"80%"},model:{value:e.visibleList,callback:function(t){e.visibleList=t},expression:"visibleList"}},[e.tempRow?t("div",[t("ATable",{attrs:{columns:e.orderCols,"data-source":e.tempRow.order}})],1):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("AButton",{on:{click:function(t){e.visibleList=!1}}},[e._v("باشه")])],1)]),t("AModal",{attrs:{title:"مشاهده سند های مالی",width:"80%"},model:{value:e.visibleCashList,callback:function(t){e.visibleCashList=t},expression:"visibleCashList"}},[e.tempRow?t("div",[t("ATable",{attrs:{columns:e.cashCols,"data-source":e.tempRow.cash},scopedSlots:e._u([{key:"info",fn:function(i,n){return[2==n.type||3==n.type?t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.viewDeatil(n)}}},[e._v("\n مشاهده اطلاعات\n ")]):e._e()]}},{key:"operation",fn:function(i,n){return[n.confirmed?t("ATag",{attrs:{color:"green"}},[e._v("تایید شده")]):t("ATag",{attrs:{color:"red"}},[e._v("تایید نشده")])]}}],null,!1,1606180295)})],1):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("AButton",{on:{click:function(t){e.visibleCashList=!1}}},[e._v("باشه")])],1)]),t("AModal",{attrs:{title:"اطلاعات سند مالی",width:"40%"},model:{value:e.visibleDetailList,callback:function(t){e.visibleDetailList=t},expression:"visibleDetailList"}},[e.detail?t("div",[3==e.detail.type?t("div",[t("p",[e._v("در تاریخ : "+e._s(e.detail.caj))]),t("p",[e._v("مبلغ چک : "+e._s(e.detail.no))]),t("p",[e._v("تاریخ سر رسید : "+e._s(e.detail.proceed_at))]),t("p",[e._v("نام صاحب حساب : "+e._s(e.detail.account_name))]),t("p",[e._v("نام بانک : "+e._s(e.detail.bank_name))])]):t("div",[t("p",[e._v("در تاریخ : "+e._s(e.detail.caj))]),t("p",[e._v("میزان طلا : "+e._s(e.detail.value))]),t("p",[e._v("حواله به : "+e._s(e.detail.to))])])]):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("AButton",{on:{click:function(t){e.visibleDetailList=!1}}},[e._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/major/verify/table","لیست مشتریان های عمده");l.add(new a["a"]("id","کد").filterNumber()),l.add(new a["a"]("fname","نام").filterText().hidden()),l.add(new a["a"]("lname","نام خانوادگی").filterText().hidden()),l.add(new a["a"]("name","نام و نام خانوادگی").filterText()),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"]("reagent.name","کارشناس فروش").filterText().noSort()),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"]("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"]("phone","تلفن").filterText().hidden().noSort()),l.add(new a["a"]("address","آدرس").filterText().hidden().noSort()),l.add(new a["a"]("store_name","نام مغازه").filterText().hidden().noSort()),l.add(new a["a"]("zone","منطقه").filterText().hidden().noSort()),l.add(new a["a"]("pasazh_name","نام پاساژ").filterText().hidden().noSort()),l.add(new a["a"]("opt","عملیات").noSort().renderSlot("opt"));var d,u,p,f,v,h,m,_,w,g,x=l,b=i("98c0"),y=i("04c5"),k=i("bb36"),C={components:{TooltipBtn:b["a"],XTable:o["a"],FeatherIcon:y["a"]},data:function(){return{gram:0,model:x,tempRow:void 0,tempItem:void 0,detail:void 0,editMode:!1,visibleCashList:!1,visibleList:!1,optionVisible:[],menuVisible:!1,query:void 0,visibleDetailList:!1,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:"type_str"},{title:"وضعیت",dataIndex:"sts_str"}],visibleSts:!1}},computed:{getIcon:function(){return this.editMode?"CheckIcon":"EditIcon"}},methods:{setCount:function(e){this.query={count:e&&e.count?e.count:void 0,total:e&&e.total?e.total:void 0}},handleMenuClick:function(e,t){"5"!==e.key&&"6"!==e.key&&"7"!==e.key&&"8"!==e.key&&"9"!==e.key||(this.optionVisible[t]=!1)},toggleActive:function(e){return(d=d||Object(r["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,k["b"].post("customer/toggle-active",{id:t.id});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:return e.prev=10,e.finish(10);case 12:case"end":return e.stop()}}),e,this,[[0,7,10,12]])})))).apply(this,arguments)},toEdit:function(e){window.open("/admin/bulkCustomer/edit/".concat(e),"_blank").focus()},toView:function(e){window.open("/admin/bulkCustomer/view/".concat(e,"?isOmde=1"),"_blank").focus()},goToAdd:function(){this.$router.push("/customer/omde-add")},acceptOrder:function(){},getStsIcon:function(e){return 1===e.sts?"SlashIcon":"CheckIcon"},getActiveIcon:function(e){return 1===e.active?"SlashIcon":"CheckIcon"},getStepOneText:function(e){switch(e.sts_verify_step_one){case 1:return"در انتظار تایید ورود مشتری";case 2:return"رد ورود مشتری";case 3:return"تایید ورود مشتری"}},getStepOneIcon:function(e){switch(e.sts_verify_step_one){case 1:return"HelpCircleIcon";case 2:return"SlashIcon";case 3:return"CheckIcon"}},acceptStepOne:function(e){return(u=u||Object(r["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,k["b"].post("major/verify",{customer_id:t,sts_verify_step_one:2});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]])})))).apply(this,arguments)},rejectStepOne:function(e){return(p=p||Object(r["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,k["b"].post("major/verify",{customer_id:t,sts_verify_step_one:3});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]])})))).apply(this,arguments)},getStepTwoText:function(e){switch(e.sts_verify_step_two){case 1:return"در انتظار فعال سازی";case 2:return"غیر فعال سازی";case 3:return"فعال سازی"}},getStepTwoIcon:function(e){switch(e.sts_verify_step_two){case 1:return"HelpCircleIcon";case 2:return"SlashIcon";case 3:return"CheckIcon"}},acceptStepTwo:function(e){return(f=f||Object(r["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,k["b"].post("major/verify",{customer_id:t,sts_verify_step_two:2});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]])})))).apply(this,arguments)},rejectStepTwo:function(e){return(v=v||Object(r["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,k["b"].post("major/verify",{customer_id:t,sts_verify_step_two:3});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]])})))).apply(this,arguments)},deleteOrder:function(){},getColorSts:function(e){return e.proceed?"green":"gray"},showSts:function(e){this.tempRow=e,this.visibleSts=!0},editW:function(e){this.editMode=!this.editMode},toggleSts:function(e){return(h=h||Object(r["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,k["b"].post("customer/toggle-sts",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]])})))).apply(this,arguments)},toggleArchive:function(e){return(m=m||Object(r["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,k["b"].get("major/archive/".concat(t));case 3:return this.$message.info("تغییرات ثبت شد "),e.next=6,this.$refs.tbl.fetch();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),this.$message.error("خطا در بایگانی");case 11:return e.prev=11,e.finish(11);case 13:case"end":return e.stop()}}),e,this,[[0,8,11,13]])})))).apply(this,arguments)},editRow:function(e){return(_=_||Object(r["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,k["b"].post("order-item/edit",t);case 3:this.editMode=!this.editMode,this.$message.info("ویرایش موفق آمیز"),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]])})))).apply(this,arguments)},viewOrder:function(e){this.tempRow=e,this.visibleList=!0},viewCash:function(e){return(w=w||Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.tempRow=t,this.visibleCashList=!0;case 2:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)},viewDeatil:function(e){return(g=g||Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.detail=t,this.visibleDetailList=!0;case 2:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}},created:function(){},mounted:function(){}},S=C,I=(i("e09a"),i("2877")),T=Object(I["a"])(S,n,s,!1,null,null,null);t["default"]=T.exports},"98c0":function(e,t,i){"use strict";var n=function(){var e=this,t=e._self._c;return t("div",[t("ATooltip",{attrs:{title:e.title}},[e.popTitle?t("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:e.popTitle},on:{confirm:e.onClick}},[t("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:e.icon,"svg-classes":e.iconClass}})],1):t("div",[t("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:e.icon,"svg-classes":e.iconClass},on:{click:e.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);t["a"]=c.exports},c912:function(e,t,i){},e09a:function(e,t,i){"use strict";i("c912")}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure