/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-8f0a5e6e.2bf19395.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f0a5e6e"],{"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)},i=[],r={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"})}}},n=r,l=s("2877"),o=Object(l["a"])(n,a,i,!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)},i=[],r={name:"CellRendererLink",computed:{url:function(){return"/apps/user/user-view/268"}}},n=r,l=s("2877"),o=Object(l["a"])(n,a,i,!1,null,null,null);e["a"]=o.exports},2401:function(t,e,s){"use strict";s.d(e,"a",(function(){return n}));var a=s("d4ec"),i=s("bee2"),r=s("ade3"),n=function(){function t(e,s){Object(a["a"])(this,t),Object(r["a"])(this,"filter",void 0),this.key=e,this.title=s}return Object(i["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]}})},i=[],r={name:"CellRendererVerified",computed:{textColor:function(){return this.params.value?"text-primary":"text-grey"}}},n=r,l=s("2877"),o=Object(l["a"])(n,a,i,!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)])},i=[],r=s("4faa"),n={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;r["a"].isRegistered||(this.$store.registerModule("userManagement",r["a"]),r["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=n,o=(s("2672"),s("2877")),c=Object(o["a"])(l,a,i,!1,null,null,null);e["a"]=c.exports},"3ead":function(t,e,s){"use strict";s("69b4")},"477d":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("ACard",{attrs:{"body-style":{padding:"8px"}}},[e("div",{staticClass:"flex"},[e("div",{staticClass:"flex flex-col"},[e("label",{staticClass:"mt-2"},[t._v("نوع مشتری ")]),e("ASelect",{staticClass:"w-64",model:{value:t.filterType,callback:function(e){t.filterType=e},expression:"filterType"}},t._l(t.typeOptions,(function(s){return e("ASelectOption",{key:s.value},[t._v(t._s(s.label))])})),1)],1),e("div",{staticClass:"flex flex-col ml-6"},[e("label",{staticClass:"mt-2"},[t._v("وضعیت مشتری ")]),e("ASelect",{staticClass:"w-64",model:{value:t.filterSts,callback:function(e){t.filterSts=e},expression:"filterSts"}},t._l(t.statusOptions,(function(s){return e("ASelectOption",{key:s.value},[t._v(t._s(s.label))])})),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},scopedSlots:t._u([{key:"filterDropdown",fn:function(t){t.setSelectedKeys,t.selectedKeys,t.confirm,t.clearFilters,t.column;return e("div",{staticStyle:{padding:"8px"}})}},{key:"tags",fn:function(s){return e("div",{},[t._v("\n Wow "+t._s(s)+"\n ")])}}])},[e("span",{attrs:{slot:"customTitle"},slot:"customTitle"},[e("a-icon",{attrs:{type:"smile-o"}}),t._v(" Name")],1),e("div",{attrs:{slot:"op"},slot:"op"},[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:t.toEdit}})],1),e("ATooltip",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("مشاهده")]),e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"InfoIcon",svgClasses:"h-6 w-6 text-warning"},on:{click:function(e){t.detailsPopup=!0}}})],1),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)},i=[],r=(s("401b"),s("4e06"),s("4a7a")),n=s.n(r),l=s("1746"),o=s("f8a3"),c=s("3208"),u=s("0319"),d=s("04c5"),f=s("bee2"),p=s("d4ec"),v=s("ade3"),m=s("2401"),h=Object(f["a"])((function t(){Object(p["a"])(this,t),Object(v["a"])(this,"cols",[new m["a"]("user_id.fname","نام").renderSlot("name").export(),new m["a"]("user_id.lname","نام خانوادگی").export(),new m["a"]("account_code","کد مشتری").export(),new m["a"]("user_id.phone","تلفن همراه").export(),new m["a"]("national_code","کد ملی").export(),new m["a"]("city","نوع مشتری").switchFilter().export(),new m["a"]("rial_credit","اعتبار ریالی").export(),new m["a"]("action","عملیات").renderSlot("op").export()])})),_=(new h).cols,x=s("3309"),C={components:{CustomerView:x["a"],vSelect:n.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",name:"علی",lname:"منتظر",code:102550,ncode:127001026,type_str:"عمده ای",bz_name:"آریا زرین",reagent:"علی منتظر",mobile:"09138081392",bag_name:"محمد آذری",product_fee:"25000",max_credit:"12500000",time_clearing:"20 روز"},{key:"2",name:"سعید",lname:"غفاریان",code:102551,ncode:127001025,type_str:"عمده ای",bz_name:"گزارش",reagent:"علی منتظر",mobile:"09138081392",bag_name:"محمد آذری",product_fee:"25000",max_credit:"12500000",time_clearing:"20 روز"},{key:"3",name:"احمد رضا",lname:"مقتدایی",code:102552,ncode:127001025,type_str:"عمده ای",bz_name:"زرین مهر",reagent:"علی منتظر",mobile:"09138081392",bag_name:"محمد آذری",product_fee:"25000",max_credit:"12500000",time_clearing:"20 روز"}],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=_}},g=C,b=s("2877"),y=Object(b["a"])(g,a,i,!1,null,null,null);e["default"]=y.exports},"4faa":function(t,e,s){"use strict";var a={users:[]},i=(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)}}),r=s("bb36"),n={fetchUsers:function(t){var e=t.commit;return new Promise((function(t,s){r["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){r["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){r["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:i,actions:n,getters:l}},"69b4":function(t,e,s){},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))])])},i=[],r={name:"CellRendererStatus",computed:{chipColor:function(){return function(t){return"active"===t?"success":"blocked"===t?"danger":"deactivated"===t?"warning":"primary"}}}},n=r,l=(s("3ead"),s("2877")),o=Object(l["a"])(n,a,i,!1,null,null,null);e["a"]=o.exports}}]); //# sourceMappingURL=chunk-8f0a5e6e.2bf19395.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure