/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-622be1fb.009debf2.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-622be1fb"],{"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,o=s("2877"),l=Object(o["a"])(i,a,r,!1,null,null,null);e["a"]=l.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,o=s("2877"),l=Object(o["a"])(i,a,r,!1,null,null,null);e["a"]=l.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,o=s("2877"),l=Object(o["a"])(i,a,r,!1,null,null,null);e["a"]=l.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}))}},o=i,l=(s("2672"),s("2877")),c=Object(l["a"])(o,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)}))}))}},o={};e["a"]={isRegistered:!1,namespaced:!0,state:a,mutations:r,actions:i,getters:o}},"69b4":function(t,e,s){},"78cd":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(" تایید دسته جمعی ")]),e("a-menu-item",{key:"2"},[t._v(" حذف دسته جمعی ")]),e("a-menu-item",{key:"2"},[t._v(" خروجی اکسل ")])],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("ATable",{attrs:{pagination:!1,columns:t.colsInner,"data-source":t.dataInner},scopedSlots:t._u([{key:"expandedRowRender",fn:function(s){return e("div",{},[e("p",[t._v(t._s(s.note))])])}}])})],1)]),e("ATable",{staticClass:"p-0 m-0",attrs:{pagination:!1,columns:t.cols,"data-source":t.data},scopedSlots:t._u([{key:"expandedRowRender",fn:function(s){return e("div",{},[e("span",{staticClass:"text-danger"},[t._v("شرح سفارش: ")]),e("p",[t._v("\n "+t._s(s.note)+"\n ")])])}},{key:"id",fn:function(s){return e("div",{},[e("a",{staticClass:"text-primary",on:{click:function(){return t.detailsPopup=!0}}},[t._v(t._s(s))])])}}])},[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:"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)},r=[],n=(s("4e06"),s("4a7a")),i=s.n(n),o=s("1746"),l=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"]("id","شماره سفارش ").renderSlot("id").export(),new h["a"]("total_price","مبلغ").export(),new h["a"]("phone","شماره تلفن").export(),new h["a"]("app","پلتفرم").export(),new h["a"]("sts_str","وضعیت").export(),new h["a"]("profile.user_id.lname","مشتری").export(),new h["a"]("action","عملیات").renderSlot("op").export()])})),x=Object(f["a"])((function t(){Object(p["a"])(this,t),Object(v["a"])(this,"cols",[new h["a"]("id","کدمحصول").renderSlot("id").export(),new h["a"]("name","نام محصول").export(),new h["a"]("total","تعداد فروش رفته").export(),new h["a"]("w","وزن فروش رفته").export(),new h["a"]("price","جمع فروش رفته").export(),new h["a"]("creator","سازنده").export(),new h["a"]("supplier","تامین کننده").export()])})),_=(new m).cols,C=s("3309"),b={components:{CustomerView:C["a"],vSelect:i.a,FeatherIcon:d["a"],CellRendererLink:o["a"],CellRendererStatus:l["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",id:"#125000",w:"250",debt:"250.000",w_debt:"150 گرم",price:"150.100",p_debt:"250.000",p_to:"154.250.000",bag:"علی منتظر",note:"نکته مهم دیگر این است که وقتی بر پایه یک کالا گواهی سپرده صادر می شود، آن کالا قابلیت قرار گرفتن در سبد سرمایه گذاری افراد را پیدا می کند. به این ترتیب، شرکت های سبدگردانی نیز می توانند سبد متنوعی از انواع دارایی ها "}],dataInner:[{name:"انگشتر نگین 120",total:"2 عدد",creator:"طلای جمشید",supplier:"محمد غفرانی",id:"#125000",w:"250",debt:"250.000",w_debt:"150 گرم",price:"150.100",p_debt:"250.000",p_to:"154.250.000",bag:"علی منتظر",note:"نکته مهم دیگر این است که وقتی بر پایه یک کالا گواهی سپرده صادر می شود، آن کالا قابلیت قرار گرفتن در سبد سرمایه گذاری افراد را پیدا می کند. به این ترتیب، شرکت های سبدگردانی نیز می توانند سبد متنوعی از انواع دارایی ها "}],searchQuery:"",gridApi:null,cols:null,colsInner:null,gridOptions:{},defaultColDef:{sortable:!0,resizable:!0,suppressMenu:!0},components:{CellRendererLink:o["a"],CellRendererStatus:l["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=_,this.colsInner=(new x).cols}},g=b,w=s("2877"),y=Object(w["a"])(g,a,r,!1,null,null,null);e["default"]=y.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,o=(s("3ead"),s("2877")),l=Object(o["a"])(i,a,r,!1,null,null,null);e["a"]=l.exports}}]); //# sourceMappingURL=chunk-622be1fb.009debf2.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure