(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-764e7cfa"],{"05c7":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("layout-scroll-wrapper",{staticClass:"bill-con",attrs:{disabled:!0}},[a("layout-panel",[a("div",{staticClass:"table-search pd-tb10-lr30 box-shadow-b"},[a("TableSearch",{attrs:{columns:e.searchData},on:{search:e.onSearch}})],1)]),a("layout-panel",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-con-sty pd-tb20-lr30",attrs:{title:"承运商协议列表"},scopedSlots:e._u([{key:"operator",fn:function(){return[a("fd-button",{directives:[{name:"has",rawName:"v-has",value:["sy:carrieragreement:add"],expression:"['sy:carrieragreement:add']"}],attrs:{state:"selected"},on:{click:function(t){return e.modalFn({type:"add"})}}},[e._v("新增协议")])]},proxy:!0}])},[a("layout-table",{staticClass:"mt10",scopedSlots:e._u([{key:"default",fn:function(){return[a("EleTable",{attrs:{loading:e.loading,"table-data":e.tableData,"table-config":e.tableConfig},on:{modalFn:e.modalFn}})]},proxy:!0},e.tableData.length>0?{key:"page",fn:function(){return[a("Pagenation",{attrs:{pageConfig:e.pageConfig},on:{pageChange:e.pageChange}})]},proxy:!0}:null],null,!0)})],1)],1)},n=[],i=a("dbc8"),o=a("fe07"),s=[{label:o["a"].t("system.carrierName"),id:"carrierShortName",render:function(e,t){return e("div",[e("span",{class:"mr10"},[t.carrierCode]),e("span",[t.carrierShortName])])}},{label:o["a"].t("操作时间"),id:"createTime"},{label:o["a"].t("opts"),id:"opt",width:"100px"}],c=[{label:o["a"].t("edit"),type:"edit",permissions:["sy:carrieragreement:edit"]},{label:o["a"].t("query"),type:"query",permissions:["sy:carrieragreement:query"]}],l=[{name:o["a"].t("system.carrierAbbreviation"),field:"carrierAbbreviation",type:"input"},{name:o["a"].t("createTime"),field:"createTime",require:!0,type:"daterange"}],d={components:{},data:function(){return{searchData:l,queryForm:{carrierShortName:"",createTime:{}},loading:!1,tableData:[],pageConfig:{totalCount:0,pageSize:10,pageNum:1},tableConfig:{headers:s,opt:c,index:!0}}},mounted:function(){this.init()},methods:{init:function(){this.onSearch(this.queryForm)},onSearch:function(e){this.queryForm=e,this.pageConfig.pageNum=1,this.getTableList(this.pageConfig.pageNum)},reset:function(){this.queryForm={carrierShortName:"",createTime:{}}},pageChange:function(e){this.getTableList(e)},modalFn:function(e){var t=e.type,a=e.row;this.$router.push({name:"addProtocol",query:{type:t,id:"add"===t?"":a.id,businessId:"add"===t?"":a.businessId}})},getTableList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loading=!0,this.pageConfig.pageNum=t;var a=this.queryForm.createTime,r={param:{carrierShortName:this.queryForm.carrierShortName,endOperationTime:a?a[1]:"",startOperationTime:a?a[0]:""}};this.tableData=[],Object(i["b"])(r,this.pageConfig).then((function(t){"200"===t.code&&(e.loading=!1,e.tableData=t.data.dataList||[],e.pageConfig.totalCount=t.data.totalCount||0)}))}}},u=d,p=a("2877"),g=Object(p["a"])(u,r,n,!1,null,null,null);t["default"]=g.exports},dbc8:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return c}));a("99af");var r=a("b775"),n=a("b7ca");function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.pageNum,i=void 0===a?1:a,o=t.pageSize,s=void 0===o?10:o;return Object(r["a"])({url:"/GspSyCarrierAgreement/list/".concat(i,"/").concat(s),method:"post",data:Object(n["a"])(e)})}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.pageNum,i=void 0===a?1:a,o=t.pageSize,s=void 0===o?10:o;return Object(r["a"])({url:"/sy/carrier/sapPage/".concat(i,"/").concat(s),method:"post",data:Object(n["a"])(e)})}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/GspSyCarrierAgreement/add",method:"post",data:Object(n["a"])(e)})}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["a"])({url:"/GspSyCarrierAgreement/upd",method:"put",data:Object(n["a"])(e)})}}}]);