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 line
22 KiB
1 line
22 KiB
3 years ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-82b3"],{"0A9Q":function(t,e,a){},"1q41":function(t,e,a){},"2kKq":function(t,e,a){"use strict";a.r(e);var s=a("9kPm"),i=a("z5/s"),n=a("QbLZ"),l=a.n(n),o=a("Ew9n"),r=a("/407"),c=a("hwzM"),u=a("dAOq"),d={name:"ExamineCell",components:{RelatedBusinessCell:r.a,FileCell:c.a},mixins:[u.a],props:{data:Object,showHandle:{type:Boolean,default:!0}},data:function(){return{}},computed:{relatedListData:function(){return{contacts:(this.data.contactsList||[]).map(function(t){return t.id&&(t.contacts_id=t.contacts_id),t}),customer:(this.data.customerList||[]).map(function(t){return t.id&&(t.customer_id=t.customer_id),t}),business:(this.data.businessList||[]).map(function(t){return t.id&&(t.business_id=t.business_id),t}),contract:(this.data.contractList||[]).map(function(t){return t.id&&(t.contract_id=t.contract_id),t})}}},watch:{},mounted:function(){},methods:{imgZoom:function(t,e){this.$bus.emit("preview-image-bus",{index:e,data:t})},handleCommand:function(t){this.$emit("on-handle",{type:t,data:{item:this.data}})},checkDetail:function(t){this.$emit("on-handle",{type:"view",data:{item:this.data}})},checkRelatedDetail:function(t,e){this.$emit("on-handle",{type:"related-detail",data:{type:t,item:e}})}}},p=(a("mVbG"),a("KHd+")),h=Object(p.a)(d,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list"},[a("div",{staticClass:"list-content"},[a("flexbox",{staticClass:"header"},[t.data.create_user_info?[a("xr-avatar",{attrs:{name:t.data.create_user_info.realname,size:34,src:t.data.create_user_info.img}}),t._v(" "),a("div",{staticClass:"name-time"},[a("span",{staticClass:"name"},[t._v(t._s(t.data.create_user_info.realname))]),t._v(" "),a("span",{staticClass:"time"},[t._v(t._s(t.data.create_time))])])]:t._e(),t._v(" "),a("div",{staticClass:"rt-setting"},[a("span",{staticClass:"bg-color",style:{"background-color":t.getTaskStatusColor(t.data.check_status)}}),t._v(" "),a("span",{staticClass:"dep"},[a("span",[t._v(t._s(t.data.category_name)+" - ")]),t._v(" "),a("span",[t._v(t._s(t.getTaskStatusName(t.data.check_status)))])]),t._v(" "),t.showHandle&&t.data.permission&&(t.data.permission.is_checked||t.data.permission.is_update||t.data.permission.is_delete)?a("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[a("i",{staticClass:"el-icon-arrow-down el-icon-more",staticStyle:{color:"#CDCDCD",cursor:"pointer"}}),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.data.permission&&t.data.permission.is_checked?a("el-dropdown-item",{attrs:{command:"withdraw"}},[t._v("撤回")]):t._e(),t._v(" "),t.data.permission&&t.data.permission.is_update?a("el-dropdown-item",{attrs:{command:"edit"}},[t._v("编辑")]):t._e(),t._v(" "),t.data.permission&&t.data.permission.is_delete?a("el-dropdown-item",{attrs:{command:"delete"}},[t._v("删除")]):t._e()],1)],1):t._e()],1)],2),t._v(" "),a("div",{staticClass:"row",on:{click:function(e){t.checkDetail(t.data)}}},[t.data.content?a("p",{staticClass:"text"},[t._v(t._s(t.data.content))]):t._e(),t._v(" "),t.data.remark?a("p",{staticClass:"title"},[t._v(t._s(t.data.remark))]):t._e()]),t._v(" "),t.data.fileList&&t.data.fileList.length>0||t.data.imgList&&t.data.imgList.length>0?a("div",{staticClass:"accessory"},[a("div",{staticClass:"upload-img-box"},t._l(t.data.imgList,function(e,s){return a("div",{key:s,staticClass:"img-list",on:{click:function(e){t.imgZoom(t.data.imgList,s)}}},[a("img",{directives:[{name:"src",rawName:"v-src",value:e.url||e.file_path_thumb,expression:"imgItem.url ||imgItem.file_path_thumb"}]})])})),t._v(" "),a("div",{staticClass:"accessory-box"},t._l(t.data.fileList,function(e,s){return a("file-cell",{key:s,attrs:{list:t.data.fileList,data:e,"cell-index":s}})}))]):t._e(),t._v(" "),t.relatedListData.contacts.length>0||t.relatedListData.customer.length>0||t.relatedListData.business.length>0||t.relatedListData.contract.length>0?a("div",{staticClass:"related-business"},[a("div",{staticClass:"label"},[t._v("相关信息")]),t._v(" "),t._l(t.relatedListData,function(e,s){return a("div",{
|