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.
wkcrm/static/js/chunk-e000.94e63706.js

1 line
8.6 KiB

3 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e000"],{EEMa:function(e,t,a){"use strict";var i=a("YQYl");a.n(i).a},YQYl:function(e,t,a){},eCeL:function(e,t,a){"use strict";var i=a("jp08");a.n(i).a},jp08:function(e,t,a){},tMlD:function(e,t,a){"use strict";var i=a("Y4Le"),n=a("Ew9n"),l=a("raay"),s=a("w4ZA"),r=a("3gPr"),o=a("CjUg"),c=a("8OTK"),d=a("6V3D"),u=a("h59h"),m=a("f6dm"),p=a("jHPx"),h={name:"ProductDetail",components:{SlideView:n.a,CRMDetailHead:l.a,DetailImg:d.a,CRMEditBaseInfo:s.a,RelativeFiles:r.a,RelativeHandle:o.a,CRMAllCreate:c.default,Sections:u.a},mixins:[m.a],props:{id:[String,Number],listenerIDs:{type:Array,default:function(){return["crm-main-container"]}},noListenerIDs:{type:Array,default:function(){return[]}},noListenerClass:{type:Array,default:function(){return["el-table__body"]}}},data:function(){return{loading:!1,crmType:"product",headDetails:[{title:"产品类别",value:""},{title:"产品单位",value:""},{title:"产品价格",value:""},{title:"产品编码",value:""}],tabCurrentName:"CRMEditBaseInfo",isCreate:!1}},computed:{tabNames:function(){return[{label:"详细资料",name:"CRMEditBaseInfo"},{label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"},{label:"操作记录",name:"RelativeHandle"}]},mainFileList:function(){return this.detailData&&this.detailData.cover_images?this.detailData.cover_images:[]},detailFileList:function(){return this.detailData&&this.detailData.details_images?this.detailData.details_images:[]}},mounted:function(){},methods:{getDetial:function(){var e=this;this.loading=!0,Object(i.i)({id:this.id}).then(function(t){e.loading=!1,e.detailData=t.data,0!==e.detailData.dataAuth&&(e.headDetails[0].value=t.data.category_id_info,e.headDetails[1].value=t.data.unit,e.headDetails[2].value=Object(p.h)(t.data.price||0),e.headDetails[3].value=t.data.num)}).catch(function(){e.loading=!1,e.hideView()})},hideView:function(){this.$emit("hide-view")},previewImage:function(e,t){this.$bus.emit("preview-image-bus",{index:t,data:e.map(function(e){return e.file_path&&(e.url=e.file_path),e})})}}},f=(a("eCeL"),a("KHd+")),v=Object(f.a)(h,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!e.canShowDetail,expression:"!canShowDetail"}],attrs:{"listener-ids":e.listenerIDs,"no-listener-ids":e.noListenerIDs,"no-listener-class":e.noListenerClass,"body-style":{padding:0,height:"100%"},"xs-empty-icon":"nopermission","xs-empty-text":"暂无权限"},on:{afterEnter:e.viewAfterEnter,close:e.hideView}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"crmDetailMain",staticClass:"detail-main"},[e.canShowDetail&&e.detailData?a("flexbox",{staticClass:"d-container",attrs:{direction:"column",align:"stretch"}},[a("c-r-m-detail-head",{attrs:{detail:e.detailData,"head-details":e.headDetails,id:e.id,"crm-type":e.crmType,"page-list":e.pageList},on:{pageChange:e.pageChange,handle:e.detailHeadHandle,close:e.hideView}}),e._v(" "),a("flexbox",{staticClass:"d-container-bd",attrs:{align:"stretch"}},[a("el-tabs",{staticClass:"d-container-bd--left",attrs:{type:"border-card"},model:{value:e.tabCurrentName,callback:function(t){e.tabCurrentName=t},expression:"tabCurrentName"}},e._l(e.tabNames,function(t,i){return a("el-tab-pane",{key:i,attrs:{label:t.label,name:t.name,lazy:""}},["CRMEditBaseInfo"===t.name?a(t.name,{tag:"c-r-m-edit-base-info",attrs:{detail:e.detailData,id:e.id,"crm-type":e.crmType,"ignore-fields":["status"]},on:{handle:e.detailHeadHandle}},[a("sections",{staticClass:"b-cells",attrs:{title:"图片信息","content-height":"auto"}},[a("div",{staticClass:"image"},[e.mainFileList.length>0?a("div",{staticClass:"image-info"},[a("div",{staticClass:"image-info__label"},[e._v("产品图片")]),e._v(" "),a("div",{staticClass:"image-info__list"},e._l(e.mainFileList,function(t,i){return a("img",{directives:[{name:"src",rawName:"v-src",value:t.url||t.file_path,expression:"item.url||item.file_path"}],key:i,staticClass:"main-img",on:{click:function(t){e.previewImage(e.m