/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-26dd2776.0949a9e6.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26dd2776"],{7781:function(t,e,s){"use strict";s.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a-spin",{attrs:{spinning:t.loading}},[r("vs-tabs",{staticClass:"tab-action-btn-fill-conatiner"},[r("vs-tab",{attrs:{label:"اطلاعات جامع"}},[r("div",{staticClass:"w-full grid grid-cols-1 md:grid-cols-3 gap-8"},[r("vx-card",{staticClass:"mb-8 overflow-auto w-full"},[r("div",{staticClass:"flex flex-col justify-center items-center"},[r("svg",{staticClass:"h-16 w-16 bg-primary rounded p-4 mb-4",attrs:{height:"30px",viewBox:"0 0 24 24",width:"30px",fill:"#fff"}},[r("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),r("path",{attrs:{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}})]),r("h6",{staticClass:"card-title minh40"},[t._v("جمع مبلغ کل خرید")]),r("h5",[t._v(t._s(t._f("price")(t.report.sum)))]),r("h5",[t._v("تومان")])])]),r("vx-card",{staticClass:"mb-8 overflow-auto w-full"},[r("div",{staticClass:"flex flex-col justify-center items-center"},[r("svg",{staticClass:"h-16 w-16 bg-primary rounded p-4 mb-4",attrs:{height:"30px",viewBox:"0 0 24 24",width:"30px",fill:"#fff"}},[r("g",[r("path",{attrs:{d:"M18,6h-2c0-2.21-1.79-4-4-4S8,3.79,8,6H6C4.9,6,4,6.9,4,8v12c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2V8C20,6.9,19.1,6,18,6z M12,4c1.1,0,2,0.9,2,2h-4C10,4.9,10.9,4,12,4z M18,20H6V8h2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V8h4v2c0,0.55,0.45,1,1,1s1-0.45,1-1V8 h2V20z"}})])]),r("h6",{staticClass:"card-title minh40"},[t._v("جمع کل تعداد خرید")]),r("h5",[t._v(t._s(t.report.total_orders))]),r("h5",[t._v("عدد")])])]),r("vx-card",{staticClass:"mb-8 overflow-auto w-full"},[r("div",{staticClass:"flex flex-col justify-center items-center"},[r("svg",{staticClass:"h-16 w-16 bg-primary rounded p-4 mb-4",attrs:{height:"30px",viewBox:"0 0 24 24",width:"30px",fill:"#fff"}},[r("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),r("path",{attrs:{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z"}})]),r("h6",{staticClass:"card-title minh40"},[t._v("جمع مبلغ خرید ماه گذشته")]),r("h5",[t._v(t._s(t._f("price")(t.report.sum_last_30_days)))]),r("h5",[t._v("تومان")])])])],1),r("div",{staticClass:"w-full grid grid-cols-1 md:grid-cols-3 gap-8"},[r("vx-card",{staticClass:"mb-8 overflow-auto w-full"},[r("div",{staticClass:"flex flex-col justify-center items-center"},[r("svg",{staticClass:"h-16 w-16 bg-primary rounded p-4 mb-4",attrs:{viewBox:"0 0 512 512",height:"30px",width:"30px",fill:"#fff",stroke:"#fff"}},[r("rect",{attrs:{width:"416",height:"288",x:"48",y:"144",fill:"none","stroke-linejoin":"round","stroke-width":"32",rx:"48",ry:"48"}}),r("path",{attrs:{fill:"none","stroke-linejoin":"round","stroke-width":"32",d:"M411.36 144v-30A50 50 0 0 0 352 64.9L88.64 109.85A50 50 0 0 0 48 159v49"}}),r("path",{attrs:{d:"M368 320a32 32 0 1 1 32-32a32 32 0 0 1-32 32Z"}})]),r("h6",{staticClass:"card-title minh40"},[t._v("موجودی کیف پول")]),r("h5",[t._v(t._s(t.wallet&&t.wallet.gold?t.wallet.gold:0)+" گرم")]),r("h5",[t._v(t._s(t._f("price")(t.wallet&&t.wallet.credit?t.wallet.credit:0))+" تومان")])])]),r("vx-card",{staticClass:"mb-8 overflow-auto w-full md:col-span-2"},[r("ADescriptions",[r("ADescriptionsItem",{attrs:{label:"نام"}},[t._v("\n "+t._s(t.customer.name)+"\n ")]),r("ADescriptionsItem",{attrs:{label:"تاریخ تولد"}},[t._v("\n "+t._s(t._f("jdate")(t.customer.birth_day))+"\n ")]),r("ADescriptionsItem",{attrs:{label:"تلفن"}},[t._v("\n "+t._s(t.customer.phone)+"\n ")])],1)],1)],1)]),r("vs-tab",{attrs:{label:"سفارشات"}},[r("XTable",{ref:"orderTbl",attrs:{model:t.singleOrder,"default-filters":[t.orderDefaultFilter]},scopedSlots:t._u([{key:"opt",fn:function(e){e.text;var s=e.record;return r("div",{},[r("div",{staticClass:"flex"},[r("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-primary",icon:"ListIcon",title:"مشاهده سفارش"},on:{click:function(e){return t.viewOrder(s)}}}),r("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-danger",icon:"FileIcon",title:"دانلود pdf"},on:{click:function(e){return t.viewPdf(s.id)}}})],1)])}},{key:"items_len",fn:function(e){var s=e.text;e.record;return r("div",{},[s?r("div",[t._v("\n "+t._s(s.length)+"\n ")]):t._e()])}},{key:"total_price",fn:function(e){var s=e.text;e.record;return r("div",{},[s?r("div",[t._v("\n "+t._s(t._f("priceUnit")(s))+"\n ")]):t._e()])}},{key:"sts",fn:function(e){var s=e.text,i=e.record;return r("div",{},[r("a",{attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.showSts(i)}}},[t._v(t._s(s))])])}}])}),r("AModal",{attrs:{title:"مشاهده سفارش",width:"80%"},model:{value:t.visibleList,callback:function(e){t.visibleList=e},expression:"visibleList"}},[t.tempRow?r("div",[r("ADescriptions",[r("ADescriptionsItem",{attrs:{label:"تاریخ ثبت"}},[t._v("\n "+t._s(t.tempRow.caj)+"\n ")]),r("ADescriptionsItem",{attrs:{label:"وضعیت"}},[t._v("\n "+t._s(t.tempRow.sts_str)+"\n ")]),r("ADescriptionsItem",{attrs:{label:"نام دریافت کننده محصول"}},[t._v("\n "+t._s(t.tempRow.shipping_address.reciver_fname)+"\n ")]),r("ADescriptionsItem",{attrs:{label:"تلفن همراه دریافت کننده"}},[t._v("\n "+t._s(t.tempRow.shipping_address.reciver_phone)+"\n ")]),r("ADescriptionsItem",{attrs:{label:"تلفن ثابت دریافت کننده"}},[t._v("\n "+t._s(t.tempRow.shipping_address.reciver_fixed_phone)+"\n ")])],1),r("ADescriptions",{attrs:{title:"آدرس ارسال"}},[r("ADescriptionsItem",{attrs:{label:"استان"}},[t._v("\n "+t._s(t.tempRow.shipping_address.province)+"\n ")]),r("ADescriptionsItem",{attrs:{label:"شهرستان"}},[t._v("\n "+t._s(t.tempRow.shipping_address.city)+"\n ")]),r("ADescriptionsItem",{attrs:{label:"کد پستی"}},[t._v("\n "+t._s(t.tempRow.shipping_address.zipcode)+"\n ")]),r("ADescriptionsItem",{attrs:{label:"آدرس"}},[t._v("\n "+t._s(t.tempRow.shipping_address.address)+"\n ")])],1),r("ACard",[r("div",{attrs:{slot:"title"},slot:"title"},[r("div",{staticClass:"flex "},[r("div",{staticClass:"flex-1"},[t._v("آیتم های سفارش")]),r("div")])]),t._l(t.tempRow.items,(function(e,i){return r("div",{key:i},[r("div",{staticClass:"grid grid-cols-12 gap-4"},[r("div",{staticClass:"col-span-2"},[e.product?r("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:e.product.thumb.full,width:"90px",height:"90px"}}):r("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:s("529b"),width:"90px",height:"90px"}})]),r("div",{staticClass:"col-span-10"},[r("ADescriptions",[r("ADescriptionsItem",{attrs:{label:"نام محصول"}},[r("ATag",{attrs:{color:"blue"}},[t._v(t._s(e.title))])],1),r("ADescriptionsItem",{attrs:{label:"عنوان تنوع"}},[t._v("\n "+t._s(e.variant_title)+"\n ")]),r("ADescriptionsItem",{attrs:{label:"وزن نهایی"}},[t.editMode?r("AInputNumber",{staticClass:"w-full mt-0",model:{value:e.grams,callback:function(s){t.$set(e,"grams",s)},expression:"item.grams"}}):r("ATag",{attrs:{color:"red"}},[t._v(t._s(e.grams))])],1),r("ADescriptionsItem",{attrs:{label:"تعداد"}},[t.editMode?r("AInputNumber",{model:{value:e.qty,callback:function(s){t.$set(e,"qty",s)},expression:"item.qty"}}):r("ATag",{attrs:{color:"orange"}},[t._v(t._s(e.qty))])],1),r("ADescriptionsItem",{attrs:{label:"توضیحات"}},[r("div",[t._v(t._s(e.note))])])],1)],1)]),i<t.tempRow.items.length-1?r("ADivider"):t._e()],1)}))],2)],1):r("div",[r("AEmpty")],1),r("div",{staticClass:"flex justify-between",attrs:{slot:"footer"},slot:"footer"},[r("AButton",{on:{click:function(e){t.visibleList=!1}}},[t._v("باشه")]),t.editMode?r("AButton",{attrs:{type:"danger"},on:{click:function(e){return t.editRow()}}},[t._v("ویرایش سفارش")]):t._e()],1)])],1),r("vs-tab",{attrs:{label:"تراکنش ها"}},[r("XTable",{attrs:{model:t.singleTransaction,"default-filters":[t.transactionDefaultFilter]},scopedSlots:t._u([{key:"value",fn:function(e){var s=e.text,i=e.record;return r("div",{class:{"text-danger":s<0,"text-success":s>0}},[1==i.transaction_type?[t._v("\n "+t._s(Math.abs(s))+" گرم\n ")]:[t._v("\n "+t._s(t._f("priceUnit")(Math.abs(s)))+"\n ")],r("span",s>0?[t._v(" به کیف پول اضافه شد")]:[t._v(" از کیف پول برداشته شد")])],2)}}])})],1),r("vs-tab",{attrs:{label:"پیامک ها"}},[r("XTable",{attrs:{model:t.singleSms,"default-filters":[t.smsDefaultFilter]},scopedSlots:t._u([{key:"sts",fn:function(t){return[r("a-icon",{staticClass:"text-success",style:{fontSize:"20px"},attrs:{type:"check-circle",theme:"outlined"}})]}}])})],1)],1)],1)},i=[],n=(s("96cf"),s("1da1")),a=s("bb36"),o=(s("6762"),s("2fdb"),s("e0d2")),c=s("07a4"),l=new o["b"]("https://henzagold.com/oapi/admin/single/order","لیست سفارشات");l.add(new o["a"]("id","شماره").filterNumber()),l.add(new o["a"]("total_price","جمع کل سفارش").renderSlot("total_price").filterText()),l.add(new o["a"]("items","تعداد آیتم ها").renderSlot("items_len").noSort()),l.add(new o["a"]("caj","تاریخ ثبت").filterDate().noSort()),l.add(new o["a"]("uaj","تاریخ ویرایش").hidden().filterDate().noSort()),c["a"].state.users.roles&&c["a"].state.users.roles.includes("order.tamin.state"),l.add(new o["a"]("opt","عملیات").noSort().renderSlot("opt"));var d=l,u=new o["b"]("https://henzagold.com/oapi/admin/single/transaction","لیست تراکنش ها");u.add(new o["a"]("id","شماره")),u.add(new o["a"]("order.id","شماره سفارش").filterText().renderSlot("order.id").setDefaultValue("-")),u.add(new o["a"]("value","میزان شارژ").renderSlot("value")),u.add(new o["a"]("expire_at","تاریخ انقضا").noSort().renderSlot("expire_at").setDefaultFilter("jdate").setDefaultValue("-")),u.noFilters();var p=u,h=new o["b"]("https://henzagold.com/oapi/admin/single/sms","لیست پیامک ها");h.add(new o["a"]("id","شماره")),h.add(new o["a"]("massage","متن پیامک").filterText()),h.add(new o["a"]("mobile","شماره تلفن").renderSlot("value")),h.add(new o["a"]("created_at","تاریخ انقضا").noSort().renderSlot("created_at").setDefaultFilter("jdate").setDefaultValue("-")),h.add(new o["a"]("sts","وضعیت").noSort().renderSlot("sts"));var f=h,v=s("ff6e"),m=s("98c0"),g={name:"viewSingleCustomer",components:{XTable:v["a"],TooltipBtn:m["a"]},data:function(){return{customer:{},wallet:{},report:{},loading:!1,singleOrder:d,tempRow:void 0,visibleList:!1,editMode:!1,visibleSts:!1,singleTransaction:p,singleSms:f}},computed:{id:function(){return this.$router.history.current.params.id},orderDefaultFilter:function(){return this.$route.params.id?{cr:"and",index:0,field:"user_id_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.customer.phone}:void 0}},methods:{getCustomer:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,a["c"].get("single/".concat(this.id));case 4:e=t.sent,s=e.data,this.customer=s,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.log(t.t0);case 12:return t.prev=12,this.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,this,[[0,9,12,15]])})));function e(){return t.apply(this,arguments)}return e}(),getWallet:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,a["c"].get("single/wallet/".concat(this.id));case 4:e=t.sent,s=e.data,this.wallet=s,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.log(t.t0);case 12:return t.prev=12,this.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,this,[[0,9,12,15]])})));function e(){return t.apply(this,arguments)}return e}(),getReport:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,a["c"].get("single/report/".concat(this.id));case 4:e=t.sent,s=e.data,this.report=s,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.log(t.t0);case 12:return t.prev=12,this.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,this,[[0,9,12,15]])})));function e(){return t.apply(this,arguments)}return e}(),getCustomerOrder:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,a["c"].get("single/order/".concat(this.id));case 4:e=t.sent,s=e.data,this.customer=s,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.log(t.t0);case 12:return t.prev=12,this.loading=!1,t.finish(12);case 15:case"end":return t.stop()}}),t,this,[[0,9,12,15]])})));function e(){return t.apply(this,arguments)}return e}(),viewOrder:function(t){this.tempRow=t,this.visibleList=!0},editW:function(){this.editMode=!this.editMode},editRow:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.editMode=!this.editMode,this.visibleList=!this.visibleList,this.$message.info("ویرایش موفق آمیز"),t.next=6,this.$refs.orderTbl.fetch();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),viewPdf:function(t){window.open("https://henzagold.com/oapi/admin/order/pdf/".concat(t),"_blank").focus()},showSts:function(t){this.tempRow=t,this.visibleSts=!0},removeSts:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.remove=!0,t.next=4,a["c"].post("single/order-sts/edit",e);case 4:return this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),t.next=8,this.$refs.orderTbl.fetch();case 8:t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 13:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(e){return t.apply(this,arguments)}return e}(),setSts:function(){var t=Object(n["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,a["c"].post("single/order-sts/edit",e);case 3:return this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),t.next=7,this.$refs.orderTbl.fetch();case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 12:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(e){return t.apply(this,arguments)}return e}(),getColorSts:function(t){return t.proceed?"green":"gray"}},created:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getCustomer();case 2:return t.next=4,this.getWallet();case 4:return t.next=6,this.getReport();case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},w=g,_=s("2877"),b=Object(_["a"])(w,r,i,!1,null,null,null);e["default"]=b.exports},"98c0":function(t,e,s){"use strict";var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("ATooltip",{attrs:{title:t.title}},[t.popTitle?s("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:t.popTitle},on:{confirm:t.onClick}},[s("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass}})],1):s("div",[s("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass},on:{click:t.onClick}})],1)],1)],1)},i=[],n={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},a=n,o=s("2877"),c=Object(o["a"])(a,r,i,!1,null,"00dfccd3",null);e["a"]=c.exports}}]); //# sourceMappingURL=chunk-26dd2776.0949a9e6.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure