Kaynağa Gözat

项目成本页面间距样式调整

yuhan 1 yıl önce
ebeveyn
işleme
733535464f

+ 55 - 53
src/views/module_kzks/projectCostList/ProjectCostList.vue

@@ -410,7 +410,7 @@ import { number } from 'echarts';
             title:'任务号',
             fixed:"left",
             dataIndex: 'taskno',
-            width: 180,
+            width: 120,
             customHeaderCell:() => ({
               style: {
                 textAlign: 'center', // 表头居中
@@ -421,19 +421,20 @@ import { number } from 'echarts';
             title:'任务名称',
             align:"center",
             fixed:"left",
-            width: 120,
-            dataIndex: 'taskname'
+            width: 60,
+            dataIndex: 'taskname',
+            ellipsis: true,
           },
           {
             title:'型号',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'xhname',
           },
           {
             title:'计划完成时间',
             align:"center",
-            width: 120,
+            width: 80,
             dataIndex: 'jhwcsj',
             customRender:function (text) {
               return !text?"":(text.length>10?text.substr(0,10):text)
@@ -442,13 +443,13 @@ import { number } from 'echarts';
           {
             title:'阶段',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'yzjdname'
           },
           {
             title:'项目进度',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'processpercent',
             customRender: (text, record) => {
               return record.id === 'amount'?null:parseInt(text)+ '%'
@@ -457,7 +458,7 @@ import { number } from 'echarts';
           {
             title:'成本进度',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'costPercent',
             customRender: (text, record) => {
               return record.id === 'amount'?null:(Number(text) * 100).toFixed(0) + '%'
@@ -466,7 +467,7 @@ import { number } from 'echarts';
           {
             title:'已收款',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'taskmoney',
             // scopedSlots: {
             //   customRender: 'taskmoney',
@@ -479,7 +480,7 @@ import { number } from 'echarts';
           {
             title:'合同额',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'contractfpe',
             // scopedSlots: {
             //   customRender: 'contractfpe',
@@ -493,7 +494,7 @@ import { number } from 'echarts';
           {
             title:'预估价',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'estimationcoat',
             customRender: (text, record) => {
               return record.contractfpe ? '-' : Number(text).toFixed(2)
@@ -502,7 +503,7 @@ import { number } from 'echarts';
           {
             title:'总成本',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'zcb',
             customRender: (text) => {
               return (Number(text)/10000).toFixed(2)
@@ -511,7 +512,7 @@ import { number } from 'echarts';
           {
             title:'利润额',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'lre',
             customRender: (text) => {
               return (Number(text)/10000).toFixed(2)
@@ -520,7 +521,7 @@ import { number } from 'echarts';
           {
             title:'利润率',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'lrl',
             customRender: (text) => {
               return (Number(text) * 100).toFixed(1) + '%'
@@ -529,13 +530,13 @@ import { number } from 'echarts';
           {
             title:'研制数量',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'yzsl'
           },
           {
             title:'单台利润',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'oneProfit',
             customRender: (text, record) => {
               return record.id === 'amount'?null:(Number(text)/10000).toFixed(2)
@@ -544,7 +545,7 @@ import { number } from 'echarts';
           {
             title:'单台收入',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'oneIncome',
             customRender: (text, record) => {
               return record.id === 'amount'?null:(Number(text)/10000).toFixed(2)
@@ -553,7 +554,7 @@ import { number } from 'echarts';
           {
             title:'单台成本',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'oneCost',
             customRender: (text, record) => {
               return record.id === 'amount'?null:(Number(text)/10000).toFixed(2)
@@ -562,7 +563,7 @@ import { number } from 'echarts';
           {
             title:'材料预算',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'clys',
             customRender: (text) => {
               return Number(text).toFixed(2)
@@ -571,7 +572,7 @@ import { number } from 'echarts';
           {
             title:'材料费',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'clf',
             // scopedSlots: {
             //   customRender: 'clf',
@@ -584,7 +585,7 @@ import { number } from 'echarts';
           {
             title:'专用预算',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'zyys',
             customRender: (text) => {
               return Number(text).toFixed(2)
@@ -593,7 +594,7 @@ import { number } from 'echarts';
           {
             title:'专用费',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'zyf',
             // scopedSlots: {
             //   customRender: 'zyf',
@@ -606,7 +607,7 @@ import { number } from 'echarts';
           {
             title:'事务预算',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'swys',
             customRender: (text) => {
               return Number(text).toFixed(2)
@@ -615,7 +616,7 @@ import { number } from 'echarts';
           {
             title:'事务费',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'swf',
             // scopedSlots: {
             //   customRender: 'swf',
@@ -628,7 +629,7 @@ import { number } from 'echarts';
           {
             title:'外协预算',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'wxys',
             customRender: (text) => {
               return Number(text).toFixed(2)
@@ -637,7 +638,7 @@ import { number } from 'echarts';
           {
             title:'外协费',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'wxf',
             // scopedSlots: {
             //   customRender: 'wxf',
@@ -650,7 +651,7 @@ import { number } from 'echarts';
           {
             title:'间接预算',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'jjys',
             customRender: (text) => {
               return Number(text).toFixed(2)
@@ -659,7 +660,7 @@ import { number } from 'echarts';
           {
             title:'燃动费',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'rldlf',
             customRender: (text) => {
               return (Number(text)/10000).toFixed(2)
@@ -669,7 +670,7 @@ import { number } from 'echarts';
           {
             title:'固资费',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'gdzczj',
             customRender: (text) => {
               return (Number(text)/10000).toFixed(2)
@@ -679,7 +680,7 @@ import { number } from 'echarts';
           {
             title:'人工费',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'gzjlwf',
             customRender: (text) => {
               return (Number(text)/10000).toFixed(2)
@@ -689,7 +690,7 @@ import { number } from 'echarts';
           {
             title:'管理费',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'glf',
             customRender: (text) => {
               return (Number(text)/10000).toFixed(2)
@@ -699,7 +700,7 @@ import { number } from 'echarts';
           {
             title:'筛选费',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'sxf',
             customRender: (text) => {
               return (Number(text)/10000).toFixed(2)
@@ -709,7 +710,7 @@ import { number } from 'echarts';
           {
             title:'装机成本',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'zjcb',
             // scopedSlots: {
             //   customRender: 'zjcb',
@@ -722,13 +723,13 @@ import { number } from 'echarts';
           {
             title:'内部试验',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'lbsy'
           },
           {
             title:'工时(h)',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'workhour',
             // scopedSlots: {
             //   customRender: 'workhour',
@@ -738,7 +739,7 @@ import { number } from 'echarts';
           {
             title:'责任部门',
             align:"center",
-            width: 120,
+            width: 80,
             dataIndex: 'zrbm'
           },
           // {
@@ -749,8 +750,9 @@ import { number } from 'echarts';
           {
             title:'下达部门',
             align:"center",
-            width: 120,
-            dataIndex: 'jycs'
+            width: 80,
+            dataIndex: 'jycs',
+            ellipsis: true,
           },
           // {
           //   title:'1:横向 2:纵向',
@@ -760,85 +762,85 @@ import { number } from 'echarts';
           {
             title:'横向纵向',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'hxzxname'
           },
           {
             title:'任务类型',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'tasktype'
           },
           {
             title:'审计审价',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'auditprice'
           },
           {
             title:'任务状态',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'iflag'
           },
           {
             title:'提出单位简称',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'brief'
           },
           {
             title:'父级任务',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'reftaskno'
           },
           {
             title:'批产任务号',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'pccode'
           },
           {
             title:'备产任务号',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'bccode'
           },
           {
             title:'备料任务号',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'blcode'
           },
           {
             title:'业务员',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'businessManName'
           },
           {
             title:'主管设计师',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'ywfzrname'
           },
           {
             title:'科研任务负责人',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'xhzzrname'
           },
           {
             title:'设计工时',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'sjgs'
           },
           {
             title:'生产工时',
             align:"center",
-            width: 120,
+            width: 60,
             dataIndex: 'scgs'
           },
           // {
@@ -1492,6 +1494,6 @@ import { number } from 'echarts';
   /*表格tbody*/
   ::v-deep .ant-table-tbody > tr > td {
     font-size: 13px;
-    padding: 10px 8px !important;
+    padding: 6px 4px !important;
   }
 </style>