Your Name
2022-11-30 f0cd5a4fe3b366fa753b8da5e387673c30c4d0f7
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-9193"],{"2iYP":function(e,t,a){"use strict";a.d(t,"c",function(){return n}),a.d(t,"a",function(){return l}),a.d(t,"d",function(){return s}),a.d(t,"b",function(){return o});var r=a("t3Un"),i=a("X4fA");function n(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/transport/personList",method:"post",data:e})}function l(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/transport/addperson",method:"post",data:e})}function s(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/transport/putperson",method:"post",data:e})}function o(e){return Object(r.a)({headers:{Authorization:Object(i.a)()},url:"http://39.104.85.193:4105/transport/delperson?id="+e,method:"post"})}},A3Fo:function(e,t,a){},ZjCf:function(e,t,a){"use strict";var r=a("A3Fo");a.n(r).a},mt9p:function(e,t,a){"use strict";a.r(t);var r=a("14Xm"),i=a.n(r),n=a("D3Ub"),l=a.n(n),s=a("7Qib"),o=a("2iYP"),c={name:"carrier",data:function(){return{tableKey:0,listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,listQuery:{filter:{name:"",belongname:""},pageIndex:1,pageSize:10},searchContent:"",carrierList:[],driverSelectFormVisible:!1}},created:function(){this.getDriverData()},methods:{selectDriver:function(){this.driverSelectFormVisible=!0},getDriverData:function(){var e=this;return l()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(o.c)(e.listQuery);case 3:"200"===(a=t.sent).data.code&&(e.recordTotal=a.data.result.total,e.pageSize=a.data.result.size,e.pageTotal=Object(s.a)(a.data.result.total,a.data.result.size),e.currentPage=a.data.result.current,e.carrierList=a.data.result.records),e.listLoading=!1;case 6:case"end":return t.stop()}},t,e)}))()},giveDriver:function(e){this.$emit("getinfo",e),this.driverSelectFormVisible=!1},searchData:function(){this.getDriverData()},handleSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.getDriverData()},handleCurrentChange:function(e){this.currentPage=e,this.getDriverData()}}},u=(a("ZjCf"),a("KHd+")),d=Object(u.a)(c,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.driverSelectFormVisible,"append-to-body":"","close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){e.driverSelectFormVisible=t}}},[a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"carrier_search"},[a("span",[e._v("按隶属承运人查:")]),e._v(" "),a("el-input",{staticClass:"carrier_search_input",model:{value:e.listQuery.filter.companyname,callback:function(t){e.$set(e.listQuery.filter,"companyname",t)},expression:"listQuery.filter.companyname"}})],1),e._v(" "),a("div",{staticClass:"carrier_search"},[a("span",[e._v("按姓名查:")]),e._v(" "),a("el-input",{staticClass:"carrier_search_input",model:{value:e.listQuery.filter.name,callback:function(t){e.$set(e.listQuery.filter,"name",t)},expression:"listQuery.filter.name"}})],1),e._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:function(t){e.searchData()}}},[e._v("查询")])],1),e._v(" "),a("div",{staticClass:"table_content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.carrierList,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",type:"index",align:"center",width:"60"}}),e._v(" "),a("el-table-column",{attrs:{label:"单位名称",prop:"belongname",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"type",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"身份证",prop:"identify",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"资格证",prop:"certificate",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"证件有效期",prop:"validtime",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.giveDriver(t.row)}}},[e._v("选择")])]}}])})],1),e._v(" "),a("br"),e._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":e.currentPage,"page-sizes":[10,20,30,50],"page-size":e.pageSize,total:e.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}),e._v(" "),a("br")],1)])])},[],!1,null,"76888d0f",null);d.options.__file="driverSelectForm.vue";t.default=d.exports}}]);