From f729b759d9e90c715b50dae5b2d46241875efe0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com> Date: Thu, 16 Jul 2026 15:02:24 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E9=92=A2=E6=9D=90=E5=88=B0?= =?UTF-8?q?=E8=B4=A7=E6=83=85=E5=86=B5=E7=BB=9F=E8=AE=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cxtj/index.js | 3 ++- src/views/cxtj/钢材到货情况统计.js | 13 +++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/views/cxtj/index.js b/src/views/cxtj/index.js index 152cd99..2fe5fb0 100644 --- a/src/views/cxtj/index.js +++ b/src/views/cxtj/index.js @@ -14,10 +14,11 @@ const methods={ '/scgl/jh/cxtj_zkcl':看板对应数据('zhoucl'), '/scgl/jh/cxtj_ykcl':看板对应数据('yuecl'), '/scgl/jh/yqbtj':预切板统计(), - '/jcsj/cx/gcdhqktj':钢材到货情况统计(), + '/scgl/sc/gcdhqktj':钢材到货情况统计(), } const init=(page)=>{ + console.log(page) return {...methods[page]} } diff --git a/src/views/cxtj/钢材到货情况统计.js b/src/views/cxtj/钢材到货情况统计.js index a1a73d6..84a3236 100644 --- a/src/views/cxtj/钢材到货情况统计.js +++ b/src/views/cxtj/钢材到货情况统计.js @@ -4,15 +4,16 @@ import {getSumAdd} from "@/utils/rpkj"; const 钢材到货情况统计=()=>{ const butClick=()=>{ 钢材到货情况统计查询(data.formData).then(res=>{ - res.data.map(item=>{ + const _data=res.data.map(item=>{ const data={ ...item } const 到货比例=item.completeTon/item.planTon data.到货比例=(到货比例*100).toFixed(0)+'%' data.差距=(item.planTon-item.completeTon).toFixed(2) + return data }) - data.options.data=res.data + data.options.data=_data }) } @@ -49,14 +50,14 @@ const 钢材到货情况统计=()=>{ name: 'input', props: { options:[],placeholder: '批量' } } }, - {span: 20 ,align:'right', + {span: 16 ,align:'right', itemRender: { name: '$button', props: {content:'查询',status:'primary'},events:{click:butClick} } }, ], options:{ - height:400, + height:760, align:'center', border: true, resizable: true, @@ -103,6 +104,10 @@ const 钢材到货情况统计=()=>{ filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], filterRender: { name: 'FilterCombination', }, }, + { field: 'dzwz', title: '期次', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, ] }