/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: //home/henzagold/admin_report/js/chunk-26d9de40.54e98ea3.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26d9de40"],{"0058":function(t,e,i){"use strict";i.r(e);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("div",[e("XTable",{ref:"tbl",attrs:{model:t.model},scopedSlots:t._u([{key:"opt",fn:function(i){i.text;var n=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(n)}}}),e("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-success",icon:"FileTextIcon",title:"سند های مالی"},on:{click:function(e){return t.viewCash(n)}}}),1==n.sts?e("TooltipBtn",{attrs:{"icon-class":"w-5 h-5 text-danger",icon:t.getStsIcon(n),title:"توقف سفارش","pop-title":"آیا مطمئن هستید؟"},on:{click:function(e){return t.toggleSts(n)}}}):e("TooltipBtn",{attrs:{"icon-class":"w-5 h-5 text-success",icon:t.getStsIcon(n),title:"فعال سازی سفارش سفارش","pop-title":"آیا مطمئن هستید؟"},on:{click:function(e){return t.toggleSts(n)}}})],1)])}},{key:"items_len",fn:function(i){var n=i.text;i.record;return e("div",{},[n?e("div",[t._v("\n "+t._s(n.length)+"\n ")]):t._e()])}},{key:"sts",fn:function(i){var n=i.text,r=i.record;return e("div",{},[1==r.sts?e("ATag",{attrs:{color:"green"}},[t._v(t._s(n))]):e("ATag",{attrs:{color:"red"}},[t._v(t._s(n))])],1)}}])}),e("AModal",{attrs:{title:"مشاهده سفارش",width:"80%"},model:{value:t.visibleList,callback:function(e){t.visibleList=e},expression:"visibleList"}},[t.tempRow?e("div",[e("ATable",{attrs:{columns:t.orderCols,"data-source":t.tempRow.order}})],1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visibleList=!1}}},[t._v("باشه")])],1)]),e("AModal",{attrs:{title:"مشاهده سند های مالی",width:"80%"},model:{value:t.visibleCashList,callback:function(e){t.visibleCashList=e},expression:"visibleCashList"}},[t.tempRow?e("div",[e("ATable",{attrs:{columns:t.cashCols,"data-source":t.tempRow.cash},scopedSlots:t._u([{key:"info",fn:function(i,n){return[2===n.type||3===n.type?e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.viewDeatil(n)}}},[t._v("\n مشاهده اطلاعات\n ")]):t._e()]}},{key:"operation",fn:function(i,n){return[n.confirmed?e("ATag",{attrs:{color:"green"}},[t._v("تایید شده")]):1===n.type||2===n.type?e("a-popconfirm",{attrs:{title:"مورد تایید می باشد ؟","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.confirmDoc(n)}}},[e("a",{attrs:{href:"#"}},[t._v("تایید سند ؟")])]):e("a-popover",{attrs:{title:"میزان پول به گرم",trigger:"click"}},[e("template",{slot:"content"},[e("a-input-number",{model:{value:t.gram,callback:function(e){t.gram=e},expression:"gram"}}),e("br"),e("br"),e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeMoneyToGold(n)}}},[t._v("\n ثبت اطلاعات\n ")])],1),e("a",{attrs:{href:"#"}},[t._v("پول به گرم ؟")])],2)]}}],null,!1,1618094842)})],1):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visibleCashList=!1}}},[t._v("باشه")])],1)]),e("AModal",{attrs:{title:"اطلاعات سند مالی",width:"40%"},model:{value:t.visibleDetailList,callback:function(e){t.visibleDetailList=e},expression:"visibleDetailList"}},[t.detail?e("div",[3===t.detail.type?e("div",[e("p",[t._v("در تاریخ : "+t._s(t.detail.caj))]),e("p",[t._v("مبلغ چک : "+t._s(t.detail.no))]),e("p",[t._v("تاریخ سر رسید : "+t._s(t.detail.proceed_at))]),e("p",[t._v("نام صاحب حساب : "+t._s(t.detail.account_name))]),e("p",[t._v("نام بانک : "+t._s(t.detail.bank_name))])]):e("div",[e("p",[t._v("در تاریخ : "+t._s(t.detail.caj))]),e("p",[t._v("میزان طلا : "+t._s(t.detail.value))]),e("p",[t._v("حواله به : "+t._s(t.detail.to))])])]):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visibleDetailList=!1}}},[t._v("باشه")])],1)])],1)])],1)},r=[],o=(i("96cf"),i("1da1")),s=i("ff6e"),a=i("e0d2"),c=new a["b"]("","لیست مشتریان های عمده");c.add(new a["a"]("id","کد").filterNumber()),c.add(new a["a"]("name","نام").filterText()),c.add(new a["a"]("mobile","موبایل").filterText().hidden().noSort()),c.add(new a["a"]("reagent.name","مشتری").filterText().noSort()),c.add(new a["a"]("child","تعداد مشتریان").filterNumber().hidden().noSort()),c.add(new a["a"]("gram_level","سطح اعتبار").filterNumber().noSort()),c.add(new a["a"]("remain","بدهی گرمی").filterNumber().noSort()),c.add(new a["a"]("open_order","سفارشات باز").filterNumber().noSort()),c.add(new a["a"]("total_order","تعداد کل سفارشات").filterNumber().hidden().noSort()),c.add(new a["a"]("caj","تاریخ ثبت").filterDate().noSort()),c.add(new a["a"]("uaj","بروزرسانی").hidden().filterDate().noSort()),c.add(new a["a"]("sts_str","وضعیت").renderSlot("sts").noSort()),c.add(new a["a"]("opt","عملیات").noSort().renderSlot("opt"));var l=c,d=i("98c0"),u={components:{TooltipBtn:d["a"],XTable:s["a"]},data:function(){return{gram:0,model:l,tempRow:void 0,tempItem:void 0,detail:void 0,editMode:!1,visibleCashList:!1,visibleList:!1,visibleDetailList:!1,cashCols:[{title:"شماره",dataIndex:"id"},{title:"عنوان",dataIndex:"title"},{title:"مقدار",dataIndex:"value"},{title:"نوع",dataIndex:"type_str"},{title:"وضعیت",dataIndex:"sts_str"},{title:"تاریخ ایجاد",dataIndex:"caj"},{title:"آزمایشگاه",dataIndex:"lab"},{title:"یادداشت",dataIndex:"note"},{title:"وضعیت سند",dataIndex:"operation",scopedSlots:{customRender:"operation"}},{title:"اطلاعات سند",dataIndex:"info",scopedSlots:{customRender:"info"}}],orderCols:[{title:"شماره",dataIndex:"id"},{title:"تاریخ",dataIndex:"caj"},{title:"مقدار",dataIndex:"input"},{title:"اجرت",dataIndex:"wage"},{title:"نوع",dataIndex:"type_str"},{title:"وضعیت",dataIndex:"sts_str"}],visibleSts:!1}},computed:{getIcon:function(){return this.editMode?"CheckIcon":"EditIcon"}},methods:{goToAdd:function(){this.$router.push("/customer/omde-add")},acceptOrder:function(){},getStsIcon:function(t){return 1==t.sts?"SlashIcon":"CheckIcon"},deleteOrder:function(){},getColorSts:function(t){return t.proceed?"green":"gray"},showSts:function(t){this.tempRow=t,this.visibleSts=!0},editW:function(t){this.editMode=!this.editMode},toggleSts:function(){var t=Object(o["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,oapi.post("customer/toggle-sts",e);case 3:this.$message.info("ویرایش موفق آمیز"),this.$refs.tbl.fetch(),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(e){return t.apply(this,arguments)}return e}(),editRow:function(){var t=Object(o["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,oapi.post("order-item/edit",e);case 3:this.editMode=!this.editMode,this.$message.info("ویرایش موفق آمیز"),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),this.$message.error("خطا در ویرایش");case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(e){return t.apply(this,arguments)}return e}(),viewOrder:function(t){this.tempRow=t,this.visibleList=!0},viewCash:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.tempRow=e,this.visibleCashList=!0;case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),viewDeatil:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.detail=e,console.log("this.row",e),this.visibleDetailList=!0;case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),confirmDoc:function(){var t=Object(o["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,oapi.post("set-confiremdDoc",{id:e.id});case 3:e.confirmed=1,this.$message.success("سند تایید شد"),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),this.$message.error("خطا در تایید سند");case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(e){return t.apply(this,arguments)}return e}(),changeMoneyToGold:function(){var t=Object(o["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,oapi.post("set-gramforfindoc",{id:e.id,gram:this.gram});case 3:e.confirmed=1,this.gram=0,this.$message.success("اطلاعات ثبت شد"),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}()}},p=u,f=i("2877"),v=Object(f["a"])(p,n,r,!1,null,null,null);e["default"]=v.exports},"98c0":function(t,e,i){"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)},r=[],o={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},s=o,a=i("2877"),c=Object(a["a"])(s,n,r,!1,null,"00dfccd3",null);e["a"]=c.exports}}]); //# sourceMappingURL=chunk-26d9de40.54e98ea3.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure