/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-2d0b8e86.2cc81d1e.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b8e86"],{"314f":function(t,e,s){"use strict";s.r(e);s("7f7f");var n=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("XTable",{ref:"ListInvoice",attrs:{model:t.model},scopedSlots:t._u([{key:"number",fn:function(e,s){return[t._v("\n "+t._s(t.count++)+"\n ")]}},{key:"actions",fn:function(s,n){return e("span",{},[e("div",{staticClass:"flex gap-2"},[e("ATooltip",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("مشاهده وضعیت")]),e("feather-icon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"InfoIcon",svgClasses:"h-6 w-6 text-success"},on:{click:function(e){return t.toShow(s.record.id)}}})],1),e("ATooltip",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("حذف")]),e("feather-icon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"TrashIcon",svgClasses:"h-6 w-6 text-danger"},on:{click:function(e){return t.toDelete(s.record.id)}}})],1)],1)])}}])}),e("AModal",{attrs:{title:"مشاهده سفارش",width:"80%"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("div",[e("div",[e("ADescriptions",[e("ADescriptionsItem",{attrs:{label:"مشتری"}},[t._v("\n "+t._s(t.listBranch.name)+"\n ")]),e("ADescriptionsItem",{attrs:{label:"تلفن"}},[t._v("\n "+t._s(t.listBranch.phone)+"\n ")]),e("ADescriptionsItem",{attrs:{label:"تاریخ ثبت"}},[t._v("\n "+t._s(t.listShow.caj)+"\n ")])],1)],1),e("div",[e("ACard",[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"flex-1"},[t._v("آیتم های سفارش")]),e("div",[e("feather-icon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"EditIcon",svgClasses:"h-6 w-6 text-primary"},on:{click:function(t){}}})],1)])]),t._l(t.listProduct,(function(n,i){return e("div",{key:i},[e("ACard",[e("div",{staticClass:"grid grid-flow-col gap-x-5 items-center"},[e("div",[e("ADescriptions",{attrs:{column:20}},[e("ADescriptionsItem",[t._v("\n "+t._s(i+1)+"\n ")]),e("ADescriptionsItem",{attrs:{span:"3"}},[n.image?e("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:n.image.image,width:"90px",height:"90px"}}):e("img",{staticStyle:{"object-fit":"scale-down"},attrs:{src:s("529b"),width:"90px",height:"90px"}})]),e("ADescriptionsItem",{attrs:{span:"8",label:"نام محصول"}},[t._v("\n "+t._s(n.title)+"\n ")]),e("ADescriptionsItem",{attrs:{span:"4",label:"عنوان تنوع"}},[t._v("\n "+t._s(n.min_gram)+"\n ")]),e("ADescriptionsItem",{attrs:{span:"4",label:"وزن نهایی"}},[t._v("\n "+t._s(n.max_gram)+"\n ")])],1)],1)])])],1)}))],2)],1)]),e("div",{staticClass:"flex justify-between",attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visible=!1}}},[t._v("باشه")])],1)])],1)],1)},i=[],a=(s("96cf"),s("1da1")),r=s("bb36"),o=s("e0d2"),c=(s("07a4"),new o["b"]("https://henzagold.com/oapi/admin/branch/product/table","لیست فاکتورها"));c.add(new o["a"]("id","ردیف").filterNumber()),c.add(new o["a"]("name","نام مشتری").filterText()),c.add(new o["a"]("sum_weight","جمع کل سفارش").filterNumber().noSort()),c.add(new o["a"]("count_item","تعداد آیتم ها").filterNumber().noSort()),c.add(new o["a"]("caj","تاریخ ثبت").filterDate().noSort()),c.add(new o["a"]("allocator_user.name","ثبت کننده").renderSlot("user").noSort()),c.add(new o["a"]("note","توضیحات").filterText().noSort()),c.add(new o["a"]("op","عملیات").noSort().renderSlot("actions"));var l,d,u=c,h=s("ff6e"),p={name:"ListInvoice",components:{XTable:h["a"]},data:function(){return{count:1,model:null,visible:!1,tempRow:void 0,listShow:[],listBranch:[],listProduct:[]}},methods:{toShow:function(t){return(l=l||Object(a["a"])(regeneratorRuntime.mark((function t(e){var s,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.visible=!0,t.next=3,r["b"].get("branch/product/".concat(e));case 3:s=t.sent,n=s.data,this.listShow=n,console.log(this.listShow,"hhhhhhhh"),this.listBranch=n.branch,this.listProduct=n.product;case 9:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)},handleOk:function(t){console.log(t),this.visible=!1},toDelete:function(t){return(d=d||Object(a["a"])(regeneratorRuntime.mark((function t(e){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r["b"].delete("branch/product/".concat(e));case 3:s=t.sent,s.data,this.$refs.ListInvoice.fetch(),this.$message.success("ردیف مورد نظر حذف شد"),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:case"end":return t.stop()}}),t,this,[[0,9]])})))).apply(this,arguments)}},created:function(){this.model=u}},f=p,v=s("2877"),m=Object(v["a"])(f,n,i,!1,null,"f3b46724",null);e["default"]=m.exports}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure