/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-970be7e8.28c04079.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-970be7e8"],{"0e817":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-user-list"}},[e("ASpin",{attrs:{type:"loading",spinning:t.loading}},[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:"type_customer",fn:function(o){var n=o.text;o.record;return e("div",{},[t._v("\n "+t._s(2==n?"عمده":"تک")+"\n ")])}},{key:"opt",fn:function(o){o.text;var n=o.record;return e("div",{},[t.$hasPermission("offers.list.tak.edit")&&1===n.type_customer||t.$hasPermission("offers.list.edit")&&2===n.type_customer?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:function(e){return t.toEdit(n)}}})],1):t._e(),t.$hasPermission("offers.list.tak.remove")&&1===n.type_customer||t.$hasPermission("offers.list.remove")&&2===n.type_customer?e("ATooltip",[e("a-popconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.deletePromotion(n)}}},[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):t._e()],1)}}])})],1)])],1)],1)},i=[],r=(o("96cf"),o("1da1")),s=o("ff6e"),a=o("e0d2"),c=new a["b"]("https://henzagold.com/oapi/admin/major/promotion/table","لیست تخفیف عمده فروشی");c.add(new a["a"]("id","شماره تخفیف").filterNumber()),c.add(new a["a"]("title","عنوان").filterText()),c.add(new a["a"]("description","توضیحات").filterText()),c.add(new a["a"]("type_str","نوع تخفیف").filterText()),c.add(new a["a"]("start_atj","تاریخ شروع").filterText()),c.add(new a["a"]("end_atj","تاریخ پایان").filterText()),c.add(new a["a"]("type_customer","نوع مشتری").filterText().renderSlot("type_customer")),c.add(new a["a"]("opt","عملیات").noSort().renderSlot("opt"));var l=c,d=o("98c0"),p=o("04c5"),u={name:"promotion_list",data:function(){return{loading:!1,model:l}},methods:{toEdit:function(t){2==t.type_customer?window.open("/admin/major/promotion/edit/".concat(t.id),"_blank").focus():1==t.type_customer&&window.open("/admin/major/promotion/tak/edit/".concat(t.id),"_blank").focus()},deletePromotion:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,this.$http.delete("major/promotion/"+e.id);case 4:o=t.sent,o.data,this.$message.success("تخفیف حذف شد "),this.$refs.tbl.fetch(),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),console.log(t.t0);case 13:return t.prev=13,this.loading=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,this,[[0,10,13,16]])})));function e(e){return t.apply(this,arguments)}return e}()},components:{XTable:s["a"],TooltipBtn:d["a"],FeatherIcon:p["a"]},mounted:function(){}},f=u,m=o("2877"),h=Object(m["a"])(f,n,i,!1,null,"4f65dbf3",null);e["default"]=h.exports},"98c0":function(t,e,o){"use strict";var n=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)},i=[],r={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},s=r,a=o("2877"),c=Object(a["a"])(s,n,i,!1,null,"00dfccd3",null);e["a"]=c.exports}}]); //# sourceMappingURL=chunk-970be7e8.28c04079.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure