Bank.c83ea956.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Bank"],{"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"32c3":function(e,t,a){},"35d5":function(e,t,a){"use strict";var n=a("32c3"),r=a.n(n);r.a},"841c":function(e,t,a){"use strict";var n=a("d784"),r=a("825a"),i=a("1d80"),s=a("129f"),o=a("14c3");n("search",1,(function(e,t,a){return[function(t){var a=i(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,a):new RegExp(t)[e](String(a))},function(e){var n=a(t,e,this);if(n.done)return n.value;var i=r(e),l=String(this),c=i.lastIndex;s(c,0)||(i.lastIndex=0);var d=o(i,l);return s(i.lastIndex,c)||(i.lastIndex=c),null===d?-1:d.index}]}))},dc6e:function(e,t,a){},ed04:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"system_Bank","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"crm_search"},[a("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[a("el-row",[a("el-col",{attrs:{span:24,md:24,lg:24}},[a("el-form-item",{staticStyle:{"margin-right":"10px"},attrs:{prop:"status"}},[a("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.valid,callback:function(t){e.$set(e.search,"valid",t)},expression:"search.valid"}},[a("el-option",{attrs:{label:e.$t("State.All"),value:null},nativeOn:{click:function(t){return e.searchFunc(t)}}}),a("el-option",{attrs:{label:e.$t("State.Freeze"),value:0},nativeOn:{click:function(t){return e.searchFunc(t)}}}),a("el-option",{attrs:{label:e.$t("State.Normal"),value:1},nativeOn:{click:function(t){return e.searchFunc(t)}}})],1)],1)],1)],1),a("el-form-item",[a("div",{staticClass:"search_action_btn"},[e.display["R-Bank-Add"].show?a("span",{staticClass:"crm-cursor",on:{click:e.addVarieties}},[a("i",{staticClass:"el-icon-plus"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]})]):e._e(),e.multipleSelection.length&&e.display["R-Bank-Delete"].show?a("span",{staticClass:"crm-cursor delete active",on:{click:e.daleteAll}},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e(),!e.multipleSelection.length&&e.display["R-Bank-Delete"].show?a("span",{staticClass:"crm-cursor delete"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()])])],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"left",type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.SubIndex")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.subIndex)+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("system_info.Label.ChineseName")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("system_info.Label.EnglishNames")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.enName||"--")+" ")]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.CnIcon")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.icon?a("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{lazy:!1,src:e.imgUrl+t.row.icon,"preview-src-list":[e.imgUrl+t.row.icon]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[a("i",{staticClass:"el-icon-picture-outline"})])]):a("span",[e._v(e._s("--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.EnIcon")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.enIcon?a("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{lazy:!1,src:e.imgUrl+t.row.enIcon,"preview-src-list":[e.imgUrl+t.row.enIcon]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[a("i",{staticClass:"el-icon-picture-outline"})])]):a("span",[e._v(e._s("--"))])]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:e.$i18n.t("Label.State")},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.valid?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Normal",expression:"'State.Normal'"}],staticClass:"state crm_state_blue"}):e._e(),0==t.row.valid?a("span",{directives:[{name:"t",rawName:"v-t",value:"State.Freeze",expression:"'State.Freeze'"}],staticClass:"state crm_state_red"}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link crm-cursor"},[a("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.display["R-Bank-Update"].show?a("el-dropdown-item",{attrs:{command:{type:"editor",row:t.row}}},[a("i",{staticClass:"el-icon-s-operation"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):e._e(),e.display["R-Bank-Delete"].show?a("el-dropdown-item",{attrs:{command:{type:"delete",id:t.row.id}}},[a("i",{staticClass:"el-icon-delete"}),a("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()],1)],1)]}}])})],1),e.pagerInfo.rowTotal?a("div",{staticClass:"crm_pagination"},[a("div",{staticClass:"crm_page_total"},[a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),a("span",[e._v(e._s(e.pagerInfo.rowTotal))]),a("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),a("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e(),a("trading-info-add",{attrs:{dialogInfoTradingAdd:e.dialogInfoTradingAdd,editor:e.editor,addType:e.addType,myInfo:e.myInfo,formList:e.formList},on:{confirmToReload:e.confirmToReload,closeAdd:e.closeAdd}}),e.dialogInfoTradingAdd?a("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDiaAdd}}):e._e()],1)},r=[],i=(a("4160"),a("ac1f"),a("841c"),a("159b"),a("5530")),s=(a("96cf"),a("1da1")),o=a("da7c"),l=a("f121"),c=a.n(l),d=a("8fd6"),u=c.a.Code,p={name:"Bank",components:{TradingInfoAdd:d["a"]},data:function(){return{imgUrl:c.a.Host85,pictLoading:!1,mock_tableData:[],search:{valid:null},multipleSelection:[],dialogInfoTradingAdd:!1,editor:"",addType:"",myInfo:{},formList:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{display:function(){return JSON.parse(this.Session.Get("display",!0))}},methods:{handleCommand:function(e){"editor"==e.type?(this.editor=1,this.getSymbolSingle(e.row.id)):"delete"==e.type&&this.delete(e.id)},closeDiaAdd:function(){this.dialogInfoTradingAdd=!1,this.editor=""},closeAdd:function(e){this.dialogInfoTradingAdd=e},addVarieties:function(){this.editor="",this.addType="system_Bank",this.dialogInfoTradingAdd=!0},confirmToReload:function(){this.closeDiaAdd(),this.toSearch()},handleSelectionChange:function(e){var t=this;this.multipleSelection=[],e.forEach((function(e){t.multipleSelection.push(e.id)}))},daleteAll:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=e,e.$pigeon.MessageConfirm(e.$i18n.t("Msg.Delete"),e.$i18n.t("Msg.SystemPrompt"),e.$i18n.t("Btn.Confirm"),e.$i18n.t("Btn.Cancel"),Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["a"].deleteBank({ids:a.multipleSelection});case 2:t=e.sent,t.code==u.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(t.msg);case 4:case"end":return e.stop()}}),e)}))),(function(){}));case 2:case"end":return t.stop()}}),t)})))()},delete:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=[],a.push(t),n=this,this.$pigeon.MessageConfirm(this.$i18n.t("Msg.Delete"),this.$i18n.t("Msg.SystemPrompt"),this.$i18n.t("Btn.Confirm"),this.$i18n.t("Btn.Cancel"),Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["a"].deleteBank({ids:a});case 2:t=e.sent,t.code==u.StatusOK?(n.$pigeon.MessageOK(n.$i18n.t("Msg.DeleteSuccess")),n.searchFunc()):n.$pigeon.MessageError(t.msg);case 4:case"end":return e.stop()}}),e)}))),(function(){}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getSymbolSingle:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,o["a"].BankSingle({id:e});case 2:n=a.sent,n.code==u.StatusOK?(t.formList=n.data,t.editor=1,t.addType="system_Bank",t.dialogInfoTradingAdd=!0,t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess"))):t.$pigeon.MessageError(n.msg);case 4:case"end":return a.stop()}}),a)})))()},searchFunc:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,e.display["R-Bank-Search"].show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return t.next=7,o["a"].BankList(Object(i["a"])(Object(i["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 7:a=t.sent,a.code==u.StatusOK?(e.mock_tableData=a.data,null!=a.page?(e.pagerInfo.rowTotal=a.page.rowTotal,e.pagerInfo.pageTotal=a.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess"))):e.$pigeon.MessageError(a.msg),e.pictLoading=!1;case 10:case"end":return t.stop()}}),t)})))()},getSearchDate:function(e){this.search.date=e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()}},mounted:function(){this.searchFunc()}},g=p,m=(a("fb06"),a("35d5"),a("2877")),f=Object(m["a"])(g,n,r,!1,null,"fe359116",null);t["default"]=f.exports},fb06:function(e,t,a){"use strict";var n=a("dc6e"),r=a.n(n);r.a}}]);