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.

2 lines
14 KiB

3 years ago
import{_ as A,r as h,K as Q,y as N,J as T,o as c,f as m,c as p,w as o,d as n,z as w,F as V,h as v,n as O,e as _,t as i,i as g,A as X,B as Y,T as Z,U as $,l as B,m as H,j as U,H as z,q as R,V as ee,R as M,C as te,G as ae,D as oe,E as le,S as se,I as ne,W as de,O as ce}from"./index.b3f8b7f1.js";/* empty css *//* empty css */import{a as re,g as ie,b as _e,A as ue,S as he,c as pe}from"./all.b6bc6e53.js";/* empty css */import{e as me}from"./common.d8f31935.js";/* empty css */import"./factory.c30f2aec.js";import"./materialType.f34aeb6a.js";import"./package.94c98454.js";const fe={components:{ShowView:re},setup(){const l=h([]);let a=[{title:"\u89C6\u56FE",key:"name"},{title:"\u64CD\u4F5C",key:"operator",width:"148px",customSlot:"operator",align:"center"}];const s=h({}),e=h(5),f=h(!1),r=h([]),F=h(500);return{dataList:l,dataColumn:a,dataProcess:s,viewTypeCount:e,showEditBox:f,viewList:r,viewHeight:F}},props:{dataInfoObj:{type:Object,default:()=>{}}},mounted(){this._getTeamProcessList(),this._getViewList()},methods:{async _getTeamProcessList(){let l=await ie(this.dataInfoObj.FID)||[];l.forEach(s=>{s.FAddDate=this.dateFormat(s.FAddDate),s.FStartDate=this.dateFormat(s.FStartDate),s.FFinishDate=this.dateFormat(s.FFinishDate)});let a={head:l.filter(s=>s.FGroup==1)||[],list:l.filter(s=>s.FGroup==2)||[],foot:l.filter(s=>s.FGroup==3)||[]};this.dataProcess=a},async _getViewList(){let l=await Q({FRoleType:39})||[],a=[],s=this.dataInfoObj.FViewType.split(",");console.log(l),console.log(s),l.forEach(e=>{let f=a.find(r=>r.name==e.FName)||null;f==null?s.indexOf(e.FCode)!=-1&&(f={name:e.FName,seeCode:"",outCode:""},e.FRemark.indexOf("\u67E5\u770B")!=-1&&(f.seeCode=e.FCode),e.FRemark.indexOf("\u5BFC\u51FA")!=-1&&(f.outCode=e.FCode),a.push(f)):(e.FRemark.indexOf("\u67E5\u770B")!=-1&&(f.seeCode=e.FCode),e.FRemark.indexOf("\u5BFC\u51FA")!=-1&&(f.outCode=e.FCode))}),console.log(a),this.dataList=a},async _getTeamworkView(l,a){let s=parseInt(a==1?l.seeCode:l.outCode);a==2&&(s=s-this.viewTypeCount);let e={FTeamID:this.dataInfoObj.FID,FViewType:s,FType:a,HalfId:this.dataInfoObj.FMaterialHalfIDs};(this.dataInfoObj.FProgress=="100"||this.dataInfoObj.FProgress=="100%")&&(e.FFinish=1);let f=N.load(2),r=await _e(e);debugger;if(N.close(f),a==1){let F=[],u=0;for(let y in r)F.push(r[y]),u+=r[y].length;u==0?N.msg("\u8BF7\u7A0D\u7B49\uFF0C\u89C6\u56FE\u4FE1\u606F\u8FD8\u5728\u7F16\u8F91\u4E2D",{time:2e3,icon:3}):(this.viewList=F,this.viewHeight=Math.ceil(this.dataInfoObj.FHeight*.6),this.showEditBox=!0)}else window.open(r)},dateFormat(l){return l==null||l==""?"":l.replace("T"," ").split(".")[0]},cancelClick(l){this.$emit("cancelClick",l||!1)}}},G=l=>(X("data-v-26debab2"),l=l(),Y(),l),Fe={class:"box-data"},ge={class:"right"},ye={key:1},ke={key:2},Ce={key:3},we={class:"num"},be=["title"],De=G(()=>_("p",{class:"pro-next"},null,-1)),xe={class:"right"},Ie={key:1},Oe={key:2},je={key:3},Se={class:"num"},Ve=["title"],ve=G(()=>_("p",{class:"pro-next"},null,-1)),Le={class:"right"},Te={key:1},Pe={key:2},Ne={key:3},Ee={class:"num"},Ae=["title"];function Be(l,a,s,e,f,r){const F=Z,u=$,y=B,b=H,x=U,D=z,k=R,j=ee,I=T("ShowView"),L=M;return c(),m("div",Fe,[s.dataInfoObj.FHeight?(c(),p(j,{key:0,height:s.dataInfoObj.FHeight+"px"},{default:o(()=>[n(F,null,{default:o(()=>[w("\u534F\u540C\u6D41\u7A0B")]),_:1}),n(x,{class:"dataInfo"},{default:o(()=>[e.dataProcess.head?(c(),p(b,{key:0,space:"10"},{default:o(()=>[(c(!0),m(V,null,v(e.dataProcess.head,(t,C)=>(c(),p(y,{md:"12",key:C,class:O("pro-item none state"+t.FState)},{default:o(()=>[_("div",ge,[t.FChargeName&&t.FChargeName!=""?(c(),p(u,{key:0,content:t.FChargeName},{default:o(()=>[_("p",null,"\u8D1F\u8D23\u4EBA\uFF1A"+i(t.FChargeName),1)]),_:2},1032,["content"])):(c(),m("p",ye,"\u8D1F\u8D23\u4EBA\uFF1A"+i(t.FChargeName),1)),t.FStartDate==""?(c(),m("p",ke,"\u53D1\u8D77\uFF1A"+i(t.FAddDate),1)):g("",!0),t.FStartDate!=""?(c(),m("p",Ce,"\u53D1\u8D77\uFF1A"+i(t.FStartDate),1)):g("",!0),_("p",null,"\u5B8C\u6210\uFF1A"+i(t.FFinishDate),1),n(u,{content:t.FDesc},{default:o(()=>[_("p",null,"\u7