瀏覽代碼

延时和项目成本字体宽度

yuhan 1 年之前
父節點
當前提交
ff0e31a3c0
共有 2 個文件被更改,包括 61 次插入56 次删除
  1. 1 1
      src/utils/request.js
  2. 60 55
      src/views/module_kzks/projectCostList/ProjectCostList.vue

+ 1 - 1
src/utils/request.js

@@ -17,7 +17,7 @@ let apiBaseUrl = window._CONFIG['domianURL'] || "/jeecg-boot";
 const service = axios.create({
   //baseURL: '/jeecg-boot',
   baseURL: apiBaseUrl, // api base_url
-  timeout: 600000 // 请求超时时间
+  timeout: 1200000 // 请求超时时间
 })
 
 const err = (error) => {

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

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