/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: //home/henzagold/admin_report/js/chunk-0bad4d5f.8aaad6f2.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0bad4d5f"],{"0003":function(t,e,r){},"0319":function(t,e,r){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{style:{direction:t.$vs.rtl?"rtl":"ltr"}},[e("feather-icon",{attrs:{icon:"Edit3Icon",svgClasses:"h-5 w-5 mr-4 hover:text-primary cursor-pointer"},on:{click:t.editRecord}}),e("feather-icon",{attrs:{icon:"Trash2Icon",svgClasses:"h-5 w-5 hover:text-danger cursor-pointer"},on:{click:t.confirmDeleteRecord}})],1)},n=[],a={name:"CellRendererActions",methods:{editRecord:function(){this.$router.push("/apps/user/user-edit/".concat(268)).catch((function(){}))},confirmDeleteRecord:function(){this.$vs.dialog({type:"confirm",color:"danger",title:"Confirm Delete",text:'You are about to delete "'.concat(this.params.data.username,'"'),accept:this.deleteRecord,acceptText:"Delete"})},deleteRecord:function(){this.showDeleteSuccess()},showDeleteSuccess:function(){this.$vs.notify({color:"success",title:"User Deleted",text:"The selected user was successfully deleted"})}}},i=a,o=r("2877"),c=Object(o["a"])(i,s,n,!1,null,null,null);e["a"]=c.exports},"0826":function(t,e,r){"use strict";r.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:{"refresh-content-action":"",removeCardAction:!1,title:"لیست دسته بندی ها"},on:{refresh:t.fetch}},[e("div",{staticClass:"overflow-x-auto"},[e("div",{staticClass:"flex flex-wrap items-center mb-4"},[e("div",{staticClass:"flex-1"},[e("a-input",{staticClass:"md:w-1/2",attrs:{placeholder:"جستجو"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.fetch.apply(null,arguments)}},model:{value:t.searchQuery,callback:function(e){t.searchQuery=e},expression:"searchQuery"}},[e("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),e("AButton",{staticClass:"mr-6",attrs:{type:"primary"},on:{click:function(){return t.$router.push({name:"category-add"})}}},[t._v("افزودن دسته")]),e("a-dropdown-button",[t._v("\n عملیات\n "),e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",{key:"2"},[t._v("\n خروجی اکسل\n ")])],1)],1)],1),e("VsDivider"),e("AModal",{attrs:{visible:t.detailsPopup,zIndex:41e4,width:"80%",footer:null},on:{"update:visible":function(e){t.detailsPopup=e},cancel:function(){return t.detailsPopup=!1}}},[e("div",[e("h2",[t._v("مشاهده اطلاعات ")]),e("ASkeleton")],1)]),e("ATable",{staticClass:"p-0 m-0",attrs:{pagination:!1,locale:{emptyText:"داده ای یافت نشد"},columns:t.cols,"data-source":t.data},scopedSlots:t._u([{key:"gold",fn:function(r){return e("div",{},[e("FeatherIcon",{staticClass:"text-danger",attrs:{icon:"ArrowDownIcon",svgClasses:"w-4 h-4"}}),t._v("\n "+t._s(r)+"\n ")],1)}},{key:"rial",fn:function(r){return e("div",{},[e("FeatherIcon",{staticClass:"text-danger",attrs:{icon:"ArrowDownIcon",svgClasses:"w-4 h-4"}}),t._v("\n "+t._s(r)+"\n ")],1)}},{key:"price",fn:function(r){return e("div",{},[t._v("\n "+t._s(t._f("priceUnit")(r))+"\n ")])}},{key:"ojrat",fn:function(r){return e("div",{},[t._v("\n "+t._s(t._f("priceUnit")(r))+"\n ")])}},{key:"op",fn:function(r,s){return e("div",{},[e("ATooltip",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("ویرایش")]),e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"EditIcon",svgClasses:"h-6 w-6 text-primary"},on:{click:function(e){return t.toEdit(s)}}})],1),e("ATooltip",[e("a-popconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.confirmDelete(s.id)}}},[e("template",{slot:"title"},[e("p",[t._v("آیا مطمئن به حذف رکورد مورد نظر هستید ؟")])]),e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"TrashIcon",svgClasses:"h-6 w-6 text-danger"}})],2),e("span",{attrs:{slot:"title"},slot:"title"},[t._v("حذف")])],1)],1)}}])}),e("vs-pagination",{staticClass:"mt-4",attrs:{total:t.totalPages,max:7},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}})],1)])],1)},n=[],a=(r("96cf"),r("1da1")),i=(r("4e06"),r("4a7a")),o=r.n(i),c=r("1746"),l=r("f8a3"),u=r("3208"),d=r("0319"),f=r("04c5"),p=r("bee2"),h=r("d4ec"),v=r("ade3"),m=r("2401"),g=Object(p["a"])((function t(){Object(h["a"])(this,t),Object(v["a"])(this,"cols",[new m["a"]("title","عنوان").export(),new m["a"]("action","عملیات").renderSlot("op").export()])})),C=(new g).cols,x=r("3309"),_={components:{CustomerView:x["a"],vSelect:o.a,FeatherIcon:f["a"],CellRendererLink:c["a"],CellRendererStatus:l["a"],CellRendererVerified:u["a"],CellRendererActions:d["a"]},data:function(){return{filterType:"all",filterSts:"all",detailsPopup:!1,typeOptions:[{label:"همگی",value:"all"},{label:"مشتری",value:"active"},{label:"عمده ای",value:"deactivated"},{label:"تک فروشی",value:"blocked"}],statusOptions:[{label:"همگی",value:"all"},{label:"فعال",value:"active"},{label:"غیر فعال",value:"deactivated"}],gridApi:null,cols:null,gridOptions:{},defaultColDef:{sortable:!0,resizable:!0,suppressMenu:!0},components:{CellRendererLink:c["a"],CellRendererStatus:l["a"],CellRendererVerified:u["a"],CellRendererActions:d["a"]}}},watch:{roleFilter:function(t){this.setColumnFilter("role",t.value)},statusFilter:function(t){this.setColumnFilter("status",t.value)},isVerifiedFilter:function(t){var e="all"===t.value?"all":"yes"===t.value?"true":"false";this.setColumnFilter("is_verified",e)},departmentFilter:function(t){this.setColumnFilter("department",t.value)}},computed:{usersData:function(){return this.$store.state.userManagement.users},data:function(){return this.$store.state.category.rows},paginationPageSize:function(){return this.gridApi?this.gridApi.paginationGetPageSize():10},totalPages:function(){return this.gridApi?this.gridApi.paginationGetTotalPages():0},currentPage:{get:function(){return this.gridApi?this.gridApi.paginationGetCurrentPage()+1:1},set:function(t){}},searchQuery:{get:function(){return this.$store.state.category.searchQuery},set:function(t){this.$store.commit("category/SEARCH_QUERY_SET",t)}}},methods:{setColumnFilter:function(t,e){var r=this.gridApi.getFilterInstance(t),s=null;"all"!==e&&(s={type:"equals",filter:e}),r.setModel(s),this.gridApi.onFilterChanged()},toEdit:function(t){this.$router.push({name:"category-edit",params:{id:t.id}})},confirmDelete:function(){var t=Object(a["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,this.$store.dispatch("category/remove",{id:e});case 3:this.$ntSet(),t.next=11;break;case 6:throw t.prev=6,t.t0=t["catch"](0),this.$ntSetError(),console.log("e ==> ",t.t0),t.t0;case 11:return t.prev=11,t.finish(11);case 13:case"end":return t.stop()}}),t,this,[[0,6,11,13]])})));function e(e){return t.apply(this,arguments)}return e}(),resetColFilters:function(){this.$refs.filterCard.removeRefreshAnimation()},fetch:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.$refs.filterCard.visibleAnimation(),t.abrupt("return",this.$store.dispatch("category/fetch"));case 5:t.prev=5,t.t0=t["catch"](0);case 7:return t.prev=7,this.$refs.filterCard.removeRefreshAnimation(),t.finish(7);case 10:case"end":return t.stop()}}),t,this,[[0,5,7,10]])})));function e(){return t.apply(this,arguments)}return e}(),updateSearchQuery:function(t){this.gridApi.setQuickFilter(t)}},created:function(){this.cols=C},mounted:function(){this.$store.dispatch("category/fetch")}},b=_,y=r("2877"),w=Object(y["a"])(b,s,n,!1,null,null,null);e["default"]=w.exports},1746:function(t,e,r){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"flex items-center"},[e("vs-avatar",{staticClass:"flex-shrink-0 mr-2",attrs:{src:t.params.data.avatar,size:"30px"},on:{click:function(e){return t.$router.push(t.url)}}}),e("router-link",{staticClass:"text-inherit hover:text-primary",attrs:{to:t.url},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[t._v(t._s(t.params.value))])],1)},n=[],a={name:"CellRendererLink",computed:{url:function(){return"/apps/user/user-view/268"}}},i=a,o=r("2877"),c=Object(o["a"])(i,s,n,!1,null,null,null);e["a"]=c.exports},2401:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var s=r("d4ec"),n=r("bee2"),a=r("ade3"),i=function(){function t(e,r){Object(s["a"])(this,t),Object(a["a"])(this,"filter",void 0),this.key=e,this.title=r}return Object(n["a"])(t,[{key:"export",value:function(){var t={};return t["key"]=this.key,t["dataIndex"]=this.key,t["title"]=this.title,this._slots&&(t["scopedSlots"]=this._slots),this.filter&&(t["filter"]=this.filterType),t}},{key:"keyCol",value:function(t){return this.key=t,this}},{key:"renderSlot",value:function(t){return this._slots={customRender:t},this}},{key:"switchFilter",value:function(){return this.filter=!0,this.filterType="switch",this}}]),t}()},2672:function(t,e,r){"use strict";r("0003")},3208:function(t,e,r){"use strict";var s=function(){var t=this,e=t._self._c;return e("feather-icon",{attrs:{icon:"CircleIcon",svgClasses:["fill-current h-4 w-4",t.textColor]}})},n=[],a={name:"CellRendererVerified",computed:{textColor:function(){return this.params.value?"text-primary":"text-grey"}}},i=a,o=r("2877"),c=Object(o["a"])(i,s,n,!1,null,null,null);e["a"]=c.exports},3309:function(t,e,r){"use strict";r("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-user-view"}},[e("div",{attrs:{id:"user-data"}},[e("vx-card",{staticClass:"mb-base",attrs:{title:"اطلاعات مشتری"}},[e("div",{staticClass:"vx-row"},[e("div",{staticClass:"vx-col",attrs:{id:"avatar-col"}},[e("div",{staticClass:"img-container mb-4"},[e("img",{staticClass:"rounded w-full",attrs:{src:t.user_data.avatar,alt:""}})])]),e("div",{staticClass:"vx-col flex-1",attrs:{id:"account-info-col-1"}},[e("table",{staticClass:"flex flex-row"},[e("tr",{staticClass:"flex flex-col px-8"},[e("td",{staticClass:"font-semibold"},[t._v("نام")]),e("td",[t._v(t._s(t.user_data.name))])]),e("tr",{staticClass:"flex flex-col px-8"},[e("td",{staticClass:"font-semibold"},[t._v("کد ملی")]),e("td",[t._v("اشکانی")])]),e("tr",{staticClass:"flex flex-col px-8"},[e("td",{staticClass:"font-semibold"},[t._v("تلفن همراه")]),e("td",[t._v(t._s(t.user_data.reciver_fixed_phone))])]),e("tr",{staticClass:"flex flex-col px-8"},[e("td",{staticClass:"font-semibold"},[t._v("وضعیت")]),e("td",[t._v("فعال")])])]),e("div",{staticClass:"w-full p-6"},[e("div",{staticClass:"font-semibold"},[t._v("آدرس")]),e("div",[t._v(t._s(t.user_data.address))])])]),e("div",{staticClass:"vx-col flex-1",attrs:{id:"account-info-col-2"}},[e("table")]),e("div",{staticClass:"vx-col w-full flex",attrs:{id:"account-manage-buttons"}},[e("vs-button",{staticClass:"mr-4",attrs:{"icon-pack":"feather",icon:"icon-edit"}},[t._v("ویرایش")]),e("APopconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confrim:function(){}}},[e("template",{slot:"title"},[e("span",[t._v("مطمئنی؟")])]),e("vs-button",{attrs:{type:"border",color:"danger","icon-pack":"feather",icon:"icon-trash"}},[t._v("\n غیر فعال کردن مشتری\n ")])],2)],1)])])],1)])},n=[],a=r("4faa"),i={name:"CustomerView",data:function(){return{user_data:null,browserStatistics:[{title:"فروش هفته جاری",percent:"5",value:"1500000",ratio:50},{title:"فروش هفته گذشته",percent:"4",value:"12000000",ratio:75},{title:"فروش ماه گذشته",percent:"10",value:"125000000",ratio:42}],user_not_found:!1}},computed:{userAddress:function(){var t="";for(var e in this.user_data.location)t+="".concat(e," ");return t}},methods:{confirmDeleteRecord:function(){this.$vs.dialog({type:"confirm",color:"danger",title:"Confirm Delete",text:'You are about to delete "'.concat(this.user_data.username,'"'),accept:this.deleteRecord,acceptText:"Delete"})},deleteRecord:function(){this.$router.push({name:"app-user-list"}),this.showDeleteSuccess()},showDeleteSuccess:function(){this.$vs.notify({color:"success",title:"User Deleted",text:"The selected user was successfully deleted"})}},created:function(){var t=this;a["a"].isRegistered||(this.$store.registerModule("userManagement",a["a"]),a["a"].isRegistered=!0),this.$store.dispatch("userManagement/fetchUser",3).then((function(e){t.user_data=e.data,console.log("user_data",t.user_data)})).catch((function(e){404!==e.response.status?console.error(e):t.user_not_found=!0}))}},o=i,c=(r("2672"),r("2877")),l=Object(c["a"])(o,s,n,!1,null,null,null);e["a"]=l.exports},"3ead":function(t,e,r){"use strict";r("69b4")},"4faa":function(t,e,r){"use strict";var s={users:[]},n=(r("20d6"),{SET_USERS:function(t,e){t.users=e},REMOVE_RECORD:function(t,e){var r=t.users.findIndex((function(t){return t.id===e}));t.users.splice(r,1)}}),a=r("bb36"),i={fetchUsers:function(t){var e=t.commit;return new Promise((function(t,r){a["b"].get("/api/user-management/users").then((function(r){e("SET_USERS",r.data),t(r)})).catch((function(t){r(t)}))}))},fetchUser:function(t,e){return new Promise((function(t,r){a["b"].get("user/profile/".concat(e)).then((function(e){t(e)})).catch((function(t){r(t)}))}))},removeRecord:function(t,e){var r=t.commit;return new Promise((function(t,s){a["b"].delete("/api/user-management/users/".concat(e)).then((function(s){r("REMOVE_RECORD",e),t(s)})).catch((function(t){s(t)}))}))}},o={};e["a"]={isRegistered:!1,namespaced:!0,state:s,mutations:n,actions:i,getters:o}},"69b4":function(t,e,r){},f8a3:function(t,e,r){"use strict";var s=function(){var t=this,e=t._self._c;return e("vs-chip",{staticClass:"ag-grid-cell-chip",attrs:{color:t.chipColor(t.params.value)}},[e("span",[t._v(t._s(t.params.value))])])},n=[],a={name:"CellRendererStatus",computed:{chipColor:function(){return function(t){return"active"===t?"success":"blocked"===t?"danger":"deactivated"===t?"warning":"primary"}}}},i=a,o=(r("3ead"),r("2877")),c=Object(o["a"])(i,s,n,!1,null,null,null);e["a"]=c.exports}}]); //# sourceMappingURL=chunk-0bad4d5f.8aaad6f2.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure