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
12 KiB
2 lines
12 KiB
|
3 years ago
|
import{_ as O,r as d,o as f,c as m,w as o,i as g,q as S,j as V,y as D,J as v,f as I,d as s,z as y,A as q,B as G,e as L,V as J,l as M,m as H,H as U,X as Q,Q as z,S as X,h as E,F as N,N as W,t as P,C as Y,G as Z,D as $,E as ee,U as te,I as ae,R as oe}from"./index.58a4812e.js";/* empty css *//* empty css */import{g as le}from"./view.a8aea462.js";/* empty css */import{c as se,g as ne}from"./common.a907f978.js";/* empty css */import{E as ie,a as de}from"./EditView.b931ca6b.js";/* empty css */import"./factory.56670aad.js";import"./materialType.20973eba.js";const ce={setup(){const t=d([]),a=d([]),l=d([]);let e=["1E9FFF","009688","393D49","5FB878"];return{dataColumn:t,dataList:a,dataColor:l,rowStyle:function(n,h){let r="";for(let p=0;p<l.value.length;p++)h>l.value[p]&&(r="color:#"+e[p]);return r}}},props:{viewList:{type:Object,default:()=>[]},viewHeight:{type:Number,default:()=>600}},mounted(){this.initPage()},methods:{initPage(){let t=[{type:"number",title:"\u5E8F\u53F7",width:"56"}],a=[],l=[];this.viewList.forEach(e=>{if(e.length>0){if(t.length==1)for(let c in e[0]){let n=c.indexOf("\u63CF\u8FF0")!=-1||c=="\u6587\u672C"||c=="\u7269\u6599"?"300px":"130px";n=c.indexOf("\u7F16\u7801")!=-1?"200px":n,t.push({key:c,title:c.split(".").pop(),align:"center",width:n})}e.forEach(c=>{a.push(c)}),l.push(a.length-1)}}),this.dataColumn=t,this.dataList=a,this.dataColor=l},cancelClick(){this.$emit("cancelClick",!1)}}};function re(t,a,l,e,c,n){const h=S,r=V;return f(),m(r,{fluid:"true",class:"content-box"},{default:o(()=>[e.dataColumn.length>0?(f(),m(h,{key:0,height:l.viewHeight+"px",columns:e.dataColumn,"data-source":e.dataList,"row-style":e.rowStyle},null,8,["height","columns","data-source","row-style"])):g("",!0)]),_:1})}var he=O(ce,[["render",re],["__scopeId","data-v-0a67527c"]]);const fe={components:{ShowView:he},setup(){const t=d([]);let a=[{title:"\u89C6\u56FE",key:"name"},{title:"\u64CD\u4F5C",key:"operator",width:"148px",customSlot:"operator",align:"center"}];const l=d({}),e=d(5),c=d(!1),n=d([]),h=d(500);return{dataList:t,dataColumn:a,dataProcess:l,viewTypeCount:e,showEditBox:c,viewList:n,viewHeight:h}},props:{dataInfoObj:{type:Object,default:()=>{}}},mounted(){this._getViewList()},methods:{async _getViewList(){this.dataList=[{name:"\u65B0\u7269\u6599\u89C6\u56FE",seeCode:"1",outCode:"6"},{name:"\u53D7\u5F71\u54CD\u7684\u7269\u6599\u89C6\u56FE",seeCode:"5",outCode:"10"},{name:"\u914D\u65B9\u89C6\u56FE",seeCode:"5",outCode:"10"}]},async _getTeamworkView(t,a){let l=parseInt(a==1?t.seeCode:t.outCode);a==2&&(l=l-this.viewTypeCount);let e={FTeamID:this.dataInfoObj.FID,FViewType:l,FType:a,HalfId:this.dataInfoObj.FMaterialHalfIDs};(this.dataInfoObj.FProgress=="100"||this.dataInfoObj.FProgress=="100%")&&(e.FFinish=1);let c=D.load(2),n=await le(e);if(D.close(c),a==1){let h=[],r=0;for(let p in n)h.push(n[p]),r+=n[p].length;r==0?D.msg("\u8BF7\u7A0D\u7B49\uFF0C\u89C6\u56FE\u4FE1\u606F\u8FD8\u5728\u7F16\u8F91\u4E2D",{time:2e3,icon:3}):(this.viewList=h,this.viewHeight=Math.ceil(this.dataInfoObj.FHeight*.6),this.showEditBox=!0)}else window.open(n)},dateFormat(t){return t==null||t==""?"":t.replace("T"," ").split(".")[0]},cancelClick(t){this.$emit("cancelClick",t||!1)}}},j=t=>(q("data-v-35a6c5b8"),t=t(),G(),t),pe={class:"box-data"},me=j(()=>L("div",{class:"grid-demo",style:{"text-align":"right"}},"\u539F\u914D\u65B9\uFF1A",-1)),ue=j(()=>L("div",{class:"grid-demo",style:{"text-align":"left"}},"\u914D\u65B9\u53F7+\u7248\u672C\u53F7+\u63CF\u8FF0",-1)),_e=j(()=>L("div",{class:"grid-demo",style:{"text-align":"right"}},"\u53D8\u66F4\u540E\u7684\u914D\u65B9\uFF1A",-1)),ye=j(()=>L("div",{class:"grid-demo",style:{"text-align":"left"}},"\u914D\u65B9\u53F7+\u7248\u672C\u53F7+\u63CF\u8FF0",-1));function ge(t,a,l,e,c,n){const h=J,r=M,p=H,F=V,w=U,b=S,_=Q,x=v("ShowView"),k=z;return f(),I("div",pe,[s(_,{height:"800px"},{default:o(()=>[s(h,null,{default:o(()=>[y("\u914D\u65B9\u53D8\u66F4\u8BE6\u60C5")]),_:1}),s(F,{class:"dataInfo"},{default:o(()=>[s(p,{space:"10"},{default:o(()=>[s(r,{md:"6"},{default:
|