Your Name
2022-11-30 f0cd5a4fe3b366fa753b8da5e387673c30c4d0f7
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-579e"],{"4VwJ":function(e,t,a){"use strict";a.r(t);var r=a("14Xm"),i=a.n(r),n=a("D3Ub"),s=a.n(n),o=a("vHY/"),l=a("7Qib"),c=a("xcGf"),u=a("8fCU"),p={name:"carrier",data:function(){return{baseUrl:"http://39.104.85.193:4105/upload/",tableKey:0,listLoading:!1,approveVisible:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,ruleForm:{},dataForm:{signperson:"",issueperson:"",issuepersonphone:"",deadline:"",id:""},listQuery:{filter:{code:"",page:"approve"},pageIndex:1,pageSize:10},searchContent:"",certificateList:[]}},components:{reviewForm:o.default},created:function(){this.getCertificateListData()},methods:{getCertificateListData:function(){var e=this;return s()(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(c.g)(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(l.a)(a.data.result.total,a.data.result.size),e.currentPage=a.data.result.current,e.certificateList=a.data.result.records),e.listLoading=!1;case 6:case"end":return t.stop()}},t,e)}))()},openCarrierForm:function(e,t){this.$refs.review.showCarrierLicense(e,t)},deleteCarrierLicense:function(e,t){var a=this;this.$confirm("删除此条信息,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c.d)(t.id).then(function(){a.getCertificateListData(),a.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3})}).catch(function(e){Object(u.a)({error:e,vm:a})})})},searchData:function(){this.getCertificateListData()},handleSizeChange:function(e){this.listQuery.pageSize=e,this.getCertificateListData()},handleCurrentChange:function(e){this.listQuery.pageIndex=e,this.getCertificateListData()},approve:function(e){this.approveVisible=!0,this.dataForm.id=e.id},submitApprove:function(){var e=this;this.$confirm("审批通过,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c.b)(e.dataForm).then(function(){e.approveVisible=!1,e.getCertificateListData(),e.$notify({title:"成功",message:"审批通过",type:"success",duration:2e3})}).catch(function(t){Object(u.a)({error:t,vm:e})})})},refuse:function(e){var t=this;this.$confirm("审批拒绝,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(c.h)(e.id).then(function(){t.getCertificateListData(),t.$notify({title:"成功",message:"拒绝成功",type:"success",duration:2e3})}).catch(function(e){Object(u.a)({error:e,vm:t})})})},exportApply:function(e){var t=this;Object(c.f)(e.id).then(function(e){var a=e.data;200==a.code?window.open(t.baseUrl+a.result,"_blank"):Object(u.a)({error:a.message,vm:t})}).catch(function(e){Object(u.a)({error:e,vm:t})})},exportCertificate:function(e){var t=this;Object(c.e)(e.id).then(function(e){var a=e.data;200==a.code?window.open(t.baseUrl+a.result,"_blank"):Object(u.a)({error:a.message,vm:t})}).catch(function(e){Object(u.a)({error:e,vm:t})})}}},d=(a("Hhh2"),a("KHd+")),f=Object(d.a)(p,function(){var e=this,t=e.$createElement,a=e._self._c||t;return 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.code,callback:function(t){e.$set(e.listQuery.filter,"code",t)},expression:"listQuery.filter.code"}})],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.enterprisename,callback:function(t){e.$set(e.listQuery.filter,"enterprisename",t)},expression:"listQuery.filter.enterprisename"}})],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.certificateList,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:"code",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"托运人",prop:"shippercompanyname",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"收货人",prop:"receivercompanyname",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"运输时间",prop:"amount",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v("\n                        "+e._s(t.row.othershipstarttime)+"\n                    ")]),e._v(" "),a("span",[e._v("-")]),e._v(" "),a("span",[e._v("\n                        "+e._s(t.row.othershipendtime)+"\n                    ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"运输状态",prop:"status",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"入库状态",prop:"certstatus",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"250","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.openCarrierForm("修改",t.row)}}},[e._v("选择")]),e._v(" "),"待审批"===t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.approve(t.row)}}},[e._v("通过")]):e._e(),e._v(" "),"待审批"===t.row.status?a("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(a){e.refuse(t.row)}}},[e._v("拒绝")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.exportApply(t.row)}}},[e._v("导出申请表")]),e._v(" "),"已审批"===t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.exportCertificate(t.row)}}},[e._v("导出运输证")]):e._e()]}}])})],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),e._v(" "),a("el-dialog",{attrs:{visible:e.approveVisible,"append-to-body":"","close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.ruleForm,"label-position":"right","label-width":"150px","element-loading-text":"保存中..."}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"签发人:"}},[a("el-input",{staticClass:"carrierLicense_select",model:{value:e.dataForm.signperson,callback:function(t){e.$set(e.dataForm,"signperson","string"==typeof t?t.trim():t)},expression:"dataForm.signperson"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"填发人:"}},[a("el-input",{staticClass:"carrierLicense_select",model:{value:e.dataForm.issueperson,callback:function(t){e.$set(e.dataForm,"issueperson","string"==typeof t?t.trim():t)},expression:"dataForm.issueperson"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"填发人联系电话:"}},[a("el-input",{staticClass:"carrierLicense_select",model:{value:e.dataForm.issuepersonphone,callback:function(t){e.$set(e.dataForm,"issuepersonphone","string"==typeof t?t.trim():t)},expression:"dataForm.issuepersonphone"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"预计送达时间:"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",placeholder:"选择日期时间"},model:{value:e.dataForm.deadline,callback:function(t){e.$set(e.dataForm,"deadline",t)},expression:"dataForm.deadline"}})],1)],1)],1)],1),e._v(" "),a("div",{staticStyle:{"margin-top":"20px"},attrs:{align:"right"}},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitApprove()}}},[e._v("确认")])],1)],1),e._v(" "),a("reviewForm",{ref:"review",on:{getinfo:e.getCertificateListData}})],1)},[],!1,null,"7187f5c4",null);f.options.__file="review.vue";t.default=f.exports},Gx1c:function(e,t,a){},Hhh2:function(e,t,a){"use strict";var r=a("Gx1c");a.n(r).a}}]);