/
home
/
henzagold
/
adminN
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminN/export/js/chunk-7c503690.b87887b0.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c503690"],{"1ae5":function(t,e,i){"use strict";i.r(e);var s=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:{removeCardAction:!1,title:"فاکتور خرید"}},[e("div",[e("XTable",{ref:"tbl",attrs:{model:t.model},scopedSlots:t._u([{key:"opt",fn:function(i){i.text;var s=i.record;return e("div",{},[e("div",{staticClass:"flex"},[e("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-primary",icon:"ListIcon",title:"مشاهده سفارش"},on:{click:function(e){return t.viewOrder(s)}}})],1)])}}])}),t.$hasPermission("order.list.sts")?e("AModal",{attrs:{title:"وضعیت سفارش"},model:{value:t.visibleSts,callback:function(e){t.visibleSts=e},expression:"visibleSts"}},[t.tempRow?e("ATimeline",t._l(t.tempRow.activity,(function(i,s){return e("ATimelineItem",{key:s,attrs:{color:t.getColorSts(i)}},[e("div",{staticClass:"flex flex-col"},[e("div",[t._v("\n "+t._s(i.title)+"\n ")]),i.proceed?e("div",[e("div",{staticClass:"flex"},[e("div",{staticClass:"flex-1"},[e("ATag",[t._v(t._s(i.uaj))])],1),s>0&&t.$hasPermission("order.list.sts.remove")?e("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"بی خیال"},on:{confirm:function(e){return t.removeSts(i)}}},[e("template",{slot:"title"},[e("p",[t._v("آیا مطمئن به حذف وضعیت مورد نظر هستید ؟")])]),e("AButton",{attrs:{size:"mini",type:"danger"}},[t._v("\n حذف وضعیت\n ")])],2):t._e()],1)]):t._e(),i.proceed?e("div",[t._v("\n "+t._s(i.note)+"\n ")]):t._e()])])})),1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visibleSts=!1}}},[t._v("باشه")])],1)],1):t._e(),e("AModal",{attrs:{title:"مشاهده سفارش",width:"80%"},model:{value:t.visibleList,callback:function(e){t.visibleList=e},expression:"visibleList"}},[t.tempRow?e("div",[e("ADescriptions",[e("ADescriptionsItem",{attrs:{label:"تاریخ ثبت"}},[t._v("\n "+t._s(t.tempRow.caj)+"\n ")])],1),e("ACard",[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"flex-1"},[t._v("آیتم های سفارش")]),e("div")])]),t._l(t.tempRow.product,(function(s,n){return e("div",{key:n},[e("div",{staticClass:"grid grid-cols-12 gap-4"},[e("div",{staticClass:"col-span-2"},[s.image?e("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:s.image.image,width:"90px",height:"90px"}}):e("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:i("529b"),width:"90px",height:"90px"}})]),e("div",{staticClass:"col-span-10"},[e("ADescriptions",[e("ADescriptionsItem",{attrs:{label:"نام محصول"}},[e("ATag",{attrs:{color:"blue"}},[t._v(t._s(s.title))])],1),e("ADescriptionsItem",{attrs:{label:"عنوان تنوع"}},[t._v("\n "+t._s(s.variants[0].title)+"\n ")]),e("ADescriptionsItem",{attrs:{label:"وزن "}},[e("ATag",{attrs:{color:"red"}},[t._v(t._s(s.variants[0].grams))])],1)],1)],1)])])}))],2)],1):e("div",[e("AEmpty")],1),e("div",{staticClass:"flex justify-between",attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visibleList=!1}}},[t._v("باشه")])],1)])],1)])],1)},n=[],r=(i("96cf"),i("1da1")),o=i("ff6e"),a=i("e0d2"),c=(i("07a4"),new a["b"]("https://henzagold.com/oapi/admin/branch/product/table","فاکتور خرید"));c.add(new a["a"]("id","شماره").filterNumber()),c.add(new a["a"]("count_item","تعداد آیتم ها").noSort()),c.add(new a["a"]("sum_weight","جمع وزن").noSort()),c.add(new a["a"]("caj","تاریخ ثبت").filterDate().noSort()),c.add(new a["a"]("uaj","تاریخ ویرایش").hidden().filterDate().noSort()),c.add(new a["a"]("opt","عملیات").noSort().renderSlot("opt"));var l=c,d=i("98c0"),u=i("bb36"),p=i("ed08"),f={components:{TooltipBtn:d["a"],XTable:o["a"]},data:function(){return{model:l,tempRow:void 0,visibleList:!1,tempItem:void 0,editMode:!1,visibleSts:!1}},computed:{is_branch:function(){return Object(p["a"])()},getIcon:function(){return this.editMode?"CheckIcon":"EditIcon"}},methods:{getColorSts:function(t){return t.proceed?"green":"gray"},showSts:function(t){this.tempRow=t,this.visibleSts=!0},editW:function(t){this.editMode=!this.editMode},setSts:function(){var t=Object(r["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,u["b"].post("single/order-sts/edit",e);case 3:this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch(),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(e){return t.apply(this,arguments)}return e}(),removeSts:function(){var t=Object(r["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,u["b"].post("single/order-sts/edit",e);case 4:this.visibleSts=!1,this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch(),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}(),editRow:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:try{this.editMode=!this.editMode,this.visibleList=!this.visibleList,this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch()}catch(e){this.$message.error("خطا در ویرایش")}case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),viewOrder:function(t){this.tempRow=t,this.visibleList=!0},viewPdf:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:window.open("https://henzagold.com/oapi/admin/order/pdf/".concat(e),"_blank").focus();case 1:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()},created:function(){},mounted:function(){}},v=f,m=(i("cdff"),i("2877")),h=Object(m["a"])(v,s,n,!1,null,null,null);e["default"]=h.exports},5150:function(t,e,i){},"98c0":function(t,e,i){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",[e("ATooltip",{attrs:{title:t.title}},[t.popTitle?e("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:t.popTitle},on:{confirm:t.onClick}},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass}})],1):e("div",[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass},on:{click:t.onClick}})],1)],1)],1)},n=[],r={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},o=r,a=i("2877"),c=Object(a["a"])(o,s,n,!1,null,"00dfccd3",null);e["a"]=c.exports},cdff:function(t,e,i){"use strict";i("5150")}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure