/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-26de026b.0c81250a.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26de026b"],{"92a6":function(e,t,r){"use strict";r.r(t);r("7f7f");var n=function(){var e=this,t=e._self._c;return t("a-spin",{attrs:{spinning:e.loading}},[t("vs-tabs",{staticClass:"tab-action-btn-fill-conatiner"},[t("vs-tab",{attrs:{label:"اطلاعات جامع"}},[t("vx-card",{staticClass:"mb-8 overflow-auto w-full"},[t("ADescriptions",[t("ADescriptionsItem",{attrs:{label:"نام"}},[e._v("\n "+e._s(e.report.name)+"\n ")]),t("ADescriptionsItem",{attrs:{label:"تلفن"}},[e._v("\n "+e._s(e.report.phone)+"\n ")]),t("ADescriptionsItem",{attrs:{label:"سطح اعتبار"}},[e._v("\n "+e._s(e.report.gram_level)+"\n ")]),t("ADescriptionsItem",{attrs:{label:"درصد"}},[e._v("\n "+e._s(e.report.percent)+"\n ")]),t("ADescriptionsItem",{attrs:{label:"بدهی گرمی"}},[e._v("\n "+e._s(e.report.remain)+"\n ")]),t("ADescriptionsItem",{attrs:{label:"بدهی ریالی"}},[e._v("\n "+e._s(e.report.rial_remain)+"\n ")]),t("ADescriptionsItem",{attrs:{label:"میزان فروش"}},[e._v("\n "+e._s(e.report.grams_sell)+"\n ")]),t("ADescriptionsItem",{attrs:{label:"تاریخ ثبت"}},[e._v("\n "+e._s(e.report.caj)+"\n ")]),t("ADescriptionsItem",{attrs:{label:"وضعیت ثبت سفارش"}},[e._v("\n "+e._s(e.report.sts_str)+"\n ")]),t("ADescriptionsItem",{attrs:{label:"وضعیت حساب کاربری"}},[e._v("\n "+e._s(1==e.report.active?"فعال":"غیر فعال")+"\n ")])],1)],1)],1),t("vs-tab",{attrs:{label:"سفارشات"}},[t("XTable",{ref:"orderTbl",attrs:{model:e.omdeOrder,"default-filters":[e.orderDefaultFilter]},scopedSlots:e._u([{key:"w",fn:function(r){var n=r.text;r.record;return t("div",{},[n?t("div",[e._v("\n "+e._s(n)+" گرم\n ")]):e._e()])}}])})],1),t("vs-tab",{attrs:{label:"تراکنش ها"}},[t("XTable",{attrs:{model:e.omdeTransaction,"default-filters":[e.transactionDefaultFilter]},scopedSlots:e._u([{key:"value",fn:function(r){var n=r.text,a=r.record;return t("div",{class:{"text-danger":n<0,"text-success":n>0}},[1==a.transaction_type?[e._v("\n "+e._s(Math.abs(n))+" گرم\n ")]:[e._v("\n "+e._s(e._f("priceUnit")(Math.abs(n)))+"\n ")],t("span",n>0?[e._v(" به کیف پول اضافه شد")]:[e._v(" از کیف پول برداشته شد")])],2)}}])})],1),t("vs-tab",{attrs:{label:"پیامک ها"}},[t("XTable",{attrs:{model:e.omdeSms,"default-filters":[e.smsDefaultFilter]},scopedSlots:e._u([{key:"sts",fn:function(e){return[t("a-icon",{staticClass:"text-success",style:{fontSize:"20px"},attrs:{type:"check-circle",theme:"outlined"}})]}}])})],1),t("vs-tab",{attrs:{label:"مشتریان عمده"}},[t("XTable",{attrs:{model:e.omdeCustomer,"default-filters":[e.customerDefaultFilter]}})],1)],1)],1)},a=[],s=(r("96cf"),r("1da1")),i=r("bb36"),o=r("e0d2"),c=new o["b"]("https://henzagold.com/oapi/admin/major/order","لیست سفارشات");c.add(new o["a"]("id","شماره").filterNumber()),c.add(new o["a"]("w","جمع کل سفارش").renderSlot("w").filterText()),c.add(new o["a"]("type_str","وضعیت سفارش").noSort()),c.add(new o["a"]("caj","تاریخ ثبت").filterDate().noSort()),c.add(new o["a"]("uaj","تاریخ ویرایش").hidden().filterDate().noSort());var l=c,d=new o["b"]("https://henzagold.com/oapi/admin/major/cash","لیست تراکنش ها");d.add(new o["a"]("id","شماره")),d.add(new o["a"]("order.id","شماره سفارش").filterText().renderSlot("order.id").setDefaultValue("-")),d.add(new o["a"]("value","میزان شارژ").renderSlot("value")),d.add(new o["a"]("expire_at","تاریخ انقضا").noSort().renderSlot("expire_at").setDefaultFilter("jdate").setDefaultValue("-")),d.noFilters();var u=d,p=new o["b"]("https://henzagold.com/oapi/admin/major/sms","لیست پیامک ها");p.add(new o["a"]("id","شماره")),p.add(new o["a"]("massage","متن پیامک").filterText()),p.add(new o["a"]("mobile","شماره تلفن").renderSlot("value")),p.add(new o["a"]("created_at","تاریخ انقضا").noSort().renderSlot("created_at").setDefaultFilter("jdate").setDefaultValue("-")),p.add(new o["a"]("sts","وضعیت").noSort().renderSlot("sts"));var f=p,m=new o["b"]("https://henzagold.com/oapi/admin/major/customer","لیست مشتریان");m.add(new o["a"]("id","شماره").filterNumber()),m.add(new o["a"]("name","نام").filterText()),m.add(new o["a"]("mobile","شماره تلفن").noSort()),m.add(new o["a"]("store_name","نام سفارش").noSort()),m.add(new o["a"]("sts_str","وضعیت").noSort()),m.add(new o["a"]("type_str","نوع مشتری").noSort());var h=m,v=r("ff6e"),b=r("98c0"),w={name:"viewomdeCustomer",components:{XTable:v["a"],TooltipBtn:b["a"]},data:function(){return{wallet:{},report:{},loading:!1,omdeOrder:l,tempRow:void 0,visibleList:!1,editMode:!1,visibleSts:!1,omdeTransaction:u,omdeSms:f,omdeCustomer:h}},computed:{id:function(){return this.$router.history.current.params.id},orderDefaultFilter:function(){return this.$route.params.id?{cr:"and",index:0,field:"customer_id",type:"default",id:.1,op:"eq",value:this.$route.params.id}:void 0},getIcon:function(){return this.editMode?"CheckIcon":"EditIcon"},transactionDefaultFilter:function(){return this.$route.params.id?{cr:"and",index:0,field:"customer_id",type:"default",id:.1,op:"eq",value:this.$route.params.id}:void 0},smsDefaultFilter:function(){return this.$route.params.id?{cr:"and",index:0,field:"mobile",type:"default",id:.1,op:"eq",value:this.report.phone}:void 0},customerDefaultFilter:function(){return this.$route.params.id?{cr:"and",index:0,field:"reagent_id",type:"default",id:.1,op:"eq",value:this.$route.params.id}:void 0}},methods:{getReport:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,i["c"].get("major/dashboard/".concat(this.id));case 4:t=e.sent,r=t.data,this.report=r,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:return e.prev=12,this.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,9,12,15]])})));function t(){return e.apply(this,arguments)}return t}(),viewOrder:function(e){this.tempRow=e,this.visibleList=!0},editW:function(){this.editMode=!this.editMode},editRow:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.editMode=!this.editMode,this.visibleList=!this.visibleList,this.$message.info("ویرایش موفق آمیز"),e.next=6,this.$refs.orderTbl.fetch();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),this.$message.error("خطا در ویرایش");case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),viewPdf:function(e){window.open("https://henzagold.com/oapi/admin/order/pdf/".concat(e),"_blank").focus()},showSts:function(e){this.tempRow=e,this.visibleSts=!0},removeSts: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,t.remove=!0,e.next=4,i["c"].post("major/order-sts/edit",t);case 4:return this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),e.next=8,this.$refs.orderTbl.fetch();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),this.$message.error("خطا در ویرایش");case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(t){return e.apply(this,arguments)}return t}(),setSts: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,i["c"].post("major/order-sts/edit",t);case 3:return this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),e.next=7,this.$refs.orderTbl.fetch();case 7:e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),this.$message.error("خطا در ویرایش");case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),getColorSts:function(e){return e.proceed?"green":"gray"}},created:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getReport();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},_=w,g=r("2877"),x=Object(g["a"])(_,n,a,!1,null,null,null);t["default"]=x.exports},"98c0":function(e,t,r){"use strict";var n=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)},a=[],s={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},i=s,o=r("2877"),c=Object(o["a"])(i,n,a,!1,null,"00dfccd3",null);t["a"]=c.exports}}]); //# sourceMappingURL=chunk-26de026b.0c81250a.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure