/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-26f20ad9.c3312f0b.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26f20ad9"],{"98c0":function(t,e,n){"use strict";var a=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)},o=[],r={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},i=r,s=n("2877"),c=Object(s["a"])(i,a,o,!1,null,"00dfccd3",null);e["a"]=c.exports},e4f3:function(t,e,n){"use strict";n.r(e);var a=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:"opt",fn:function(n){n.text;var a=n.record;return e("div",{},[!a.confirmed&&t.$hasPermission("document.list.confirm")?e("ATooltip",[e("a-popconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.changeConfirme(a)}}},[e("template",{slot:"title"},[e("p",[t._v("آیا سند تایید شود ؟")])]),e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"CheckIcon",svgClasses:"h-6 w-6 text-success"}})],2),e("span",{attrs:{slot:"title"},slot:"title"},[t._v("تایید سند")])],1):t._e(),a.confirmed&&t.$hasPermission("document.list.deny")?e("ATooltip",[e("a-popconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.changeConfirme(a)}}},[e("template",{slot:"title"},[e("p",[t._v("آیا سند رد شود ؟")])]),e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"XIcon",svgClasses:"h-6 w-6 text-danger"}})],2),e("span",{attrs:{slot:"title"},slot:"title"},[t._v("رد کردن سند")])],1):t._e(),t.$hasPermission("document.list.edit")?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(a.id)}}})],1):t._e(),t.$hasPermission("document.list.remove")?e("ATooltip",[e("a-popconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.deleteCash(a)}}},[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(),t.$hasPermission("document.list.get")?e("div",{staticStyle:{display:"inline-block"}},[e("a",{staticClass:"flex items-center text-sm",attrs:{href:t.getDownloadLinkReport(a.id),target:"_blank"}},[e("feather-icon",{staticClass:"text-success",attrs:{icon:"FileIcon",svgClasses:"w-5 h-5 "}})],1)]):t._e()],1)}},{key:"confirmed",fn:function(n){n.text;var a=n.record;return e("div",{},[e("div",{staticClass:"flex"},[a.confirmed?e("ATag",{attrs:{color:"green"}},[t._v("تایید شده")]):e("ATag",{attrs:{color:"red"}},[t._v("تایید نشده")])],1)])}}])})],1)])],1)],1)},o=[],r=(n("96cf"),n("1da1")),i=n("ff6e"),s=n("e0d2"),c=new s["b"]("https://henzagold.com/oapi/admin/cash/table","لیست اسناد");c.add(new s["a"]("id","شماره سفارش").filterNumber()),c.add(new s["a"]("type_str","نوع سند").filterText()),c.add(new s["a"]("price","پول").filterDate().noSort()),c.add(new s["a"]("value","وزن نهایی (گرم)").filterDate().noSort()),c.add(new s["a"]("to","به").filterText().hidden()),c.add(new s["a"]("customer.name","نام و نام خانوادگی مشتری").filterText()),c.add(new s["a"]("note","توضیحات").filterText()),c.add(new s["a"]("ayar","عیار").filterNumber().noSort()),c.add(new s["a"]("lab","آزمایشگاه").filterText().noSort()),c.add(new s["a"]("recive_date","تاریخ دریافت").filterDate().noSort()),c.add(new s["a"]("account_name","نام حساب").filterText().hidden()),c.add(new s["a"]("bank_name","بانک").filterText().hidden()),c.add(new s["a"]("caj","تاریخ ثبت").filterDate().noSort()),c.add(new s["a"]("uaj","بروزرسانی").hidden().filterDate().noSort()),c.add(new s["a"]("confirmed","وضعیت تایید سند").renderSlot("confirmed").noSort().filterSelect({0:"تایید نشده",1:"تایید شده"})),c.add(new s["a"]("price_per_gram","مظنه").hidden().filterText().noSort()),c.add(new s["a"]("original_value","وزن طلای داده شده").hidden().filterText().noSort()),c.add(new s["a"]("ang","انگ").hidden().filterText().noSort()),c.add(new s["a"]("opt","عملیات").noSort().renderSlot("opt"));var l=c,d=n("98c0"),p=n("04c5"),f=n("bb36"),u={name:"list",data:function(){return{loading:!1,model:l}},methods:{getDownloadLinkReport:function(t){return f["a"]+"report/doc?doc_id=".concat(t)},changeConfirme:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var n;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.post("cash/confirem/"+e.id);case 4:n=t.sent,n.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}(),toEdit:function(t){window.open("/admin/edit/findoc/".concat(t),"_blank").focus()},deleteCash:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var n;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("cash/"+e.id);case 4:n=t.sent,n.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:i["a"],TooltipBtn:d["a"],FeatherIcon:p["a"]},mounted:function(){}},h=u,m=n("2877"),v=Object(m["a"])(h,a,o,!1,null,"7c842934",null);e["default"]=v.exports}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure