/
home
/
henzagold
/
adminN
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminN/export/js/chunk-b5a3cd9c.31f9481f.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b5a3cd9c"],{1914:function(e,t,n){"use strict";n.r(t);var i=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(n){var i=n.record;return t("div",{},[i.city&&i.city.title?t("div",[e._v(e._s(i.city.title))]):t("div",[e._v("-")])])}},{key:"opt",fn:function(n){n.text;var i=n.record;return t("div",{},[t("div",{staticClass:"flex"},[t("a-dropdown",{model:{value:e.optionVisible[i.id],callback:function(t){e.$set(e.optionVisible,i.id,t)},expression:"optionVisible[record.id]"}},[t("a-menu",{attrs:{slot:"overlay"},on:{click:function(t){return e.handleMenuClick(t,i.id)}},slot:"overlay"},[e.$hasPermission("persons.list.client.omde.edit")?t("a-menu-item",{key:"1",on:{click:function(t){return e.toEdit(i.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(i.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(i)}}},[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(i)}}},[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(i.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===i.sts_verify_step_one?"تایید":"بله","cancel-text":1===i.sts_verify_step_one?"رد":"خیر",title:1===i.sts_verify_step_one?"وضعیت تایید اولیه مشتری به چه نحوی تغییر یابد؟":"آیا از تغییر وضعیت مشتری اطمینان دارید؟"},on:{confirm:function(t){1===i.sts_verify_step_one?e.acceptStepOne(i.id):2===i.sts_verify_step_one?e.rejectStepOne(i.id):e.acceptStepOne(i.id)},cancel:function(t){1===i.sts_verify_step_one&&e.rejectStepOne(i.id)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",class:"HelpCircleIcon"===e.getStepOneIcon(i)?"text-primary":"CheckIcon"===e.getStepOneIcon(i)?"text-success":"text-danger",attrs:{icon:e.getStepOneIcon(i)}}),t("div",[e._v(e._s(e.getStepOneText(i)))])],1)])],1),t("a-menu-item",{key:"9",attrs:{disabled:2!==i.sts_verify_step_one}},[t("APopconfirm",{attrs:{"ok-text":1===i.sts_verify_step_two?"تایید":"بله","cancel-text":1===i.sts_verify_step_two?"رد":"خیر",title:1===i.sts_verify_step_two?"وضعیت تایید سفارش مشتری به چه نحوی تغییر یابد؟":"آیا از تغییر وضعیت سفارش مشتری اطمینان دارید؟"},on:{confirm:function(t){1===i.sts_verify_step_two?e.acceptStepTwo(i.id):2===i.sts_verify_step_two?e.rejectStepTwo(i.id):e.acceptStepTwo(i.id)},cancel:function(t){1===i.sts_verify_step_two&&e.rejectStepTwo(i.id)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",class:"HelpCircleIcon"===e.getStepTwoIcon(i)?"text-primary":"CheckIcon"===e.getStepTwoIcon(i)?"text-success":"text-danger",attrs:{icon:e.getStepTwoIcon(i)}}),t("div",[e._v(e._s(e.getStepTwoText(i)))])],1)])],1),e.$hasPermission("persons.list.client.omde.able.order")?t("a-menu-item",{key:"5",attrs:{disabled:2!==i.sts_verify_step_one}},[t("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:"آیا مطمئن هستید؟"},on:{confirm:function(t){return e.toggleSts(i)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",class:"CheckIcon"===e.getStsIcon(i)?"text-success":"text-danger",attrs:{icon:e.getStsIcon(i)}}),t("div",[e._v(e._s(1===i.sts?"معلق کردن سفارش":"فعال کردن سفارش"))])],1)])],1):e._e(),e.$hasPermission("persons.list.client.omde.able")?t("a-menu-item",{key:"6",attrs:{disabled:2!==i.sts_verify_step_one}},[t("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:"آیا مطمئن هستید؟"},on:{confirm:function(t){return e.toggleActive(i)}}},[t("div",{staticClass:"flex gap-2"},[t("feather-icon",{staticClass:"cursor-pointer w-5 ml-1",class:"CheckIcon"===e.getActiveIcon(i)?"text-success":"text-danger",attrs:{icon:e.getStsIcon(i)}}),t("div",[e._v(e._s(1===i.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(n){var i=n.text;n.record;return t("div",{},[i?t("div",[e._v("\n "+e._s(i.length)+"\n ")]):e._e()])}},{key:"sts",fn:function(n){var i=n.text,r=n.record;return t("div",{},[1===r.sts?t("ATag",{attrs:{color:"green"}},[e._v(e._s(i))]):t("ATag",{attrs:{color:"red"}},[e._v(e._s(i))])],1)}},{key:"active",fn:function(n){n.text;var i=n.record;return t("div",{},[1===i.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(n,i){return[2==i.type||3==i.type?t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.viewDeatil(i)}}},[e._v("\n مشاهده اطلاعات\n ")]):e._e()]}},{key:"operation",fn:function(n,i){return[i.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)},r=[],s=(n("96cf"),n("1da1")),o=n("ff6e"),a=(n("ac6a"),n("456d"),n("e0d2")),c=n("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/shopkeeper","لیست مغازه داران حضوری");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=l,u=n("98c0"),p=n("04c5"),f=n("bb36"),v={components:{TooltipBtn:u["a"],XTable:o["a"],FeatherIcon:p["a"]},data:function(){return{gram:0,model:d,tempRow:void 0,tempItem:void 0,detail:void 0,editMode:!1,visibleCashList:!1,visibleList:!1,menuVisible:!1,optionVisible:[],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(){var e=Object(s["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,f["b"].post("customer/toggle-active",{id:t.id});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]])})));function t(t){return e.apply(this,arguments)}return t}(),toggleArchive:function(){var e=Object(s["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,f["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]])})));function t(t){return e.apply(this,arguments)}return t}(),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(){var e=Object(s["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,f["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]])})));function t(t){return e.apply(this,arguments)}return t}(),rejectStepOne:function(){var e=Object(s["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,f["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]])})));function t(t){return e.apply(this,arguments)}return t}(),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(){var e=Object(s["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,f["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]])})));function t(t){return e.apply(this,arguments)}return t}(),rejectStepTwo:function(){var e=Object(s["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,f["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]])})));function t(t){return e.apply(this,arguments)}return t}(),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(){var e=Object(s["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,f["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]])})));function t(t){return e.apply(this,arguments)}return t}(),editRow:function(){var e=Object(s["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,f["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]])})));function t(t){return e.apply(this,arguments)}return t}(),viewOrder:function(e){this.tempRow=e,this.visibleList=!0},viewCash:function(){var e=Object(s["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)})));function t(t){return e.apply(this,arguments)}return t}(),viewDeatil:function(){var e=Object(s["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)})));function t(t){return e.apply(this,arguments)}return t}()},created:function(){},mounted:function(){}},h=v,m=(n("20bb"),n("2877")),_=Object(m["a"])(h,i,r,!1,null,null,null);t["default"]=_.exports},"20bb":function(e,t,n){"use strict";n("9d3a")},"98c0":function(e,t,n){"use strict";var i=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)},r=[],s={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},o=s,a=n("2877"),c=Object(a["a"])(o,i,r,!1,null,"00dfccd3",null);t["a"]=c.exports},"9d3a":function(e,t,n){}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure