/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: //home/henzagold/admin_report/js/chunk-1099df6d.21aca19c.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1099df6d"],{"0003":function(t,e,s){},"0319":function(t,e,s){"use strict";var a=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)},r=[],n={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=n,l=s("2877"),o=Object(l["a"])(i,a,r,!1,null,null,null);e["a"]=o.exports},1746:function(t,e,s){"use strict";var a=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)},r=[],n={name:"CellRendererLink",computed:{url:function(){return"/apps/user/user-view/268"}}},i=n,l=s("2877"),o=Object(l["a"])(i,a,r,!1,null,null,null);e["a"]=o.exports},2401:function(t,e,s){"use strict";s.d(e,"a",(function(){return i}));var a=s("d4ec"),r=s("bee2"),n=s("ade3"),i=function(){function t(e,s){Object(a["a"])(this,t),Object(n["a"])(this,"filter",void 0),this.key=e,this.title=s}return Object(r["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,s){"use strict";s("0003")},3208:function(t,e,s){"use strict";var a=function(){var t=this,e=t._self._c;return e("feather-icon",{attrs:{icon:"CircleIcon",svgClasses:["fill-current h-4 w-4",t.textColor]}})},r=[],n={name:"CellRendererVerified",computed:{textColor:function(){return this.params.value?"text-primary":"text-grey"}}},i=n,l=s("2877"),o=Object(l["a"])(i,a,r,!1,null,null,null);e["a"]=o.exports},3309:function(t,e,s){"use strict";s("7f7f");var a=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)])},r=[],n=s("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;n["a"].isRegistered||(this.$store.registerModule("userManagement",n["a"]),n["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}))}},l=i,o=(s("2672"),s("2877")),c=Object(o["a"])(l,a,r,!1,null,null,null);e["a"]=c.exports},"3ead":function(t,e,s){"use strict";s("69b4")},"4faa":function(t,e,s){"use strict";var a={users:[]},r=(s("20d6"),{SET_USERS:function(t,e){t.users=e},REMOVE_RECORD:function(t,e){var s=t.users.findIndex((function(t){return t.id===e}));t.users.splice(s,1)}}),n=s("bb36"),i={fetchUsers:function(t){var e=t.commit;return new Promise((function(t,s){n["b"].get("/api/user-management/users").then((function(s){e("SET_USERS",s.data),t(s)})).catch((function(t){s(t)}))}))},fetchUser:function(t,e){return new Promise((function(t,s){n["b"].get("user/profile/".concat(e)).then((function(e){t(e)})).catch((function(t){s(t)}))}))},removeRecord:function(t,e){var s=t.commit;return new Promise((function(t,a){n["b"].delete("/api/user-management/users/".concat(e)).then((function(a){s("REMOVE_RECORD",e),t(a)})).catch((function(t){a(t)}))}))}},l={};e["a"]={isRegistered:!1,namespaced:!0,state:a,mutations:r,actions:i,getters:l}},"69b4":function(t,e,s){},"761f":function(t,e,s){"use strict";s.r(e);var a=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.resetColFilters}},[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:"جستجو"},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("a-dropdown-button",[t._v("\n عملیات\n "),e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",{key:"1"},[t._v("\n تایید دسته جمعی\n ")]),e("a-menu-item",{key:"2"},[t._v("\n حذف دسته جمعی\n ")]),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("CustomerView")],1)]),e("ATable",{staticClass:"p-0 m-0",attrs:{pagination:!1,columns:t.cols,"data-source":t.data}},[e("div",{attrs:{slot:"op"},slot:"op"},[e("ATooltip",[e("a-popconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.confirmDelete()}}},[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)},r=[],n=(s("4e06"),s("4a7a")),i=s.n(n),l=s("1746"),o=s("f8a3"),c=s("3208"),u=s("0319"),d=s("04c5"),f=s("bee2"),p=s("d4ec"),v=s("ade3"),h=s("2401"),m=Object(f["a"])((function t(){Object(p["a"])(this,t),Object(v["a"])(this,"cols",[new h["a"]("bag_name","نام مشتری").export(),new h["a"]("cat","تاریخ سفارش ").export(),new h["a"]("w","جمع وزنی").export(),new h["a"]("price","جمع ریالی").export(),new h["a"]("customer","نام مشتری").export(),new h["a"]("when","زمان تحویل").export(),new h["a"]("sts","وضعیت").export(),new h["a"]("action","عملیات").renderSlot("op").export()])})),x=(new m).cols,C=s("3309"),g={components:{CustomerView:C["a"],vSelect:i.a,FeatherIcon:d["a"],CellRendererLink:l["a"],CellRendererStatus:o["a"],CellRendererVerified:c["a"],CellRendererActions:u["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"}],data:[{key:"1",bag_name:"محمد آذری",customer:"علی قربانی",cat:"25-01-99 10:26",price:"2,500,000",w:"250 گرم",sts:"پردازش نشده",when:"2 اردیبهشت 99"}],searchQuery:"",gridApi:null,cols:null,gridOptions:{},defaultColDef:{sortable:!0,resizable:!0,suppressMenu:!0},components:{CellRendererLink:l["a"],CellRendererStatus:o["a"],CellRendererVerified:c["a"],CellRendererActions:u["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},paginationPageSize:function(){return this.gridApi?this.gridApi.paginationGetPageSize():10},totalPages:function(){return this.gridApi?this.gridApi.paginationGetTotalPages():0},currentPage:{get:function(){return 1},set:function(t){}}},methods:{setColumnFilter:function(t,e){var s=this.gridApi.getFilterInstance(t),a=null;"all"!==e&&(a={type:"equals",filter:e}),s.setModel(a),this.gridApi.onFilterChanged()},toEdit:function(){this.$router.push({name:"app-customer-edit",params:{userId:268}})},confirmDelete:function(){this.gridApi.onFilterChanged()},resetColFilters:function(){this.$refs.filterCard.removeRefreshAnimation()},updateSearchQuery:function(t){this.gridApi.setQuickFilter(t)}},created:function(){this.cols=x}},_=g,b=s("2877"),w=Object(b["a"])(_,a,r,!1,null,null,null);e["default"]=w.exports},f8a3:function(t,e,s){"use strict";var a=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))])])},r=[],n={name:"CellRendererStatus",computed:{chipColor:function(){return function(t){return"active"===t?"success":"blocked"===t?"danger":"deactivated"===t?"warning":"primary"}}}},i=n,l=(s("3ead"),s("2877")),o=Object(l["a"])(i,a,r,!1,null,null,null);e["a"]=o.exports}}]); //# sourceMappingURL=chunk-1099df6d.21aca19c.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure