| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Agent"],{"3d68":function(e,t,a){"use strict";a("681f")},"5ddb":function(e,t,a){"use strict";a("ba3a")},"681f":function(e,t,a){},9932:function(e,t,a){"use strict";var r=a("c7eb"),n=a("1da1"),o=a("d4ec"),s=a("bee2"),i=a("8f33"),c=a("262e"),l=a("ff2d"),u=a("bc3a"),p=a.n(u),d=a("f121"),f=a.n(d),m=function(e){function t(){var e;return Object(o["a"])(this,t),e=Object(i["a"])(this,t),p.a.defaults.baseURL=f.a.Host85,e}return Object(c["a"])(t,e),Object(s["a"])(t,[{key:"Country",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/country/get",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentList",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/agent/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentSingle",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/agent/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentAdd",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/agent/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentUpdate",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/agent/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentDelete",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/agent/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentApprove",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/agent/approve",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetList",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/subset/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetSingle",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/subset/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetAdd",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/subset/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetUpdate",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/subset/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetDelete",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/subset/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetApprove",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/subset/approve",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsList",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/us/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsSingle",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/us/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsAdd",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/us/add",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsUpdate",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/us/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsDelete",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/us/delete",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsApprove",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperative/partner/us/approve",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperateTwSearchList",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperate/tw/search/list",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperateTwUpdate",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperate/tw/update",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperateTwSearchSingle",value:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(){var t,a,n=arguments;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.post("/cooperate/tw/search/single",t);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}])}(l["a"]);t["a"]=new m},a3be:function(e,t,a){"use strict";a.r(t);a("ac1f"),a("841c"),a("498a");var r=function(){var e,t,a,r=this,n=r._self._c;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:r.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"cooperative_Agent","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[n("div",{staticClass:"crm_search"},[n("el-form",{ref:"form",attrs:{"label-position":"",model:r.search,"label-width":""}},[n("el-row",[n("el-col",{attrs:{span:24,md:24,lg:24}},[n("el-form-item",{staticStyle:{"margin-right":"10px"},attrs:{prop:"status"}},[n("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:r.$t("Placeholder.Choose")},model:{value:r.search.status,callback:function(e){r.$set(r.search,"status",e)},expression:"search.status"}},[n("el-option",{attrs:{label:r.$t("State.All"),value:null},nativeOn:{click:function(e){return r.toSearch.apply(null,arguments)}}}),n("el-option",{attrs:{label:r.$t("Cooperative.Agent.Unprocessed"),value:0},nativeOn:{click:function(e){return r.toSearch.apply(null,arguments)}}}),n("el-option",{attrs:{label:r.$t("Cooperative.Agent.Processed"),value:1},nativeOn:{click:function(e){return r.toSearch.apply(null,arguments)}}})],1)],1),n("el-form-item",[n("el-select",{staticClass:"crm_search_down crm-border-radius-no",attrs:{size:"small",placeholder:r.$t("Placeholder.Choose")},model:{value:r.search.tag,callback:function(e){r.$set(r.search,"tag",e)},expression:"search.tag"}},[n("el-option",{attrs:{label:r.$t("Cooperative.Agent.Email"),value:1}}),n("el-option",{attrs:{label:r.$t("Cooperative.Agent.Phone"),value:2}})],1)],1),n("el-form-item",{staticStyle:{"margin-right":"10px"}},[1==r.search.tag?n("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:r.$t("Placeholder.Input")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"enter",13,e.key,"Enter")?null:r.toSearch.apply(null,arguments)}},model:{value:r.search.email,callback:function(e){r.$set(r.search,"email","string"===typeof e?e.trim():e)},expression:"search.email"}}):r._e(),2==r.search.tag?n("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:r.$t("Placeholder.Input")},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"enter",13,e.key,"Enter")?null:r.toSearch.apply(null,arguments)}},model:{value:r.search.phone,callback:function(e){r.$set(r.search,"phone","string"===typeof e?e.trim():e)},expression:"search.phone"}}):r._e()],1),n("el-form-item",[n("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":r.$t("Placeholder.Start"),"end-placeholder":r.$t("Placeholder.End")},on:{input:r.getSearchDate},model:{value:r.search.date,callback:function(e){r.$set(r.search,"date",e)},expression:"search.date"}}),n("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:r.toSearch}})],1)],1)],1),n("el-form-item",[n("div",{staticClass:"search_action_btn"},[null!==(e=r.display["R-Cooperative-Agent-Add"])&&void 0!==e&&e.show?n("span",{staticClass:"crm-cursor",on:{click:r.addVarieties}},[n("i",{staticClass:"el-icon-plus"}),n("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]})]):r._e(),r.multipleSelection.length&&null!==(t=r.display["R-Cooperative-Agent-Delete"])&&void 0!==t&&t.show?n("span",{staticClass:"crm-cursor delete active",on:{click:r.daleteAll}},[n("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):r._e(),!r.multipleSelection.length&&null!==(a=r.display["R-Cooperative-Agent-Delete"])&&void 0!==a&&a.show?n("span",{staticClass:"crm-cursor delete"},[n("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):r._e()])])],1)],1),n("el-table",{staticStyle:{width:"100%"},attrs:{data:r.mock_tableData,stripe:""},on:{"selection-change":r.handleSelectionChange}},[n("el-table-column",{attrs:{align:"left",type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"",align:"left",label:r.$i18n.t("Cooperative.Agent.Name")},scopedSlots:r._u([{key:"default",fn:function(e){return[r._v(" "+r._s(e.row.firstName+" "+e.row.lastName)+" ")]}}])}),n("el-table-column",{attrs:{prop:"",align:"left",label:r.$i18n.t("Label.countrys")},scopedSlots:r._u([{key:"default",fn:function(e){return[r._v(" "+r._s(e.row.country+"-"+("cn"==r.lang?e.row.countryName:e.row.countryNameEn))+" ")]}}])}),n("el-table-column",{attrs:{prop:"",align:"left",label:r.$i18n.t("Cooperative.Agent.Email")},scopedSlots:r._u([{key:"default",fn:function(e){return[r._v(" "+r._s(e.row.email||"--")+" ")]}}])}),n("el-table-column",{attrs:{prop:"",align:"left",label:r.$i18n.t("Cooperative.Agent.Phone")},scopedSlots:r._u([{key:"default",fn:function(e){return[r._v(" "+r._s(e.row.phone||"--")+" ")]}}])}),n("el-table-column",{attrs:{prop:"",align:"left",label:r.$i18n.t("Cooperative.Agent.Remarks")},scopedSlots:r._u([{key:"default",fn:function(e){return[r._v(" "+r._s(e.row.remarks||"--")+" ")]}}])}),n("el-table-column",{attrs:{prop:"",align:"left",label:r.$i18n.t("Cooperative.Agent.HandleRemarks")},scopedSlots:r._u([{key:"default",fn:function(e){return[r._v(" "+r._s(e.row.approveDesc||"--")+" ")]}}])}),n("el-table-column",{attrs:{prop:"",align:"left",label:r.$i18n.t("Cooperative.Agent.AddTime")},scopedSlots:r._u([{key:"default",fn:function(e){return[r._v(" "+r._s(e.row.addTime||"--")+" ")]}}])}),n("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:r.$i18n.t("Label.State")},scopedSlots:r._u([{key:"default",fn:function(e){return[1==e.row.status?n("span",{directives:[{name:"t",rawName:"v-t",value:"Cooperative.Agent.Processed",expression:"'Cooperative.Agent.Processed'"}],staticClass:"state crm_state_blue"}):r._e(),0==e.row.status?n("span",{directives:[{name:"t",rawName:"v-t",value:"Cooperative.Agent.Unprocessed",expression:"'Cooperative.Agent.Unprocessed'"}],staticClass:"state crm_state_red"}):r._e()]}}])}),n("el-table-column",{attrs:{prop:"",align:"center",label:r.$i18n.t("Label.Action")},scopedSlots:r._u([{key:"default",fn:function(e){var t,a,o;return[n("el-dropdown",{attrs:{trigger:"click"},on:{command:r.handleCommand}},[n("span",{staticClass:"el-dropdown-link crm-cursor"},[n("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[0==e.row.status&&null!==(t=r.display["R-Cooperative-Agent-Approve"])&&void 0!==t&&t.show?n("el-dropdown-item",{attrs:{command:{type:"check",row:e.row}}},[n("i",{staticClass:"el-icon-s-operation"}),n("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.DealWith",expression:"'Btn.DealWith'"}]})]):r._e(),null!==(a=r.display["R-Cooperative-Agent-Update"])&&void 0!==a&&a.show?n("el-dropdown-item",{attrs:{command:{type:"editor",row:e.row}}},[n("i",{staticClass:"el-icon-s-operation"}),n("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):r._e(),null!==(o=r.display["R-Cooperative-Agent-Delete"])&&void 0!==o&&o.show?n("el-dropdown-item",{attrs:{command:{type:"delete",id:e.row.id}}},[n("i",{staticClass:"el-icon-delete"}),n("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):r._e()],1)],1)]}}])})],1),r.pagerInfo.rowTotal?n("div",{staticClass:"crm_pagination"},[n("div",{staticClass:"crm_page_total"},[n("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),n("span",[r._v(r._s(r.pagerInfo.rowTotal))]),n("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),n("el-pagination",{staticClass:"page",attrs:{background:"",layout:"sizes, prev, pager, next","page-sizes":[10,20,50,100],"page-size":r.pagerInfo.row,total:r.pagerInfo.rowTotal},on:{"current-change":r.handleCurrentChange,"size-change":r.handleSizeChange}})],1):r._e(),n("el-dialog",{attrs:{title:r.$t("Apply_info.ActivitiesApply.Title"),visible:r.dialogCheck,center:"","custom-class":"dialog_header_w"},on:{"update:visible":function(e){r.dialogCheck=e}}},[n("div",{staticClass:"dia-content"},[n("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form",attrs:{model:r.dialogCheck_form,rules:r.rules,"label-width":"135px"}},[n("el-form-item",{attrs:{prop:"",label:r.$t("Cooperative.Agent.Name")+":"}},[r._v(" "+r._s(r.dialogCheck_form.firstName+" "+r.dialogCheck_form.lastName)+" ")]),n("el-form-item",{attrs:{prop:"",label:r.$t("Cooperative.Agent.Email")+":"}},[r._v(" "+r._s(r.dialogCheck_form.email)+" ")]),n("el-form-item",{attrs:{prop:"",label:r.$t("Cooperative.Agent.Phone")+":"}},[r._v(" "+r._s(r.dialogCheck_form.phone)+" ")]),n("el-form-item",{attrs:{prop:"status",label:r.$t("Label.State")+":"}},[n("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:r.$t("Placeholder.Choose")},model:{value:r.dialogCheck_form.status,callback:function(e){r.$set(r.dialogCheck_form,"status",e)},expression:"dialogCheck_form.status"}},[n("el-option",{attrs:{label:r.$t("Cooperative.Agent.Processed"),value:1}})],1)],1),n("el-form-item",{attrs:{prop:"approveDesc",label:r.$t("Cooperative.Agent.HandleRemarks")+":"}},[n("el-input",{staticClass:"crm_search_down",attrs:{type:"textarea",rows:2,size:"small",placeholder:r.$t("Placeholder.Input")},model:{value:r.dialogCheck_form.approveDesc,callback:function(e){r.$set(r.dialogCheck_form,"approveDesc",e)},expression:"dialogCheck_form.approveDesc"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(e){return r.toVerified()}}}),n("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:r.cancel}})],1)],1)]),n("trading-info-add",{attrs:{dialogInfoTradingAdd:r.dialogInfoTradingAdd,editor:r.editor,myInfo:r.myInfo,formList:r.formList},on:{confirmToReload:r.confirmToReload,closeAdd:r.closeAdd}}),r.dialogInfoTradingAdd?n("div",{staticClass:"crm_verified_info_mask",on:{click:r.closeDiaAdd}}):r._e()],1)},n=[],o=a("c7eb"),s=a("5530"),i=a("1da1"),c=(a("14d9"),a("e9f5"),a("7d54"),a("d3b7"),a("159b"),a("9932")),l=a("f121"),u=a.n(l),p=(a("b0c0"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"InfoBox",class:{active:e.dialogInfoTradingAdd},attrs:{id:"TradingDetailedInfoAdd"}},[t("div",{staticClass:"header"},[t("div",[t("span",{directives:[{name:"t",rawName:"v-t",value:"R-Cooperative-Agent",expression:"'R-Cooperative-Agent'"}],staticClass:"title"})]),t("span",{staticClass:"close crm-cursor",on:{click:e.close}},[t("i",{staticClass:"el-icon-close"})])]),e.editor?e._e():t("el-form",{ref:"form",attrs:{rules:e.rules,model:e.form,"label-width":"120PX"}},[t("el-form-item",{attrs:{prop:"firstName",label:e.$t("Cooperative.Agent.FirstName")+":"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.firstName,callback:function(t){e.$set(e.form,"firstName",t)},expression:"form.firstName"}})],1),t("el-form-item",{attrs:{prop:"lastName",label:e.$t("Cooperative.Agent.LastName")+":"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.lastName,callback:function(t){e.$set(e.form,"lastName",t)},expression:"form.lastName"}})],1),t("el-form-item",{attrs:{prop:"country",label:e.$t("Label.countrys")+":"}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",clearable:"",filterable:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.form.country,callback:function(t){e.$set(e.form,"country",t)},expression:"form.country"}},e._l(e.countryData,(function(a,r){return t("el-option",{key:r,attrs:{label:"cn"==e.lang?a.name:a.enName,value:a.code},nativeOn:{click:function(t){return e.selectCountry(a)}}})})),1)],1),t("el-form-item",{attrs:{prop:"email",label:e.$t("Cooperative.Agent.Email")+":"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1),t("el-form-item",{attrs:{prop:"phone",label:e.$t("Cooperative.Agent.Phone")+":"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),t("el-form-item",{attrs:{prop:"",label:e.$t("Cooperative.Agent.Remarks")+":"}},[t("el-input",{attrs:{size:"small",type:"textarea",rows:2,placeholder:e.$t("Placeholder.Input")},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1),e.editor?t("el-form",{ref:"form",attrs:{rules:e.rules,model:e.form,"label-width":"120PX"}},[t("el-form-item",{attrs:{prop:"firstName",label:e.$t("Cooperative.Agent.FirstName")+":"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.firstName,callback:function(t){e.$set(e.form,"firstName",t)},expression:"form.firstName"}})],1),t("el-form-item",{attrs:{prop:"lastName",label:e.$t("Cooperative.Agent.LastName")+":"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.lastName,callback:function(t){e.$set(e.form,"lastName",t)},expression:"form.lastName"}})],1),t("el-form-item",{attrs:{prop:"country",label:e.$t("Label.countrys")+":"}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",clearable:"",filterable:"",placeholder:e.$t("Placeholder.Choose")},on:{change:e.selectChange},model:{value:e.form.country,callback:function(t){e.$set(e.form,"country",t)},expression:"form.country"}},e._l(e.countryData,(function(a,r){return t("el-option",{key:r,attrs:{label:"cn"==e.lang?a.name:a.enName,value:a.code},nativeOn:{click:function(t){return e.selectCountry(a)}}})})),1)],1),t("el-form-item",{attrs:{prop:"email",label:e.$t("Cooperative.Agent.Email")+":"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1),t("el-form-item",{attrs:{prop:"phone",label:e.$t("Cooperative.Agent.Phone")+":"}},[t("el-input",{attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),t("el-form-item",{attrs:{prop:"",label:e.$t("Cooperative.Agent.Remarks")+":"}},[t("el-input",{attrs:{size:"small",type:"textarea",rows:2,placeholder:e.$t("Placeholder.Input")},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1):e._e(),t("span",{staticClass:"btn crm-cursor",on:{click:e.confirm}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}]})])],1)}),d=[],f=u.a.Code,m={name:"CooperativeAgent",props:{dialogInfoTradingAdd:{type:Boolean,default:!1},editor:{default:""},myInfo:{default:""},formList:{default:""}},data:function(){return{flag:!1,form:{firstName:"",lastName:"",email:"",phone:"",remarks:"",country:"",countryName:"",countryNameEn:""},countryData:[],rules:{firstName:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],lastName:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],email:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],phone:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],remarks:[{required:!0,message:this.$i18n.t("vaildate.input.empty"),trigger:"blur"}],country:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"change"}]}}},computed:{lang:function(){return this.Session.Get("lang")}},methods:{selectChange:function(){this.$forceUpdate()},close:function(){this.$emit("closeAdd",!1)},confirmToReload:function(){this.$emit("confirmToReload",!0)},selectCountry:function(e){this.form.countryName=e.name,this.form.countryNameEn=e.enName},confirm:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return!1;e.toConfirm()}))},toConfirm:function(){this.editor?this.editor&&this.cooperativeUpdate():this.cooperativeAdd()},cooperativeAdd:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].cooperativeAgentAdd(Object(s["a"])({},e.form));case 2:a=t.sent,a.code==f.StatusOK?(e.confirmToReload(),e.$refs["form"].resetFields(),e.$pigeon.MessageOK(e.$i18n.t("Msg.Success"))):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},cooperativeUpdate:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].cooperativeAgentUpdate(Object(s["a"])({id:e.form.id},e.form));case 2:a=t.sent,a.code==f.StatusOK?(e.confirmToReload(),e.close(),e.$refs["form"].resetFields(),e.$pigeon.MessageOK(e.$i18n.t("Msg.Success"))):e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()},getCountry:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["a"].Country({});case 2:a=t.sent,a.code==f.StatusOK?e.countryData=a.data:e.$pigeon.MessageError(a.msg);case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){},watch:{dialogInfoTradingAdd:function(e){0==e&&this.$refs["form"]&&this.$refs["form"].resetFields(),1==e&&(this.getCountry(),this.editor||(this.form={firstName:"",lastName:"",email:"",phone:"",remarks:"",country:"",countryName:"",countryNameEn:""}))},formList:function(e){this.form=e}}},h=m,v=(a("5ddb"),a("2877")),g=Object(v["a"])(h,p,d,!1,null,"ec2d58bc",null),b=g.exports,w=u.a.Code,k={name:"Agent",components:{TradingInfoAdd:b},data:function(){return{flag:!1,imgUrl:u.a.Host05,pictLoading:!1,mock_tableData:[],search:{tag:1,email:"",phone:"",status:null,date:[],startDate:"",endDate:""},multipleSelection:[],dialogCheck:!1,dialogCheck_form:{approveDesc:"",status:null},dialogInfoTradingAdd:!1,editor:"",myInfo:{},formList:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0},rules:{status:[{required:!0,message:this.$i18n.t("vaildate.select.empty"),trigger:"blur"}]}}},computed:{display:function(){return this.Session.GetDisplay()},lang:function(){return this.Session.Get("lang")}},methods:{handleCommand:function(e){"editor"==e.type?(this.editor=1,this.getSingle(e.row.id)):"delete"==e.type?this.delete(e.id):"check"==e.type&&(this.$refs["dialogCheck_form"]&&this.$refs["dialogCheck_form"].resetFields(),this.dialogCheck=!0,this.dialogCheck_form.firstName=e.row.firstName,this.dialogCheck_form.lastName=e.row.lastName,this.dialogCheck_form.id=e.row.id,this.dialogCheck_form.email=e.row.email,this.dialogCheck_form.phone=e.row.phone)},toVerified:function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(){var t=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs["dialogCheck_form"].validate(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(a){var r;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=12;break}if(!t.flag){e.next=5;break}return e.abrupt("return");case 5:t.flag=!0;case 6:return e.next=8,c["a"].cooperativeSubsetApprove(Object(s["a"])({},t.dialogCheck_form));case 8:r=e.sent,r.code==w.StatusOK?(t.$pigeon.MessageOK(t.$i18n.t("Msg.Success")),t.cancel(),t.searchFunc(),t.flag=!1):(t.flag=!1,t.$pigeon.MessageError(r.msg)),e.next=13;break;case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),cancel:function(){this.dialogCheck=!1,this.$refs["dialogCheck_form"].resetFields()},closeDiaAdd:function(){this.dialogInfoTradingAdd=!1,this.editor=""},closeAdd:function(e){this.dialogInfoTradingAdd=e},addVarieties:function(){this.editor="",this.dialogInfoTradingAdd=!0},confirmToReload:function(){this.closeDiaAdd(),this.searchFunc()},handleSelectionChange:function(e){var t=this;this.multipleSelection=[],e.forEach((function(e){t.multipleSelection.push(e.id)}))},daleteAll:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().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(i["a"])(Object(o["a"])().mark((function e(){var t;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c["a"].cooperativeAgentDelete({ids:a.multipleSelection});case 2:t=e.sent,t.code==w.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(i["a"])(Object(o["a"])().mark((function e(t){var a,r;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=[],a.push(t),r=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(i["a"])(Object(o["a"])().mark((function e(){var t;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c["a"].cooperativeAgentDelete({ids:a});case 2:t=e.sent,t.code==w.StatusOK?(r.$pigeon.MessageOK(r.$i18n.t("Msg.DeleteSuccess")),r.searchFunc()):r.$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}(),getSingle:function(e){var t=this;return Object(i["a"])(Object(o["a"])().mark((function a(){var r;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,c["a"].cooperativeAgentSingle({id:e});case 2:r=a.sent,r.code==w.StatusOK?(t.formList=r.data,t.editor=1,t.dialogInfoTradingAdd=!0,t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess"))):t.$pigeon.MessageError(r.msg);case 4:case"end":return a.stop()}}),a)})))()},searchFunc:function(){var e=this;return Object(i["a"])(Object(o["a"])().mark((function t(){var a,r;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.pictLoading=!0,null!==(a=e.display["R-Cooperative-Agent-Search"])&&void 0!==a&&a.show){t.next=5;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.abrupt("return");case 5:return null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),t.next=8,c["a"].cooperativeAgentList(Object(s["a"])(Object(s["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 8:r=t.sent,r.code==w.StatusOK?(e.mock_tableData=r.data,null!=r.page?(e.pagerInfo.rowTotal=r.page.rowTotal,e.pagerInfo.pageTotal=r.page.pageTotal):e.pagerInfo.rowTotal=0,e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess"))):e.$pigeon.MessageError(r.msg),e.pictLoading=!1;case 11: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()},watch:{"search.tag":function(){this.search.phone="",this.search.email=""}}},y=k,C=(a("f7aa"),a("3d68"),Object(v["a"])(y,r,n,!1,null,"f557de56",null));t["default"]=C.exports},b4cd:function(e,t,a){},ba3a:function(e,t,a){},f7aa:function(e,t,a){"use strict";a("b4cd")}}]);
|