You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
19 KiB
1 lines
19 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-cb86959a"],{"1a86":function(e,t,a){"use strict";t.a={data:function(){return{isSearch:!1,total:null}},created:function(){},methods:{handleSizeChange:function(e){this.queryInfo.pageSize=e,this.initTable()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.initTable()},searchClick:function(){this.isSearch=!this.isSearch}}}},"84bc":function(e,t,a){"use strict";a.r(t);a("d81d"),a("b0c0"),a("ac1f"),a("1276"),a("cca6"),a("96cf");var r=a("1da1"),n=a("5530"),o=a("1a86"),s=a("1a78"),i=a("2f62"),l={name:"AIImageCheck",mixins:[o.a],data:function(){return{sidebarMenu:["待处理","待审核","通过","驳回","关闭"],isIndex:1,showBadge:!1,tableData:[],fileuploadDialg:!1,editDialog:!1,dialogTableVisible:!1,dialogEditReport:!1,queryInfo:{showAll:"",dateStart:"",dateEnd:"",reportName:"",reportId:"",organization:"",submiter:"",processingState:1,reportStatus:"",pageSize:10,pageNo:1},sta:"1",reportId:"",newBillNo:"",ids:[],reportIds:[],AlPendingCount:0,startPendingTotal:0,processingState:"",gridData:[],classList:[{name:"icon-xuanzhongduigou",color:"#00CC00"},{name:"icon-runtongyiyaoyihuifu_gantanhao-65",color:"#FF9900"},{name:"icon-jinzhi",color:"#FF0000"},{name:"icon-gantanhao-sanjiaokuang",color:"#FF0000"},{name:"icon-jinggao",color:"#ff0000"}],editARForm:{reportId:"",status:"",createTime:""},rules:{reportId:[{required:!0,message:"请输入费用报告ID",trigger:"blur"}]},isShowBtn:!0,isExt02Edit:!1}},mounted:function(){},created:function(){var e=this;this.getPendingTotal(),setTimeout((function(){e.queryInfo.processingState=1,e.initTable()}),500)},methods:Object(n.a)(Object(n.a)({},Object(i.b)({getCheckList:"AICheck/getCheckList",smartImageCheck:"AICheck/smartImageCheck",batchCheck:"AICheck/batchCheck",forcePassed:"AICheck/forcePassed"})),{},{cellDbClick:function(e,t,a,r){this.isExt02Edit=!0},editExt02:function(e,t){var a=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(s.h)({reportId:e,ext02:t});case 2:200==(n=r.sent).status?(a.isExt02Edit=!1,a.initTable()):a.$message.error(n.message);case 4:case"end":return r.stop()}}),r)})))()},selectionState:function(e){var t=this;0!=e&&1!=e||(this.isShowBtn=!0),2!=e&&3!=e&&4!=e||(this.isShowBtn=!1),this.isIndex=e,this.processingState=e,this.sta=e,4==e?this.sta=3:3==e&&(this.sta=4),Object(s.m)({pageSize:10,pageNo:1,processingState:this.sta,showAll:""}).then((function(e){t.tableData=e.result.list,t.total=e.result.total,0==t.processingState?t.AlPendingCount=e.result.total:t.AlPendingCount=t.startPendingTotal})).catch((function(e){t.$message.error(e.message)}))},abnormalReport:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(s.a)();case 2:a=t.sent,e.gridData=a.result;case 4:case"end":return t.stop()}}),t)})))()},goFeeLine:function(e){this.$router.push({name:"ReimbursementOrder",query:{id:e.id,reportId:e.reportId}})},handlForcePassed:function(){var e=this;if(0==this.ids.length)return this.$message.error("请先进行勾选!");var t=Object.assign([],this.ids);this.forcePassed(t).then((function(t){e.ids=[],e.$message.success(t.message),e.initTable()})).catch((function(t){e.$message.error(t.message)}))},handlAbnReport:function(){this.abnormalReport(),this.dialogTableVisible=!0},abnormalReportEdit:function(e){this.dialogEditReport=!0,this.editARForm=JSON.parse(JSON.stringify(e))},deleteReport:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,Object(s.e)(e);case 3:200==(r=a.sent).status?(t.$message.success(r.message),t.abnormalReport()):t.$message.error(r.message),a.next=10;break;case 7:a.prev=7,a.t0=a.catch(0),t.$message.error(a.t0);case 10:case"end":return a.stop()}}),a,null,[[0,7]])})))()},handleClick:function(e){Object(s.p)({reportId:e}).then((function(e){}))},confrimAddRole:function(){var e=this,t=this.editARForm,a={id:t.id,newReportId:t.reportId};this.$refs.ruleForm.validate(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(r){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return",e.$message.error("请检查是否存在未填项!"));case 2:return t.next=4,Object(s.g)(a);case 4:200===(n=t.sent).status?(e.$message.success(n.message),e.abnormalReport()):e.$message.error(n.message),e.dialogEditReport=!1;case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},cancleDialog:function(){this.dialogEditReport=!1,this.$refs.ruleForm.clearValidate()},handleSelectionChange:function(e){this.reportIds=e.map((function(e){return e.reportId}))},handleBatchCheck:function(){var e=this;if(0==this.reportIds.length)return this.$message.error("请先进行勾选!");var t=Object.assign([],this.reportIds);this.batchCheck(t).then((function(t){e.reportIds=[],e.$message.success(t.message),e.initTable()})).catch((function(t){e.$message.error(t.message)}))},handleCheckSearch:function(e){var t=this;this.smartImageCheck(e.reportId).then((function(e){t.$message.success(e.message),t.queryInfo.showAll="",t.initTable()})).catch((function(e){t.$message.error(e.message)}))},editCancel:function(){this.editDialog=!1},editComfirm:function(){this.$message.success("修改成功!"),this.editDialog=!1},uploadAvater:function(e){var t=this,a=e.target.files[0],r=a.name.split(".");if("pdf"!=r[r.length-1])return this.$message.error("只可以上传PDF格式的文件!");var n=new FormData;n.append("file",a),n.append("reportId",this.reportId),this.$file.uploadFile(n,"api/manager/smartImageCheck/uploadImage").then((function(a){200==a.status&&(e.target.value=[],t.$message.success("导入文件成功!"),t.fileuploadDialg=!1,t.initTable())})).catch((function(e){t.$message.error(e.message)}))},chooseFile:function(){this.$refs.upload.click()},goDetail:function(e,t){"CheckResult"==t?this.$router.push({name:t,query:{id:e.id,reportId:e.reportId,reportName:e.reportName}}):this.$router.push({name:t,query:{id:e.id,reportId:e.reportId}})},goDetail1:function(e){this.$router.push({name:"ImageAdminError",query:{reportId:e}})},searchByQueryInfo:function(){this.queryInfo.showAll="",this.queryInfo.processingState=this.sta,this.initTable()},showAll:function(){this.queryInfo.showAll="1",this.queryInfo.processingState=this.sta,this.initTable()},initTable:function(){var e=this,t=Object.assign({},this.queryInfo);Object(s.m)(t).then((function(t){e.tableData=t.result.list,e.total=t.result.total,0==e.queryInfo.processingState?e.AlPendingCount=t.result.total:e.AlPendingCount=e.startPendingTotal})).catch((function(t){e.$message.error(t.message)}))},getPendingTotal:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.queryInfo.processingState=0,a=Object.assign({},e.queryInfo),t.next=4,Object(s.m)(a);case 4:r=t.sent,e.startPendingTotal=r.result.total;case 6:case"end":return t.stop()}}),t)})))()},reset:function(){this.queryInfo={pageSize:10,pageNo:1,dateStart:"",dateEnd:"",reportName:"",reportId:"",organization:"",submiter:"",processingState:1,reportStatus:""}}})},c=(a("ede7"),a("2877")),u=Object(c.a)(l,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return"AIImageCheck"==e.$route.name?a("div",{staticClass:"AIImageCheck"},[a("SidebarList",{attrs:{sidebarMenu:e.sidebarMenu,isIndex:e.isIndex,showBadge:e.showBadge,AlPendingCount:e.AlPendingCount},on:{buttonClick:e.selectionState}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isSearch,expression:"isSearch"}],staticClass:"bgc"},[a("el-form",{ref:"form",attrs:{model:e.queryInfo,"label-width":"80px"}},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"日期起"}},[a("el-date-picker",{attrs:{clearable:!1,"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:e.queryInfo.dateStart,callback:function(t){e.$set(e.queryInfo,"dateStart",t)},expression:"queryInfo.dateStart"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"日期止"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",clearable:!1,type:"date",placeholder:"选择日期"},model:{value:e.queryInfo.dateEnd,callback:function(t){e.$set(e.queryInfo,"dateEnd",t)},expression:"queryInfo.dateEnd"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"报告名称"}},[a("el-input",{model:{value:e.queryInfo.reportName,callback:function(t){e.$set(e.queryInfo,"reportName",t)},expression:"queryInfo.reportName"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"报告ID"}},[a("el-input",{model:{value:e.queryInfo.reportId,callback:function(t){e.$set(e.queryInfo,"reportId",t)},expression:"queryInfo.reportId"}})],1)],1),a("el-col",{attrs:{span:4}})],1),a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"组织"}},[a("el-input",{model:{value:e.queryInfo.organization,callback:function(t){e.$set(e.queryInfo,"organization",t)},expression:"queryInfo.organization"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"提交人"}},[a("el-input",{model:{value:e.queryInfo.submiter,callback:function(t){e.$set(e.queryInfo,"submiter",t)},expression:"queryInfo.submiter"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"单据状态"}},[a("el-input",{model:{value:e.queryInfo.reportStatus,callback:function(t){e.$set(e.queryInfo,"reportStatus",t)},expression:"queryInfo.reportStatus"}})],1)],1),a("el-col",{attrs:{span:4}},[a("div",{staticClass:"d-flex",staticStyle:{"margin-left":"80px"}},[a("FeesButton",{attrs:{text:"搜索",icon:"el-icon-search"},on:{buttonClick:e.searchByQueryInfo}}),a("FeesButton",{attrs:{text:"重置",icon:"el-icon-refresh"},on:{buttonClick:e.reset}})],1)])],1)],1)],1),a("div",{staticClass:"bg-fff p-left-2 h100",class:[e.isSearch?"a":"b"]},[a("div",{staticClass:"m-bottom-2 p-top-1 d-flex"},[a("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.isShowBtn,expression:"isShowBtn"}],attrs:{text:"影像上传",icon:"el-icon-upload2"},on:{buttonClick:function(t){e.fileuploadDialg=!e.fileuploadDialg}}}),a("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.isShowBtn,expression:"isShowBtn"}],attrs:{text:"批量校验",icon:"el-icon-circle-check"},on:{buttonClick:e.handleBatchCheck}}),a("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.isShowBtn,expression:"isShowBtn"}],attrs:{text:"强制通过",icon:"el-icon-upload2"},on:{buttonClick:e.handlForcePassed}}),a("FeesButton",{directives:[{name:"show",rawName:"v-show",value:e.isShowBtn,expression:"isShowBtn"}],attrs:{text:"异常报告",icon:"el-icon-upload2"},on:{buttonClick:e.handlAbnReport}}),a("FeesButton",{attrs:{text:"搜索",icon:"el-icon-search"},on:{buttonClick:e.searchClick}}),a("FeesButton",{directives:[{name:"permission",rawName:"v-permission",value:"ShowAll",expression:"'ShowAll'"}],attrs:{text:"显示全部",icon:"el-icon-search"},on:{buttonClick:e.showAll}})],1),a("div",{staticStyle:{width:"100%"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:""},on:{"selection-change":e.handleSelectionChange,"cell-dblclick":e.cellDbClick}},[a("el-table-column",{attrs:{type:"selection",width:"36"}}),a("el-table-column",{attrs:{prop:"checkStatus",label:"查验结果","header-align":"center",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{staticClass:"iconfont cursor",class:e.classList[t.row.checkStatus].name,staticStyle:{"font-size":"24px !important"},style:{color:e.classList[t.row.checkStatus].color},attrs:{title:t.row.checkStatusStr},on:{click:function(a){return e.goDetail(t.row,"CheckResult")}}})]}}],null,!1,833499606)}),a("el-table-column",{attrs:{prop:"reportId",label:"报告编号","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{attrs:{title:t.row.reportId},on:{click:function(a){return e.goFeeLine(t.row)}}},[e._v(e._s(t.row.reportId))])]}}],null,!1,561910471)}),a("el-table-column",{attrs:{prop:"reportName",label:"报告名称",align:"center"}}),a("el-table-column",{attrs:{prop:"name",label:"提交人",align:"center"}}),a("el-table-column",{attrs:{prop:"organization",label:"组织","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{attrs:{title:t.row.organization}},[e._v(" "+e._s(t.row.organization))])]}}],null,!1,2670413793)}),a("el-table-column",{attrs:{prop:"submitDate",label:"提交日期",align:"center"}}),a("el-table-column",{attrs:{prop:"reportStatus",label:"报告状态","header-align":"center",align:"center"}}),a("el-table-column",{attrs:{prop:"syncStatus",label:"审核同步","header-align":"center",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{attrs:{title:t.row.syncStatus}},[e._v(" "+e._s(0==t.row.syncStatus?"未同步":"已同步"))])]}}],null,!1,1947834796)}),a("el-table-column",{attrs:{prop:"reviewDate",label:"审核日期",align:"center"}}),1==e.isIndex?a("el-table-column",{attrs:{prop:"ext02",label:"备注",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==e.isExt02Edit?a("span",[e._v(e._s(t.row.ext02))]):a("el-input",{on:{blur:function(a){return e.editExt02(t.row.reportId,t.row.ext02)}},model:{value:t.row.ext02,callback:function(a){e.$set(t.row,"ext02",a)},expression:"scope.row.ext02"}})]}}],null,!1,3954907988)}):e._e(),a("el-table-column",{attrs:{prop:"createTime",label:"操作",align:"center",width:"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"cursor text-color",on:{click:function(a){return e.goDetail(t.row,"ImageAdmin")}}},[e._v("图片管理")]),a("span",{staticClass:"cursor text-color m-left-1",on:{click:function(a){return e.goDetail(t.row,"BillDetail")}}},[e._v("票据明细")]),a("span",{directives:[{name:"show",rawName:"v-show",value:0==e.isIndex||1==e.isIndex,expression:"isIndex == 0 || isIndex == 1"}],staticClass:"cursor text-color m-left-1",on:{click:function(a){return e.handleCheckSearch(t.row)}}},[e._v("合规检查")])]}}],null,!1,2339192823)})],1)],1),a("div",{staticClass:"m-y-1"},[a("el-pagination",{attrs:{background:"","current-page":e.queryInfo.pageNo,"page-size":e.queryInfo.pageSize,"page-sizes":[10,20,30,50],layout:" prev, pager, next,total, sizes, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){return e.$set(e.queryInfo,"pageNo",t)},"update:current-page":function(t){return e.$set(e.queryInfo,"pageNo",t)}}})],1)]),a("el-dialog",{attrs:{title:"影像上传",visible:e.fileuploadDialg},on:{"update:visible":function(t){e.fileuploadDialg=t}}},[a("div",{staticClass:"d-flex a-center j-center"},[a("span",{staticClass:"reportIdLabel"},[e._v("单据编号")]),e._v(": "),a("div",{staticClass:"m-left-2"},[a("el-input",{attrs:{placeholder:"请输入单据编号"},model:{value:e.reportId,callback:function(t){e.reportId=t},expression:"reportId"}})],1)]),a("div",{staticClass:"p2 d-flex a-center j-center tips"},[e._v(" 如果录入单据编号会则所有影像文件都自动归属于该编号下,如果留空会取面单的编号 ")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("input",{ref:"upload",staticStyle:{display:"none"},attrs:{type:"file",name:"",multiple:""},on:{change:function(t){return e.uploadAvater(t)}}}),a("el-button",{on:{click:function(t){e.fileuploadDialg=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.chooseFile}},[e._v("选择文件")])],1)]),a("el-dialog",{attrs:{title:"异常报告",visible:e.dialogTableVisible,width:"40%"},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-table",{attrs:{data:e.gridData}},[a("el-table-column",{attrs:{label:"操作",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"cursor text-color m-left-1",on:{click:function(a){return e.abnormalReportEdit(t.row)}}},[e._v("编辑")]),a("span",{staticClass:"cursor text-color m-left-1",on:{click:function(a){return e.deleteReport(t.row.reportId)}}},[e._v("删除")])]}}],null,!1,3861138927)}),a("el-table-column",{attrs:{label:"报告ID",width:"250",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-link",{on:{click:function(t){return e.goDetail1(r.reportId)}}},[e._v(" "+e._s(r.reportId)+" ")])]}}],null,!1,2938679205)}),a("el-table-column",{attrs:{prop:"status",label:"异常原因",width:"200",align:"center"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("timeFormat")(t.row.createTime,t.row.createTime))+" ")]}}],null,!1,1365570142)})],1)],1),a("el-dialog",{attrs:{title:"编辑",visible:e.dialogEditReport,"before-close":e.cancleDialog},on:{"update:visible":function(t){e.dialogEditReport=t}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.editARForm,"label-width":"100px",rules:e.rules}},[a("el-form-item",{attrs:{label:"报告ID:",prop:"reportId"}},[a("el-input",{model:{value:e.editARForm.reportId,callback:function(t){e.$set(e.editARForm,"reportId",t)},expression:"editARForm.reportId"}})],1),a("el-form-item",{staticClass:"m-top-2",attrs:{label:"异常原因:"}},[a("el-input",{attrs:{disabled:""},model:{value:e.editARForm.status,callback:function(t){e.$set(e.editARForm,"status",t)},expression:"editARForm.status"}})],1),a("el-form-item",{staticClass:"m-top-2",attrs:{label:"创建时间:"}},[a("el-input",{attrs:{disabled:""},model:{value:e.editARForm.createTime,callback:function(t){e.$set(e.editARForm,"createTime",t)},expression:"editARForm.createTime"}})],1)],1),a("div",{staticClass:"dialog-footer d-flex j-fe",attrs:{slot:"footer"},slot:"footer"},[a("FeesButton",{attrs:{text:"取 消",icon:"el-icon-circle-close"},on:{buttonClick:e.cancleDialog}}),a("FeesButton",{directives:[{name:"debounce",rawName:"v-debounce",value:{time:500,methods:e.confrimAddRole},expression:"{ time: 500, methods: confrimAddRole }"}],attrs:{icon:"el-icon-circle-check",text:"确 定"}})],1)],1),a("el-dialog",{attrs:{title:"修改单据编号",visible:e.editDialog},on:{"update:visible":function(t){e.editDialog=t}}},[a("div",{staticClass:"d-flex a-center j-center"},[a("span",[e._v("新单据编号:")]),a("div",{staticClass:"m-left-2"},[a("el-input",{attrs:{placeholder:"请输入单据编号"},model:{value:e.newBillNo,callback:function(t){e.newBillNo=t},expression:"newBillNo"}})],1)]),a("div",{staticClass:"dialog-footer d-flex j-fe",attrs:{slot:"footer"},slot:"footer"},[a("FeesButton",{attrs:{text:"取 消"},on:{buttonClick:e.editCancel}}),a("FeesButton",{directives:[{name:"debounce",rawName:"v-debounce",value:{time:500,methods:e.editComfirm},expression:"{ time: 500, methods: editComfirm }"}],attrs:{text:"确 定"}})],1)])],1):a("router-view")}),[],!1,null,"9544ab6c",null);t.default=u.exports},"86bc":function(e,t,a){},ede7:function(e,t,a){"use strict";var r=a("86bc");a.n(r).a}}]);
|