(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5553","chunk-55538","chunk-555382","chunk-7f40","chunk-79c4"],{"1F+2":function(t,e,i){},"2MCj":function(t,e,i){"use strict";var n=i("1F+2");i.n(n).a},BsgX:function(t,e,i){"use strict";var n={name:"ReportMenu",components:{},mixins:[i("Z+Ht").a],props:{list:Array},data:function(){return{}},computed:{},watch:{},mounted:function(){},beforeDestroy:function(){},methods:{itemClick:function(t){this.$emit("select",t)}}},a=(i("2MCj"),i("KHd+")),l=Object(a.a)(n,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"report-menu"},t._l(t.list,function(e,n){return i("span",{key:n,staticClass:"report-menu-btn",on:{click:function(i){t.itemClick(e)}}},[i("i",{staticClass:"report-menu-btn__icon",class:t.getXrIcon(e.type),style:{color:t.getXrIconColor(e.type)}}),t._v(" "),i("span",{staticClass:"report-menu-btn__name"},[t._v(t._s(e.name))])])}))},[],!1,null,"37799401",null);l.options.__file="ReportMenu.vue";e.a=l.exports},MdnP:function(t,e,i){"use strict";var n={name:"PictureListView",props:{list:{type:Array,required:!0}},methods:{imgZoom:function(t,e){this.$bus.emit("preview-image-bus",{index:e,data:t.map(function(t,e,i){return{url:t.filePath||t.url||t.file_path_thumb,name:t.name,save_name:t.save_name}})})}}},a=(i("fx3D"),i("KHd+")),l=Object(a.a)(n,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"picture-list-view"},t._l(t.list,function(e,n){return i("div",{key:n,staticClass:"img-list-item",on:{click:function(e){t.imgZoom(t.list,n)}}},[i("img",{directives:[{name:"src",rawName:"v-src",value:e.filePath||e.url||e.file_path_thumb,expression:"imgItem.filePath || imgItem.url ||imgItem.file_path_thumb"}],key:e.filePath||e.url})])}))},[],!1,null,"3c82fb24",null);l.options.__file="PictureListView.vue";e.a=l.exports},PLZ3:function(t,e,i){},Th6z:function(t,e,i){},VmBU:function(t,e,i){"use strict";i.d(e,"e",function(){return a}),i.d(e,"a",function(){return l}),i.d(e,"c",function(){return o}),i.d(e,"b",function(){return s}),i.d(e,"k",function(){return r}),i.d(e,"i",function(){return c}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return d}),i.d(e,"j",function(){return p}),i.d(e,"d",function(){return f}),i.d(e,"n",function(){return m}),i.d(e,"m",function(){return h}),i.d(e,"l",function(){return _}),i.d(e,"p",function(){return v}),i.d(e,"f",function(){return g}),i.d(e,"o",function(){return b});var n=i("t3Un");function a(t){return Object(n.a)({url:"oa/log/index",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t})}function l(t){return Object(n.a)({url:"oa/log/save",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t})}function o(t){return Object(n.a)({url:"oa/log/"+(t.log_id?"update":"save"),method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t})}function s(t){return Object(n.a)({url:"oa/log/delete",method:"post",data:t})}function r(t){return Object(n.a)({url:"oaLog/readLog",method:"post",data:t})}function c(t){return Object(n.a)({url:"oa/log/queryLog",method:"post",data:t})}function u(t){return Object(n.a)({url:"oa/log/logBulletin",method:"post",data:t})}function d(t){return Object(n.a)({url:"oa/log/newBulletin",method:"post",data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function p(t){return Object(n.a)({url:"oa/log/activityList",method:"post",data:t})}function f(t){return Object(n.a)({url:"oa/log/LogWelcomeSpeech",method:"post",data:t})}function m(t){return Object(n.a)({url:"oa/log/excelExport",method:"post",data:t,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:"blob"})}function h(t){return Object(n.a)({url:"oa/log/completeStats",method:"post",data:t})}function _(t){return Object(n.a)({url:"oa/log/completeLog",method:"post",data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function v(t){return Object(n.a)({url:"oa/log/inCompleteLog",method:"post",data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function g(t){return Object(n.a)({url:"oa/log/activityCount",method:"post",data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function b(t){return Object(n.a)({url:"oa/log/favourUpdate",method:"post",data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},fx3D:function(t,e,i){"use strict";var n=i("PLZ3");i.n(n).a},lXPP:function(t,e,i){"use strict";var n=i("Th6z");i.n(n).a},oWzH:function(t,e,i){"use strict";e.a={methods:{getCategoryIcon:function(t){var e=t&&"string"==typeof t?t.split(","):[];return e.length>1?{icon:e[0],color:e[1]}:{icon:"wk wk-approve",color:"#9376FF"}}}}},slnp:function(t,e,i){"use strict";var n=i("7qmR"),a=i("Ew9n"),l=i("3biH"),o=i("/407"),s=i("hwzM"),r=i("iWcH"),c=i("7Qib"),u=i("oWzH"),d=i("m77o"),p={name:"ExamineDetail",components:{SlideView:a.a,ExamineInfo:l.a,RelatedBusinessCell:o.a,CRMFullScreenDetail:function(){return Promise.all([i.e("chunk-21d9"),i.e("chunk-a3e9"),i.e("chunk-7f40")]).then(i.bind(null,"3z7q"))},FileCell:s.a,WkFieldView:r.default},filters:{fileName:function(t){return(t.name&&t.name.length>10?t.name.substring(0,10)+"...":t.name)+"("+Object(c.h)(t.size)+")"}},mixins:[u.a],props:{id:[String,Number],detailIndex:[String,Number],detailSection:[String,Number],noListenerClass:{type:Array,default:function(){return["list-box"]}}},data:function(){return{loading:!1,category_id:"",type:"",detail:null,list:[],category_name:"",fileList:[],imgList:[],travelList:[],travelField:[{prop:"vehicle",label:"交通工具"},{prop:"trip",label:"单程往返"},{prop:"start_address",label:"出发城市"},{prop:"end_address",label:"目的城市"},{prop:"start_time",label:"开始时间"},{prop:"end_time",label:"结束时间"},{prop:"duration",label:"时长(天)"},{prop:"description",label:"备注"}],expensesField:[{prop:"start_address",label:"出发城市"},{prop:"end_address",label:"目的城市"},{prop:"start_time",label:"开始时间"},{prop:"end_time",label:"结束时间"},{prop:"traffic",label:"交通费(元)"},{prop:"stay",label:"住宿费(元)"},{prop:"diet",label:"餐饮费(元)"},{prop:"other",label:"其他费用(元)"},{prop:"description",label:"费用明细描述"}],relatedID:"",relatedCRMType:"",showRelatedDetail:!1}},computed:{relatedListData:function(){for(var t=this,e={},i=["contacts","customer","business","contract"],n=function(n){var a=i[n],l=t.detail[a+"List"]||[];l.length>0&&(e[a]=l.map(function(t){return t.id&&(t[a+"Id"]=t.id),t}))},a=0;a0&&this.$bus.emit("preview-image-bus",{index:i,data:e.map(function(t){return t.file_path&&(t.url=t.file_path),t})}):"download"===t&&Object(c.d)({path:e.url,name:e.name})},imgZoom:function(t,e){this.$bus.emit("preview-image-bus",{index:e,data:t.map(function(t){return t.file_path&&(t.url=t.file_path),t})})},downloadFile:function(t){Object(c.d)({path:t.url,name:t.name})},examineHandle:function(t){this.$emit("on-examine-handle",t,this.detailIndex),this.$emit("handle",t,this.detailIndex)},getCommonShowValue:function(t){return Object(d.a)(t.form_type,t.value,"",t)},isBlockShowField:function(t){return["map_address","file","detail_table"].includes(t.form_type)}}},f=(i("lXPP"),i("KHd+")),m=Object(f.a)(p,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("slide-view",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"d-view",attrs:{"listener-ids":["workbench-main-container"],"no-listener-class":t.noListenerClass},on:{afterEnter:t.viewAfterEnter,close:t.hideView}},[t.detail?i("flexbox",{staticClass:"detail-main",attrs:{orient:"vertical"}},[i("flexbox",{staticClass:"detail-header"},[i("div",{staticClass:"header-icon",style:{backgroundColor:t.detailIcon.color}},[i("i",{class:["wk","wk-"+t.detailIcon.icon]})]),t._v(" "),i("div",{staticClass:"header-name"},[t._v(t._s(t.category_name))])]),t._v(" "),i("div",{staticClass:"detail-body"},[i("flexbox",{attrs:{gutter:0,align:"stretch",wrap:"wrap"}},t._l(t.list,function(e,n){return"examine_cause"!==e.form_type&&"business_cause"!==e.form_type?i("flexbox-item",{key:n,staticClass:"b-cell",class:[{"is-block":t.isBlockShowField(e)},"is-"+e.form_type],attrs:{span:.5}},[i("div",{staticClass:"b-cell-b"},[i("div",{staticClass:"b-cell-name"},[t._v(t._s(e.name))]),t._v(" "),i("div",{staticClass:"b-cell-value"},[i("wk-field-view",{attrs:{props:e,form_type:e.form_type,value:e.value},scopedSlots:t._u([{key:"default",fn:function(i){return i.data,[t._v("\n "+t._s(t.getCommonShowValue(e))+"\n ")]}}])})],1)])]):t._e()})),t._v(" "),t.imgList.length>0?i("div",{staticClass:"img-box"},t._l(t.imgList,function(e,n){return i("div",{key:n,staticClass:"img-list",on:{click:function(e){t.imgZoom(t.imgList,n)}}},[i("img",{directives:[{name:"src",rawName:"v-src",value:e.file_path,expression:"imgItem.file_path"}],key:e.file_path})])})):t._e(),t._v(" "),t.fileList.length?i("div",{staticClass:"section"},[i("div",{staticClass:"section__hd"},[i("i",{staticClass:"wukong wukong-file"}),t._v(" "),i("span",[t._v("附件")]),t._v(" "),i("span",[t._v("("+t._s(t.fileList.length)+")")])]),t._v(" "),i("div",{staticClass:"section__bd"},t._l(t.fileList,function(e,n){return i("file-cell",{key:n,attrs:{data:e,list:t.fileList,"cell-index":n}})}))]):t._e(),t._v(" "),t.type&&3==t.type&&t.travelList&&t.travelList.length>0?i("div",{staticClass:"table-sections"},[i("div",{staticClass:"table-sections__title"},[t._v("行程")]),t._v(" "),i("el-table",{staticStyle:{"font-size":"13px"},attrs:{data:t.travelList,align:"center","header-align":"center",stripe:""}},t._l(t.travelField,function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.prop,label:t.label,"show-overflow-tooltip":""}})}))],1):t._e(),t._v(" "),t.type&&5==t.type&&t.travelList&&t.travelList.length>0?i("div",{staticClass:"table-sections"},[i("div",{staticClass:"table-sections__title"},[t._v("报销")]),t._v(" "),i("el-table",{staticStyle:{"font-size":"13px"},attrs:{data:t.travelList,align:"center","header-align":"center",stripe:""}},[t._l(t.expensesField,function(t,e){return i("el-table-column",{key:e,attrs:{prop:t.prop,label:t.label,"show-overflow-tooltip":""}})}),t._v(" "),i("el-table-column",{attrs:{label:"发票",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("flexbox",{attrs:{justify:"center"}},[i("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){t.handleFile("preview",e.row.imgList,0)}}},[t._v(t._s(e.row.imgList?e.row.imgList.length:0)+"张")])],1)]}}])})],2)],1):t._e(),t._v(" "),Object.keys(t.relatedListData).length>0?i("div",{staticClass:"section"},[i("div",{staticClass:"section__hd"},[i("i",{staticClass:"wukong wukong-relevance"}),t._v(" "),i("span",[t._v("相关信息")])]),t._v(" "),i("div",{staticClass:"section__bd"},t._l(t.relatedListData,function(e,n){return i("div",{key:n},t._l(e,function(e,a){return i("related-business-cell",{key:a,attrs:{data:e,"cell-index":a,type:n,"show-foot":!1},nativeOn:{click:function(i){t.checkRelatedDetail(n,e)}}})}))}))]):t._e(),t._v(" "),i("div",{staticClass:"examine-section"},[i("examine-info",{staticClass:"create-sections-content",attrs:{id:t.id,"record-id":t.detail.flow_id,"examine-type":"oa_examine"},on:{"on-handle":t.examineHandle}})],1)],1)],1):t._e(),t._v(" "),i("c-r-m-full-screen-detail",{attrs:{visible:t.showRelatedDetail,"crm-type":t.relatedCRMType,id:t.relatedID},on:{"update:visible":function(e){t.showRelatedDetail=e}}})],1)},[],!1,null,"61e90050",null);m.options.__file="ExamineDetail.vue";e.a=m.exports}}]);