From 51e20d3bde90da8f5cc0fa378e0d6d5c1355fda6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com> Date: Wed, 20 Mar 2024 10:44:54 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E7=9B=B4?= =?UTF-8?q?=E8=A7=82=E5=9B=BE=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/components/fd/child/bcxq.vue | 154 +++ .../dashboard/components/fd/child/kwxx.vue | 396 ++++++ .../dashboard/components/fd/child/plxx.vue | 250 ++++ .../components/fd/child/sygdxqjh.vue | 607 +++++++++ .../dashboard/components/fd/child/tab.vue | 64 + .../dashboard/components/fd/child/xbjh.vue | 209 +++ .../dashboard/components/fd/child/zgt.vue | 151 +++ .../dashboard/components/fd/czfdzgtcx.vue | 1128 +---------------- src/views/dashboard/index.vue | 2 +- src/views/jhzx/symxCX.vue | 2 +- 10 files changed, 1853 insertions(+), 1110 deletions(-) create mode 100644 src/views/dashboard/components/fd/child/bcxq.vue create mode 100644 src/views/dashboard/components/fd/child/kwxx.vue create mode 100644 src/views/dashboard/components/fd/child/plxx.vue create mode 100644 src/views/dashboard/components/fd/child/sygdxqjh.vue create mode 100644 src/views/dashboard/components/fd/child/tab.vue create mode 100644 src/views/dashboard/components/fd/child/xbjh.vue create mode 100644 src/views/dashboard/components/fd/child/zgt.vue diff --git a/src/views/dashboard/components/fd/child/bcxq.vue b/src/views/dashboard/components/fd/child/bcxq.vue new file mode 100644 index 0000000..4f4127a --- /dev/null +++ b/src/views/dashboard/components/fd/child/bcxq.vue @@ -0,0 +1,154 @@ + + + diff --git a/src/views/dashboard/components/fd/child/kwxx.vue b/src/views/dashboard/components/fd/child/kwxx.vue new file mode 100644 index 0000000..511aa27 --- /dev/null +++ b/src/views/dashboard/components/fd/child/kwxx.vue @@ -0,0 +1,396 @@ + + + diff --git a/src/views/dashboard/components/fd/child/plxx.vue b/src/views/dashboard/components/fd/child/plxx.vue new file mode 100644 index 0000000..1ab2ef2 --- /dev/null +++ b/src/views/dashboard/components/fd/child/plxx.vue @@ -0,0 +1,250 @@ + + + diff --git a/src/views/dashboard/components/fd/child/sygdxqjh.vue b/src/views/dashboard/components/fd/child/sygdxqjh.vue new file mode 100644 index 0000000..f812577 --- /dev/null +++ b/src/views/dashboard/components/fd/child/sygdxqjh.vue @@ -0,0 +1,607 @@ + + + diff --git a/src/views/dashboard/components/fd/child/tab.vue b/src/views/dashboard/components/fd/child/tab.vue new file mode 100644 index 0000000..1857bf0 --- /dev/null +++ b/src/views/dashboard/components/fd/child/tab.vue @@ -0,0 +1,64 @@ + + + diff --git a/src/views/dashboard/components/fd/child/xbjh.vue b/src/views/dashboard/components/fd/child/xbjh.vue new file mode 100644 index 0000000..ca1fb03 --- /dev/null +++ b/src/views/dashboard/components/fd/child/xbjh.vue @@ -0,0 +1,209 @@ + + + diff --git a/src/views/dashboard/components/fd/child/zgt.vue b/src/views/dashboard/components/fd/child/zgt.vue new file mode 100644 index 0000000..213ede3 --- /dev/null +++ b/src/views/dashboard/components/fd/child/zgt.vue @@ -0,0 +1,151 @@ + + + diff --git a/src/views/dashboard/components/fd/czfdzgtcx.vue b/src/views/dashboard/components/fd/czfdzgtcx.vue index 7e6a68b..eecfb51 100644 --- a/src/views/dashboard/components/fd/czfdzgtcx.vue +++ b/src/views/dashboard/components/fd/czfdzgtcx.vue @@ -36,78 +36,10 @@
- + -
- - -
- - - 汇总 -
- - - - -
-
- - 明细 -
- - -
-
-
+ +
@@ -121,489 +53,34 @@ import { Message } from 'element-ui' import { getCzFdBase, getList, upload, getListFdMx, findTPxqjh } from '@/api/fd/base' import XEUtils from 'xe-utils' import { getSumAdd } from '@/utils/rpkj' +import Tabs from "@/views/dashboard/components/fd/child/tab.vue"; +import Zgt from "@/views/dashboard/components/fd/child/zgt.vue"; export default { // 船只分段直观图定义 name: 'Czfdzgtcx', + components: {Zgt, Tabs}, data() { return { - emtext:'', + tabsData:{}, defaultHeight: { height: '' }, - tableDataMain:[], - tableDataMainAll:[], - tableColumnMx: [ - { type: 'seq', width: 60, title: '序号' }, - { field: 'jhqh', title: '计划期号', width: 100 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'czbh', title: '船只编号', width: 90 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zyjd', title: '作业阶段', width: 90 ,formatter: ['dictXtFormat','ZYJD'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'fdh', title: '分段号', width: 80 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'tpbh', title: '托盘表号', width: 110 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'hh', title: '行号', width: 80 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'azth', title: '安装图号', width: 100 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zztph', title: '批号/卡号', width: 80 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zzth', title: '制作图号', width: 110 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zztmc', title: '制作图名称', width: 150 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'bjdh', title: '部件号', width: 80 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'bjmc', title: '部件名称', width: 100 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'wpgg', title: '规格+型号+材质', width: 210 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jhxqrq', title: '集团三月滚动计划期', width: 150 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'fdxqrq', title: '分段计划需求期', width: 150 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zyzzssbm', title: '需求部门', width: 100 ,formatter: ['ddeptFormat'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zyzzcjmc', title: '作业车间及场地', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xqsl', title: '需求数量', width: 70 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'bjzl', title: '单重', width: 80 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'bjzzl', title: '总重', width: 80 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xzjhrkrq', title: '舾装公司计划集配入库', width: 160 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zdcp', title: '重点产品', width: 100 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'tplx', title: '部件分类', width: 100 ,formatter: ['dictFormat','TPLX'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'ygpprq', title: '预计配送期', width: 100 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'fkpprq', title: '反馈配送期', width: 150 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xqtsc', title: '需求/反馈差距', width: 160 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'fkwtsm', title: '反馈说明', width: 100 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'sscj', title: '所属车间', width: 100 ,formatter: ['dictFormat','BMBM'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jhlx', title: '计划类型', width: 100 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jhjtrq', title: '设计院计划发图日期', width: 150 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jtxqts', title: '需求发图天数差', width: 150 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'sjltsj', title: '实际接图日期', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'ltxqts', title: '需求来图天数差', width: 130 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jhxqrq_sq', title: '上期滚动计划需求日期', width: 160 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jhbgts', title: '变更天数', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jhxqrq_ls', title: '滚动计划需求期变更历史', width: 165 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'por_no', title: '采购需求编号', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'lc', title: '来处', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - - { field: 'zzt_zt', title: '技术处理状态', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zzt_gyspsj', title: '工艺审批时间', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zzt_cplx', title: '产品类型', width: 120 ,formatter: ['dictFormat','CPLX'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zzt_clfs', title: '表面处理方式', width: 120 ,formatter: ['dictFormat','CLFS'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zzt_bmcl', title: '表面处理', width: 120 ,formatter: ['dictFormat','CLFS'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zzt_ntzdm', title: '内表面涂装代码', width: 130 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zzt_wtzdm', title: '外表面涂装代码', width: 130 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xglx', title: '修改类型', width: 120 ,formatter: ['dictFormat','TPXG'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xgph', title: '修改批号/卡号', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xgsj', title: '修改时间', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xgtzdh', title: '修改通知单号', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'sc_zt', title: '制作状态', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'sgdw', title: '结构施工单位', width: 120 ,formatter: ['deptFormat'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jgwgrq', title: '结构实际完工日期', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'tzdw', title: '表面处理单位', width: 120 ,formatter: ['deptFormat'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'tzjsrq', title: '表面处理接收日期', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'tzwgrq', title: '表面处理时间完工日期', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'scqkbz', title: '生产情况备注', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'psdw', title: '配送单位', width: 120 ,formatter: ['deptFormat'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jprkrq', title: '集配入库完工时间', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'ps_zt', title: '配送状态', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfsqrq', title: '前方配送申请日期', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfxqrq', title: '前方实际需求期', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfpssl', title: '前方配送数量', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfpswc', title: '配送完成情况', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfpsrq', title: '实际配送日期', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfqrrq', title: '配送确认日期', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'psqkbz', title: '配送情况备注', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jhdrry', title: '计划导入人员', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jhdrrq', title: '计划导入日期', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - ], - tableColumnMain:[ - { type: 'seq', width: 60, title: '序号' }, - - { field: 'czbh', title: '船只编号', width: 90 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'fdh', title: '分段号', width: 80 , - slots: { default: 'fdh' }, - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'tpbh', title: '托盘表号', width: 110 , - slots: { default: 'tpbh' }, - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zyzzssbm', title: '需求部门', width: 100 ,formatter: ['ddeptFormat'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zyzzcjmc', title: '作业车间及场地', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'tplx', title: '物质类别', width: 110 ,formatter: ['dictFormat','TPLX'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xqsl', title: '需求数量', width: 90 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'pssl', title: '配送数量', width: 90 ,formatter:['numberFormat','zero'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'psbfb', title: '实际配送率', width: 100 ,formatter:['numberFormat','percent',2], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'pssl0', title: '按期配送率', width: 100 ,formatter:['numberFormat','percent',2], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'pssl5', title: '预计5日配送率', width: 100 ,formatter:['numberFormat','percent',2], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'pssl10', title: '预计10日配送率', width: 100 ,formatter:['numberFormat','percent',2], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'pssl15', title: '预计15日配送率', width: 100 ,formatter:['numberFormat','percent',2], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfxqrq', title: '前方实际需求期 ', width: 130 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'fdxqrq', title: '分段计划需求期', width: 130 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jhxqrq', title: '集团计划需求期', width: 130 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'yjtgq', title: '预计提供期', width: 110 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'sjpsrqmin', title: '配送开始期', width: 110 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'sjpsrqmax', title: '配送结束期', width: 110 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - ], activeName: 'first', - tableDataMx: [ - - ], + tableDataMx: [], heads: { token: getToken() }, uploadAction: process.env.VUE_APP_BASE_API + '/api/dmCzfddyb/upload', uploadData: {}, queryParam: { czbh: '', - ph: '', - kh: '', - dwgNo: '', - departCode: '02' }, uploadState: 0, isupload:'01', dictData: {}, projectData: [], col:0, - // tableData: [], - tableColumn: [ - - ], row:'', column:'', columns:[], filterName1:'', - tableData: [ - - ], - fds:[], + tableData: [], } }, computed: { @@ -612,416 +89,16 @@ export default { 'bmbm', 'apbm' ]), - - // list() { - // if (this.tableData===undefined){ - // - // return [] - // } - // const filterName = XEUtils.toString(this.filterName1).trim().toLowerCase(); - // if (filterName) { - // const filterRE = new RegExp(filterName, 'gi'); - // const searchProps = this.columns - // // const rest = this.tableData.filter(item => searchProps.some(key => XEUtils.toString(item[key]).toLowerCase().indexOf(filterName) > -1)); - // const rest = this.tableData - // return rest.map(row => { - // - // const item = Object.assign({}, row); - // - // searchProps.forEach(key => { - // if(XEUtils.toString(item[key]).toLowerCase().indexOf(filterName) > -1){ - // item[key] = XEUtils.toString(item[key]).replace(filterRE, match => `${match}`); - // } - // - // }); - // - // - // return item - // }) - // } - // return this.tableData - // } - - }, created() { - // window.addEventListener('resize', this.getHeight) - // this.getHeight() this.emtext='暂无数据' this.baseSeacrh() this.uploadState=0 - // this.loadData() - if(this.apbm.length>2){ - // this.queryParam.xqdw=this.apbm - this.flag=true; - }else{ - this.flag=false; - } - if(this.flag){ - this.tableColumnMx= [ - { type: 'seq', width: 60, title: '序号' }, - // { field: 'jhqh', title: '计划期号', width: 100 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - { field: 'czbh', title: '船只编号', width: 90 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'zyjd', title: '作业阶段', width: 90 ,formatter: ['dictXtFormat','ZYJD'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'fdh', title: '分段号', width: 80 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'tpbh', title: '托盘表号', width: 110 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - // { field: 'hh', title: '行号', width: 80 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'azth', title: '安装图号', width: 100 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'zztph', title: '批号/卡号', width: 80 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'zzth', title: '制作图号', width: 110 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'zztmc', title: '制作图名称', width: 150 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - { field: 'bjdh', title: '部件号', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'bjmc', title: '部件名称', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'wpgg', title: '规格+型号+材质', width: 210 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - - // { field: 'jhxqrq', title: '集团三月滚动计划期', width: 150 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'fdxqrq', title: '分段计划需求期', width: 150 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'zyzzssbm', title: '需求部门', width: 100 ,formatter: ['ddeptFormat'], - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - { field: 'zyzzcjmc', title: '作业车间及场地', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - // { field: 'xqsl', title: '需求数量', width: 70 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - { field: 'bjzl', title: '单重', width: 80 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'bjzzl', title: '总重', width: 80 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - // { field: 'xzjhrkrq', title: '舾装公司计划集配入库', width: 160 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'zdcp', title: '重点产品', width: 100 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - { field: 'tplx', title: '部件分类', width: 100 ,formatter: ['dictFormat','TPLX'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'ygpprq', title: '预计配送期', width: 100 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'fkpprq', title: '反馈配送期', width: 150 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xqtsc', title: '需求/反馈差距', width: 160 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - // { field: 'fkwtsm', title: '反馈说明', width: 100 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - { field: 'sscj', title: '所属车间', width: 100 ,formatter: ['dictFormat','BMBM'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - // { field: 'jhlx', title: '计划类型', width: 100 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'jhjtrq', title: '设计院计划发图日期', width: 150 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'jtxqts', title: '需求发图天数差', width: 150 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'sjltsj', title: '实际接图日期', width: 120 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'ltxqts', title: '需求来图天数差', width: 130 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'jhxqrq_sq', title: '上期滚动计划需求日期', width: 160 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'jhbgts', title: '变更天数', width: 120 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'jhxqrq_ls', title: '滚动计划需求期变更历史', width: 165 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'por_no', title: '采购需求编号', width: 120 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'lc', title: '来处', width: 120 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - - - // { field: 'zzt_cplx', title: '产品类型', width: 120 ,formatter: ['dictFormat','CPLX'], - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'zzt_clfs', title: '表面处理方式', width: 120 ,formatter: ['dictFormat','CLFS'], - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'zzt_bmcl', title: '表面处理', width: 120 ,formatter: ['dictFormat','CLFS'], - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'zzt_ntzdm', title: '内表面涂装代码', width: 130 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'zzt_wtzdm', title: '外表面涂装代码', width: 130 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - { field: 'xglx', title: '修改类型', width: 120 ,formatter: ['dictFormat','TPXG'], - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - // { field: 'xgph', title: '修改批号/卡号', width: 120 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - { field: 'xgsj', title: '修改时间', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'xgtzdh', title: '修改通知单号', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'jprkrq', title: '集配入库完工时间', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - - // { field: 'qfsqrq', title: '前方配送申请日期', width: 140 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - { field: 'qfxqrq', title: '前方实际需求期', width: 140 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfpssl', title: '前方配送数量', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfpswc', title: '配送完成情况', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfpsrq', title: '实际配送日期', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - { field: 'qfqrrq', title: '配送确认日期', width: 120 , - - filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - filterRender: { name: 'FilterCombination' }, - }, - // { field: 'psqkbz', title: '配送情况备注', width: 120 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'jhdrry', title: '计划导入人员', width: 120 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // { field: 'jhdrrq', title: '计划导入日期', width: 120 , - // - // filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], - // filterRender: { name: 'FilterCombination' }, - // }, - // - ] - } }, methods: { czbhChange(){ this.uploadState = 1 }, - - cellClick({row,column}){ - - if( row[column.field] ==='' || row[column.field]===undefined || row[column.field]===null){ - return - }else{ - - this.$confirm('是否选择'+ row[column.field] +'分段数据?', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - distinguishCancelAndClose: false, - type: 'warning' - }).then(type => { - this.row = row - this.column = column - this.tableDataMain = this.tableDataMainAll.filter((item) => { - return item.fdh == row[column.field]; - }); - }) - } - }, - tpbhClcik(row){ - findTPxqjh({czbh1:row.czbh,tpbh1:row.tpbh}).then(res=>{ - if(res.success){ - this.activeName='second' - this.$refs.xGrid.reloadData(res.data) - } - - }) - }, - fdhClcik(row){ - findTPxqjh({czbh1:row.czbh,fdh:row.fdh}).then(res=>{ - this.activeName='second' - this.$refs.xGrid.reloadData(res.data) - }) - }, - - - spanMethods({row, $rowIndex, column, data}){ - let fields = ["czbh","fdh", "tpbh"] - let tempcol=column.property - if(tempcol==='czbh'){ - tempcol='fdh' - } - let cellValue = row[tempcol] - if (cellValue && fields.includes(column.property)) { - - let prevRow = data[$rowIndex - 1] - let nextRow = data[$rowIndex + 1] - if (prevRow && prevRow[tempcol] === cellValue) { - return {rowspan: 0, colspan: 0} - } else { - let countRowspan = 1 - while (nextRow && nextRow[tempcol] === cellValue) { - nextRow = data[++countRowspan + $rowIndex] - } - if (countRowspan > 1) { - return {rowspan: countRowspan, colspan: 1} - } - } - } - - }, - - headerCellStyle ({ column, columnIndex }) { if (['jhxqrq','fdxqrq', "jhjtrq","jtxqts","qfxqrq"].includes(column.property)) { @@ -1044,7 +121,6 @@ export default { color: '#ffffff' } } - }, rowClassName({ row, rowIndex ,column}){ if(row.qfpsrq!=='' && row.qfpsrq!==undefined && row.qfpsrq!==null){ @@ -1057,7 +133,6 @@ export default { return [ columns.map((column, columnIndex) => { if (['xqsl','bjzzl'].includes(column.property)) { - return getSumAdd(data, column.property) } if (columnIndex === 1) { @@ -1067,16 +142,11 @@ export default { }) ] }, - - uploadExcel() { - if (this.queryParam.czbh === '') { this.$message.warning('选择工程编码') this.uploadState = 0 return - } else { - } this.uploadData.czbh = this.queryParam.czbh this.uploadData.isupload = this.isupload @@ -1114,8 +184,6 @@ export default { this.$message({ message: '导入成功', type: 'success' }) this.loadData() } - - } else { Message({ message: res.message || 'Error', @@ -1124,129 +192,18 @@ export default { }) } }, - - cellStyle1({ row, rowIndex, column }) { - console.log(row) - console.log(column) - if(column.field==='psbfb') { - if (row.psbfb >= 90) { - console.log(1) - - return { - backgroundColor: '#00FF00' - } - - } else if (row.psbfb < 90 && row.psbfb >= 50) { - return { - backgroundColor: '#FFFF00' - } - } else if (row.psbfb < 50 && (row.qfxqrq !== undefined )) { - return { - backgroundColor: '#FF0000', - color: '#fff' - } - } - } - }, - - cellStyle({ row, rowIndex, column }) { - - for(let index of this.fds) { - if(index.fdh===row[column.property]){ - - if(index.color==='green'){ - if (this.row === row && this.column === column) { - return { - backgroundColor: '#00FF00', - border:'1px solid black', - color:'blue' - - } - }else{ - return { - backgroundColor: '#00FF00', - border:'1px solid black', - color:'black' - // textAlign:'center' - } - } - - } - if(index.color==='yellow'){ - if (this.row === row && this.column === column) { - return { - backgroundColor: '#FFFF00', - border:'1px solid black', - color:'blue' - - } - }else{ - return { - backgroundColor: '#FFFF00', - border:'1px solid black', - color:'black' - // textAlign:'center' - } - } - - } - if(index.color==='red'){ - if (this.row === row && this.column === column) { - return { - backgroundColor: '#FF0000', - border:'1px solid black', - color:'blue' - - } - }else{ - return { - backgroundColor: '#FF0000', - border:'1px solid black', - color:'black' - // textAlign:'center' - } - } - - } - } - } - - if(row[column.property]){ - if (this.row === row && this.column === column) { - return { - border:'1px solid black', - color:'blue' - } - }else{ - return { - border:'1px solid black', - color:'black' - } - } - - - - - } - - - // if(row[column.property]){ - // - // return { - // - // border:'1px solid black' - // - // // textAlign:'center' - // } - // } - - }, - - - async baseSeacrh() { getCzFdBase({ }).then(response => { - this.projectData = response.data.czbhs + const tmpList=[] + const data=[] + for (const item of response.data.czbhs) { + if (tmpList.includes(item.cbbm)){ + continue + } + tmpList.push(item.cbbm) + data.push(item) + } + this.projectData = data }) }, loadData() { @@ -1255,47 +212,9 @@ export default { return } getListFdMx(this.queryParam).then(res=>{ - this.tableColumn=[] - this.emtext=this.queryParam.czbh+"尚未定义直观图请于分段制造部管理人员联系!" - if(res.success){ - const col=res.data.col; - for (let i = 0; i <= col; i++) { - let ii=i+''; - let aaa='column'+ii.padStart(3, '0'); - this.columns.push(aaa); - let temp1= { - title: `111`,width:"35px",field: `column${ii.padStart(3, '0')}`,type:"html", - slots: { - // 使用 JSX 渲染 - default: ({ row,column }) => { - - return [ - {row[column.property]} - ] - - } - } - }; - - this.tableColumn.push(temp1) - } - - //this.tableData=res.data.data - this.tableData=res.data.data - this.tableDataMainAll=res.data.fdqk - this.fds=res.data.fd - //this.list=res.data.data - } + this.$refs.zgtRef.show(res) }) - }, - - - - // getHeight() { - // this.height = window.innerHeight - 170 - // this.defaultHeight.height = window.innerHeight - 165 + 'px' - // }, } } @@ -1351,13 +270,6 @@ export default { font-size: 12px; font-weight: bold; } - -.mytablefdt .vxe-table--render-default .vxe-cell { - white-space: pre-line; - word-break: break-all; - padding-left: 2px!important; - padding-right: 2px!important; -} diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 0abc581..e702691 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -69,7 +69,7 @@ export default { .dashboard-editor-container { background-color: #e3e3e3; - min-height: 100vh; + height: 70vh; padding: 10px; .pan-info-roles { font-size: 12px; diff --git a/src/views/jhzx/symxCX.vue b/src/views/jhzx/symxCX.vue index 1d2d8e5..d7f3c37 100644 --- a/src/views/jhzx/symxCX.vue +++ b/src/views/jhzx/symxCX.vue @@ -2348,7 +2348,7 @@ export default { filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination', }, }, - ], + ], } }, computed: {