From 7b1b856004b4f294de1e02beef9b17eeaffedd50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com> Date: Tue, 17 Mar 2026 09:55:35 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E9=A2=84=E5=88=87=E6=9D=BF?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cxtj/index.js | 2 + src/views/cxtj/index.vue | 1 + src/views/cxtj/yqbtj.js | 197 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 200 insertions(+) create mode 100644 src/views/cxtj/yqbtj.js diff --git a/src/views/cxtj/index.js b/src/views/cxtj/index.js index ff81d37..4ed8e50 100644 --- a/src/views/cxtj/index.js +++ b/src/views/cxtj/index.js @@ -1,6 +1,7 @@ import 作业计划完成量统计 from "@/views/cxtj/作业计划完成量统计"; import 技术准备 from "@/views/cxtj/技术准备"; import 看板对应数据 from "@/views/cxtj/看板对应数据表"; +import 预切板统计 from "@/views/cxtj/yqbtj"; const methods={ '/scgl/jh/cxtj1':作业计划完成量统计(), @@ -11,6 +12,7 @@ const methods={ '/scgl/jh/cxtj_rikcl':看板对应数据('ricl'), '/scgl/jh/cxtj_zkcl':看板对应数据('zhoucl'), '/scgl/jh/cxtj_ykcl':看板对应数据('yuecl'), + '/scgl/jh/yqbtj':预切板统计(), } const init=(page)=>{ diff --git a/src/views/cxtj/index.vue b/src/views/cxtj/index.vue index 135ff10..e6f916f 100644 --- a/src/views/cxtj/index.vue +++ b/src/views/cxtj/index.vue @@ -33,6 +33,7 @@ export default { this.formData.items=formItems this.gridOptions=options this.gridOptions.columns=columns + }, } diff --git a/src/views/cxtj/yqbtj.js b/src/views/cxtj/yqbtj.js new file mode 100644 index 0000000..9a8825e --- /dev/null +++ b/src/views/cxtj/yqbtj.js @@ -0,0 +1,197 @@ +import request from '@/utils/request' +import {getSumAdd} from "@/utils/rpkj"; + +const 预切板统计=()=>{ + const butClick=()=>{ + 预切板统计查询(data.formData).then(res=>{ + data.options.data=res.data + }) + } + + const countGroup=[] + countGroup.push('批量板数','预切板数','上料完成','一跨龙门板数','龙门1预切板数') + countGroup.push('一跨龙门板数','龙门1预切板数') + countGroup.push('一跨数控板数','数1预切板数') + countGroup.push('二跨平铁板数','平铁预切板数') + countGroup.push('二跨数控板数','数控预切板数') + countGroup.push('三跨曲板板数','曲版预切板数') + countGroup.push('三跨厚板板数','厚板预切板数') + countGroup.push('四区腹板板数','腹板预切板数') + countGroup.push('四区数控板数','数4预切板数') + countGroup.push('七跨面板板数','面板预切板数') + countGroup.push('光电板数','光电预切板数') + + const footerMethod=({ columns, data })=>{ + return [ + columns.map((column, columnIndex) => { + if (countGroup.includes(column.property)) { + return getSumAdd(data, column.property) + } + if (columnIndex === 1) { + return '合计' + } + return null + }) + ] + } + + const data={ + formData:{ + dcCh:'', + dcPl0:'', + dcPl1:'', + }, + formItems:[ + { field: 'dcCh', title: '船号', span: 4, + itemRender: { + name: '$select', props: { options:[],placeholder: '船号' } + } + }, + // { field: 'dcPl0', title: '批量', span: 3 , + // itemRender: { name: '$input', } + // }, + // { field: 'dcPl1', title: '批量', span: 3 , + // itemRender: { name: '$input', } + // }, + {span: 20 ,align:'right', + itemRender: { + name: '$button', props: {content:'查询',status:'primary'},events:{click:butClick} + } + }, + ], + options:{ + height:400, + align:'center', + border: true, + resizable: true, + keepSource:true, + size:'mini', + showOverflow: true, + scrollY:{enable:true}, + editConfig:{trigger: 'click', mode: 'cell', showStatus: true}, + highlightCurrentRow:true, + showFooter:true, + footerMethod:footerMethod, + data:[], + }, + columns:[ + { type: 'seq', width: 60, title: '序号' }, + { field: 'dcCh', title: '产品', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: 'dcPl', title: '批量', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: 'fds', title: '分段', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '批量板数', title: '批量板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '预切板数', title: '预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '上料完成', title: '上料完成', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '一跨龙门板数', title: '一跨龙门板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '龙门1预切板数', title: '龙门1预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '一跨数控板数', title: '一跨数控板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '数1预切板数', title: '数1预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '二跨平铁板数', title: '二跨平铁板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '平铁预切板数', title: '平铁预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '二跨数控板数', title: '二跨数控板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '数控预切板数', title: '数控预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '三跨曲板板数', title: '三跨曲板板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '曲版预切板数', title: '曲版预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '三跨厚板板数', title: '三跨厚板板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '厚板预切板数', title: '厚板预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '四区腹板板数', title: '四区腹板板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '腹板预切板数', title: '腹板预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '四区数控板数', title: '四区数控板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '数4预切板数', title: '数4预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '七跨面板板数', title: '七跨面板板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '面板预切板数', title: '面板预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '光电板数', title: '光电板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + { field: '光电预切板数', title: '光电预切板数', + filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }], + filterRender: { name: 'FilterCombination', }, + }, + ] + } + + return data +} + +const 预切板统计查询=(data)=>{ + return request({ + url: "/ydjhzz/yqbtjcx", + method: "post", + data, + }); +} + +export default 预切板统计