| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Subset"],{1650:function(e,t,a){"use strict";a("efc3")},"7f05":function(e,t,a){},9082:function(e,t,a){"use strict";a("7f05")},9932:function(e,t,a){"use strict";var r=a("c14f"),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"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/country/get",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentList",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/agent/search/list",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentSingle",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/agent/search/single",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentAdd",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/agent/add",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentUpdate",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/agent/update",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentDelete",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/agent/delete",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeAgentApprove",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/agent/approve",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetList",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/subset/search/list",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetSingle",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/subset/search/single",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetAdd",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/subset/add",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetUpdate",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/subset/update",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetDelete",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/subset/delete",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeSubsetApprove",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/subset/approve",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsList",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/us/search/list",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsSingle",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/us/search/single",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsAdd",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/us/add",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsUpdate",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/us/update",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsDelete",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/us/delete",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperativeUsApprove",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperative/partner/us/approve",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperateTwSearchList",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperate/tw/search/list",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperateTwUpdate",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperate/tw/update",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cooperateTwSearchSingle",value:function(){var e=Object(n["a"])(Object(r["a"])().m((function e(){var t,a,n=arguments;return Object(r["a"])().w((function(e){while(1)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.n=1,this.post("/cooperate/tw/search/single",t);case 1:return a=e.v,e.a(2,a)}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}])}(l["a"]);t["a"]=new m},c072:function(e,t,a){},d5df:function(e,t,a){"use strict";a("c072")},ddef:function(e,t,a){"use strict";a.r(t);a("ac1f"),a("841c"),a("498a");var r=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],staticClass:"view",attrs:{id:"cooperative_Subset","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[t("div",{staticClass:"crm_search"},[t("el-form",{ref:"form",attrs:{"label-position":"",model:e.search,"label-width":""}},[t("el-row",[t("el-col",{attrs:{span:24,md:24,lg:24}},[t("el-form-item",{staticStyle:{"margin-right":"10px"},attrs:{prop:"status"}},[t("el-select",{staticClass:"crm_search_down_special crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.status,callback:function(t){e.$set(e.search,"status",t)},expression:"search.status"}},[t("el-option",{attrs:{label:e.$t("State.All"),value:null},nativeOn:{click:function(t){return e.toSearch.apply(null,arguments)}}}),t("el-option",{attrs:{label:e.$t("Cooperative.Subset.Unprocessed"),value:0},nativeOn:{click:function(t){return e.toSearch.apply(null,arguments)}}}),t("el-option",{attrs:{label:e.$t("Cooperative.Subset.Processed"),value:1},nativeOn:{click:function(t){return e.toSearch.apply(null,arguments)}}})],1)],1),t("el-form-item",[t("el-select",{staticClass:"crm_search_down crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.search.tag,callback:function(t){e.$set(e.search,"tag",t)},expression:"search.tag"}},[t("el-option",{attrs:{label:e.$t("Cooperative.Subset.Email"),value:1}}),t("el-option",{attrs:{label:e.$t("Cooperative.Subset.Phone"),value:2}})],1)],1),t("el-form-item",{staticStyle:{"margin-right":"10px"}},[1==e.search.tag?t("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch.apply(null,arguments)}},model:{value:e.search.email,callback:function(t){e.$set(e.search,"email","string"===typeof t?t.trim():t)},expression:"search.email"}}):e._e(),2==e.search.tag?t("el-input",{staticClass:"crm-border-left-no crm-border-radius-no",attrs:{size:"small",placeholder:e.$t("Placeholder.Input")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch.apply(null,arguments)}},model:{value:e.search.phone,callback:function(t){e.$set(e.search,"phone","string"===typeof t?t.trim():t)},expression:"search.phone"}}):e._e()],1),t("el-form-item",[t("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":e.$t("Placeholder.Start"),"end-placeholder":e.$t("Placeholder.End")},on:{input:e.getSearchDate},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),t("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1)],1),t("el-form-item",[t("div",{staticClass:"search_action_btn"},[e.display["R-Cooperative-Subset-Add"].show?t("span",{staticClass:"crm-cursor",on:{click:e.addVarieties}},[t("i",{staticClass:"el-icon-plus"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Add",expression:"'Btn.Add'"}]})]):e._e(),e.multipleSelection.length&&e.display["R-Cooperative-Subset-Delete"].show?t("span",{staticClass:"crm-cursor delete active",on:{click:e.daleteAll}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e(),!e.multipleSelection.length&&e.display["R-Cooperative-Subset-Delete"].show?t("span",{staticClass:"crm-cursor delete"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()])])],1)],1),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mock_tableData,stripe:""},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{align:"left",type:"selection",width:"55"}}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Cooperative.Subset.Name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.firstName+" "+t.row.lastName)+" ")]}}])}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Label.countrys")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.country+"-"+("cn"==e.lang?t.row.countryName:t.row.countryNameEn))+" ")]}}])}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Cooperative.Subset.Email")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.email||"--")+" ")]}}])}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Cooperative.Subset.Phone")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.phone||"--")+" ")]}}])}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Cooperative.Subset.Remarks")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.remarks||"--")+" ")]}}])}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Cooperative.Subset.HandleRemarks")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.approveDesc||"--")+" ")]}}])}),t("el-table-column",{attrs:{prop:"",align:"left",label:e.$i18n.t("Cooperative.Subset.AddTime")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.addTime||"--")+" ")]}}])}),t("el-table-column",{attrs:{prop:"",align:"center",width:"120",label:e.$i18n.t("Label.State")},scopedSlots:e._u([{key:"default",fn:function(a){return[1==a.row.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"Cooperative.Subset.Processed",expression:"'Cooperative.Subset.Processed'"}],staticClass:"state crm_state_blue"}):e._e(),0==a.row.status?t("span",{directives:[{name:"t",rawName:"v-t",value:"Cooperative.Subset.Unprocessed",expression:"'Cooperative.Subset.Unprocessed'"}],staticClass:"state crm_state_red"}):e._e()]}}])}),t("el-table-column",{attrs:{prop:"",align:"center",label:e.$i18n.t("Label.Action")},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[t("span",{staticClass:"el-dropdown-link crm-cursor"},[t("i",{staticClass:"iconfont iconcaidan",staticStyle:{"font-weight":"bold","font-size":"20px"}})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[0==a.row.status&&e.display["R-Cooperative-Subset-Approve"].show?t("el-dropdown-item",{attrs:{command:{type:"check",row:a.row}}},[t("i",{staticClass:"el-icon-s-operation"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.DealWith",expression:"'Btn.DealWith'"}]})]):e._e(),e.display["R-Cooperative-Subset-Update"].show?t("el-dropdown-item",{attrs:{command:{type:"editor",row:a.row}}},[t("i",{staticClass:"el-icon-s-operation"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Editor",expression:"'Btn.Editor'"}]})]):e._e(),e.display["R-Cooperative-Subset-Delete"].show?t("el-dropdown-item",{attrs:{command:{type:"delete",id:a.row.id}}},[t("i",{staticClass:"el-icon-delete"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"Btn.Delete",expression:"'Btn.Delete'"}]})]):e._e()],1)],1)]}}])})],1),e.pagerInfo.rowTotal?t("div",{staticClass:"crm_pagination"},[t("div",{staticClass:"crm_page_total"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item1",expression:"'Page.total.item1'"}]}),t("span",[e._v(e._s(e.pagerInfo.rowTotal))]),t("span",{directives:[{name:"t",rawName:"v-t",value:"Page.total.item2",expression:"'Page.total.item2'"}]})]),t("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(),t("el-dialog",{attrs:{title:e.$t("Apply_info.ActivitiesApply.Title"),visible:e.dialogCheck,center:"","custom-class":"dialog_header_w"},on:{"update:visible":function(t){e.dialogCheck=t}}},[t("div",{staticClass:"dia-content"},[t("el-form",{ref:"dialogCheck_form",staticClass:"dialogCheck_form",attrs:{model:e.dialogCheck_form,rules:e.rules,"label-width":"135px"}},[t("el-form-item",{attrs:{prop:"",label:e.$t("Cooperative.Subset.Name")+":"}},[e._v(" "+e._s(e.dialogCheck_form.firstName+" "+e.dialogCheck_form.lastName)+" ")]),t("el-form-item",{attrs:{prop:"",label:e.$t("Cooperative.Subset.Email")+":"}},[e._v(" "+e._s(e.dialogCheck_form.email)+" ")]),t("el-form-item",{attrs:{prop:"",label:e.$t("Cooperative.Subset.Phone")+":"}},[e._v(" "+e._s(e.dialogCheck_form.phone)+" ")]),t("el-form-item",{attrs:{prop:"status",label:e.$t("Label.State")+":"}},[t("el-select",{staticClass:"crm_search_down",attrs:{size:"small",placeholder:e.$t("Placeholder.Choose")},model:{value:e.dialogCheck_form.status,callback:function(t){e.$set(e.dialogCheck_form,"status",t)},expression:"dialogCheck_form.status"}},[t("el-option",{attrs:{label:e.$t("Cooperative.Subset.Processed"),value:1}})],1)],1),t("el-form-item",{attrs:{prop:"approveDesc",label:e.$t("Cooperative.Subset.HandleRemarks")+":"}},[t("el-input",{staticClass:"crm_search_down",attrs:{type:"textarea",rows:2,size:"small",placeholder:e.$t("Placeholder.Input")},model:{value:e.dialogCheck_form.approveDesc,callback:function(t){e.$set(e.dialogCheck_form,"approveDesc",t)},expression:"dialogCheck_form.approveDesc"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Confirm",expression:"'Btn.Confirm'"}],attrs:{type:"primary"},on:{click:function(t){return e.toVerified()}}}),t("el-button",{directives:[{name:"t",rawName:"v-t",value:"Btn.Cancel",expression:"'Btn.Cancel'"}],on:{click:e.cancel}})],1)],1)]),t("trading-info-add",{attrs:{dialogInfoTradingAdd:e.dialogInfoTradingAdd,editor:e.editor,myInfo:e.myInfo,formList:e.formList},on:{confirmToReload:e.confirmToReload,closeAdd:e.closeAdd}}),e.dialogInfoTradingAdd?t("div",{staticClass:"crm_verified_info_mask",on:{click:e.closeDiaAdd}}):e._e()],1)},n=[],o=a("c14f"),s=a("5530"),i=a("1da1"),c=(a("14d9"),a("e9f5"),a("7d54"),a("b64b"),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-Subset",expression:"'R-Cooperative-Subset'"}],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.Subset.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.Subset.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.Subset.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.Subset.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.Subset.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.Subset.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.Subset.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.Subset.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.Subset.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.Subset.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:"CooperativeSubset",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"])().m((function t(){var a;return Object(o["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,c["a"].cooperativeSubsetAdd(Object(s["a"])({},e.form));case 1:a=t.v,a.code==f.StatusOK?(e.confirmToReload(),e.$refs["form"].resetFields(),e.$pigeon.MessageOK(e.$i18n.t("Msg.Success"))):e.$pigeon.MessageError(a.msg);case 2:return t.a(2)}}),t)})))()},cooperativeUpdate:function(){var e=this;return Object(i["a"])(Object(o["a"])().m((function t(){var a;return Object(o["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,c["a"].cooperativeSubsetUpdate(Object(s["a"])({id:e.form.id},e.form));case 1:a=t.v,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 2:return t.a(2)}}),t)})))()},getCountry:function(){var e=this;return Object(i["a"])(Object(o["a"])().m((function t(){var a;return Object(o["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,c["a"].Country({});case 1:a=t.v,a.code==f.StatusOK?e.countryData=a.data:e.$pigeon.MessageError(a.msg);case 2:return t.a(2)}}),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("d5df"),a("2877")),b=Object(v["a"])(h,p,d,!1,null,"e93b0be2",null),g=b.exports,w=u.a.Code,y={name:"Subset",components:{TradingInfoAdd:g},data:function(){return{flag:!1,imgUrl:u.a.Host85,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 JSON.parse(this.Session.Get("display",!0))},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"])().m((function e(){var t=this;return Object(o["a"])().w((function(e){while(1)switch(e.n){case 0:this.$refs["dialogCheck_form"].validate(function(){var e=Object(i["a"])(Object(o["a"])().m((function e(a){var r;return Object(o["a"])().w((function(e){while(1)switch(e.n){case 0:if(!a){e.n=4;break}if(!t.flag){e.n=1;break}return e.a(2);case 1:t.flag=!0;case 2:return e.n=3,c["a"].cooperativeSubsetApprove(Object(s["a"])({},t.dialogCheck_form));case 3:r=e.v,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.n=5;break;case 4:return e.a(2,!1);case 5:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:return e.a(2)}}),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"])().m((function t(){var a;return Object(o["a"])().w((function(t){while(1)switch(t.n){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"])().m((function e(){var t;return Object(o["a"])().w((function(e){while(1)switch(e.n){case 0:return e.n=1,c["a"].cooperativeSubsetDelete({ids:a.multipleSelection});case 1:t=e.v,t.code==w.StatusOK?(a.$pigeon.MessageOK(a.$i18n.t("Msg.DeleteSuccess")),a.searchFunc()):a.$pigeon.MessageError(t.msg);case 2:return e.a(2)}}),e)}))),(function(){}));case 1:return t.a(2)}}),t)})))()},delete:function(){var e=Object(i["a"])(Object(o["a"])().m((function e(t){var a,r;return Object(o["a"])().w((function(e){while(1)switch(e.n){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"])().m((function e(){var t;return Object(o["a"])().w((function(e){while(1)switch(e.n){case 0:return e.n=1,c["a"].cooperativeSubsetDelete({ids:a});case 1:t=e.v,t.code==w.StatusOK?(r.$pigeon.MessageOK(r.$i18n.t("Msg.DeleteSuccess")),r.searchFunc()):r.$pigeon.MessageError(t.msg);case 2:return e.a(2)}}),e)}))),(function(){}));case 1:return e.a(2)}}),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"])().m((function a(){var r;return Object(o["a"])().w((function(a){while(1)switch(a.n){case 0:return a.n=1,c["a"].cooperativeSubsetSingle({id:e});case 1:r=a.v,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 2:return a.a(2)}}),a)})))()},searchFunc:function(){var e=this;return Object(i["a"])(Object(o["a"])().m((function t(){var a;return Object(o["a"])().w((function(t){while(1)switch(t.n){case 0:if(e.pictLoading=!0,e.display["R-Cooperative-Subset-Search"].show){t.n=1;break}return e.$pigeon.MessageWarning(e.$i18n.t("Msg.NotDisplay")),e.pictLoading=!1,t.a(2);case 1: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.n=2,c["a"].cooperativeSubsetList(Object(s["a"])(Object(s["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 2:a=t.v,a.code==w.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 3:return t.a(2)}}),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=""}}},C=y,k=(a("9082"),a("1650"),Object(v["a"])(C,r,n,!1,null,"2a9ecfb4",null));t["default"]=k.exports},efc3:function(e,t,a){}}]);
|