1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7016"],{"+rh5":function(e,t,i){"use strict";var a=i("RJbL");i.n(a).a},RJbL:function(e,t,i){},y41y:function(e,t,i){"use strict";i.r(t);var a=i("QbLZ"),n=i.n(a),l=i("t3Un");function r(e){return Object(l.a)({method:"post",params:{_gp:"admin.unimall.pincheVehicleFiling",_mt:"audit",pincheVehicleFiling:e}})}var o={data:function(){return{imgSrc:"",isShow:!1,src:["https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg","https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg"],imageUrl1:"",imageUrl:"",statusList:[{id:1,name:"待管理员审核"},{id:2,name:"审核通过"},{id:3,name:"审核未通过"}],loading:!0,ids:[],single:!0,multiple:!0,total:0,filingList:[],title:"",open:!1,queryParams:{page:1,limit:10,companyId:void 0,dept:void 0,driverName:void 0,phone:void 0,employeeNo:void 0,carNo:void 0,pinpai:void 0,color:void 0,jiashiben:void 0,xingshiben:void 0,status:void 0,remark1:void 0,remark2:void 0,remark3:void 0,deleteFlag:void 0,gmtCreate:void 0,gmtUpdate:void 0,userId:void 0,adminId:void 0},form:{},rules:{deleteFlag:[{required:!0,message:"0:否(默认) 1:是不能为空",trigger:"blur"}]}}},created:function(){this.getList()},methods:{preview:function(e,t){this.imgSrc=t,this.isShow=!0},handleAvatarSuccess1:function(e,t){this.imageUrl1=URL.createObjectURL(t.raw),this.form.xingshiben=e},beforeAvatarUpload1:function(e){},handleAvatarSuccess:function(e,t){this.imageUrl=URL.createObjectURL(t.raw),this.form.jiashiben=e},beforeAvatarUpload:function(e){},getList:function(){var e=this;this.loading=!0,function(e){return Object(l.a)({method:"get",params:n()({_gp:"admin.unimall.pincheVehicleFiling",_mt:"list"},e)})}(this.queryParams).then(function(t){e.filingList=t.data.data.items,e.total=t.data.data.count,e.loading=!1})},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,companyId:void 0,dept:void 0,driverName:void 0,phone:void 0,employeeNo:void 0,carNo:void 0,pinpai:void 0,color:void 0,jiashiben:void 0,xingshiben:void 0,status:"0",remark1:void 0,remark2:void 0,remark3:void 0,deleteFlag:void 0,gmtCreate:void 0,gmtUpdate:void 0,userId:void 0,adminId:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.page=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map(function(e){return e.id}),this.single=1!=e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加司机认证"},handleUpdate:function(e,t){var i=this;this.reset(),function(e){return Object(l.a)({method:"get",params:{_gp:"admin.unimall.pincheVehicleFiling",_mt:"get",id:e}})}(e.id||this.ids.join(",")).then(function(e){return i.form=e.data.data,i.imageUrl1=e.data.data.xingshiben,i.imageUrl=e.data.data.jiashiben,1==t?(i.form.flag=1,void r(i.form).then(function(e){e.data?(i.msgSuccess("审核通过"),i.getList()):i.msgError(e.msg)})):2==t?(i.form.flag=2,void r(i.form).then(function(e){e.data?(i.msgSuccess("驳回成功"),i.getList()):i.msgError(e.msg)})):(i.open=!0,void(i.title="修改司机认证"))})},submitForm:function(){var e=this;this.$refs.form.validate(function(t){t&&(void 0!=e.form.id?function(e){return Object(l.a)({method:"post",params:{_gp:"admin.unimall.pincheVehicleFiling",_mt:"update",pincheVehicleFiling:e}})}(e.form).then(function(t){t.data?(e.msgSuccess("修改成功"),e.open=!1,e.getList()):e.msgError(t.msg)}):function(e){return Object(l.a)({method:"post",params:{_gp:"admin.unimall.pincheVehicleFiling",_mt:"add",pincheVehicleFiling:e}})}(e.form).then(function(t){t.data?(e.msgSuccess("新增成功"),e.open=!1,e.getList()):e.msgError(t.msg)}))})},handleDelete:function(e){var t=this,i=e.id||this.ids.join(",");this.$confirm('是否确认删除司机认证编号为"'+i+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){return function(e){return Object(l.a)({method:"post",params:{_gp:"admin.unimall.pincheVehicleFiling",_mt:"delete",id:e}})}(i)}).then(function(){t.getList(),t.msgSuccess("删除成功")}).catch(function(){})},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有司机认证数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){return function(e){return Object(l.a)({method:"get",params:n()({_gp:"admin.unimall.pincheVehicleFiling",_mt:"export"},e)})}(t)}).then(function(t){e.download(t.data.data)}).catch(function(){})}}},s=(i("+rh5"),i("KHd+")),c=Object(s.a)(o,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{label:"",prop:"companyId"}},[i("el-form-item",{attrs:{label:"姓名",prop:"driverName"}},[i("el-input",{attrs:{placeholder:"请输入姓名",clearable:"",size:"small"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleQuery(t):null}},model:{value:e.queryParams.driverName,callback:function(t){e.$set(e.queryParams,"driverName",t)},expression:"queryParams.driverName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[i("el-input",{attrs:{placeholder:"请输入手机号",clearable:"",size:"small"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleQuery(t):null}},model:{value:e.queryParams.phone,callback:function(t){e.$set(e.queryParams,"phone",t)},expression:"queryParams.phone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"员工号",prop:"employeeNo"}},[i("el-input",{attrs:{placeholder:"请输入员工号",clearable:"",size:"small"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleQuery(t):null}},model:{value:e.queryParams.employeeNo,callback:function(t){e.$set(e.queryParams,"employeeNo",t)},expression:"queryParams.employeeNo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"状态",prop:"status"}},[i("el-select",{attrs:{placeholder:"请选择状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusList,function(e,t){return i("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})}))],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1)],1),e._v(" "),i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["unimall:filing:add"],expression:"['unimall:filing:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),e._v(" "),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["unimall:filing:edit"],expression:"['unimall:filing:edit']"}],attrs:{disabled:e.single,type:"success",icon:"el-icon-edit",size:"mini"},on:{click:e.handleUpdate}},[e._v("修改")])],1),e._v(" "),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["unimall:filing:remove"],expression:"['unimall:filing:remove']"}],attrs:{disabled:e.multiple,type:"danger",icon:"el-icon-delete",size:"mini"},on:{click:e.handleDelete}},[e._v("删除")])],1),e._v(" "),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["unimall:filing:export"],expression:"['unimall:filing:export']"}],attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.filingList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{label:"姓名",align:"center",prop:"driverName"}}),e._v(" "),i("el-table-column",{attrs:{label:"手机号",align:"center",prop:"phone"}}),e._v(" "),i("el-table-column",{attrs:{label:"员工号",align:"center",prop:"employeeNo"}}),e._v(" "),i("el-table-column",{attrs:{label:"车牌号",align:"center",prop:"carNo"}}),e._v(" "),i("el-table-column",{attrs:{label:"品牌",align:"center",prop:"pinpai"}}),e._v(" "),i("el-table-column",{attrs:{label:"颜色",align:"center",prop:"color"}}),e._v(" "),i("el-table-column",{attrs:{label:"驾驶本",align:"center",prop:"jiashiben"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.row.jiashiben},on:{click:function(i){e.preview(1,t.row.jiashiben)}}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"行驶本",align:"center",prop:"xingshiben"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.row.xingshiben},on:{click:function(i){e.preview(2,t.row.xingshiben)}}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"}}),e._v(" "),i("el-table-column",{attrs:{label:"时间",align:"center",prop:"gmtUpdate",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.gmtUpdate)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding",width:"300px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["unimall:filing:edit"],expression:"['unimall:filing:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["unimall:filing:edit"],expression:"['unimall:filing:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){e.handleUpdate(t.row,1)}}},[e._v("通过")]),e._v(" "),i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["unimall:filing:edit"],expression:"['unimall:filing:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){e.handleUpdate(t.row,2)}}},[e._v("驳回")]),e._v(" "),i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["unimall:filing:remove"],expression:"['unimall:filing:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.page,limit:e.queryParams.limit},on:{"update:page":function(t){e.$set(e.queryParams,"page",t)},"update:limit":function(t){e.$set(e.queryParams,"limit",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{visible:e.isShow,title:"行驶证"},on:{"update:visible":function(t){e.isShow=t}}},[i("el-image",{staticStyle:{width:"70%",height:"70%"},attrs:{src:e.imgSrc}})],1),e._v(" "),i("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px"},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"部门",prop:"dept"}},[i("el-input",{attrs:{placeholder:"请输入部门"},model:{value:e.form.dept,callback:function(t){e.$set(e.form,"dept",t)},expression:"form.dept"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"姓名",prop:"driverName"}},[i("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.form.driverName,callback:function(t){e.$set(e.form,"driverName",t)},expression:"form.driverName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[i("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"员工号",prop:"employeeNo"}},[i("el-input",{attrs:{placeholder:"请输入员工号"},model:{value:e.form.employeeNo,callback:function(t){e.$set(e.form,"employeeNo",t)},expression:"form.employeeNo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"车牌号",prop:"carNo"}},[i("el-input",{attrs:{placeholder:"请输入车牌号"},model:{value:e.form.carNo,callback:function(t){e.$set(e.form,"carNo",t)},expression:"form.carNo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"品牌",prop:"pinpai"}},[i("el-input",{attrs:{placeholder:"请输入品牌"},model:{value:e.form.pinpai,callback:function(t){e.$set(e.form,"pinpai",t)},expression:"form.pinpai"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"颜色",prop:"color"}},[i("el-input",{attrs:{placeholder:"请输入颜色"},model:{value:e.form.color,callback:function(t){e.$set(e.form,"color",t)},expression:"form.color"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"驾驶本",prop:"jiashiben"}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload,action:"https://shiyaopinche.cspc.cn:10443/upload/admin"}},[e.imageUrl?i("img",{staticClass:"avatar",attrs:{src:e.imageUrl}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e._v(" "),i("el-form-item",{attrs:{label:"行驶本",prop:"xingshiben"}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{"show-file-list":!1,"on-success":e.handleAvatarSuccess1,"before-upload":e.beforeAvatarUpload1,action:"https://shiyaopinche.cspc.cn:10443/upload/admin"}},[e.imageUrl1?i("img",{staticClass:"avatar",attrs:{src:e.imageUrl1}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),e._v(" "),i("el-form-item",{attrs:{label:"备注",prop:"remark1"}},[i("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark1,callback:function(t){e.$set(e.form,"remark1",t)},expression:"form.remark1"}})],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},[],!1,null,null,null);c.options.__file="index.vue";t.default=c.exports}}]);
|