From 121bafb30d19c8951812713f6a81d440d1149a97 Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期三, 11 十二月 2024 08:48:16 +0800 Subject: [PATCH] 生产管理平台-生产调度 --- src/views/proddisp/standingBook/product-stock/form.vue | 213 ---- src/views/proddisp/standingBook/raw-coal-to-wash/form.vue | 213 ---- src/views/xmcpms/coal-quality/analysis/wash-curves/WashCurvesForm.vue | 2 src/views/proddisp/standingBook/prod-volume/form.vue | 213 ---- src/views/proddisp/standingBook/on-duty-info/form.vue | 213 ---- src/views/proddisp/standingBook/power-consume/list.vue | 1 /dev/null | 58 - src/views/proddisp/standingBook/hour-volume/form.vue | 213 ---- src/views/proddisp/standingBook/raw-coal-transfer-in/form.vue | 213 ---- src/views/proddisp/standingBook/daily-sales/form.vue | 211 ---- src/views/proddisp/standingBook/power-consume/form.vue | 213 ---- yarn.lock | 94 src/views/proddisp/standingBook/run-time/form.vue | 213 ---- src/utils/dict.ts | 5 src/views/proddisp/standingBook/dispatch-log/form.vue | 213 ---- src/views/proddisp/standingBook/prod-accident/form.vue | 213 ---- package.json | 3 src/views/proddisp/standingBook/target-consume/form.vue | 213 ---- src/views/proddisp/standingBook/raw-coal-stock/form.vue | 213 ---- 19 files changed, 65 insertions(+), 2,865 deletions(-) diff --git a/package.json b/package.json index 9041853..1decffc 100644 --- a/package.json +++ b/package.json @@ -141,5 +141,8 @@ "engines": { "node": ">= 16.0.0", "pnpm": ">=8.6.0" + }, + "rules": { + "vue/no-parsing-error": [2, { "x-invalid-end-tag": false }] } } diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 12c6214..4148c59 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -228,11 +228,8 @@ AI_WRITE_FORMAT = 'ai_write_format', // AI 写作格式 AI_WRITE_TONE = 'ai_write_tone', // AI 写作语气 AI_WRITE_LANGUAGE = 'ai_write_language',// AI 写作语言 - - YMMZ = 'ymmz', FCFA = 'fcfa', - CURVES_TYPE = 'curves-type' - AI_WRITE_LANGUAGE = 'ai_write_language', // AI 写作语言 + CURVES_TYPE = 'curves-type', // ========== PMS - 生产管理平台模块 ========== PMS_XSMZ = 'xsmz', //销售煤种 diff --git a/src/views/proddisp/common/chart-components/echart-histogram.vue b/src/views/proddisp/common/chart-components/echart-histogram.vue deleted file mode 100644 index 11085e6..0000000 --- a/src/views/proddisp/common/chart-components/echart-histogram.vue +++ /dev/null @@ -1,115 +0,0 @@ - -<template> - - <div id="histogram" ref="histogram"></div> - -</template> - -<script> - export default { - name:'EchartHistogram', - data() { - return { - HdataMap:{ - legendData:[], - xAxisData:[], - yAxisData:{}, - typeData:[], - stackData:[], - yAxisIndexData:[] - }, - machart:null, - }; - }, - props:{ - dataMap:{ - type: Object, - default:{} - } - }, - watch: { - dataMap(newVal, oldVal){ - this.HdataMap = newVal - this.changetype() - } - }, - methods: { - changetype() { - if(Object.keys(this.HdataMap).length===0 ||Object.keys(this.HdataMap.yAxisData).length===0 ){ - this.machart.setOption({},true) - return - } - - var barWidth = this.HdataMap.xAxisData.length<=2?'20%' :'' - var seriesOption=[] - var yAxis=[] - for (var num=0;num<=Math.max(...this.HdataMap.yAxisIndexData);num++){ //纵坐标个数 - yAxis.push( - {type: 'value', - - } - ) - } - for (var kLegend in this.HdataMap.legendData){ - seriesOption.push( { - name: this.HdataMap.legendData[kLegend], - type: this.HdataMap.typeData[kLegend], - barWidth: barWidth, - stack:this.HdataMap.stackData[kLegend], - yAxisIndex:this.HdataMap.yAxisIndexData[kLegend], - emphasis: { - focus: 'series' - }, - data: this.HdataMap.yAxisData[this.HdataMap.legendData[kLegend]] - }) - } - var option = { - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow' - } - }, - legend: { - icon: "roundRect", - data: this.HdataMap.legendData - }, - // color:this.colorData, - - toolbox: { - show: true, - }, - xAxis: [ - { - type: 'category', - axisTick: { show: false }, - data: this.HdataMap.xAxisData - } - ], - yAxis: yAxis, - series:seriesOption - }; - this.machart.setOption(option,true); - }, - - }, - - mounted() { - this.machart = this.$echarts.init(this.$refs.histogram); - window.addEventListener("resize", ()=>{ - this.machart.resize(); - - }); - }, -}; - -</script> -<style lang="scss" scoped> - -#histogram { - max-height: 700px; - // max-height: 400px; - height: 700px; - margin-top: 50px; -} -</style> diff --git a/src/views/proddisp/common/chart-components/echart-timeline-histogram.vue b/src/views/proddisp/common/chart-components/echart-timeline-histogram.vue deleted file mode 100644 index 51a3920..0000000 --- a/src/views/proddisp/common/chart-components/echart-timeline-histogram.vue +++ /dev/null @@ -1,158 +0,0 @@ - -<template> - <div> - - <div id="histogram" ref="histogram"></div> - </div> -</template> -<script> - export default { - name: 'EchartTimelineHistogramdet', - data() { - return { - HdataMap:{ - legendData:[], - xAxisData:[], - yAxisData:[], //{item: '2022-06-05' value:[1,2,3]} - items:[], - colorData:[], - bl:"", - colorSrcData:{}, - }, - machart:null, - }; - }, - props:{ - dataMap:{ - type: Object, - default:{} - } - }, - watch: { - dataMap(newVal, oldVal){ - this.HdataMap = newVal - this.changetype() - } - }, - methods: { - changetype() { - - var seriesOption=[] - var optionType = 'bar' - var pieData=[] - - if(Object.keys(this.HdataMap).length===0 ||!this.HdataMap.yAxisData||!this.HdataMap.items||this.HdataMap.yAxisData.length===0 ||this.HdataMap.items.length===0){ - this.machart.setOption({},true) - return - } - var barWidth = this.HdataMap.legendData.length<=9?'6%' :'' - - for (var itemIndex=0;itemIndex<=this.HdataMap.items.length-1;itemIndex++){ - var seriesData=[] - pieData=[] - for(var kLegend in this.HdataMap.legendData){ - - seriesData.push({ - type:'bar', - barWidth: barWidth, - data: [this.HdataMap.yAxisData[itemIndex].value[kLegend]], - name:this.HdataMap.legendData[kLegend], - label: { - show : true, - position:'top', - fontSize:12, - color:'black' - }, - }) - pieData.push({ - value:this.HdataMap.yAxisData[itemIndex].value[kLegend],name:this.HdataMap.legendData[kLegend] - }) - } - seriesData.push({ - type: 'pie', - center: ['85%', '23%'], - radius: '23%', - data: pieData - }) - seriesOption.push({ - title: { - text: this.HdataMap.bl?this.HdataMap.yAxisData[itemIndex].item+this.HdataMap.bl:'', - textStyle:{ - fontSize:18 - } - }, - xAxis: [ - { - axisTick: { - alignWithLabel: true - }, - type: "category", - data : [''] - }, - ], - yAxis: { - type: 'value', - }, - color:this.HdataMap.colorData, - series: seriesData - }) - } - const option = { - baseOption: { - timeline: { - axisType: 'category', - show: true, - autoPlay: true, - playInterval: 1500, - data: this.HdataMap.items, - currentIndex:0 - }, - grid: { containLabel: true ,top:80}, - xAxis: [{ - type: 'category', - data:[''] - }], - legend: { - icon: "roundRect", - orient: 'horizontal', - x:'right', - y: "top", - right:"left", - top:"20", - bottom:"100", - data: this.HdataMap.legendData - }, - tooltip: {} - }, - options:seriesOption - } - this.machart.setOption(option,true) - }, - - - - }, - mounted() { - this.machart =this.$echarts.init(this.$refs.histogram); - window.addEventListener("resize", ()=> { - this.machart.resize(); - }) - - }, - } - </script> - <style lang="scss" scoped> - -#histogram { - max-height: 700px; - // max-height: 400px; - height: 700px; - margin-top:40px -} -</style> - - - - - - diff --git a/src/views/proddisp/common/loading.js b/src/views/proddisp/common/loading.js deleted file mode 100644 index 81b06dd..0000000 --- a/src/views/proddisp/common/loading.js +++ /dev/null @@ -1,34 +0,0 @@ -import Vue from "vue"; -import { Loading } from "element-ui"; - -let loadOn; -let loadingCount = 0; -function startLoading(target) { - const options = { - lock: true, - text: "Loading...", - spinner: "el-icon-loading", - background: "rgba(0, 0, 0, 0.7)", - target: document.querySelector(target),//target - }; - loadOn = Loading.service(options); - return loadOn; -} - -function endLoading() { - loadOn.close(); -} - -export function showFullScreenLoading(target) { - if (loadingCount=== 0) { - startLoading(target); - } - loadingCount++; -} -export function hideFullScreenLoading() { - if (loadingCount<= 0) return; - loadingCount--; - if (loadingCount=== 0) { - endLoading(); - } -} diff --git a/src/views/proddisp/common/refresh.vue b/src/views/proddisp/common/refresh.vue deleted file mode 100644 index 6f5b769..0000000 --- a/src/views/proddisp/common/refresh.vue +++ /dev/null @@ -1,28 +0,0 @@ -<template> - <div id="app"> - <router-view v-if="isRouterAlive"></router-view> - </div> -</template> -<script> - export default { - name: 'App', - provide () { //父组件中通过provide来提供变量,在子组件中通过inject来注入变量。 - return { - reload: this.reload - } - }, - data() { - return{ - isRouterAlive: true - } - }, - methods: { - reload () { - this.isRouterAlive = false; - this.$nextTick(function () { - this.isRouterAlive = true; //再打开 - }) - } - } - } -</script> diff --git a/src/views/proddisp/dailyStatistics/power-consume/det.vue b/src/views/proddisp/dailyStatistics/power-consume/det.vue deleted file mode 100644 index dd2e5c0..0000000 --- a/src/views/proddisp/dailyStatistics/power-consume/det.vue +++ /dev/null @@ -1,69 +0,0 @@ -<template> - <el-drawer - direction="rtl" - :visible.sync="visible" - @close="handleClose" - size="50%"> - <div class="mod-consume-power-det"> - <el-form :inline="true" :model="dataForm" ref="dataForm" @keyup.enter.native="getDataList()" label-width="10px"> - <!-- <el-form-item prop="sbbm"> - <el-input size="mini" v-model="dataForm.sbbm" placeholder="设备编码" - clearable></el-input> - </el-form-item> --> - <el-form-item prop="sbmc"> - <el-input size="mini" v-model="dataForm.sbmc" placeholder="设备名称" - clearable></el-input> - </el-form-item> - <el-form-item> - <el-button size="mini" @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - </el-form> - <el-table v-loading="dataListLoading" :data="dataList" row-key="id" border style="width: 100%;" - @selection-change="dataListSelectionChangeHandle"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="sbmc" header-align="center" align="center" label="设备名称" min-width="100"></el-table-column> - <el-table-column prop="nbdrl" header-align="center" align="center" label="电耗" min-width="100"></el-table-column> - </el-table> - </div> - </el-drawer> -</template> -<script> - import mixinViewModule from '@/mixins/view-module' - - export default { - mixins: [mixinViewModule], - data() { - return { - mixinViewModuleOptions: { - createdIsNeed: false, - getDataListURL: '/iailab-iems-coal-proddisp/consume/power-det/selectList', - getDataListIsPage: true, - }, - visible: false, - dataForm: { - powerConsumeId: '', - rq: '', - xt: '', - sbbm: '', - sbmc: '' - } - } - }, - methods: { - init(row) { - this.dataForm.rq = row.rq - this.dataForm.xt = row.xt - this.visible = true - this.$nextTick(() => { - this.getDataList() - }) - }, - - handleClose() { - this.$refs['dataForm'].resetFields() - this.dataList = [] - }, - - } - } -</script> diff --git a/src/views/proddisp/dailyStatistics/power-consume/list.vue b/src/views/proddisp/dailyStatistics/power-consume/list.vue deleted file mode 100644 index 0b9f743..0000000 --- a/src/views/proddisp/dailyStatistics/power-consume/list.vue +++ /dev/null @@ -1,164 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>时间:</span> - <el-date-picker - v-model="dataForm.startTime" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="请选择"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>至</span> - </el-form-item> - <el-form-item> - <el-date-picker - v-model="dataForm.endTime" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="请选择"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - id="listTable" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="250"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="200"></el-table-column> - <el-table-column prop="xtName" header-align="center" align="center" label="系统" min-width="300"></el-table-column> - <el-table-column prop="nbdrl" header-align="center" align="center" label="电耗" min-width="200"> - <template slot-scope="scope"> - <span v-if="Number(scope.row.nbdrl) === Number('-2')" style="color: red;">电耗通讯中断</span> - <span v-else>{{ scope.row.nbdrl }}</span> - </template> - </el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="160"> - <template slot-scope="scope"> - <el-button type="text" size="small" - @click="showDet(scope.row)">电耗明细</el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - - <!--电耗明细--> - <Form v-if="detListVisible" ref="formRef"></det-list> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import {getStartDate, getEndDate} from "@/utils/dateUtils"; -import {exportByDom} from "@/utils/exportUtil"; -import DetList from "./det" -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/consume/power/selectList', - getDataListIsPage: true - }, - detListVisible: false, - dataForm: { - startTime: getStartDate(), - endTime: getEndDate() - } - } - }, - components: { - DetList - }, - methods: { - showDet (row) { - this.detListVisible = true - this.$nextTick(() => { - this.$refs.detList.init(row) - }) - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 4 || index === 6) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '电耗统计') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dailyStatistics/prod-volume/list.vue b/src/views/proddisp/dailyStatistics/prod-volume/list.vue deleted file mode 100644 index d57da72..0000000 --- a/src/views/proddisp/dailyStatistics/prod-volume/list.vue +++ /dev/null @@ -1,167 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>时间:</span> - <el-date-picker - v-model="dataForm.from" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>至</span> - </el-form-item> - <el-form-item> - <el-date-picker - v-model="dataForm.to" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - id="listTable" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="250"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="160"></el-table-column> - <el-table-column prop="clmzName" header-align="center" align="center" label="产品产量煤种" min-width="300"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="270"></el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import {getStartDate, getEndDate} from "@/utils/dateUtils"; -import {exportByDom} from "@/utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/wash/prod-volume/selectList', - getDataListIsPage: true - }, - dataForm: { - from: getStartDate(), - to: getEndDate() - } - } - }, - components: { - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 8) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '生产量') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dailyStatistics/product-stock/list.vue b/src/views/proddisp/dailyStatistics/product-stock/list.vue deleted file mode 100644 index 941590d..0000000 --- a/src/views/proddisp/dailyStatistics/product-stock/list.vue +++ /dev/null @@ -1,168 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>时间:</span> - <el-date-picker - v-model="dataForm.from" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>至</span> - </el-form-item> - <el-form-item> - <el-date-picker - v-model="dataForm.to" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="250"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="200"></el-table-column> - <el-table-column prop="kcmzName" header-align="center" align="center" label="库存煤种" min-width="220"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbjrkc" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbjrkc}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbjrkc" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbjrkc}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="content" header-align="center" align="left" label="备注" min-width="300"></el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module'; -import {getStartDate, getEndDate} from "@/utils/dateUtils"; -import {exportByDom} from "@/utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/warehouse/stock/selectList', - getDataListIsPage: true - }, - dataForm: { - from: getStartDate(), - to: getEndDate(), - bs: 'cpc' - } - } - }, - components: { - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 8) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '产品库存') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> - diff --git a/src/views/proddisp/dailyStatistics/raw-coal-stock/list.vue b/src/views/proddisp/dailyStatistics/raw-coal-stock/list.vue deleted file mode 100644 index 8cfe2b5..0000000 --- a/src/views/proddisp/dailyStatistics/raw-coal-stock/list.vue +++ /dev/null @@ -1,168 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>时间:</span> - <el-date-picker - v-model="dataForm.from" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>至</span> - </el-form-item> - <el-form-item> - <el-date-picker - v-model="dataForm.to" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="250"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="200"></el-table-column> - <el-table-column prop="kcmzName" header-align="center" align="center" label="库存煤种" min-width="220"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbjrkc" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbjrkc}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbjrkc" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbjrkc}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="content" header-align="center" align="left" label="备注" min-width="300"></el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import {exportByDom} from "@/utils/exportUtil"; -import {getStartDate, getEndDate} from "@/utils/dateUtils"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/warehouse/stock/selectList', - getDataListIsPage: true - }, - dataForm: { - from: getStartDate(), - to: getEndDate(), - bs: 'ymc' - } - } - }, - components: { - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 8) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '原煤库存') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> - diff --git a/src/views/proddisp/dailyStatistics/raw-coal-to-wash/list.vue b/src/views/proddisp/dailyStatistics/raw-coal-to-wash/list.vue deleted file mode 100644 index dddd228..0000000 --- a/src/views/proddisp/dailyStatistics/raw-coal-to-wash/list.vue +++ /dev/null @@ -1,166 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>时间:</span> - <el-date-picker - v-model="dataForm.from" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>至</span> - </el-form-item> - <el-form-item> - <el-date-picker - v-model="dataForm.to" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - id="listTable" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="250"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="160"></el-table-column> - <!-- <el-table-column prop="rxlyName" header-align="center" align="center" label="入洗来源" min-width="250"></el-table-column> --> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="300"></el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import {exportByDom} from "@/utils/exportUtil"; -import {getStartDate, getEndDate} from "@/utils/dateUtils"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/wash/to-wash/selectList', - getDataListIsPage: true - }, - dataForm: { - from: getStartDate(), - to: getEndDate(), - } - } - }, - components: { - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 8) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '原煤入洗') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dailyStatistics/raw-coal-transfer-in/list.vue b/src/views/proddisp/dailyStatistics/raw-coal-transfer-in/list.vue deleted file mode 100644 index 08e10b9..0000000 --- a/src/views/proddisp/dailyStatistics/raw-coal-transfer-in/list.vue +++ /dev/null @@ -1,166 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>时间:</span> - <el-date-picker - v-model="dataForm.from" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>至</span> - </el-form-item> - <el-form-item> - <el-date-picker - v-model="dataForm.to" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="250"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="160"></el-table-column> - <el-table-column prop="drlyName" header-align="center" align="center" label="调入来源" min-width="250"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="327"></el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import {exportByDom} from "@/utils/exportUtil"; -import {getStartDate, getEndDate} from "@/utils/dateUtils"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/wash/transfer-in/selectList', - getDataListIsPage: true - }, - dataForm: { - from: getStartDate(), - to: getEndDate(), - } - } - }, - components: { - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 8) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '原煤调入') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dailyStatistics/sales-volume/list.vue b/src/views/proddisp/dailyStatistics/sales-volume/list.vue deleted file mode 100644 index d848c7f..0000000 --- a/src/views/proddisp/dailyStatistics/sales-volume/list.vue +++ /dev/null @@ -1,167 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>时间:</span> - <el-date-picker - v-model="dataForm.from" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>至</span> - </el-form-item> - <el-form-item> - <el-date-picker - v-model="dataForm.to" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="160"></el-table-column> - <el-table-column prop="xslxName" header-align="center" align="center" label="销售类型" min-width="150"></el-table-column> - <el-table-column prop="xsmzName" header-align="center" align="center" label="产品销售煤种" min-width="200"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="270"></el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import {exportByDom} from "@/utils/exportUtil"; -import {getStartDate, getEndDate} from "@/utils/dateUtils"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/sale/volume/selectList', - getDataListIsPage: true - }, - dataForm: { - from: getStartDate(), - to: getEndDate(), - } - } - }, - components: { - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 4 || index === 9) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '销售量') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dailyStatistics/target-consume/list.vue b/src/views/proddisp/dailyStatistics/target-consume/list.vue deleted file mode 100644 index a69c3e9..0000000 --- a/src/views/proddisp/dailyStatistics/target-consume/list.vue +++ /dev/null @@ -1,167 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>时间:</span> - <el-date-picker - v-model="dataForm.from" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>至</span> - </el-form-item> - <el-form-item> - <el-date-picker - v-model="dataForm.to" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="160"></el-table-column> - <el-table-column prop="xhzbName" header-align="center" align="center" label="消耗指标" min-width="200"></el-table-column> - <el-table-column prop="dw" header-align="center" align="center" label="单位" min-width="150"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="270"></el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import {exportByDom} from "@/utils/exportUtil"; -import {getStartDate, getEndDate} from "@/utils/dateUtils"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/consume/target/selectList', - getDataListIsPage: true - }, - dataForm: { - from: getStartDate(), - to: getEndDate(), - } - } - }, - components: { - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 4 || index === 9) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '指标消耗') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dispatchDailyStatistics/coal-warehouse/list-add-or-update.vue b/src/views/proddisp/dispatchDailyStatistics/coal-warehouse/list-add-or-update.vue deleted file mode 100644 index ce2c5eb..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/coal-warehouse/list-add-or-update.vue +++ /dev/null @@ -1,169 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="mc" label="煤仓"> - <dict-select-tag style="width: 100%" v-model="dataForm.mc" clearable placeholder="煤仓" dictCode="cpc"/> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="cp" label="产品"> - <dict-select-tag style="width: 100%" v-model="dataForm.cp" clearable placeholder="产品" dictCode="cpmz"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbgl" label="内报估量"> - <el-input-number style="width: 100%" v-model="dataForm.nbgl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbgl" label="外报估量"> - <el-input-number style="width: 100%" v-model="dataForm.wbgl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 6, maxRows: 6}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - mc: '', - crl: '', - cp: '', - nbgl: '', - wbgl: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - mc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - cp: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbgl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbgl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/warehouse/position/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.dataForm.crl = getDictItem('cpc', this.dataForm.mc).ext2 - this.$http['post'](`/iailab-iems-coal-proddisp/warehouse/position/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - this.loading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/dispatchDailyStatistics/coal-warehouse/list.vue b/src/views/proddisp/dispatchDailyStatistics/coal-warehouse/list.vue deleted file mode 100644 index fb0d1da..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/coal-warehouse/list.vue +++ /dev/null @@ -1,171 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>统计日期:</span> - <el-date-picker - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - <div style="float: right"> - <el-form-item> - <span>月初:</span> - <el-date-picker - v-model="dataForm.monthStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>年初:</span> - <el-date-picker - v-model="dataForm.yearStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - </div> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="120"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="100"></el-table-column> - <el-table-column prop="mcName" header-align="center" align="center" label="煤仓" min-width="100"></el-table-column> - <el-table-column prop="crl" header-align="center" align="center" label="仓容量" min-width="100"></el-table-column> - <el-table-column prop="cpName" header-align="center" align="center" label="产品" min-width="100"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量"> - <el-table-column prop="nbgl" header-align="center" align="center" label="仓存估量(t)" min-width="160"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbgl}}</span> - </template> - </el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量"> - <el-table-column prop="wbgl" header-align="center" align="center" label="仓存估量(t)" min-width="160"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbgl}}</span> - </template> - </el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="200"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import {exportByDom} from "@/utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/warehouse/position/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/warehouse/position', - deleteIsBatch: true, - }, - dataForm: { - rq: (new Date()).Format('yyyy-MM-dd'), - monthStart: '', - yearStart: '' - }, - statisticsList: [] - } - }, - components: { - AddOrUpdate - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - this.getDate() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - this.getDate() - }, - getDate () { - this.$http.get( - '/iailab-iems-coal-proddisp/warehouse/position/date').then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm.monthStart = res.monthStart - this.dataForm.yearStart = res.yearStart - }).catch(() => {}) - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '仓位统计') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dispatchDailyStatistics/power-consume/list-add-or-update.vue b/src/views/proddisp/dispatchDailyStatistics/power-consume/list-add-or-update.vue deleted file mode 100644 index c9289c9..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/power-consume/list-add-or-update.vue +++ /dev/null @@ -1,177 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="xt" label="耗电系统"> - <dict-select-tag style="width: 100%" v-model="dataForm.xt" clearable placeholder="耗电系统" dictCode="power-xt"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbdrl" label="内报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.nbdrl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbtzl" label="内报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.nbtzl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbdrl" label="外报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.wbdrl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbtzl" label="外报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.wbtzl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="content" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 6, maxRows: 6}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - xt: '', - nbdrl: '', - nbtzl: '', - wbdrl: '', - wbtzl: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - xt: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/consume/power/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/consume/power/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - this.loading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/dispatchDailyStatistics/power-consume/list.vue b/src/views/proddisp/dispatchDailyStatistics/power-consume/list.vue deleted file mode 100644 index 612ad55..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/power-consume/list.vue +++ /dev/null @@ -1,268 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>统计日期:</span> - <el-date-picker - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - <div style="float: right"> - <el-form-item> - <span>月初:</span> - <el-date-picker - v-model="dataForm.monthStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>年初:</span> - <el-date-picker - v-model="dataForm.yearStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - </div> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="100"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="100"></el-table-column> - <el-table-column prop="xtName" header-align="center" align="center" label="耗电系统" min-width="200"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(kw.h)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(kw.h)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="287"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <el-row style="margin-top: 6px"> - <el-col :span="4"> - <el-button @click="exportStatisticsExcel()">导出</el-button> - </el-col> - <el-col :span="20"> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </el-col> - </el-row> - <el-table - ref="statisticsTable" - v-loading="dataListLoading" - :data="statisticsList" - border - show-summary - :summary-method="getStatisticsSummaries"> - <el-table-column prop="xtName" header-align="center" align="center" label="耗电系统"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(kw.h)"> - <el-table-column prop="nbDaySum" header-align="center" align="center" label="当日"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="nbMonthSum" header-align="center" align="center" label="月累计"></el-table-column> - <el-table-column prop="nbYearSum" header-align="center" align="center" label="年累计"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(kw.h)"> - <el-table-column prop="wbDaySum" header-align="center" align="center" label="当日"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="wbMonthSum" header-align="center" align="center" label="月累计"></el-table-column> - <el-table-column prop="wbYearSum" header-align="center" align="center" label="年累计"></el-table-column> - </el-table-column> - </el-table> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import {exportByDom} from "../../../../../utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/consume/power/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/consume/power', - deleteIsBatch: true, - }, - dataForm: { - rq: (new Date()).Format('yyyy-MM-dd'), - monthStart: '', - yearStart: '' - }, - statisticsList: [] - } - }, - components: { - AddOrUpdate - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - this.statisticsInit() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - this.statisticsInit() - }, - statisticsInit () { - this.$http.get( - '/iailab-iems-coal-proddisp/consume/power/statistics').then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.statisticsList = res.list - this.dataForm.monthStart = res.monthStart - this.dataForm.yearStart = res.yearStart - }).catch(() => {}) - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 4 || index === 9) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - getStatisticsSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '电耗统计') - }, - exportStatisticsExcel () { - let dom = this.$refs.statisticsTable - exportByDom(dom, undefined, '电耗合计统计') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dispatchDailyStatistics/prod-volume/list-add-or-update.vue b/src/views/proddisp/dispatchDailyStatistics/prod-volume/list-add-or-update.vue deleted file mode 100644 index 637c483..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/prod-volume/list-add-or-update.vue +++ /dev/null @@ -1,186 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> -<!-- <el-col :span="12">--> -<!-- <el-form-item prop="xxjm" label="洗选精煤">--> -<!-- <dict-select-tag style="width: 100%" v-model="dataForm.xxjm" clearable placeholder="洗选精煤" dictCode="wash-out-clean-coal"/>--> -<!-- </el-form-item>--> -<!-- </el-col>--> - <el-col :span="12"> - <el-form-item prop="clmz" label="产量煤种"> - <dict-select-tag style="width: 100%" v-model="dataForm.clmz" clearable placeholder="产量煤种" dictCode="cpmz"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbdrl" label="内报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.nbdrl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbtzl" label="内报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.nbtzl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbdrl" label="外报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.wbdrl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbtzl" label="外报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.wbtzl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 6, maxRows: 6}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - xxjm: '', - clmz: '', - nbdrl: '', - nbtzl: '', - wbdrl: '', - wbtzl: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - xxjm: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - clmz: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/wash/prod-volume/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/wash/prod-volume/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - this.loading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/dispatchDailyStatistics/prod-volume/list.vue b/src/views/proddisp/dispatchDailyStatistics/prod-volume/list.vue deleted file mode 100644 index 18f4c75..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/prod-volume/list.vue +++ /dev/null @@ -1,286 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>统计日期:</span> - <el-date-picker - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - <div style="float: right"> - <el-form-item> - <span>月初:</span> - <el-date-picker - v-model="dataForm.monthStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>年初:</span> - <el-date-picker - v-model="dataForm.yearStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - </div> - </el-form> - <el-table - ref="table" - id="listTable" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="100"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="100"></el-table-column> -<!-- <el-table-column prop="xxjmName" header-align="center" align="center" label="洗选精煤" min-width="150"></el-table-column>--> - <el-table-column prop="clmzName" header-align="center" align="center" label="产品产量煤种" min-width="200"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="280"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <el-row style="margin-top: 6px"> - <el-col :span="4"> - <el-button @click="exportStatisticsExcel()">导出</el-button> - </el-col> - <el-col :span="20"> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </el-col> - </el-row> - <el-table - ref="statisticsTable" - v-loading="dataListLoading" - :data="statisticsList" - border - show-summary - :summary-method="getStatisticsSummaries"> - <el-table-column prop="clmzName" header-align="center" align="center" label="产品产量煤种" min-width="300"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbDaySum" header-align="center" align="center" label="当日" min-width="220"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="nbMonthSum" header-align="center" align="center" label="月累计" min-width="220"></el-table-column> - <el-table-column prop="nbYearSum" header-align="center" align="center" label="年累计" min-width="220"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbDaySum" header-align="center" align="center" label="当日" min-width="220"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="wbMonthSum" header-align="center" align="center" label="月累计" min-width="220"></el-table-column> - <el-table-column prop="wbYearSum" header-align="center" align="center" label="年累计" min-width="220"></el-table-column> - </el-table-column> - </el-table> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {exportByDom} from "@/utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/wash/prod-volume/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/wash/prod-volume', - deleteIsBatch: true, - }, - dataForm: { - rq: (new Date()).Format('yyyy-MM-dd'), - monthStart: '', - yearStart: '', - xxjm: '' - }, - statisticsList: [] - } - }, - components: { - AddOrUpdate, - DictSelectTag - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - this.statisticsInit() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - this.statisticsInit() - }, - statisticsInit () { - this.$http.get( - '/iailab-iems-coal-proddisp/wash/prod-volume/statistics', - { - params: { - ...this.dataForm - } - }).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.statisticsList = res.list - this.dataForm.monthStart = res.monthStart - this.dataForm.yearStart = res.yearStart - }).catch(() => {}) - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 8) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - getStatisticsSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '生产量统计') - }, - exportStatisticsExcel () { - let dom = this.$refs.statisticsTable - exportByDom(dom, undefined, '生产量合计统计') - } - }, - watch: { - 'dataForm.xxjm' :{ - handler: function () { - this.statisticsInit() - }, - immediate: false - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dispatchDailyStatistics/product-stock/list-add-or-update.vue b/src/views/proddisp/dispatchDailyStatistics/product-stock/list-add-or-update.vue deleted file mode 100644 index 188ab8e..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/product-stock/list-add-or-update.vue +++ /dev/null @@ -1,240 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kcmz" label="库存煤种"> - <dict-select-tag style="width: 100%" v-model="dataForm.kcmz" clearable placeholder="库存煤种" dictCode="cpmz"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbzrkc" label="内报昨日库存"> - <el-input-number style="width: 100%" v-model="dataForm.nbzrkc" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbjrrk" label="内报今日入库"> - <el-input-number style="width: 100%" v-model="dataForm.nbjrrk" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbjrck" label="内报今日出库"> - <el-input-number style="width: 100%" v-model="dataForm.nbjrck" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbtzl" label="内报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.nbtzl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbjrkc" label="内报今日库存"> - <el-input-number style="width: 100%" v-model="dataForm.nbjrkc" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbzrkc" label="外报昨日库存"> - <el-input-number style="width: 100%" v-model="dataForm.wbzrkc" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbjrrk" label="外报今日入库"> - <el-input-number style="width: 100%" v-model="dataForm.wbjrrk" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbjrck" label="外报今日出库"> - <el-input-number style="width: 100%" v-model="dataForm.wbjrck" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbtzl" label="外报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.wbtzl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbjrkc" label="外报今日库存"> - <el-input-number style="width: 100%" v-model="dataForm.wbjrkc" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 4, maxRows: 4}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - kcmz: '', - nbzrkc: '', - nbjrrk: '', - nbjrck: '', - nbtzl: '', - nbjrkc: '', - wbzrkc: '', - wbjrrk: '', - wbjrck: '', - wbtzl: '', - wbjrkc: '', - bz: '', - bs: 'cpc' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kcmz: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbzrkc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbjrrk: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbjrck: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbjrkc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbzrkc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbjrrk: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbjrck: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbjrkc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/warehouse/stock/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/warehouse/stock/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/dispatchDailyStatistics/product-stock/list.vue b/src/views/proddisp/dispatchDailyStatistics/product-stock/list.vue deleted file mode 100644 index cdfc501..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/product-stock/list.vue +++ /dev/null @@ -1,202 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>统计日期:</span> - <el-date-picker - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - <div style="float: right"> - <el-form-item> - <span>月初:</span> - <el-date-picker - v-model="dataForm.monthStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>年初:</span> - <el-date-picker - v-model="dataForm.yearStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - </div> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="160"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="120"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="100"></el-table-column> - <el-table-column prop="kcmzName" header-align="center" align="center" label="库存煤种" min-width="160"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbzrkc" header-align="center" align="center" label="昨日库存" min-width="90"></el-table-column> - <el-table-column prop="nbjrrk" header-align="center" align="center" label="+今日入库" min-width="90"></el-table-column> - <el-table-column prop="nbjrck" header-align="center" align="center" label="-今日出库" min-width="90"></el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="调整量" min-width="90"></el-table-column> - <el-table-column prop="nbjrkc" header-align="center" align="center" label="今日库存" min-width="90"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbzrkc" header-align="center" align="center" label="昨日库存" min-width="90"></el-table-column> - <el-table-column prop="wbjrrk" header-align="center" align="center" label="+今日入库" min-width="90"></el-table-column> - <el-table-column prop="wbjrck" header-align="center" align="center" label="-今日出库" min-width="90"></el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="调整量" min-width="90"></el-table-column> - <el-table-column prop="wbjrkc" header-align="center" align="center" label="今日库存" min-width="90"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="left" label="备注" min-width="150"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import {exportByDom} from "@/utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/warehouse/stock/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/warehouse/stock', - deleteIsBatch: true, - }, - dataForm: { - rq: (new Date()).Format('yyyy-MM-dd'), - monthStart: '', - yearStart: '', - bs: 'cpc' - }, - statisticsList: [] - } - }, - components: { - AddOrUpdate - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - this.init() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - this.init() - }, - init () { - this.$http.get( - '/iailab-iems-coal-proddisp/warehouse/stock/init').then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm.monthStart = res.monthStart - this.dataForm.yearStart = res.yearStart - }).catch(() => {}) - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 14) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '产品库存统计') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dispatchDailyStatistics/raw-coal-stock/list-add-or-update.vue b/src/views/proddisp/dispatchDailyStatistics/raw-coal-stock/list-add-or-update.vue deleted file mode 100644 index 701dc25..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/raw-coal-stock/list-add-or-update.vue +++ /dev/null @@ -1,240 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kcmz" label="库存煤种"> - <dict-select-tag style="width: 100%" v-model="dataForm.kcmz" clearable placeholder="库存煤种" dictCode="ymmz"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbzrkc" label="内报昨日库存"> - <el-input-number style="width: 100%" v-model="dataForm.nbzrkc" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbjrrk" label="内报今日入库"> - <el-input-number style="width: 100%" v-model="dataForm.nbjrrk" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbjrck" label="内报今日出库"> - <el-input-number style="width: 100%" v-model="dataForm.nbjrck" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbtzl" label="内报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.nbtzl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbjrkc" label="内报今日库存"> - <el-input-number style="width: 100%" v-model="dataForm.nbjrkc" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbzrkc" label="外报昨日库存"> - <el-input-number style="width: 100%" v-model="dataForm.wbzrkc" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbjrrk" label="外报今日入库"> - <el-input-number style="width: 100%" v-model="dataForm.wbjrrk" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbjrck" label="外报今日出库"> - <el-input-number style="width: 100%" v-model="dataForm.wbjrck" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbtzl" label="外报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.wbtzl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbjrkc" label="外报今日库存"> - <el-input-number style="width: 100%" v-model="dataForm.wbjrkc" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 4, maxRows: 4}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - kcmz: '', - nbzrkc: '', - nbjrrk: '', - nbjrck: '', - nbtzl: '', - nbjrkc: '', - wbzrkc: '', - wbjrrk: '', - wbjrck: '', - wbtzl: '', - wbjrkc: '', - bz: '', - bs: 'ymc' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kcmz: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbzrkc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbjrrk: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbjrck: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbjrkc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbzrkc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbjrrk: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbjrck: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbjrkc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/warehouse/stock/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/warehouse/stock/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/dispatchDailyStatistics/raw-coal-stock/list.vue b/src/views/proddisp/dispatchDailyStatistics/raw-coal-stock/list.vue deleted file mode 100644 index 49aa9ae..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/raw-coal-stock/list.vue +++ /dev/null @@ -1,202 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>统计日期:</span> - <el-date-picker - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - <div style="float: right"> - <el-form-item> - <span>月初:</span> - <el-date-picker - v-model="dataForm.monthStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>年初:</span> - <el-date-picker - v-model="dataForm.yearStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - </div> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="160"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="120"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="100"></el-table-column> - <el-table-column prop="kcmzName" header-align="center" align="center" label="库存煤种" min-width="160"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbzrkc" header-align="center" align="center" label="昨日库存" min-width="90"></el-table-column> - <el-table-column prop="nbjrrk" header-align="center" align="center" label="+今日入库" min-width="90"></el-table-column> - <el-table-column prop="nbjrck" header-align="center" align="center" label="-今日出库" min-width="90"></el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="调整量" min-width="90"></el-table-column> - <el-table-column prop="nbjrkc" header-align="center" align="center" label="今日库存" min-width="90"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbzrkc" header-align="center" align="center" label="昨日库存" min-width="90"></el-table-column> - <el-table-column prop="wbjrrk" header-align="center" align="center" label="+今日入库" min-width="90"></el-table-column> - <el-table-column prop="wbjrck" header-align="center" align="center" label="-今日出库" min-width="90"></el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="调整量" min-width="90"></el-table-column> - <el-table-column prop="wbjrkc" header-align="center" align="center" label="今日库存" min-width="90"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="left" label="备注" min-width="150"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import {exportByDom} from "@/utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/warehouse/stock/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/warehouse/stock', - deleteIsBatch: true, - }, - dataForm: { - rq: (new Date()).Format('yyyy-MM-dd'), - monthStart: '', - yearStart: '', - bs: 'ymc' - }, - statisticsList: [] - } - }, - components: { - AddOrUpdate - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - this.init() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - this.init() - }, - init () { - this.$http.get( - '/iailab-iems-coal-proddisp/warehouse/stock/init').then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm.monthStart = res.monthStart - this.dataForm.yearStart = res.yearStart - }).catch(() => {}) - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 14) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '原煤库存统计') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dispatchDailyStatistics/raw-coal-to-wash/list-add-or-update.vue b/src/views/proddisp/dispatchDailyStatistics/raw-coal-to-wash/list-add-or-update.vue deleted file mode 100644 index 137c619..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/raw-coal-to-wash/list-add-or-update.vue +++ /dev/null @@ -1,206 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="xxjm" label="洗选精煤"> - <dict-select-tag style="width: 100%" v-model="dataForm.xxjm" clearable placeholder="洗选精煤" dictCode="cpmz"/> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="rxly" label="入洗来源"> - <dict-select-tag style="width: 100%" v-model="dataForm.rxly" clearable placeholder="入洗来源" dictCode="ymmz"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="rxpb" label="入洗配比"> - <el-input-number style="width: 100%" v-model="dataForm.rxpb" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="rxbl" label="入洗比例"> - <el-input-number style="width: 100%" v-model="dataForm.rxbl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbdrl" label="内报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.nbdrl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbtzl" label="内报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.nbtzl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbdrl" label="外报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.wbdrl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbtzl" label="外报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.wbtzl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="content" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 6, maxRows: 6}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - xxjm: '', - rxly: '', - rxpb: '', - rxbl: '', - nbdrl: '', - nbtzl: '', - wbdrl: '', - wbtzl: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - xxjm: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - rxly: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - rxpb: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - rxbl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/wash/to-wash/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/wash/to-wash/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - this.loading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/dispatchDailyStatistics/raw-coal-to-wash/list.vue b/src/views/proddisp/dispatchDailyStatistics/raw-coal-to-wash/list.vue deleted file mode 100644 index 5f6f5ce..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/raw-coal-to-wash/list.vue +++ /dev/null @@ -1,347 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>统计日期:</span> - <el-date-picker - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - <div style="float: right"> - <el-form-item> - <span>月初:</span> - <el-date-picker - v-model="dataForm.monthStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>年初:</span> - <el-date-picker - v-model="dataForm.yearStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - </div> - </el-form> - <el-table - ref="table" - id="listTable" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="100"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="100"></el-table-column> - <!-- <el-table-column prop="xxjmName" header-align="center" align="center" label="洗选精煤" min-width="150"></el-table-column> --> - <!-- <el-table-column prop="rxlyName" header-align="center" align="center" label="入洗来源" min-width="200"></el-table-column> --> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="200"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <!-- <el-row style="margin-top: 6px"> - <el-col :span="4"> - <dict-select-tag v-model="dataForm.xxjm" clearable placeholder="洗选精煤" dictCode="cpmz"/> - <el-button @click="exportStatisticsExcel()">导出</el-button> - </el-col> - <el-col :span="20"> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </el-col> - </el-row> - <el-table - ref="statisticsTable" - id="statisticsTable" - v-loading="dataListLoading" - :data="statisticsList" - show-summary - :summary-method="getStatisticsSummaries" - default-expand-all - :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> - <el-table-column type="expand" min-width="50" prop="xxjmName" label="" class-name="洗选精煤"> - <template slot-scope="props"> - <el-table - id="childTable" - class="table-in-table" - :data="props.row.children" - :show-header="false" - show-summary - :summary-method="getChildSummaries"> - <el-table-column min-width="50"></el-table-column> - <el-table-column prop="rxlyName" header-align="center" align="center" label="入洗来源" min-width="300"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbDaySum" header-align="center" align="center" label="当日" min-width="210"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="nbMonthSum" header-align="center" align="center" label="月累计" min-width="210"></el-table-column> - <el-table-column prop="nbYearSum" header-align="center" align="center" label="年累计" min-width="210"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbDaySum" header-align="center" align="center" label="当日" min-width="210"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="wbMonthSum" header-align="center" align="center" label="月累计" min-width="210"></el-table-column> - <el-table-column prop="wbYearSum" header-align="center" align="center" label="年累计" min-width="210"></el-table-column> - </el-table-column> - </el-table> - </template> - </el-table-column> - <el-table-column prop="rxlyName" header-align="center" align="center" label="入洗来源" min-width="300"> - <template slot-scope="scope"> - <span style="color: blue">洗选精煤:{{scope.row.xxjmName}}</span> - </template> - </el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbDaySum" header-align="center" align="center" label="当日" min-width="210"></el-table-column> - <el-table-column prop="nbMonthSum" header-align="center" align="center" label="月累计" min-width="210"></el-table-column> - <el-table-column prop="nbYearSum" header-align="center" align="center" label="年累计" min-width="210"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbDaySum" header-align="center" align="center" label="当日" min-width="210"></el-table-column> - <el-table-column prop="wbMonthSum" header-align="center" align="center" label="月累计" min-width="210"></el-table-column> - <el-table-column prop="wbYearSum" header-align="center" align="center" label="年累计" min-width="210"></el-table-column> - </el-table-column> - </el-table> --> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {exportByDom} from "@/utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/wash/to-wash/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/wash/to-wash', - deleteIsBatch: true, - }, - dataForm: { - rq: (new Date()).Format('yyyy-MM-dd'), - monthStart: '', - yearStart: '', - xxjm: '' - }, - statisticsList: [] - } - }, - components: { - AddOrUpdate, - DictSelectTag - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - this.statisticsInit() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - this.statisticsInit() - }, - // statisticsInit () { - // this.$http.get( - // '/iailab-iems-coal-proddisp/wash/to-wash/statistics', - // { - // params: { - // ...this.dataForm - // } - // }).then(({ data: res }) => { - // if (res.code !== 0) { - // return this.$message.error(res.msg) - // } - // this.statisticsList = res.list - // this.dataForm.monthStart = res.monthStart - // this.dataForm.yearStart = res.yearStart - // }).catch(() => {}) - // }, - getSum (param, type) { - const { columns, data } = param - const sums = [] - columns.forEach((column, index) => { - if (type === 'listSum') { - if (index === 0) { - sums[index] = '合计' - return - } - if (index === 1 || index === 2 || index === 3 || index === 4 || index === 9) { - sums[index] = '' - return - } - } else if (type === 'statisticsSum') { - if (index === 0) { - sums[index] = '合计' - return - } - if (index === 1) { - sums[index] = '' - return - } - } else if (type === 'childSum') { - if (index === 0) { - sums[index] = '小计' - return - } - if (index === 1) { - sums[index] = '' - return - } - } - let values = [] - if (type === 'statisticsSum') { - // values = this.statisticsList[index].children?.map(item => Number(item[column.property])) - let temp = [] - for (let item of data) { - temp = item.children.map(x => Number(x[column.property])) - values = values.concat(temp) - } - } else { - values = data.map(item => Number(item[column.property])) - } - if (!values?.every(value => isNaN(value))) { - sums[index] = values?.reduce((prev, curr) => { - const value = Number(curr) - if (!isNaN(value)) { - return prev + curr - } else { - return prev - } - }, 0) - } else { - sums[index] = '' - } - }) - - return sums - }, - getSummaries(param) { - return this.getSum(param, 'listSum') - }, - getStatisticsSummaries(param) { - return this.getSum(param, 'statisticsSum') - }, - getChildSummaries(param) { - return this.getSum(param, 'childSum') - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '入洗量统计') - }, - exportStatisticsExcel () { - let dom = this.$refs.statisticsTable - exportByDom(dom, undefined, '入洗量合计统计') - } - }, - watch: { - 'dataForm.xxjm' :{ - handler: function () { - this.statisticsInit() - }, - immediate: false - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ #listTable .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -/deep/ #statisticsTable .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: red; -} -/deep/ #childTable .has-gutter tr td .cell{ - text-align: center; - font-weight: bold; - color: blue; -} -/deep/ .el-table td div { - -webkit-box-sizing: border-box; - box-sizing: border-box; - /*margin-top: -6px;*/ -} -.table-in-table { - border-top: 0px; -} -</style> diff --git a/src/views/proddisp/dispatchDailyStatistics/raw-coal-transfer-in/list-add-or-update.vue b/src/views/proddisp/dispatchDailyStatistics/raw-coal-transfer-in/list-add-or-update.vue deleted file mode 100644 index c6de730..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/raw-coal-transfer-in/list-add-or-update.vue +++ /dev/null @@ -1,177 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="drly" label="调入来源"> - <dict-select-tag style="width: 100%" v-model="dataForm.drly" clearable placeholder="调入来源" dictCode="ymmz"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbdrl" label="内报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.nbdrl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbtzl" label="内报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.nbtzl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbdrl" label="外报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.wbdrl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbtzl" label="外报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.wbtzl" :precision="0" :step="1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 6, maxRows: 6}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - drly: '', - nbdrl: '', - nbtzl: '', - wbdrl: '', - wbtzl: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - drly: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/wash/transfer-in/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http[!this.dataForm.id ? 'post' : 'put']('/iailab-iems-coal-proddisp/wash/transfer-in', this.dataForm).then(({data: res}) => { - this.loading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/dispatchDailyStatistics/raw-coal-transfer-in/list.vue b/src/views/proddisp/dispatchDailyStatistics/raw-coal-transfer-in/list.vue deleted file mode 100644 index e43eb61..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/raw-coal-transfer-in/list.vue +++ /dev/null @@ -1,268 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>统计日期:</span> - <el-date-picker - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - <div style="float: right"> - <el-form-item> - <span>月初:</span> - <el-date-picker - v-model="dataForm.monthStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>年初:</span> - <el-date-picker - v-model="dataForm.yearStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - </div> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="100"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="100"></el-table-column> - <el-table-column prop="drlyName" header-align="center" align="center" label="调入来源" min-width="200"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="287"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <el-row style="margin-top: 6px"> - <el-col :span="4"> - <el-button @click="exportStatisticsExcel()">导出</el-button> - </el-col> - <el-col :span="20"> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </el-col> - </el-row> - <el-table - ref="statisticsTable" - v-loading="dataListLoading" - :data="statisticsList" - border - show-summary - :summary-method="getStatisticsSummaries"> - <el-table-column prop="drlyName" header-align="center" align="center" label="调入来源"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbDaySum" header-align="center" align="center" label="当日"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="nbMonthSum" header-align="center" align="center" label="月累计"></el-table-column> - <el-table-column prop="nbYearSum" header-align="center" align="center" label="年累计"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbDaySum" header-align="center" align="center" label="当日"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="wbMonthSum" header-align="center" align="center" label="月累计"></el-table-column> - <el-table-column prop="wbYearSum" header-align="center" align="center" label="年累计"></el-table-column> - </el-table-column> - </el-table> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import {exportByDom} from "../../../../../utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/wash/transfer-in/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/wash/transfer-in', - deleteIsBatch: true, - }, - dataForm: { - rq: (new Date()).Format('yyyy-MM-dd'), - monthStart: '', - yearStart: '' - }, - statisticsList: [] - } - }, - components: { - AddOrUpdate - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - this.statisticsInit() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - this.statisticsInit() - }, - statisticsInit () { - this.$http.get( - '/iailab-iems-coal-proddisp/wash/transfer-in/statistics').then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.statisticsList = res.list - this.dataForm.monthStart = res.monthStart - this.dataForm.yearStart = res.yearStart - }).catch(() => {}) - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 4 || index === 9) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - getStatisticsSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '调入量统计') - }, - exportStatisticsExcel () { - let dom = this.$refs.statisticsTable - exportByDom(dom, undefined, '调入量合计统计') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/dispatchDailyStatistics/sales-volume/list-add-or-update.vue b/src/views/proddisp/dispatchDailyStatistics/sales-volume/list-add-or-update.vue deleted file mode 100644 index a0db13d..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/sales-volume/list-add-or-update.vue +++ /dev/null @@ -1,186 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="xslx" label="销售类型"> - <dict-select-tag style="width: 100%" v-model="dataForm.xslx" clearable placeholder="销售类型" dictCode="sales-type"/> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="xsmz" label="销售煤种"> - <dict-select-tag style="width: 100%" v-model="dataForm.xsmz" clearable placeholder="销售煤种" dictCode="spmz"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbdrl" label="内报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.nbdrl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbtzl" label="内报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.nbtzl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbdrl" label="外报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.wbdrl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbtzl" label="外报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.wbtzl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 6, maxRows: 6}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - xslx: '', - xsmz: '', - nbdrl: '', - nbtzl: '', - wbdrl: '', - wbtzl: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - xslx: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - xsmz: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/sale/volume/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/sale/volume/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - this.loading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/dispatchDailyStatistics/sales-volume/list.vue b/src/views/proddisp/dispatchDailyStatistics/sales-volume/list.vue deleted file mode 100644 index f677873..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/sales-volume/list.vue +++ /dev/null @@ -1,348 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>统计日期:</span> - <el-date-picker - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - <div style="float: right"> - <el-form-item> - <span>月初:</span> - <el-date-picker - v-model="dataForm.monthStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>年初:</span> - <el-date-picker - v-model="dataForm.yearStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - </div> - </el-form> - <el-table - ref="table" - id="listTable" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="100"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="100"></el-table-column> - <el-table-column prop="xslxName" header-align="center" align="center" label="销售类型" min-width="100"></el-table-column> - <el-table-column prop="xsmzName" header-align="center" align="center" label="产品销售煤种" min-width="150"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="200"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <el-row style="margin-top: 6px"> - <el-col :span="4"> - <dict-select-tag v-model="dataForm.xslx" clearable placeholder="销售类型" dictCode="sales-type"/> - <el-button @click="exportStatisticsExcel()">导出</el-button> - </el-col> - <el-col :span="20"> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </el-col> - </el-row> - <el-table - ref="statisticsTable" - id="statisticsTable" - v-loading="dataListLoading" - :data="statisticsList" - show-summary - :summary-method="getStatisticsSummaries" - default-expand-all - :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> - <el-table-column type="expand" min-width="50" prop="xslxName" label="" class-name="销售类型"> - <template slot-scope="props"> - <el-table - id="childTable" - class="table-in-table" - :data="props.row.children" - :show-header="false" - show-summary - :summary-method="getChildSummaries"> - <el-table-column min-width="50"></el-table-column> - <el-table-column prop="xsmzName" header-align="center" align="center" label="产品销售煤种" min-width="327"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbDaySum" header-align="center" align="center" label="当日" min-width="210"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="nbMonthSum" header-align="center" align="center" label="月累计" min-width="210"></el-table-column> - <el-table-column prop="nbYearSum" header-align="center" align="center" label="年累计" min-width="210"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbDaySum" header-align="center" align="center" label="当日" min-width="210"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="wbMonthSum" header-align="center" align="center" label="月累计" min-width="210"></el-table-column> - <el-table-column prop="wbYearSum" header-align="center" align="center" label="年累计" min-width="209"></el-table-column> - </el-table-column> - </el-table> - </template> - </el-table-column> - <el-table-column prop="xsmzName" header-align="center" align="center" label="产品销售煤种" min-width="327"> - <template slot-scope="scope"> - <span style="color: blue">销售类型:{{scope.row.xslxName}}</span> - </template> - </el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbDaySum" header-align="center" align="center" label="当日" min-width="210"></el-table-column> - <el-table-column prop="nbMonthSum" header-align="center" align="center" label="月累计" min-width="210"></el-table-column> - <el-table-column prop="nbYearSum" header-align="center" align="center" label="年累计" min-width="210"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbDaySum" header-align="center" align="center" label="当日" min-width="210"></el-table-column> - <el-table-column prop="wbMonthSum" header-align="center" align="center" label="月累计" min-width="210"></el-table-column> - <el-table-column prop="wbYearSum" header-align="center" align="center" label="年累计" min-width="210"></el-table-column> - </el-table-column> - </el-table> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {exportByDom} from "../../../../../utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/sale/volume/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/sale/volume', - deleteIsBatch: true, - }, - dataForm: { - rq: (new Date()).Format('yyyy-MM-dd'), - monthStart: '', - yearStart: '', - xslx: '' - }, - statisticsList: [] - } - }, - components: { - AddOrUpdate, - DictSelectTag - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - this.statisticsInit() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - this.statisticsInit() - }, - statisticsInit () { - this.$http.get( - '/iailab-iems-coal-proddisp/sale/volume/statistics', - { - params: { - ...this.dataForm - } - }).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.statisticsList = res.list - this.dataForm.monthStart = res.monthStart - this.dataForm.yearStart = res.yearStart - }).catch(() => {}) - }, - getSum (param, type) { - const { columns, data } = param - const sums = [] - columns.forEach((column, index) => { - if (type === 'listSum') { - if (index === 0) { - sums[index] = '合计' - return - } - if (index === 1 || index === 2 || index === 3 || index === 4 || index === 9) { - sums[index] = '' - return - } - } else if (type === 'statisticsSum') { - if (index === 0) { - sums[index] = '合计' - return - } - if (index === 1) { - sums[index] = '' - return - } - } else if (type === 'childSum') { - if (index === 0) { - sums[index] = '小计' - return - } - if (index === 1) { - sums[index] = '' - return - } - } - let values = [] - if (type === 'statisticsSum') { - // values = this.statisticsList[index].children?.map(item => Number(item[column.property])) - let temp = [] - for (let item of data) { - temp = item.children.map(x => Number(x[column.property])) - values = values.concat(temp) - } - } else { - values = data.map(item => Number(item[column.property])) - } - if (!values?.every(value => isNaN(value))) { - sums[index] = values?.reduce((prev, curr) => { - const value = Number(curr) - if (!isNaN(value)) { - return prev + curr - } else { - return prev - } - }, 0) - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = '' - } - }) - - return sums - }, - getSummaries(param) { - return this.getSum(param, 'listSum') - }, - getStatisticsSummaries(param) { - return this.getSum(param, 'statisticsSum') - }, - getChildSummaries(param) { - return this.getSum(param, 'childSum') - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '销售量统计') - }, - exportStatisticsExcel () { - let dom = this.$refs.statisticsTable - exportByDom(dom, undefined, '销售量合计统计') - } - }, - watch: { - 'dataForm.xslx' :{ - handler: function () { - this.statisticsInit() - }, - immediate: false - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ #listTable .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -/deep/ #statisticsTable .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: red; -} -/deep/ #childTable .has-gutter tr td .cell{ - text-align: center; - font-weight: bold; - color: blue; -} -/deep/ .el-table td div { - -webkit-box-sizing: border-box; - box-sizing: border-box; - /*margin-top: -6px;*/ -} -.table-in-table { - border-top: 0px; -} -</style> diff --git a/src/views/proddisp/dispatchDailyStatistics/target-consume/list-add-or-update.vue b/src/views/proddisp/dispatchDailyStatistics/target-consume/list-add-or-update.vue deleted file mode 100644 index f50db3b..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/target-consume/list-add-or-update.vue +++ /dev/null @@ -1,179 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="xhzb" label="消耗指标"> - <dict-select-tag style="width: 100%" v-model="dataForm.xhzb" clearable placeholder="消耗指标" dictCode="xhzb"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="nbdrl" label="内报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.nbdrl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="nbtzl" label="内报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.nbtzl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="wbdrl" label="外报当日量"> - <el-input-number style="width: 100%" v-model="dataForm.wbdrl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="wbtzl" label="外报调整量"> - <el-input-number style="width: 100%" v-model="dataForm.wbtzl" :precision="2" :step="0.1" :min="0"></el-input-number> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 6, maxRows: 6}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - xhzb: '', - nbdrl: '', - nbtzl: '', - wbdrl: '', - wbtzl: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - xhzb: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - nbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbdrl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - wbtzl: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/consume/target/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.dataForm.dw = getDictItem('xhzb', this.dataForm.xhzb).ext1 - this.$http['post'](`/iailab-iems-coal-proddisp/consume/target/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/dispatchDailyStatistics/target-consume/list.vue b/src/views/proddisp/dispatchDailyStatistics/target-consume/list.vue deleted file mode 100644 index 91e1c5d..0000000 --- a/src/views/proddisp/dispatchDailyStatistics/target-consume/list.vue +++ /dev/null @@ -1,274 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>统计日期:</span> - <el-date-picker - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - <el-form-item> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - <div style="float: right"> - <el-form-item> - <span>月初:</span> - <el-date-picker - v-model="dataForm.monthStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>年初:</span> - <el-date-picker - v-model="dataForm.yearStart" - type="date" - readonly - value-format="yyyy-MM-dd"> - </el-date-picker> - </el-form-item> - </div> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;" - show-summary - :summary-method="getSummaries"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="120"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="100"></el-table-column> - <el-table-column prop="xhzbName" header-align="center" align="center" label="消耗指标" min-width="200"></el-table-column> - <el-table-column prop="dw" header-align="center" align="center" label="单位" min-width="150"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="nbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbdrl" header-align="center" align="center" label="当日" min-width="150"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbdrl}}</span> - </template> - </el-table-column> - <el-table-column prop="wbtzl" header-align="center" align="center" label="累计调整量" min-width="150"></el-table-column> - </el-table-column> - <el-table-column show-overflow-tooltip prop="bz" header-align="center" align="center" label="备注" min-width="230"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <el-row style="margin-top: 6px"> - <el-col :span="4"> - <el-button @click="exportStatisticsExcel()">导出</el-button> - </el-col> - <el-col :span="20"> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </el-col> - </el-row> - <el-table - ref="statisticsTable" - v-loading="dataListLoading" - :data="statisticsList" - border - show-summary - :summary-method="getStatisticsSummaries"> - <el-table-column prop="xhzbName" header-align="center" align="center" label="消耗指标"></el-table-column> - <el-table-column prop="dw" header-align="center" align="center" label="单位"></el-table-column> - <el-table-column header-align="center" align="center" label="内报量(吨)"> - <el-table-column prop="nbDaySum" header-align="center" align="center" label="当日"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.nbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="nbMonthSum" header-align="center" align="center" label="月累计"></el-table-column> - <el-table-column prop="nbYearSum" header-align="center" align="center" label="年累计"></el-table-column> - </el-table-column> - <el-table-column header-align="center" align="center" label="外报量(吨)"> - <el-table-column prop="wbDaySum" header-align="center" align="center" label="当日"> - <template slot-scope="scope"> - <span style="color: red">{{scope.row.wbDaySum}}</span> - </template> - </el-table-column> - <el-table-column prop="wbMonthSum" header-align="center" align="center" label="月累计"></el-table-column> - <el-table-column prop="wbYearSum" header-align="center" align="center" label="年累计"></el-table-column> - </el-table-column> - </el-table> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import {exportByDom} from "@/utils/exportUtil"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/consume/target/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/consume/target', - deleteIsBatch: true, - }, - dataForm: { - rq: (new Date()).Format('yyyy-MM-dd'), - monthStart: '', - yearStart: '' - }, - statisticsList: [] - } - }, - components: { - AddOrUpdate - }, - created () { - if (this.mixinViewModuleOptions.createdIsNeed) { - this.query() - this.statisticsInit() - } - }, - methods: { - getDataList: function () { - this.page = 1 - this.query() - this.statisticsInit() - }, - statisticsInit () { - this.$http.get( - '/iailab-iems-coal-proddisp/consume/target/statistics').then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.statisticsList = res.list - this.dataForm.monthStart = res.monthStart - this.dataForm.yearStart = res.yearStart - }).catch(() => {}) - }, - getSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1 || index === 2 || index === 3 || index === 4 || index === 9) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - getStatisticsSummaries(param) { - const { columns, data } = param; - const sums = []; - columns.forEach((column, index) => { - if (index === 0) { - sums[index] = '合计'; - return; - } - if (index === 1) { - sums[index] = ''; - return; - } - const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr); - if (!isNaN(value)) { - return prev + curr; - } else { - return prev; - } - }, 0); - sums[index] = sums[index].toFixed(2); - } else { - sums[index] = ''; - } - }); - - return sums; - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '指标消耗统计') - }, - exportStatisticsExcel () { - let dom = this.$refs.statisticsTable - exportByDom(dom, undefined, '指标消耗合计统计') - } - } -} -</script> - -<style scoped> - -/deep/ .el-table__footer-wrapper tbody td, -.el-table__header-wrapper tbody td { - background-color: #e3f3ff !important; -} -/deep/ .el-table__footer-wrapper .is-leaf { - background-color: #e3f3ff !important; -} -/deep/ .el-table__fixed-footer-wrapper tbody td { - border-top: 1px solid #ebeef5; - background-color: #e3f3ff; - font-weight: bold; - color: #f50b0b; - text-align: center !important; -} -/deep/ .has-gutter tr td .cell { - text-align: center; - font-weight: bold; - color: blue; -} -</style> diff --git a/src/views/proddisp/monitor/components/video.vue b/src/views/proddisp/monitor/components/video.vue deleted file mode 100644 index c14d7ac..0000000 --- a/src/views/proddisp/monitor/components/video.vue +++ /dev/null @@ -1,66 +0,0 @@ -<template> - <div class="video-show"> - <div class="video-content"> - - </div> - <div class="video-title"> - <div class="title-text"> - {{getTitle}} - </div> - <div class="title-status"> - - </div> - </div> - </div> -</template> -<script> - export default { - name: 'Video', - props: { - title: String, - onLine: Boolean, - }, - computed: { - getTitle() { - return this.title - }, - getOnLine() { - return this.onLine - }, - } - } -</script> -<style> - .video-content { - height: 350px; - background-color: #666666; - border-radius: 2px; - } - - .video-title { - background-color: #FFFFFF; - height: 50px; - font-size: 14px; - padding: 10px; - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: flex-start; - align-content: flex-start; - } - - .title-text { - padding-top: 5px; - width: 70%; - } - - .title-status { - width: 30%; - } - - .video-show { - height: 400px; - background-color: #FFFFFF; - margin: 5px; - } -</style> diff --git a/src/views/proddisp/monitor/conveyer.vue b/src/views/proddisp/monitor/conveyer.vue deleted file mode 100644 index fdcf2b8..0000000 --- a/src/views/proddisp/monitor/conveyer.vue +++ /dev/null @@ -1,12 +0,0 @@ -<template> - <hik-view type="conveyer"></hik-view> -</template> -<script> - import HikView from './hikvision/view' - export default { - components: { - HikView - } - } - -</script> diff --git a/src/views/proddisp/monitor/hikvision/device-add-or-update.vue b/src/views/proddisp/monitor/hikvision/device-add-or-update.vue deleted file mode 100644 index c951b3a..0000000 --- a/src/views/proddisp/monitor/hikvision/device-add-or-update.vue +++ /dev/null @@ -1,231 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" :title="!dataForm.id ? $t('add') : $t('update')" :close-on-click-modal="false" - :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" - label-width="120px"> - <el-row :gutter="20"> - <el-col :span="8"> - <el-form-item prop="codeNum" :label="$t('hikDevice.codeNum')"> - <el-input v-model="dataForm.codeNum" :placeholder="$t('hikDevice.codeNum')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="deviceType" :label="$t('hikDevice.deviceType')"> - <el-input v-model="dataForm.deviceType" :placeholder="$t('hikDevice.deviceType')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="activationStatus" :label="$t('hikDevice.activationStatus')"> - <el-input v-model="dataForm.activationStatus" :placeholder="$t('hikDevice.activationStatus')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="location" :label="$t('hikDevice.location')"> - <el-input v-model="dataForm.location" :placeholder="$t('hikDevice.location')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="ability" :label="$t('hikDevice.ability')"> - <el-input v-model="dataForm.ability" :placeholder="$t('hikDevice.ability')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="ipAddress" :label="$t('hikDevice.ipAddress')"> - <el-input v-model="dataForm.ipAddress" :placeholder="$t('hikDevice.ipAddress')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="port" :label="$t('hikDevice.port')"> - <el-input v-model="dataForm.port" :placeholder="$t('hikDevice.port')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="enhancementPort" :label="$t('hikDevice.enhancementPort')"> - <el-input v-model="dataForm.enhancementPort" :placeholder="$t('hikDevice.enhancementPort')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="softwareVersion" :label="$t('hikDevice.softwareVersion')"> - <el-input v-model="dataForm.softwareVersion" :placeholder="$t('hikDevice.softwareVersion')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="port" :label="$t('hikDevice.ipv4Gateway')"> - <el-input v-model="dataForm.ipv4Gateway" :placeholder="$t('hikDevice.ipv4Gateway')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="httpPort" :label="$t('hikDevice.httpPort')"> - <el-input v-model="dataForm.httpPort" :placeholder="$t('hikDevice.httpPort')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="serialNumber" :label="$t('hikDevice.serialNumber')"> - <el-input v-model="dataForm.serialNumber" :placeholder="$t('hikDevice.serialNumber')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="subnetMask" :label="$t('hikDevice.subnetMask')"> - <el-input v-model="dataForm.subnetMask" :placeholder="$t('hikDevice.subnetMask')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="physicalAddress" :label="$t('hikDevice.physicalAddress')"> - <el-input v-model="dataForm.physicalAddress" :placeholder="$t('hikDevice.physicalAddress')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="channelNumber" :label="$t('hikDevice.channelNumber')"> - <el-input v-model="dataForm.channelNumber" :placeholder="$t('hikDevice.channelNumber')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="dspVersion" :label="$t('hikDevice.dspVersion')"> - <el-input v-model="dataForm.dspVersion" :placeholder="$t('hikDevice.dspVersion')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="menuRoute" :label="$t('hikDevice.menuRoute')"> - <el-input v-model="dataForm.menuRoute" :placeholder="$t('hikDevice.menuRoute')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="sort" :label="$t('hikDevice.sort')"> - <el-input v-model="dataForm.sort" :placeholder="$t('hikDevice.sort')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="deviceUsername" :label="$t('hikDevice.deviceUsername')"> - <el-input v-model="dataForm.deviceUsername" :placeholder="$t('hikDevice.deviceUsername')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="devicePassword" :label="$t('hikDevice.devicePassword')"> - <el-input v-model="dataForm.devicePassword" :placeholder="$t('hikDevice.devicePassword')"></el-input> - </el-form-item> - </el-col> - <el-col :span="8"> - <el-form-item prop="isShow" :label="$t('hikDevice.isShow')"> - <el-input v-model="dataForm.isShow" :placeholder="$t('hikDevice.isShow')"></el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> - </template> - </el-dialog> -</template> - -<script> - import debounce from 'lodash/debounce' - import {cron} from 'vue-cron' - - export default { - data() { - return { - visible: false, - dataForm: { - id: '', - codeNum: '', - deviceType: '', - activationStatus: '', - location: '', - ability: '', - ipAddress: '', - port: '', - enhancementPort: '', - softwareVersion: '', - ipv4Gateway: '', - httpPort: '', - serialNumber: '', - subnetMask: '', - physicalAddress: '', - channelNumber: '', - dspVersion: '', - menuRoute: '', - deviceUsername: '', - devicePassword: '', - sort: '', - isShow: '' - }, - cronPopover: false - } - }, - components: { - cron - }, - computed: { - dataRule() { - return { - codeNum: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - deviceType: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - activationStatus: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - location: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - ipAddress: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - port: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - changeCron(val) { - this.dataForm.cronExpression = val - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/hikvision/device/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = res.data - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.$http[!this.dataForm.id ? 'post' : 'put']('/iailab-iems-coal-proddisp/hikvision/device', this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } - } -</script> diff --git a/src/views/proddisp/monitor/hikvision/device.vue b/src/views/proddisp/monitor/hikvision/device.vue deleted file mode 100644 index e770751..0000000 --- a/src/views/proddisp/monitor/hikvision/device.vue +++ /dev/null @@ -1,128 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-hik-device"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <el-input v-model="dataForm.location" :placeholder="$t('hikDevice.location')" clearable></el-input> - </el-form-item> - <el-form-item> - <el-input v-model="dataForm.ipAddress" :placeholder="$t('hikDevice.ipAddress')" clearable></el-input> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button v-if="$hasPermission('hikvision:device:save')" type="primary" @click="openForm()">{{ - $t('add') }} - </el-button> - </el-form-item> - <el-form-item> - <el-button> - <a href="/hikvision/WebSDK_V3.3.0(231027)/demo/codebase/HCWebSDKPlugin.exe" download="HCWebSDKPlugin.exe"> - 下载插件 - </a> - </el-button> - </el-form-item> - </el-form> - <el-table - id="listTable" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;"> - <el-table-column type="index" header-align="center" align="center" width="50" label="序号"></el-table-column> - <el-table-column prop="codeNum" header-align="center" align="center" :label="$t('hikDevice.codeNum')" - min-width="100"></el-table-column> - <el-table-column prop="deviceType" header-align="center" align="left" :label="$t('hikDevice.deviceType')" - min-width="200"></el-table-column> - <el-table-column prop="activationStatus" header-align="center" align="center" - :label="$t('hikDevice.activationStatus')" min-width="100"></el-table-column> - <el-table-column prop="location" header-align="center" align="left" :label="$t('hikDevice.location')" - min-width="200"></el-table-column> - <el-table-column prop="ability" header-align="center" align="left" :label="$t('hikDevice.ability')" - min-width="200"></el-table-column> - <el-table-column prop="ipAddress" header-align="center" align="center" :label="$t('hikDevice.ipAddress')" - min-width="150"></el-table-column> - <el-table-column prop="port" header-align="center" align="center" :label="$t('hikDevice.port')" - min-width="100"></el-table-column> - <el-table-column prop="enhancementPort" header-align="center" align="center" - :label="$t('hikDevice.enhancementPort')" min-width="100"></el-table-column> - <el-table-column prop="softwareVersion" header-align="center" align="center" - :label="$t('hikDevice.softwareVersion')" min-width="100"></el-table-column> - <el-table-column prop="ipv4Gateway" header-align="center" align="center" :label="$t('hikDevice.ipv4Gateway')" - min-width="100"></el-table-column> - <el-table-column prop="httpPort" header-align="center" align="center" :label="$t('hikDevice.httpPort')" - min-width="100"></el-table-column> - <el-table-column prop="serialNumber" header-align="center" align="center" :label="$t('hikDevice.serialNumber')" - min-width="200"></el-table-column> - <el-table-column prop="subnetMask" header-align="center" align="center" :label="$t('hikDevice.subnetMask')" - min-width="100"></el-table-column> - <el-table-column prop="physicalAddress" header-align="center" align="center" - :label="$t('hikDevice.physicalAddress')" min-width="100"></el-table-column> - <el-table-column prop="channelNumber" header-align="center" align="center" - :label="$t('hikDevice.channelNumber')" min-width="100"></el-table-column> - <el-table-column prop="dspVersion" header-align="center" align="center" :label="$t('hikDevice.dspVersion')" - min-width="100"></el-table-column> - <el-table-column prop="menuRoute" header-align="center" align="center" :label="$t('hikDevice.menuRoute')" - min-width="100"></el-table-column> - <el-table-column prop="sort" header-align="center" align="center" :label="$t('hikDevice.sort')" - min-width="100"></el-table-column> - <el-table-column prop="isShow" header-align="center" align="center" :label="$t('hikDevice.isShow')" - min-width="100"> - <template slot-scope="scope"> - <el-tag v-if="scope.row.isShow === '1'" size="small">是</el-tag> - <el-tag v-else size="small" type="danger">否</el-tag> - </template> - </el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="100"> - <template slot-scope="scope"> - <el-button v-if="$hasPermission('hikvision:device:update')" type="text" size="small" - @click="openForm(scope.row.id)">修改 - </el-button> - <el-button v-if="$hasPermission('hikvision:device:delete')" type="text" size="small" - @click="handleDelete(scope.row.id)">删除 - </el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </div> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </el-card> -</template> - -<script> - import mixinViewModule from '@/mixins/view-module' - import AddOrUpdate from './device-add-or-update' - - export default { - mixins: [mixinViewModule], - data() { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/hikvision/device/page', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/hikvision/device', - deleteIsBatch: true, - }, - dataForm: { - location: '', - ipAddress: '', - } - } - }, - components: { - AddOrUpdate - }, - methods: {} - } -</script> diff --git a/src/views/proddisp/monitor/hikvision/view.vue b/src/views/proddisp/monitor/hikvision/view.vue deleted file mode 100644 index b5faa8e..0000000 --- a/src/views/proddisp/monitor/hikvision/view.vue +++ /dev/null @@ -1,728 +0,0 @@ -<template> - <div> - <div id="divPlugin" class="plugin"></div> - </div> -</template> -<script> - export default { - props: { - type: '' - }, - data() { - return { - g_iWndIndex: 0, - g_oLocalConfig: null, - ERROR_CODE_LOGIN_REPEATLOGIN: 2001, - version: 'V3.3.0build20230322', - g_szRecordType: "", - - deviceList: [], - szDeviceIdentifyList: [], - deviceChannel: {}, - devicePort: {}, - } - }, - mounted() { - this.init() - }, - methods: { - init() { - let that = this - // 初始化插件参数及插入插件 - WebVideoCtrl.I_InitPlugin({ - bWndFull: true, //是否支持单窗口双击全屏,默认支持 true:支持 false:不支持 - iWndowType: 1, - cbSelWnd: function (xmlDoc) { - this.g_iWndIndex = parseInt($(xmlDoc).find("SelectWnd").eq(0).text(), 10); - let szInfo = "当前选择的窗口编号:" + this.g_iWndIndex; - console.log(szInfo); - }, - cbDoubleClickWnd: function (iWndIndex, bFullScreen) { - var szInfo = "当前放大的窗口编号:" + iWndIndex; - if (!bFullScreen) { - szInfo = "当前还原的窗口编号:" + iWndIndex; - } - // showCBInfo(szInfo); - }, - cbEvent: function (iEventType, iParam1, iParam2) { - if (2 === iEventType) {// 回放正常结束 - console.log("窗口" + iParam1 + "回放结束!"); - } else if (-1 === iEventType) { - console.log("设备" + iParam1 + "网络错误!") - } else if (3001 === iEventType) { - // clickStopRecord(that.g_szRecordType, iParam1); - } - }, - cbInitPluginComplete: function () { - WebVideoCtrl.I_InsertOBJECTPlugin("divPlugin").then(() => { - // 检查插件是否最新 - WebVideoCtrl.I_CheckPluginVersion().then((bFlag) => { - if (bFlag) { - console.log("检测到新的插件版本,双击开发包目录里的HCWebSDKPlugin.exe升级!"); - } - }); - }, () => { - console.log("插件初始化失败,请确认是否已安装插件;如果未安装,请双击开发包目录里的HCWebSDKPlugin.exe安装!"); - }); - } - }); - - // 分割窗口 - setTimeout(function () { - that.changeWndNum("3") - }, 1000) - - // 获取设备列表 - this.$http.get(`/iailab-iems-coal-proddisp/hikvision/device/list`, { - params: { - menuRoute: this.$route.name - } - }).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - that.deviceList = res.data - // 登录 - that.szDeviceIdentifyList = [] - setTimeout(function () { - console.log('开始登录') - for (let i = 0; i < that.deviceList.length; i ++) { - if (i > 9) { - return; - } - let hikDevice = that.deviceList[i] - that.clickLogin(hikDevice.ipAddress, hikDevice.httpPort, hikDevice.deviceUsername, hikDevice.devicePassword, i) - } - }, 1100) - }).catch(() => {}) - }, - - // 登录 - clickLogin(szIP, szPort, szUsername, szPassword, index) { - let that = this - if ("" === szIP || "" === szPort) { - return; - } - let szDeviceIdentify = szIP + "_" + szPort; - WebVideoCtrl.I_Login(szIP, 1, szPort, szUsername, szPassword, { - timeout: 3000, - success: function (xmlDoc) { - that.szDeviceIdentifyList.push(szDeviceIdentify) - setTimeout(function () { - setTimeout(function () { - that.getChannelInfo(szDeviceIdentify); - }, 1000); - - that.getDevicePort(szDeviceIdentify); - - // 预览 - setTimeout(function () { - let iRtspPort = that.devicePort[szDeviceIdentify]['iRtspPort']; - let iChannelID = that.deviceChannel[szDeviceIdentify][0]['value']; - let bZeroChannel = that.deviceChannel[szDeviceIdentify][0]['bZero']; - that.clickStartRealPlay(index, "1", szDeviceIdentify, iRtspPort, iChannelID, bZeroChannel) - }, 3000); - }, 10); - }, - error: function (oError) { - if (that.ERROR_CODE_LOGIN_REPEATLOGIN === status) { - console.log(" 已登录过!") - } else { - console.log(" 登录失败!") - } - } - }); - }, - - // 开始预览 - clickStartRealPlay(iWndIndex, iStreamType, szDeviceIdentify, iRtspPort, iChannelID, bZeroChannel) { - let oWndInfo = WebVideoCtrl.I_GetWindowStatus(iWndIndex); - if (null == szDeviceIdentify) { - return; - } - let startRealPlay = function () { - WebVideoCtrl.I_StartRealPlay(szDeviceIdentify, { - iWndIndex: iWndIndex, - iStreamType: iStreamType, - iChannelID: iChannelID, - bZeroChannel: bZeroChannel, - success: function () { - console.log("开始预览成功!"); - // showOPInfo(szDeviceIdentify + " " + szInfo); - - }, - error: function (oError) { - console.log(" 开始预览失败!errorCode=" + oError.errorCode + ",errorMsg=" + oError.errorMsg); - // showOPInfo(szDeviceIdentify + " 开始预览失败!", oError.errorCode, oError.errorMsg); - } - }); - }; - - if (oWndInfo != null) {// 已经在播放了,先停止 - WebVideoCtrl.I_Stop({ - success: function () { - startRealPlay(); - } - }); - } else { - startRealPlay(); - } - }, - - // 获取通道 - getChannelInfo(szDeviceIdentify) { - let that = this; - let oSel = []; - // 模拟通道 - WebVideoCtrl.I_GetAnalogChannelInfo(szDeviceIdentify, { - success: function (xmlDoc) { - let oChannels = $(xmlDoc).find("VideoInputChannel"); - $.each(oChannels, function (i) { - let id = $(this).find("id").eq(0).text(); - let name = $(this).find("name").eq(0).text(); - if ("" === name) { - name = "Camera " + (i < 9 ? "0" + (i + 1) : (i + 1)); - } - oSel.push({ - value: id, - bZero: false, - name: name - }) - }); - console.log(" 获取模拟通道成功!") - }, - error: function (oError) { - console.log(" 获取模拟通道失败!") - } - }); - // 数字通道 - WebVideoCtrl.I_GetDigitalChannelInfo(szDeviceIdentify, { - success: function (xmlDoc) { - let oChannels = $(xmlDoc).find("InputProxyChannelStatus"); - $.each(oChannels, function (i) { - let id = $(this).find("id").eq(0).text(); - let name = $(this).find("name").eq(0).text(); - let online = $(this).find("online").eq(0).text(); - if ("false" === online) {// 过滤禁用的数字通道 - return true; - } - if ("" === name) { - name = "IPCamera " + (i < 9 ? "0" + (i + 1) : (i + 1)); - } - oSel.push({ - value: id, - bZero: false, - name: name - }) - }); - console.log(" 获取数字通道成功!"); - }, - error: function (oError) { - console.log(" 获取数字通道失败!"); - } - }); - // 零通道 - WebVideoCtrl.I_GetZeroChannelInfo(szDeviceIdentify, { - success: function (xmlDoc) { - var oChannels = $(xmlDoc).find("ZeroVideoChannel"); - $.each(oChannels, function (i) { - var id = $(this).find("id").eq(0).text(), - name = $(this).find("name").eq(0).text(); - if ("" === name) { - name = "Zero Channel " + (i < 9 ? "0" + (i + 1) : (i + 1)); - } - if ("true" === $(this).find("enabled").eq(0).text()) {// 过滤禁用的零通道 - oSel.push({ - value: id, - bZero: true, - name: name - }) - } - }); - console.log(" 获取零通道成功!"); - }, - error: function (oError) { - console.log(" 获取零通道失败!"); - } - }); - console.log(JSON.stringify()) - that.deviceChannel[szDeviceIdentify] = oSel - }, - - // 获取端口 - getDevicePort(szDeviceIdentify) { - let that = this - if (null == szDeviceIdentify) { - return; - } - WebVideoCtrl.I_GetDevicePort(szDeviceIdentify).then((oPort) => { - that.devicePort[szDeviceIdentify] = { - iDevicePort: oPort.iDevicePort, - iRtspPort: oPort.iRtspPort - } - console.log(" 获取端口成功!") - }, (oError) => { - console.log("获取端口失败!") - }); - }, - - // 窗口分割数 - changeWndNum(iType) { - iType = parseInt(iType, 10); - WebVideoCtrl.I_ChangeWndNum(iType).then(() => { - console.log("窗口分割成功!") - }, (oError) => { - console.log("窗口分割失败!"); - }); - }, - - // 退出 - logout(szDeviceIdentify) { - WebVideoCtrl.I_Logout(szDeviceIdentify).then(() => { - console.log("退出成功!") - }, () => { - console.log("退出失败!") - }); - } - }, - - watch: { - // 监听,当路由发生变化的时候执行 - $route: { - handler: function (val, oldVal) { - let that = this - window.location.reload() - // if (val.path === 'coal-proddisp-monitor-hikvision-device'|| val.path.indexOf('coal-proddisp-monitor') === -1) { - // WebVideoCtrl.I_DestroyPlugin() - // } else { - // this.init() - // } - // setTimeout(function () { - // if (val.path !== 'coal-proddisp-monitor-hikvision-device' && val.path.indexOf('coal-proddisp-monitor') !== -1) { - // that.init() - // } - // }, 500) - - }, - // 深度观察监听 - deep: true - } - }, - } -</script> -<style scoped> - .video-content { - height: 350px; - background-color: #cccccc; - border-radius: 2px; - } - - .video-title { - background-color: #FFFFFF; - height: 50px; - font-size: 14px; - padding: 10px; - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: flex-start; - align-content: flex-start; - } - - .title-text { - padding-top: 5px; - width: 70%; - } - - .title-status { - width: 30%; - } - - .video-show { - height: 400px; - background-color: #FFFFFF; - margin: 5px; - } - - .left { - float: left; - } - - .freeze { - position: absolute; - text-align: center; - background: #343434; - color: #FFFFFF; - font-size: 26px; - font-weight: bold; - filter: alpha(opacity=60); - opacity: 0.6; - } - - .vtop { - vertical-align: middle; - margin-top: -1px; - } - - /*插件*/ - .plugin { - width: 100%; - height: 45vw; - /*width: 500px; - height: 300px;*/ - } - - fieldset { - display: block; - } - - /*本地配置*/ - .localconfig { - width: 480px; - padding: 10px; - border: 1px solid #7F9DB9; - } - - .localconfig .tt { - width: 125px; - } - - .localconfig .txt { - width: 310px; - } - - .localconfig .txt2 { - width: 300px; - } - - .localconfig .btn { - width: 45px; - height: 22px; - line-height: 18px; - } - - .localconfig .sel { - width: 120px; - } - - /*登录*/ - .login { - width: 480px; - padding: 10px; - border: 1px solid #7F9DB9; - } - - .login .tt { - width: 100px; - } - - .login .txt { - width: 130px; - } - - .login .btn { - width: 45px; - height: 22px; - line-height: 18px; - } - - .login .btn2 { - width: 100px; - height: 22px; - line-height: 18px; - } - - .login .sel { - width: 130px; - } - - .login .sel2 { - width: 65px; - } - - /*数字通道*/ - .ipchannel { - width: 480px; - padding: 10px; - border: 1px solid #7F9DB9; - } - - .ipchannel .btn { - width: 130px; - height: 22px; - line-height: 18px; - } - - .ipchannel .digitaltdiv { - height: 100px; - overflow: hidden; - overflow-y: auto; - border: 1px solid #7F9DB9; - font-size: 11px; - } - - .ipchannel .digitalchannellist th, .ipchannel .digitalchannellist td { - padding: 2px; - border: 1px solid #7F9DB9; - border-collapse: collapse; - white-space: nowrap; - } - - /*预览*/ - .preview { - width: 450px; - padding: 10px; - padding-top: 0; - margin-left: 10px; - border: 1px solid #7F9DB9; - } - - .preview .tt { - width: 60px; - } - - .preview .txt { - width: 30px; - } - - .preview .btn { - width: 70px; - height: 22px; - line-height: 18px; - } - - .preview .btn2 { - width: 90px; - height: 22px; - line-height: 18px; - } - - .preview .sel { - width: 105px; - } - - /*云台*/ - .ptz { - width: 450px; - padding: 10px; - margin-left: 10px; - border: 1px solid #7F9DB9; - } - - .ptz .tt { - width: 60px; - } - - .ptz .txt { - width: 60px; - } - - .ptz .btn { - width: 45px; - height: 22px; - line-height: 18px; - } - - .ptz .btn2 { - width: 60px; - height: 22px; - line-height: 18px; - } - - .ptz .sel { - width: 65px; - } - - /*视频参数*/ - .videoparam { - width: 450px; - padding: 10px; - margin-left: 10px; - border: 1px solid #7F9DB9; - } - - .videoparam .tt { - width: 60px; - } - - .videoparam .txt { - width: 60px; - } - - .videoparam .btn { - width: 45px; - height: 22px; - line-height: 18px; - } - - .videoparam .sel { - width: 65px; - } - - /*回放*/ - .playback { - width: 450px; - padding: 10px; - margin-left: 10px; - border: 1px solid #7F9DB9; - } - - .playback .tt { - width: 60px; - } - - .playback .txt { - width: 140px; - } - - .playback .btn { - min-width: 45px; - height: 22px; - line-height: 18px; - } - - .playback .btn2 { - width: 70px; - height: 22px; - line-height: 18px; - } - - .playback .sel { - width: 142px; - } - - .playback .searchdiv { - height: 100px; - overflow: hidden; - overflow-y: auto; - border: 1px solid #7F9DB9; - font-size: 11px; - } - - .playback .searchlist th, .playback .searchlist td { - padding: 2px; - border: 1px solid #7F9DB9; - border-collapse: collapse; - white-space: nowrap; - } - - /*系统维护*/ - .maintain { - width: 450px; - padding: 10px; - margin-left: 10px; - border: 1px solid #7F9DB9; - } - - .maintain .tt { - width: 60px; - } - - .maintain .txt { - width: 280px; - } - - .maintain .btn { - width: 45px; - height: 22px; - line-height: 18px; - } - - .maintain .btn2 { - width: 100px; - height: 22px; - line-height: 18px; - } - - .maintain .sel { - width: 65px; - } - - /*操作信息*/ - .operate { - width: 450px; - padding: 10px; - margin-left: 10px; - border: 1px solid #7F9DB9; - } - - .operate .opinfo { - height: 150px; - border: 1px solid #7F9DB9; - overflow: auto; - } - - /*事件回调*/ - .callback { - width: 450px; - padding: 10px; - margin-left: 10px; - border: 1px solid #7F9DB9; - } - - .callback .cbinfo { - height: 114px; - border: 1px solid #7F9DB9; - overflow: auto; - } - - /*IP解析*/ - .ipparse { - width: 450px; - padding: 10px; - margin-left: 10px; - border: 1px solid #7F9DB9; - } - - .ipparse .tt { - width: 85px; - } - - .ipparse .txt { - width: 130px; - } - - .ipparse .btn { - width: 90px; - height: 22px; - line-height: 18px; - } - - .ipparse .sel { - width: 130px; - } - - /*绘图*/ - .draw { - width: 450px; - padding: 10px; - padding-top: 0; - margin-left: 10px; - border: 1px solid #7F9DB9; - } - - .draw .tt { - width: 60px; - } - - .draw .txt { - width: 140px; - } - - .draw .btn { - width: 70px; - height: 22px; - line-height: 18px; - } - - .draw .btn2 { - width: 100px; - height: 22px; - line-height: 18px; - } - - .draw .sel { - width: 105px; - } - -</style> diff --git a/src/views/proddisp/monitor/overall.vue b/src/views/proddisp/monitor/overall.vue deleted file mode 100644 index 13561aa..0000000 --- a/src/views/proddisp/monitor/overall.vue +++ /dev/null @@ -1,12 +0,0 @@ -<template> - <hik-view type="overall"></hik-view> -</template> -<script> - import HikView from './hikvision/view' - export default { - components: { - HikView - } - } - -</script> diff --git a/src/views/proddisp/param/current/add-or-update.vue b/src/views/proddisp/param/current/add-or-update.vue deleted file mode 100644 index db2e623..0000000 --- a/src/views/proddisp/param/current/add-or-update.vue +++ /dev/null @@ -1,96 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" :title="!dataForm.id ? $t('add') : $t('update')" :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px"> - <el-form-item prop="remark" label="来源"> - <el-input v-model="dataForm.remark" readonly></el-input> - </el-form-item> - <el-form-item prop="paramValue" label="煤种"> - <dict-select-tag style="width: 100%" - v-model="dataForm.paramValue" - placeholder="煤种" - dictCode="ymmz" - :clearable="true"/> - </el-form-item> - </el-form> - <template slot="footer"> - <el-button @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from "@/components/dict/dict-select-tag"; -export default { - components: {DictSelectTag}, - data () { - return { - visible: false, - dataForm: { - id: '', - paramCode: '', - paramValue: '', - remark: '' - } - } - }, - computed: { - dataRule () { - return { - paramCode: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - paramValue: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ] - } - } - }, - methods: { - init () { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo () { - this.$http.get(`/iailab-iems-system/sys/params/${this.dataForm.id}`).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.data - } - }).catch(() => {}) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.$http[!this.dataForm.id ? 'post' : 'put']('/iailab-iems-system/sys/params', this.dataForm).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => {}) - }) - }, 1000, { 'leading': true, 'trailing': false }) - } -} -</script> diff --git a/src/views/proddisp/param/current/index.vue b/src/views/proddisp/param/current/index.vue deleted file mode 100644 index f5e1fd2..0000000 --- a/src/views/proddisp/param/current/index.vue +++ /dev/null @@ -1,59 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-sys__params"> - <el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;"> - <el-table-column prop="remark" label="来源" header-align="center" align="center"></el-table-column> - <el-table-column prop="paramValue" label="煤种" header-align="center" align="center"> - <template slot-scope="scope">{{getDictItemValue(scope.row.paramValue)}}</template> - </el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './add-or-update' -import {getDictItem} from "@/utils/dictUtils"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-system/sys/params/page', - getDataListIsPage: true, - deleteURL: '/iailab-iems-system/sys/params', - deleteIsBatch: true - }, - dataForm: { - paramCodeList: 'LM_ZSCJ,LM_YMP' - } - } - }, - components: { - AddOrUpdate - }, - methods: { - getDictItemValue(value) { - let data = getDictItem('ymmz', value) - return data ? data.itemText : ''; - }, - } -} -</script> diff --git a/src/views/proddisp/param/mc/index.vue b/src/views/proddisp/param/mc/index.vue deleted file mode 100644 index b0fb851..0000000 --- a/src/views/proddisp/param/mc/index.vue +++ /dev/null @@ -1,77 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <el-input v-model="dataForm.dictName" :placeholder="$t('prodParamMc.dictName')" clearable></el-input> - </el-form-item> - <el-form-item> - <el-input v-model="dataForm.dictCode" :placeholder="$t('prodParamMc.dictCode')" clearable></el-input> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - </el-form> - <el-table - v-loading="dataListLoading" - :data="dataList" - border - @selection-change="dataListSelectionChangeHandle" - @sort-change="dataListSortChangeHandle" - style="width: 100%;"> - <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> - <el-table-column prop="dictName" :label="$t('prodParamMc.dictName')" header-align="center" align="center"></el-table-column> - <el-table-column prop="dictCode" :label="$t('prodParamMc.dictCode')" header-align="center" align="center"></el-table-column> - <el-table-column prop="description" :label="$t('prodParamMc.description')" header-align="center" align="center"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="160"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="menuConfig(scope.row)">煤仓列表</el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - <!-- 弹窗, 配置菜单 --> - <dict-item v-if="dictItemVisible" ref="dictItem" @refreshDataList="getDataList"></dict-item> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import DictItem from './item' -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-system/sys/dict/page', - getDataListIsPage: true - }, - dataForm: { - dictCodeList: 'ymc,cpc' - }, - dictItemVisible: false - } - }, - components: { - DictItem - }, - methods: { - // 菜单配置 - menuConfig (row) { - this.dictItemVisible = true - this.$nextTick(() => { - this.$refs.dictItem.init(row.id, row.dictCode) - }) - } - } -} -</script> diff --git a/src/views/proddisp/param/mc/item-add-or-update.vue b/src/views/proddisp/param/mc/item-add-or-update.vue deleted file mode 100644 index 8de39c9..0000000 --- a/src/views/proddisp/param/mc/item-add-or-update.vue +++ /dev/null @@ -1,134 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" - label-width="120px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="mcName" label="煤仓名称"> - <el-input v-model="dataForm.mcName" placeholder="煤仓名称"></el-input> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="mc" label="煤仓编号"> - <el-input v-model="dataForm.mc" placeholder="煤仓编号"></el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="unit" label="单位"> - <el-input v-model="dataForm.unit" placeholder="单位"></el-input> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="capacity" label="容量"> - <el-input v-model="dataForm.capacity" placeholder="容量"></el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> - import debounce from 'lodash/debounce' - import DictSelectTag from "@/components/dict/dict-select-tag"; - - export default { - components: {DictSelectTag}, - data() { - return { - visible: false, - loading: false, - dictCodeMz: '', - dataForm: { - mclx:'', - mc:'', - mcName: '', - unit: '', - capacity: '' - } - } - }, - computed: { - dataRule() { - return { - mcName: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - mc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - unit: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - capacity: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init(id,dictCode) { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - this.dataForm.mclx = dictCode - this.dataForm.id = id - if ('ymc' === dictCode) { - this.dictCodeMz = 'ymmz' - } else if ('cpc' === dictCode) { - this.dictCodeMz = 'cpmz' - } - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/warehouse/item/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http.post(`/iailab-iems-coal-proddisp/warehouse/item/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } - } -</script> diff --git a/src/views/proddisp/param/mc/item.vue b/src/views/proddisp/param/mc/item.vue deleted file mode 100644 index 5849a98..0000000 --- a/src/views/proddisp/param/mc/item.vue +++ /dev/null @@ -1,126 +0,0 @@ -<template> - <el-drawer - direction="rtl" - :visible.sync="visible" - @close="handleClose" - size="50%"> - <div class="mod-app-menu" style="padding: 5px;"> - <el-form :inline="true" :model="dataForm" ref="dataForm" @keyup.enter.native="getDataList()" label-width="10px"> - <el-form-item prop="mcName"> - <el-input size="mini" v-model="dataForm.mcName" placeholder="煤仓名称" - clearable></el-input> - </el-form-item> - <el-form-item> - <el-button size="mini" @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button size="mini" v-if="$hasPermission('sys:dict:save')" type="primary" @click="openForm()">{{ - $t('add') }} - </el-button> - </el-form-item> - </el-form> - <el-table v-loading="dataListLoading" :data="dataList" row-key="id" border style="width: 100%;"> - <el-table-column prop="mcName" label="煤仓名" header-align="center" - align="center" min-width="100"></el-table-column> - <el-table-column prop="mc" label="煤仓编号" header-align="center" - align="center" min-width="100"></el-table-column> - <el-table-column prop="unit" label="单位" header-align="center" min-width="50" - align="den"></el-table-column> - <el-table-column prop="capacity" label="仓容量" header-align="center" min-width="50" - align="center"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" min-width="100"> - <template slot-scope="scope"> - <el-button v-if="$hasPermission('sys:menu:update')" type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button v-if="$hasPermission('sys:menu:delete')" type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - <el-button type="text" size="small" @click="mzHandle(scope.row.mc)">煤种</el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - <mz-management v-if="mzVisible" ref="mz" @refreshDataList="getDataList"></mz-management> - </div> - </el-drawer> -</template> -<script> - import mixinViewModule from '@/mixins/view-module' - import AddOrUpdate from './item-add-or-update' - import MzManagement from './mz' - import {getDictItem} from "@/utils/dictUtils"; - - export default { - mixins: [mixinViewModule], - data() { - return { - mixinViewModuleOptions: { - createdIsNeed: false, - getDataListURL: '/iailab-iems-coal-proddisp/warehouse/item/page', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/warehouse/item', - deleteIsBatch: true - }, - mzVisible: false, - visible: false, - dataForm: { - id:'', - dictId: '', - mclx: '', - mcName: '' - }, - dictCodeMz: '', - } - }, - components: { - AddOrUpdate, - MzManagement - }, - methods: { - init(id, mclx) { - this.dataForm.dictId = id - this.dataForm.mclx = mclx - this.visible = true - this.$nextTick(() => { - this.getDataList() - }) - if ('ymc' === mclx) { - this.dictCodeMz = 'ymmz' - } else if ('cpc' === mclx) { - this.dictCodeMz = 'cpmz' - } - }, - - getDictItemValue(value) { - let data = getDictItem(this.dictCodeMz, value) - return data ? data.itemText : ''; - }, - - openForm(id) { - this.addOrUpdateVisible = true - this.$nextTick(() => { - this.$refs.addOrUpdate.init(id,this.dataForm.mclx) - }) - }, - - mzHandle(mc) { - this.mzVisible = true - this.$nextTick(() => { - this.$refs.mz.init(mc,this.dataForm.mclx) - }) - }, - - handleClose() { - this.$refs['dataForm'].resetFields() - this.dataList = [] - } - } - } -</script> diff --git a/src/views/proddisp/param/mc/mz.vue b/src/views/proddisp/param/mc/mz.vue deleted file mode 100644 index 08be396..0000000 --- a/src/views/proddisp/param/mc/mz.vue +++ /dev/null @@ -1,193 +0,0 @@ -<template> - <el-dialog - title="煤种" - :close-on-click-modal="false" - append-to-body - width="60%" - :visible.sync="visible" - > - <el-form - :model="dataForm" - ref="dataForm" - @keyup.enter.native="dataFormSubmitHandle()" - > - <el-row> - <el-col> - <el-form-item> - <el-table - :data="dataList" - border - style="width: 100%"> - <el-table-column - type="index" - align="center" - min-width="50" - label="序号"> - </el-table-column> - <el-table-column - prop="" - label="煤种" - min-width="120" - align="center"> - <template slot-scope="scope"> - <dict-select-tag style="width: 100%" - v-model="scope.row.mz" - placeholder="煤种" - :dictCode="dictCodeMz" - :clearable="true"/> - </template> - </el-table-column> - <el-table-column - prop="" - label="比例" - align="center" - min-width="100"> - <template slot-scope="scope"> - <el-input-number - v-model="scope.row.proportion" - :min="1" - label="比例" - ></el-input-number> - </template> - </el-table-column> - <el-table-column - prop="" - label="操作" - min-width="100" - align="center"> - <template slot-scope="scope"> - <el-button - @click.native.prevent="addExpressionRow(scope.$index, dataList)" - type="text" - size="small"> - 添加 - </el-button> - <el-button - @click.native.prevent="deleteExpressionRow(scope.$index, dataList)" - type="text" - size="small"> - 删除 - </el-button> - </template> - </el-table-column> - </el-table> - </el-form-item> - </el-col> - </el-row> - </el-form> - - <span slot="footer" class="dialog-footer"> - <el-button :loading="loading" @click="visible = false">取消</el-button> - <el-button :loading="loading" type="primary" @click="dataFormSubmit()">确定</el-button> - </span> - </el-dialog> -</template> - -<script> -import debounce from "lodash/debounce"; -import DictSelectTag from "@/components/dict/dict-select-tag"; - -export default { - components: { DictSelectTag }, - data() { - return { - visible: false, - loading: false, - dataForm: { - mc:'' - }, - dictCodeMz:'', - dataList:[{ - mz: " ", - proportion: " ", - }] - }; - }, - methods: { - init(mc,mclx) { - this.visible = true; - this.$nextTick(() => { - this.$refs["dataForm"].resetFields(); - this.dataForm.mc = mc; - this.dataList=[{ - mc: this.dataForm.mc, - mz: "", - proportion: "", - }]; - if ("ymc" === mclx) { - this.dictCodeMz = "ymmz"; - } else if ("cpc" === mclx) { - this.dictCodeMz = "cpmz"; - } - this.getList(); - }); - }, - // 获取信息 - getList() { - this.$http - .get( - `/iailab-iems-coal-proddisp/warehouse/mcmz/list/${this.dataForm.mc}` - ) - .then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg); - } - if(res.data!=null){ - this.dataList = res.data - } - }) - .catch(() => {}); - }, - // 表单提交 - dataFormSubmit: debounce( - function () { - this.$refs["dataForm"].validate((valid) => { - if (!valid) { - return false; - } - this.loading = true; - this.$http.post( - "/iailab-iems-coal-proddisp/warehouse/mcmz/add", - this.dataList - ) - .then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg); - } - this.$message({ - message: this.$t("prompt.success"), - type: "success", - duration: 500, - onClose: () => { - this.visible = false; - this.$emit("refreshDataList"); - }, - }); - this.loading = false; - }) - .catch(() => {}); - }); - }, - 1000, - { leading: true, trailing: false } - ), - //删除行 - deleteExpressionRow (index, rows) { - if (!rows || rows.length === 1) { - this.$message({ - message: '不能全部删除!', - type: 'error', - duration: 1500 - }) - return - } - rows.splice(index, 1) - }, - //添加行 - addExpressionRow (index, rows) { - let row = JSON.parse(JSON.stringify(rows[index])) - rows.splice(index, 0, row) - } - }, -}; -</script> diff --git a/src/views/proddisp/param/mz/index.vue b/src/views/proddisp/param/mz/index.vue deleted file mode 100644 index 9eced16..0000000 --- a/src/views/proddisp/param/mz/index.vue +++ /dev/null @@ -1,77 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <el-input v-model="dataForm.dictName" :placeholder="$t('prodParamMz.dictName')" clearable></el-input> - </el-form-item> - <el-form-item> - <el-input v-model="dataForm.dictCode" :placeholder="$t('prodParamMz.dictCode')" clearable></el-input> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - </el-form> - <el-table - v-loading="dataListLoading" - :data="dataList" - border - @selection-change="dataListSelectionChangeHandle" - @sort-change="dataListSortChangeHandle" - style="width: 100%;"> - <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> - <el-table-column prop="dictName" :label="$t('prodParamMz.dictName')" header-align="center" align="center"></el-table-column> - <el-table-column prop="dictCode" :label="$t('prodParamMz.dictCode')" header-align="center" align="center"></el-table-column> - <el-table-column prop="description" :label="$t('prodParamMz.description')" header-align="center" align="center"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="160"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="menuConfig(scope.row)">煤种列表</el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - <!-- 弹窗, 配置菜单 --> - <dict-item v-if="dictItemVisible" ref="dictItem" @refreshDataList="getDataList"></dict-item> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import DictItem from './item' -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-system/sys/dict/page', - getDataListIsPage: true - }, - dataForm: { - dictCodeList: 'ymmz,cpmz,cpkc' - }, - dictItemVisible: false - } - }, - components: { - DictItem - }, - methods: { - // 菜单配置 - menuConfig (row) { - this.dictItemVisible = true - this.$nextTick(() => { - this.$refs.dictItem.init(row.id, row.dictCode) - }) - } - } -} -</script> diff --git a/src/views/proddisp/param/mz/item-add-or-update.vue b/src/views/proddisp/param/mz/item-add-or-update.vue deleted file mode 100644 index 42575b0..0000000 --- a/src/views/proddisp/param/mz/item-add-or-update.vue +++ /dev/null @@ -1,140 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" - label-width="120px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="itemText" :label="$t('prodParamMz.itemText')"> - <el-input v-model="dataForm.itemText" :placeholder="$t('sysDictItem.itemText')"></el-input> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="itemValue" :label="$t('prodParamMz.itemValue')"> - <el-input v-model="dataForm.itemValue" :placeholder="$t('sysDictItem.itemValue')"></el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="sortOrder" :label="$t('prodParamMc.sortOrder')"> - <el-input v-model="dataForm.sortOrder" :placeholder="$t('sysDictItem.sortOrder')"></el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> - import debounce from 'lodash/debounce' - import DictSelectTag from "@/components/dict/dict-select-tag"; - - export default { - components: {DictSelectTag}, - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - dictId: '', - itemText: '', - itemValue: '', - sortOrder: '', - shortName: '', - ext1: '', - ext2: '', - ext3: '', - ext4: '', - ext5: '', - ext6: '', - ext7: '', - ext8: '', - ext9: '', - ext10: '' - } - } - }, - computed: { - dataRule() { - return { - itemText: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - itemValue: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - ext1: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - ext2: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - ext3: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sortOrder: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init(id, dictId, dictCode) { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - this.dataForm.dictId = dictId || null - this.dataForm.id = id || '' - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-system/sys/dict-item/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.data - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http[!this.dataForm.id ? 'post' : 'put']('/iailab-iems-system/sys/dict-item', this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } - } -</script> diff --git a/src/views/proddisp/param/mz/item.vue b/src/views/proddisp/param/mz/item.vue deleted file mode 100644 index 2826dd3..0000000 --- a/src/views/proddisp/param/mz/item.vue +++ /dev/null @@ -1,180 +0,0 @@ -<template> - <el-drawer - direction="rtl" - :visible.sync="visible" - @close="handleClose" - size="50%"> - <div class="mod-app-menu" style="padding: 5px;"> - <el-form :inline="true" :model="dataForm" ref="dataForm" @keyup.enter.native="getDataList()" label-width="10px"> - <el-form-item prop="itemText"> - <el-input size="mini" v-model="dataForm.itemText" :placeholder="$t('sysDictItem.itemText')" - clearable></el-input> - </el-form-item> - <el-form-item> - <el-button size="mini" @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button size="mini" v-if="$hasPermission('sys:dict:save')" type="primary" @click="openForm()">{{ - $t('add') }} - </el-button> - </el-form-item> - <el-form-item> - <el-button size="mini" type="primary" @click="enableBatch()">{{ $t('enableBatch') }}</el-button> - </el-form-item> - <el-form-item> - <el-button size="mini" type="danger" @click="disableBatch()">{{ $t('disableBatch') }}</el-button> - </el-form-item> - </el-form> - <el-table v-loading="dataListLoading" :data="dataList" row-key="id" border style="width: 100%;" - @selection-change="dataListSelectionChangeHandle"> - <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> - <el-table-column prop="itemText" :label="$t('prodParamMz.itemText')" header-align="center" - align="center" min-width="150"></el-table-column> - <el-table-column prop="itemValue" :label="$t('prodParamMz.itemValue')" header-align="center" - align="center" min-width="100"></el-table-column> - <el-table-column prop="sortOrder" :label="$t('prodParamMc.sortOrder')" header-align="center" - align="center" min-width="50"></el-table-column> - <el-table-column prop="status" :label="$t('sysDictItem.status')" header-align="center" - align="center" min-width="80"> - <template slot-scope="scope"> - <el-tag v-if="scope.row.status === 1" size="small">{{ $t('enableStatus1') }}</el-tag> - <el-tag v-else size="small" type="danger">{{ $t('enableStatus0') }}</el-tag> - </template> - </el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="100"> - <template slot-scope="scope"> - <el-button v-if="$hasPermission('sys:menu:update')" type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button v-if="$hasPermission('sys:menu:delete')" type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> - </el-drawer> -</template> -<script> - import mixinViewModule from '@/mixins/view-module' - import AddOrUpdate from './item-add-or-update' - import {getDictItem} from "@/utils/dictUtils"; - - export default { - mixins: [mixinViewModule], - data() { - return { - mixinViewModuleOptions: { - createdIsNeed: false, - getDataListURL: '/iailab-iems-system/sys/dict-item/page', - getDataListIsPage: true, - deleteURL: '/iailab-iems-system/sys/dict-item', - deleteIsBatch: true - }, - visible: false, - dataForm: { - dictId: '', - dictCode: '', - itemText: '' - }, - } - }, - components: { - AddOrUpdate - }, - methods: { - init(dictId, dictCode) { - this.dataForm.dictId = dictId - this.dataForm.dictCode = dictCode - this.visible = true - this.$nextTick(() => { - this.getDataList() - }) - }, - - getDictItemValue(value) { - let data = getDictItem(this.dictCodeMz, value) - return data ? data.itemText : ''; - }, - - openForm(id) { - this.addOrUpdateVisible = true - this.$nextTick(() => { - this.$refs.addOrUpdate.init(id, this.dataForm.dictId,this.dataForm.dictCode) - }) - }, - - handleClose() { - this.$refs['dataForm'].resetFields() - this.dataList = [] - }, - - // 批量启用 - enableBatch (id) { - if (!id && this.dataListSelections.length <= 0) { - return this.$message({ - message: this.$t('prompt.deleteBatch'), - type: 'warning', - duration: 500 - }) - } - this.$confirm(this.$t('prompt.info', { 'handle': this.$t('enableStatus1') }), this.$t('prompt.title'), { - confirmButtonText: this.$t('confirm'), - cancelButtonText: this.$t('cancel'), - type: 'warning' - }).then(() => { - this.$http.put('/iailab-iems-system/sys/dict-item/enable', id ? [id] : this.dataListSelections.map(item => item.id)).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.getDataList() - } - }) - }).catch(() => {}) - }).catch(() => {}) - }, - - // 批量禁用 - disableBatch (id) { - if (!id && this.dataListSelections.length <= 0) { - return this.$message({ - message: this.$t('prompt.deleteBatch'), - type: 'warning', - duration: 500 - }) - } - this.$confirm(this.$t('prompt.info', { 'handle': this.$t('enableStatus0') }), this.$t('prompt.title'), { - confirmButtonText: this.$t('confirm'), - cancelButtonText: this.$t('cancel'), - type: 'warning' - }).then(() => { - this.$http.put('/iailab-iems-system/sys/dict-item/disable', id ? [id] : this.dataListSelections.map(item => item.id)).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.getDataList() - } - }) - }).catch(() => {}) - }).catch(() => {}) - } - } - } -</script> diff --git a/src/views/proddisp/plan/components/prodPlan.vue b/src/views/proddisp/plan/components/prodPlan.vue deleted file mode 100644 index 20b39ed..0000000 --- a/src/views/proddisp/plan/components/prodPlan.vue +++ /dev/null @@ -1,279 +0,0 @@ -<template> - <div> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-list"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item v-if="type === 'monthly'"> - <el-date-picker - v-model="dataForm.ny" - type="month" - value-format="yyyy-MM" - placeholder="选择月"> - </el-date-picker> - </el-form-item> - <el-form-item v-if="type === 'yearly'"> - <el-date-picker - v-model="dataForm.ny" - type="year" - value-format="yyyy" - placeholder="选择年"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">查询</el-button> - <el-button type="primary" @click="openForm()">新增</el-button> - <el-button @click="exportExcel()">导出</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - v-loading="dataListLoading" - :data="dataList" - height="400" - highlight-current-row - @current-change="currentChange" - border - style="width: 100%;"> - <el-table-column prop="lsh" header-align="center" align="center" min-width="200" - label="流水号"></el-table-column> - <el-table-column prop="ny" header-align="center" align="center" min-width="200" - :label="type === 'monthly' ? '月份' : '年份'"></el-table-column> - <el-table-column prop="bzr" header-align="center" align="center" min-width="150" - label="编制人"></el-table-column> - <el-table-column prop="bzsj" header-align="center" align="center" min-width="200" - label="编制时间"></el-table-column> - <el-table-column prop="bpmCreateDate" header-align="center" align="center" min-width="200" - label="上报时间"></el-table-column> - <el-table-column prop="shsj" header-align="center" align="center" min-width="200" - label="审核时间"></el-table-column> - <el-table-column prop="bpmStatusName" header-align="center" align="center" width="150" - label="状态"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" - width="100"> - <template slot-scope="scope"> - <el-button type="text" size="small" - @click="viewHandle(scope.row.id)">详情 - </el-button> - <span>|</span> - <el-dropdown> - <span class="el-dropdown-link"> - <el-button type="text" size="small">更多</el-button> - <i class="el-icon-arrow-down el-icon--right"></i> - </span> - <el-dropdown-menu slot="dropdown"> - <el-dropdown-item> - <el-button type="text" size="small" - v-if="(scope.row.bpmStatus === 1 || scope.row.bpmStatus === 0)" - @click="openForm(scope.row.id)">修改 - </el-button> - </el-dropdown-item> - <el-dropdown-item> - <el-button type="text" size="small" - v-if="(scope.row.bpmStatus === 1 || scope.row.bpmStatus === 0)" - @click="handleDelete(scope.row.id)">删除 - </el-button> - </el-dropdown-item> - <el-dropdown-item> - <el-button v-if="scope.row.bpmStatus === 2" - @click="clickCancelProcess(scope.row)" type="text" - size="small">撤回 - </el-button> - </el-dropdown-item> - <el-dropdown-item> - <el-button v-if="scope.row.bpmStatus === 0" @click="clickSubmitApply(scope.row)" - type="text" - size="small">重新申请 - </el-button> - </el-dropdown-item> - <el-dropdown-item> - <el-button v-if="scope.row.bpmStatus === 1" @click="clickSubmitApply(scope.row)" - type="text" - size="small">提交申请 - </el-button> - </el-dropdown-item> - <el-dropdown-item> - <el-button - v-if="scope.row.bpmStatus === 2 || scope.row.bpmStatus === 3 || scope.row.bpmStatus === 4" - @click="clickProcessHistory(scope.row)" type="text" size="small">审批历史 - </el-button> - </el-dropdown-item> - </el-dropdown-menu> - </el-dropdown> - </template> - </el-table-column> - </el-table> - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" :type="type" - @refreshDataList="getDataList"></add-or-update> - <!-- 弹窗, 详情 --> - <info-view v-if="dataViewVisible" ref="dataView" :type="type"></info-view> - <!-- 弹窗, 详细列表 --> - <Form v-if="detListVisible" ref="formRef" style="height: 100%"></det-list> - <!-- 提交申请 --> - <submit-apply ref="sumbitApplyRef" :row="row" @refreshDataList="getDataList"></submit-apply> - <!-- 撤回申请 --> - <cancel-apply ref="cancelRef" :businessKey="row.id" :procInstId="row.procInstId" - @refreshDataList="getDataList"></cancel-apply> - <!-- 审批历史 --> - <history ref="historyRef" :businessKey="row.id" :procInstId="row.procInstId"></history> - </div> - </el-card> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-analysis-full-det"> - <data-det ref="dataDet"></data-det> - </div> - </el-card> - </div> - -</template> -<script lang="ts" setup> - import DetList from './prodPlanDet' - import AddOrUpdate from './prodPlanAddOrUpdate' - import InfoView from './prodPlanView' - import SubmitApply from '@/components/process/SubmitApply' - import CancelApply from '@/components/process/CancelApply' - import History from '@/components/process/History' - import DataDet from './prodPlanDet' - import {exportByDom} from "@/utils/exportUtil"; - import {ref} from "vue"; - - - const type = ref('') - - const dataForm = reactive({ - jhlb: type, - ny: '', - sslb: '' - }) - const detListVisible = ref(false) - const dataViewVisible = ref(false) - - //工作流需要 - const row = ref({}) //要提交审批的记录 - const assigneeParams = reactive({ - roleName: '', //办理人角色 - sameDept: 0 //是否同部门 - }) - - // 查看详细 - const currentChange = async (currentRow) => { - this.$nextTick(() => { - this.$refs.dataDet.init(currentRow) - }) - }, - // 删除 - const handleDelete - (id) - { - this.$confirm(`确定对选中项进行删除操作?`, '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.$http({ - url: `/iailab-iems-coal-proddisp/wash/plan/delete/${id}`, - method: 'post', - params: this.$http.adornParams() - }).then(({data}) => { - if (data && data.code === 0) { - this.$message({ - message: '操作成功', - type: 'success', - duration: 1500, - onClose: () => { - if (this.pageIndex > 1 && (this.totalPage - 1) % this.pageSize === 0) { - this.pageIndex = this.pageIndex - 1 - } - this.getDataList() - } - }) - } else { - this.$message.error(data.msg) - } - }) - }).catch(() => { - }) - } - , - - // 详情 - viewHandle(id) - { - this.dataViewVisible = true - this.$refs.dataView.dataForm.id = id - this.$nextTick(() => { - this.$refs.dataView.init() - }) - } - , - - commit(id) - { - this.$confirm(`确定对选中项进行提交操作?`, '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.$http({ - url: `/iailab-iems-coal-proddisp/wash/plan/commit/${id}`, - method: 'post', - params: this.$http.adornParams() - }).then(({data}) => { - if (data && data.code === 0) { - this.$message({ - message: '操作成功', - type: 'success', - duration: 1500, - onClose: () => { - this.getDataList() - } - }) - } else { - this.$message.error(data.msg) - } - }) - }).catch(() => { - }) - } - , - - // 提交申请 - clickSubmitApply(row) - { - this.row = row - this.$refs.sumbitApplyRef.visible = true - } - , - - // 点击审批进度 - clickProcessHistory(row) - { - this.row = row - this.$refs.historyRef.visible = true - } - , - - // 撤回申请 - clickCancelProcess(row) - { - this.row = row - this.$refs.cancelRef.visible = true - } - , - exportExcel() - { - let dom = this.$refs.table - exportByDom(dom, undefined, this.type === 'monthly' ? '生产月计划' : '生产年计划') - } - } - } -</script> diff --git a/src/views/proddisp/plan/components/prodPlanAddOrUpdate.vue b/src/views/proddisp/plan/components/prodPlanAddOrUpdate.vue deleted file mode 100644 index 16f8031..0000000 --- a/src/views/proddisp/plan/components/prodPlanAddOrUpdate.vue +++ /dev/null @@ -1,274 +0,0 @@ -<template> - <Dialog v-model="visible" :title="!dataForm.id ? '新增' : '修改'"> - <el-form - ref="dataForm" - v-loading="formLoading" - :model="dataForm" - :rules="formRules" - label-width="80px" - > - <el-row> - <el-col :span="12"> - <el-form-item prop="lsh" label="流水号" label-width="120px"> - <el-input disabled v-model="dataForm.lsh" placeholder="流水号"/> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item :label="type === 'monthly' ? '月份' : '年份'" prop="ny" label-width="120px"> - <el-date-picker - style="width: 100%" - v-if="type === 'monthly'" - v-model="dataForm.ny" - type="month" - value-format="yyyy-MM" - placeholder="选择月"/> - <el-date-picker - style="width: 100%" - v-if="type === 'yearly'" - v-model="dataForm.ny" - type="year" - value-format="yyyy" - placeholder="选择年"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item label="编制人" prop="bzr" label-width="120px"> - <el-input v-model="dataForm.bzr" placeholder="编制人"/> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item label="编制时间" prop="bzsj" label-width="120px"> - <el-date-picker - style="width: 100%" - v-model="dataForm.bzsj" - type="date" - value-format="yyyy-MM-dd" - placeholder="选择编制时间"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="4"> - <el-button type="primary" size="mini" @click="addDet">新增</el-button> - </el-col> - </el-row> - <el-row style="margin-top: 1%"> - <el-table - v-loading="detListLoading" - :data="dataForm.detList" - style="width: 100%;" - border> - <el-table-column type="index" header-align="center" align="center" width="50" label="序号"/> - <el-table-column prop="mzCode" header-align="center" align="center" label="煤种"> - <template #default="scope"> - <el-form-item class="myCol" :prop="'detList.' + scope.$index + '.mzCode'" - :rules="dataRule.mzCode" - :show-message="false"> - - <el-select - style="width: 100%" size="mini" v-model="scope.mzCode" - placeholder="煤种" - > - <el-option - v-for="dict in getIntDictOptions(DICT_TYPE.PMS_CPMZ)" - :key="dict.value" - :label="dict.label" - :value="dict.value" - /> - </el-select> - - </el-form-item> - </template> - </el-table-column> - <el-table-column prop="dw" header-align="center" align="center" label="单位" width="85"> - <template #default="scope"> - <el-form-item class="myCol" :prop="'detList.' + scope.$index + '.dw'" - :rules="dataRule.dw" - :show-message="false"> - <el-input size="mini" v-model="scope.dw" placeholder="单位"/> - </el-form-item> - </template> - </el-table-column> - <el-table-column prop="cl" header-align="center" align="center" label="产量"> - <template #default="scope"> - <el-form-item class="myCol" :prop="'detList.' + scope.$index + '.cl'" - :rules="dataRule.cl" - :show-message="false"> - <el-input-number size="mini" style="width: 100%" :precision="2" v-model="scope.cl" - placeholder="产量" - :controls="false"/> - </el-form-item> - </template> - </el-table-column> - <el-table-column prop="hf" header-align="center" align="center" label="灰分(Ad%)"> - <template #default="scope"> - <el-form-item class="myCol" :prop="'detList.' + scope.$index + '.hf'" - :rules="dataRule.hf" - :show-message="false"> - <el-input-number size="mini" style="width: 100%" :precision="2" v-model="scope.hf" - placeholder="灰分" - :controls="false"/> - </el-form-item> - </template> - </el-table-column> - <el-table-column prop="lf" header-align="center" align="center" label="硫分(St,d%)"> - <template #default="scope"> - <el-form-item class="myCol" :prop="'detList.' + scope.$index + '.lf'" - :show-message="false"> - <el-input-number size="mini" style="width: 100%" :precision="2" v-model="scope.lf" - placeholder="硫分" - :controls="false"/> - </el-form-item> - </template> - </el-table-column> - <el-table-column prop="sf" header-align="center" align="center" label="水分(Mt%)"> - <template #default="scope"> - <el-form-item class="myCol" :prop="'detList.' + scope.$index + '.sf'" - :show-message="false"> - <el-input-number size="mini" style="width: 100%" :precision="2" v-model="scope.sf" - placeholder="水分" - :controls="false"/> - </el-form-item> - </template> - </el-table-column> - <el-table-column prop="mbrz" header-align="center" align="center" label="目标热值(Kcal/Kg)"> - <template #default="scope"> - <el-form-item class="myCol" :prop="'detList.' + scope.$index + '.mbrz'" - :show-message="false"> - <el-input-number size="mini" style="width: 100%" :precision="2" v-model="scope.mbrz" - placeholder="目标热值" - :controls="false"/> - </el-form-item> - </template> - </el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" - width="50"> - <template #default="scope"> - <el-button size="mini" type="text" icon="el-icon-delete" - @click="deleteDet(scope.$index)" - :disabled="dataForm.detList.length === 1"/> - </template> - </el-table-column> - </el-table> - </el-row> - </el-form> - <div> - <slot name="footer"> - <el-button @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button type="primary" @click="dataFormSubmitHandle()" - :disabled="dataForm.detList.length === 0">{{ - $t('confirm') }} - </el-button> - </slot> - </div> - </dialog> -</template> - -<script lang="ts" setup> - import {getYM, getYMD} from '@/utils/dateUtil' - import {FormRules} from "element-plus"; - import {ref, computed} from 'vue'; - import { ElMessage } from 'element-plus' - import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' - defineOptions({name: 'ProdPlanAddOrUpdate'}) - - const type = ref('') - const visible = ref(false) - const dataForm = reactive({ - id: '', - unit2: '', - ssdw: '', - lsh: '', - jhlb: type, - ny: getYM(new Date()), - bzr: '', - bzsj: getYMD(new Date()), - sslb: '', - detList: [] - }) - const detListLoading = ref(false) - const validateMzCode = (rule, value, callback) => { - if (this.dataForm.detList.filter(item => item.mzCode === value).length > 1) { - ElMessage({ - message: '煤种进行了重复选择', - type: 'warning', - }) - callback(new Error('煤种进行了重复选择')) - } else { - callback() - } - } - const formRules = reactive < FormRules > ({ - ny: [ - {required: true, message: '不能为空', trigger: 'change'} - ], - bzr: [ - {required: true, message: '编制人不能为空', trigger: 'change'} - ], - bzsj: [ - {required: true, message: '编制时间不能为空', trigger: 'change'} - ], - sslb: [ - {required: true, message: '所属类别不能为空', trigger: 'change'} - ], - mzCode: [ - {required: true, trigger: 'change'}, - {validator: validateMzCode, trigger: 'change'} - ], - dw: [ - {required: true, trigger: 'change'} - ], - cl: [ - {required: true, trigger: 'blur'} - ], - hf: [ - {required: true, trigger: 'blur'} - ], - lf: [ - {required: true, trigger: 'blur'} - ], - sf: [ - {required: true, trigger: 'blur'} - ], - mbrz: [ - {required: true, trigger: 'blur'} - ] - }) - - /** 打开弹窗 */ - const open = async () => { - dialogVisible.value = true - resetForm() - - this.dataForm.detList = [] - this.dataForm.bzr = this.$store.state.user.realName - if (this.dataForm.id) { - this.getInfo() - } - } - /** 重置表单 */ - const resetForm = () => { - dataForm.value = { - id: '', - unit2: '', - ssdw: '', - lsh: '', - jhlb: type, - ny: getYM(new Date()), - bzr: '', - bzsj: getYMD(new Date()), - sslb: '', - detList: [] - } - dataForm.value?.resetFields() - } - -</script> - -<style scoped> - .myCol { - margin-bottom: 0px - } -</style> diff --git a/src/views/proddisp/plan/components/prodPlanDet.vue b/src/views/proddisp/plan/components/prodPlanDet.vue deleted file mode 100644 index cfee423..0000000 --- a/src/views/proddisp/plan/components/prodPlanDet.vue +++ /dev/null @@ -1,78 +0,0 @@ -<template> - <div class="mod-prod-plan-det"> - <el-form :inline="true" :model="dataForm"> - <el-form-item> - <span>计划明细</span><span>【{{dataForm.lsh}}】</span> - </el-form-item> - <el-form-item> - <el-button size="mini" @click="getDataList()">{{ $t('refresh') }}</el-button> - <el-button size="mini" @click="exportExcel()">导出</el-button> - </el-form-item> - <!--<el-form-item> - <el-button size="mini" v-if="$hasPermission('analysis:full:save')" type="primary" @click="updateHandle()">{{ $t('save') }}</el-button> - </el-form-item>--> - </el-form> - <el-table - ref="table" - :data="dataList" - border - height="400" - highlight-current-row - v-loading="dataListLoading" - style="width: 100%;"> - <el-table-column type="index" header-align="center" align="center" width="50" label="序号"></el-table-column> - <el-table-column prop="mzName" header-align="center" align="center" label="煤种"></el-table-column> - <el-table-column prop="dw" header-align="center" align="center" label="单位"></el-table-column> - <el-table-column prop="cl" header-align="center" align="center" label="产量"></el-table-column> - <el-table-column prop="hf" header-align="center" align="center" label="灰分(Ad%)"></el-table-column> - <el-table-column prop="lf" header-align="center" align="center" label="硫分(St,d%)"></el-table-column> - <el-table-column prop="sf" header-align="center" align="center" label="水分(Mt%)"></el-table-column> - <el-table-column prop="mbrz" header-align="center" align="center" label="目标热值(Kcal/Kg)"></el-table-column> - </el-table> - - </div> -</template> -<script> - import {exportByDom} from "@/utils/exportUtil"; - - export default { - data() { - return { - visible: false, - dataList: [], - dataForm: { - id: '', - lsh: '' - }, - dataListLoading: false - } - }, - methods: { - init(row) { - this.visible = true - this.dataForm.id = row.id || '0' - this.dataForm.lsh = row.lsh - this.$nextTick(() => { - this.getDataList() - }) - }, - // 获取数据列表 - getDataList() { - this.dataListLoading = true - this.$http.get(`/iailab-iems-coal-proddisp/wash/plan/detInfo/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - this.dataListLoading = false - } - this.dataList = res.list - this.dataListLoading = false - }).catch(() => { - }) - }, - exportExcel () { - let dom = this.$refs.table - exportByDom(dom, undefined, '计划明细') - } - } - } -</script> diff --git a/src/views/proddisp/plan/components/prodPlanView.vue b/src/views/proddisp/plan/components/prodPlanView.vue deleted file mode 100644 index e020c7c..0000000 --- a/src/views/proddisp/plan/components/prodPlanView.vue +++ /dev/null @@ -1,140 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" :title="$t('view')" :close-on-click-modal="false" - :close-on-press-escape="false" width="50%"> - <el-form :model="dataForm" ref="dataForm"> - <el-row> - <el-col :span="12"> - <el-form-item prop="lsh" label="流水号" label-width="120px"> - <el-input disabled v-model="dataForm.lsh" readonly></el-input> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item :label="type === 'monthly' ? '月份' : '年份'" prop="ny" label-width="120px"> - <el-date-picker - style="width: 100%" - readonly - v-if="type === 'monthly'" - v-model="dataForm.ny" - type="month" - value-format="yyyy-MM" - placeholder="选择月"> - </el-date-picker> - <el-date-picker - style="width: 100%" - readonly - v-if="type === 'yearly'" - v-model="dataForm.ny" - type="year" - value-format="yyyy" - placeholder="选择年"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item label="编制人" prop="bzr" label-width="120px"> - <el-input v-model="dataForm.bzr" readonly></el-input> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item label="编制时间" prop="bzsj" label-width="120px"> - <el-date-picker - style="width: 100%" - readonly - v-model="dataForm.bzsj" - type="date" - value-format="yyyy-MM-dd" - placeholder="选择编制时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row style="margin-top: 1%"> - <el-table - v-loading="detListLoading" - :data="dataForm.detList" - style="width: 100%;" - border> - <el-table-column type="index" header-align="center" align="center" width="50" label="序号"></el-table-column> - <el-table-column prop="mzName" header-align="center" align="center" label="煤种"></el-table-column> - <el-table-column prop="dw" header-align="center" align="center" label="单位"></el-table-column> - <el-table-column prop="cl" header-align="center" align="center" label="产量"></el-table-column> - <el-table-column prop="hf" header-align="center" align="center" label="灰分(Ad%)"></el-table-column> - <el-table-column prop="lf" header-align="center" align="center" label="硫分(St,d%)"></el-table-column> - <el-table-column prop="sf" header-align="center" align="center" label="水分(Mt%)"></el-table-column> - <el-table-column prop="mbrz" header-align="center" align="center" label="目标热值(Kcal/Kg)"></el-table-column> - </el-table> - </el-row> - </el-form> - <template slot="footer"> - <el-button @click="visible = false">{{ $t('cancel') }}</el-button> - </template> - </el-dialog> -</template> - -<script> - import debounce from 'lodash/debounce' - import DictSelectTag from '@/components/dict/dict-select-tag' - import {myMessage} from "@/utils/myMessage"; - import {getYM, getYMD} from '@/utils/dateUtils' - - export default { - components: { - DictSelectTag - }, - props: { - type: '' - }, - data() { - return { - visible: false, - dataForm: { - id: '', - unit2: '', - ssdw: '', - lsh: '', - jhlb: this.type, - ny: getYM(new Date()), - bzr: '', - bzsj: getYMD(new Date()), - sslb: '', - detList: [] - }, - detListLoading: false - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - this.dataForm.detList = [] - this.dataForm.bzr = this.$store.state.user.realName - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/wash/plan/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - } - } - } -</script> - -<style scoped> - .myCol { - margin-bottom: 0px - } -</style> diff --git a/src/views/proddisp/plan/month.vue b/src/views/proddisp/plan/month.vue deleted file mode 100644 index 76b831c..0000000 --- a/src/views/proddisp/plan/month.vue +++ /dev/null @@ -1,7 +0,0 @@ -<template> - <prod-plan :type="'monthly'"/> -</template> -<script lang="ts" setup> - import ProdPlan from './components/prodPlan.vue' - defineOptions({name: 'planMonth'}) -</script> diff --git a/src/views/proddisp/plan/year.vue b/src/views/proddisp/plan/year.vue deleted file mode 100644 index 067fee2..0000000 --- a/src/views/proddisp/plan/year.vue +++ /dev/null @@ -1,7 +0,0 @@ -<template> - <prod-plan :type="'yearly'"/> -</template> -<script lang="ts" setup> - import ProdPlan from './components/prodPlan.vue' - defineOptions({name: 'planYear'}) -</script> diff --git a/src/views/proddisp/productionConditions/index.vue b/src/views/proddisp/productionConditions/index.vue deleted file mode 100644 index b2a426a..0000000 --- a/src/views/proddisp/productionConditions/index.vue +++ /dev/null @@ -1,215 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-index-full"> - <el-form :inline="true" :model="dataForm" label-width="100px"> - <el-form-item :label="$t('datePicker.date')"> - <el-date-picker - v-model="dataForm.dateRange" - type="datetimerange" - format="yyyy-MM-dd HH:mm" - value-format="yyyy-MM-dd HH:mm" - range-separator="至" - start-placeholder="开始日期" - end-placeholder="结束日期" - > - </el-date-picker> - </el-form-item> - <el-form-item label="系统"> - <dict-select-tag - style="width: 100%" - v-model="dataForm.index" - placeholder="系统" - dictCode="scxt" - :clearable="false" - /> - </el-form-item> - <el-form-item> - <el-button @click="queryChart()">{{ $t("query") }}</el-button> - </el-form-item> - </el-form> - </div> - <div id="chartLineBox" style="width: 90%; height: 70vh"></div> - </el-card> -</template> -<script> -import DictSelectTag from "@/components/dict/dict-select-tag"; -import BarLine from "@/components/chart/bar-line"; -import { getYMD } from "@/utils/dateUtils"; -import * as echarts from "echarts"; - -export default { - components: { DictSelectTag, BarLine }, - data() { - return { - loading: false, - chartOption: {}, - dataForm: { - groupType: "day", - dateRange: [], - index: "", - }, - }; - }, - mounted() { - this.chartLine = echarts.init(document.getElementById("chartLineBox")); - - // 指定图表的配置项和数据 - var option = { - tooltip: { - //设置tip提示 - trigger: "axis", - }, - color: ["#869ad7"], //设置区分(每条线是什么颜色,和 legend 一一对应) - xAxis: { - //设置x轴 - boundaryGap: false, - type: "category", - boundaryGap: false, //坐标轴两边不留白 - data: [ - "2023-5-31 00:00:00", - "2023-5-31 01:00:00", - "2023-5-31 02:00:00", - "2023-5-31 03:00:00", - "2023-5-31 04:00:00", - "2023-5-31 05:00:00", - "2023-5-31 06:00:00", - ], - name: "时间", //X轴 name - nameTextStyle: { - //坐标轴名称的文字样式 - color: "black", - fontSize: 16, - padding: [0, 0, 0, 20], - }, - axisLine: { - //坐标轴轴线相关设置。 - lineStyle: { - color: "black", - }, - }, - }, - yAxis: { - nameTextStyle: { - color: "black", - fontSize: 16, - padding: [0, 0, 10, 0], - }, - axisLine: { - lineStyle: { - color: "black", - }, - }, - type: "value", - min: 0, - max: 1, - splitNumber: 1, - axisLabel: { - formatter: function (value, index) { - return value === 0 ? "未运行" : "运行"; - }, - }, - }, - series: [ - { - areaStyle: {}, - name: "是否运行", - data: [0, 1, 0, 0, 1, 1, 1], - type: "line", - step: "end", - lineStyle: { - normal: { - color: "#869ad7", - }, - }, - }, - ], - }; - - // 使用刚指定的配置项和数据显示图表。 - this.chartLine.setOption(option); - }, - methods: { - init() { - this.dataForm.dateRange = []; - this.dataForm.dateRange.push( - getYMD(new Date().getTime() - 3600 * 1000 * 24 * 30) + " 00:00" - ); - this.dataForm.dateRange.push(getYMD(new Date()) + " 23:59"); - }, - - queryChart() { - let params = { - groupType: this.dataForm.groupType, - startDate: this.dataForm.dateRange[0] + ":00", - endDate: this.dataForm.dateRange[1] + ":59", - index: this.dataForm.index, - }; - this.loading = true; - this.$http - .post(`/iailab-iems-coal-proddisp/analysis/index/chart`, params) - .then(({ data: res }) => { - this.loading = false; - if (res.code !== 0) { - return this.$message.error(res.msg); - } - let series = []; - if (res.data.series) { - res.data.series.forEach(function (item) { - series.push({ - name: item.name, - data: item.data, - type: "line", - smooth: false, - }); - }); - } - - this.chartOption = { - grid: { - top: "8%", - right: "10%", - bottom: "12%", - left: "10%", - }, - legend: { - type: "scroll", - orient: "vertical", - right: 5, - top: 20, - bottom: 20, - data: res.data.legend, - }, - toolbox: { - show: true, - top: 0, - right: "10%", - feature: { - dataView: { readOnly: false }, - magicType: { type: ["line", "bar"] }, - saveAsImage: {}, - }, - }, - xAxis: { - type: "category", - data: res.data.categories, - }, - yAxis: { - type: "value", - name: res.data.valueName, - nameTextStyle: { - fontWeight: "bold", - }, - axisLine: { - show: true, - }, - }, - series: series, - }; - }) - .catch(() => { - this.loading = false; - }); - }, - }, -}; -</script> diff --git a/src/views/proddisp/productionConditions/list-add-or-update.vue b/src/views/proddisp/productionConditions/list-add-or-update.vue deleted file mode 100644 index 5a4d8c5..0000000 --- a/src/views/proddisp/productionConditions/list-add-or-update.vue +++ /dev/null @@ -1,186 +0,0 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="czb" label="厂值班"> - <staff-select filterable style="width: 100%" v-model="dataForm.czb" clearable placeholder="厂值班" > - - </staff-select> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jgzb" label="机关值班"> - <staff-select filterable style="width: 100%" v-model="dataForm.jgzb" clearable placeholder="机关值班" > - - </staff-select> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="jky" label="集控员"> - <staff-select filterable style="width: 100%" v-model="dataForm.jky" clearable placeholder="集控员"> - </staff-select> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="ddy" label="调度员"> - <staff-select filterable style="width: 100%" v-model="dataForm.ddy" clearable placeholder="调度员"> - </staff-select> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="dbsc" label="当班生产"> - <el-input style="width: 100%" v-model="dataForm.dbsc" clearable placeholder="当班生产"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="content" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 6, maxRows: 6}" - placeholder="请输入备注" - v-model="dataForm.content"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from "@/components/dict/dict-select-tag"; -import StaffSelect from '@/components/staff/staff-select.vue'; -export default { - data () { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - czbName: '', - jgzbName: '', - jkyName: '', - ddyName: '', - dbsc: '', - content: '', - } - } - }, - components: { - DictSelectTag, - StaffSelect - }, - computed: { - dataRule() { - - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - czbName: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - jgzbName: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - jkyName: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - ddyName: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - dbsc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init () { - this.visible = true - this.dataForm.deptId = '' - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo () { - this.$http.get(`/iailab-iems-coal-proddisp/prod/standing-book/on-duty-info/${this.dataForm.id}`).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info, - userIdList: [] - } - }).catch(() => {}) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.$http[!this.dataForm.id ? 'post' : 'put']('/iailab-iems-coal-proddisp/prod/standing-book/on-duty-info', { - ...this.dataForm - }).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => {}) - }) - }, 1000, { 'leading': true, 'trailing': false }) - } -} -</script> diff --git a/src/views/proddisp/productionConditions/processParameters.vue b/src/views/proddisp/productionConditions/processParameters.vue deleted file mode 100644 index 3e43cfe..0000000 --- a/src/views/proddisp/productionConditions/processParameters.vue +++ /dev/null @@ -1,97 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-app"> - <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> - <el-form-item> - <span>时间:</span> - <el-date-picker - v-model="dataForm.startTime" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="请选择"> - </el-date-picker> - </el-form-item> - <el-form-item> - <span>至</span> - </el-form-item> - <el-form-item> - <el-date-picker - v-model="dataForm.endTime" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="请选择"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - <el-form-item> - <el-button type="primary" @click="openForm()">{{ $t('add') }}</el-button> - </el-form-item> - </el-form> - <el-table - id="listTable" - v-loading="dataListLoading" - :data="dataList" - border - style="width: 100%;"> - <el-table-column type="index" header-align="center" align="center" width="50" label="序号"></el-table-column> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" width="200"></el-table-column> - <el-table-column prop="rq" header-align="center" align="center" label="日期" width="100"></el-table-column> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" width="80"></el-table-column> - <el-table-column prop="czbName" header-align="center" align="center" label="参数名称" width="180"></el-table-column> - <el-table-column prop="jgzbName" header-align="center" align="center" label="单位" width="180"></el-table-column> - <el-table-column prop="jkyName" header-align="center" align="center" label="参数值" width="180"></el-table-column> - <el-table-column prop="content" header-align="center" align="center" label="备注" width="297"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="100"> - <template slot-scope="scope"> - <el-button v-if="$hasPermission('sys:user:update')" type="text" size="small" @click="openForm(scope.row.id)">修改</el-button> - <el-button v-if="$hasPermission('sys:user:delete')" type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <!-- 弹窗, 新增 / 修改 --> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - - <el-pagination - :current-page="page" - :page-sizes="[10, 20, 50, 100]" - :page-size="limit" - :total="total" - layout="total, sizes, prev, pager, next, jumper" - @size-change="pageSizeChangeHandle" - @current-change="pageCurrentChangeHandle"> - </el-pagination> - </div> - </el-card> -</template> - -<script> -import mixinViewModule from '@/mixins/view-module' -import AddOrUpdate from './list-add-or-update' -import {getEndTime, getStartTime} from "@/utils/dateUtils"; -export default { - mixins: [mixinViewModule], - data () { - return { - mixinViewModuleOptions: { - getDataListURL: '/iailab-iems-coal-proddisp/prod/standing-book/on-duty-info/list', - getDataListIsPage: true, - deleteURL: '/iailab-iems-coal-proddisp/prod/standing-book/on-duty-info', - deleteIsBatch: true, - }, - dataForm: { - startTime: getStartTime(), - endTime: getEndTime() - } - } - }, - components: { - AddOrUpdate - }, - methods: { - } -} -</script> diff --git a/src/views/proddisp/productionData/consumptionTrends.vue b/src/views/proddisp/productionData/consumptionTrends.vue deleted file mode 100644 index 243d5d0..0000000 --- a/src/views/proddisp/productionData/consumptionTrends.vue +++ /dev/null @@ -1,190 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-index-full"> - <el-form :inline="true" :model="dataForm" label-width="100px"> - <el-form-item :label="$t('datePicker.date')"> - <el-date-picker - v-model="dataForm.dateRange" - type="datetimerange" - format="yyyy-MM-dd HH:mm" - value-format="yyyy-MM-dd HH:mm" - range-separator="至" - start-placeholder="开始日期" - end-placeholder="结束日期"> - </el-date-picker> - </el-form-item> - <el-form-item label="消耗指标"> - <dict-select-tag style="width: 100%" - v-model="dataForm.index" - placeholder="消耗指标" - dictCode="xhzb" - :clearable="false"/> - </el-form-item> - <el-form-item> - <el-button @click="queryChart()">{{ $t('query') }}</el-button> - </el-form-item> - </el-form> - </div> - <div id="chartLineBox" style="width: 90%;height: 70vh;"> </div> - </el-card> -</template> -<script> - import DictSelectTag from "@/components/dict/dict-select-tag"; - import BarLine from "@/components/chart/bar-line"; - import {getYMD} from "@/utils/dateUtils"; - import * as echarts from 'echarts' - - export default { - components: {DictSelectTag, BarLine}, - data() { - return { - loading: false, - chartOption: {}, - dataForm: { - groupType: 'day', - dateRange: [], - index: '' - } - } - }, - mounted() { - this.chartLine = echarts.init(document.getElementById('chartLineBox')); - - // 指定图表的配置项和数据 - let option = { - tooltip: { //设置tip提示 - trigger: 'axis' - }, - color: ['#869ad7'], //设置区分(每条线是什么颜色,和 legend 一一对应) - xAxis: { //设置x轴 - boundaryGap: false, - type: 'category', - boundaryGap: false, //坐标轴两边不留白 - data: ['2023-07-18', '2023-07-19', '2023-07-20', '2023-07-21', '2023-07-22', '2023-07-23', '2023-07-24','2023-07-25',], - name: '日期', //X轴 name - nameTextStyle: { //坐标轴名称的文字样式 - color: 'black', - fontSize: 16, - padding: [0, 0, 0, 20] - }, - axisLine: { //坐标轴轴线相关设置。 - lineStyle: { - color: 'black', - } - } - }, - yAxis: { - nameTextStyle: { - color: 'black', - fontSize: 16, - padding: [0, 0, 10, 0] - }, - axisLine: { - lineStyle: { - color: 'black', - } - }, - type: 'value' - }, - series: [ - { - areaStyle: {}, - name: '产量', - data: [50,55,60,58,48,50,67,66], - type: 'line', - lineStyle: { - normal: { - color: '#869ad7', - } - }, - } - ] - }; - - // 使用刚指定的配置项和数据显示图表。 - this.chartLine.setOption(option); - - }, - methods: { - init() { - this.dataForm.dateRange = [] - this.dataForm.dateRange.push(getYMD(new Date().getTime() - 3600 * 1000 * 24 * 30) + ' 00:00') - this.dataForm.dateRange.push(getYMD(new Date()) + ' 23:59') - }, - - queryChart() { - let params = { - groupType: this.dataForm.groupType, - startDate: this.dataForm.dateRange[0] + ':00', - endDate: this.dataForm.dateRange[1] + ':59', - index: this.dataForm.index - } - this.loading = true - this.$http.post(`/iailab-iems-coal-proddisp/analysis/index/chart`, params).then(({data: res}) => { - this.loading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - let series = [] - if (res.data.series) { - res.data.series.forEach(function (item) { - series.push( - { - name: item.name, - data: item.data, - type: 'line', - smooth: false - } - ) - }) - } - - this.chartOption = { - grid: { - top: '8%', - right: '10%', - bottom: '12%', - left: '10%' - }, - legend: { - type: 'scroll', - orient: 'vertical', - right: 5, - top: 20, - bottom: 20, - data: res.data.legend - }, - toolbox: { - show: true, - top: 0, - right: '10%', - feature: { - dataView: {readOnly: false}, - magicType: {type: ['line', 'bar']}, - saveAsImage: {} - } - }, - xAxis: { - type: 'category', - data: res.data.categories - }, - yAxis: { - type: 'value', - name: res.data.valueName, - nameTextStyle: { - fontWeight: 'bold' - }, - axisLine: { - show: true - } - }, - series: series - } - - }).catch(() => { - this.loading = false - }) - } - } - } -</script> diff --git a/src/views/proddisp/productionData/productionTrends.vue b/src/views/proddisp/productionData/productionTrends.vue deleted file mode 100644 index 764f3e5..0000000 --- a/src/views/proddisp/productionData/productionTrends.vue +++ /dev/null @@ -1,190 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-index-full"> - <el-form :inline="true" :model="dataForm" label-width="100px"> - <el-form-item :label="$t('datePicker.date')"> - <el-date-picker - v-model="dataForm.dateRange" - type="datetimerange" - format="yyyy-MM-dd HH:mm" - value-format="yyyy-MM-dd HH:mm" - range-separator="至" - start-placeholder="开始日期" - end-placeholder="结束日期"> - </el-date-picker> - </el-form-item> - <el-form-item label="产品煤种"> - <dict-select-tag style="width: 100%" - v-model="dataForm.index" - placeholder="产品煤种" - dictCode="cpmz" - :clearable="false"/> - </el-form-item> - <el-form-item> - <el-button @click="queryChart()">{{ $t('query') }}</el-button> - </el-form-item> - </el-form> - </div> - <div id="chartLineBox" style="width: 90%;height: 70vh;"> </div> - </el-card> -</template> -<script> - import DictSelectTag from "@/components/dict/dict-select-tag"; - import BarLine from "@/components/chart/bar-line"; - import {getYMD} from "@/utils/dateUtils"; - import * as echarts from 'echarts' - - export default { - components: {DictSelectTag, BarLine}, - data() { - return { - loading: false, - chartOption: {}, - dataForm: { - groupType: 'day', - dateRange: [], - index: '' - } - } - }, - mounted() { - this.chartLine = echarts.init(document.getElementById('chartLineBox')); - - // 指定图表的配置项和数据 - var option = { - tooltip: { //设置tip提示 - trigger: 'axis' - }, - color: ['#869ad7'], //设置区分(每条线是什么颜色,和 legend 一一对应) - xAxis: { //设置x轴 - boundaryGap: false, - type: 'category', - boundaryGap: false, //坐标轴两边不留白 - data: ['2023-5-31', '2023-6-1', '2023-6-2', '2023-6-3', '2023-6-4', '2023-6-5', '2023-6-6','2023-6-7',], - name: '日期', //X轴 name - nameTextStyle: { //坐标轴名称的文字样式 - color: 'black', - fontSize: 16, - padding: [0, 0, 0, 20] - }, - axisLine: { //坐标轴轴线相关设置。 - lineStyle: { - color: 'black', - } - } - }, - yAxis: { - nameTextStyle: { - color: 'black', - fontSize: 16, - padding: [0, 0, 10, 0] - }, - axisLine: { - lineStyle: { - color: 'black', - } - }, - type: 'value' - }, - series: [ - { - areaStyle: {}, - name: '产量', - data: [234,200,127,145,219,150,300,109], - type: 'line', - lineStyle: { - normal: { - color: '#869ad7', - } - }, - } - ] - }; - - // 使用刚指定的配置项和数据显示图表。 - this.chartLine.setOption(option); - - }, - methods: { - init() { - this.dataForm.dateRange = [] - this.dataForm.dateRange.push(getYMD(new Date().getTime() - 3600 * 1000 * 24 * 30) + ' 00:00') - this.dataForm.dateRange.push(getYMD(new Date()) + ' 23:59') - }, - - queryChart() { - let params = { - groupType: this.dataForm.groupType, - startDate: this.dataForm.dateRange[0] + ':00', - endDate: this.dataForm.dateRange[1] + ':59', - index: this.dataForm.index - } - this.loading = true - this.$http.post(`/iailab-iems-coal-proddisp/analysis/index/chart`, params).then(({data: res}) => { - this.loading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - let series = [] - if (res.data.series) { - res.data.series.forEach(function (item) { - series.push( - { - name: item.name, - data: item.data, - type: 'line', - smooth: false - } - ) - }) - } - - this.chartOption = { - grid: { - top: '8%', - right: '10%', - bottom: '12%', - left: '10%' - }, - legend: { - type: 'scroll', - orient: 'vertical', - right: 5, - top: 20, - bottom: 20, - data: res.data.legend - }, - toolbox: { - show: true, - top: 0, - right: '10%', - feature: { - dataView: {readOnly: false}, - magicType: {type: ['line', 'bar']}, - saveAsImage: {} - } - }, - xAxis: { - type: 'category', - data: res.data.categories - }, - yAxis: { - type: 'value', - name: res.data.valueName, - nameTextStyle: { - fontWeight: 'bold' - }, - axisLine: { - show: true - } - }, - series: series - } - - }).catch(() => { - this.loading = false - }) - } - } - } -</script> diff --git a/src/views/proddisp/productionData/salesTrends.vue b/src/views/proddisp/productionData/salesTrends.vue deleted file mode 100644 index dbf3e71..0000000 --- a/src/views/proddisp/productionData/salesTrends.vue +++ /dev/null @@ -1,190 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <div class="mod-index-full"> - <el-form :inline="true" :model="dataForm" label-width="100px"> - <el-form-item :label="$t('datePicker.date')"> - <el-date-picker - v-model="dataForm.dateRange" - type="datetimerange" - format="yyyy-MM-dd HH:mm" - value-format="yyyy-MM-dd HH:mm" - range-separator="至" - start-placeholder="开始日期" - end-placeholder="结束日期"> - </el-date-picker> - </el-form-item> - <el-form-item label="商品煤种"> - <dict-select-tag style="width: 100%" - v-model="dataForm.index" - placeholder="商品煤种" - dictCode="spmz" - :clearable="false"/> - </el-form-item> - <el-form-item> - <el-button @click="queryChart()">{{ $t('query') }}</el-button> - </el-form-item> - </el-form> - </div> - <div id="chartLineBox" style="width: 90%;height: 70vh;"> </div> - </el-card> -</template> -<script> - import DictSelectTag from "@/components/dict/dict-select-tag"; - import BarLine from "@/components/chart/bar-line"; - import {getYMD} from "@/utils/dateUtils"; - import * as echarts from 'echarts' - - export default { - components: {DictSelectTag, BarLine}, - data() { - return { - loading: false, - chartOption: {}, - dataForm: { - groupType: 'day', - dateRange: [], - index: '' - } - } - }, - mounted() { - this.chartLine = echarts.init(document.getElementById('chartLineBox')); - - // 指定图表的配置项和数据 - var option = { - tooltip: { //设置tip提示 - trigger: 'axis' - }, - color: ['#869ad7'], //设置区分(每条线是什么颜色,和 legend 一一对应) - xAxis: { //设置x轴 - boundaryGap: false, - type: 'category', - boundaryGap: false, //坐标轴两边不留白 - data: ['2023-5-31', '2023-6-1', '2023-6-2', '2023-6-3', '2023-6-4', '2023-6-5', '2023-6-6','2023-6-7',], - name: '日期', //X轴 name - nameTextStyle: { //坐标轴名称的文字样式 - color: 'black', - fontSize: 16, - padding: [0, 0, 0, 20] - }, - axisLine: { //坐标轴轴线相关设置。 - lineStyle: { - color: 'black', - } - } - }, - yAxis: { - nameTextStyle: { - color: 'black', - fontSize: 16, - padding: [0, 0, 10, 0] - }, - axisLine: { - lineStyle: { - color: 'black', - } - }, - type: 'value' - }, - series: [ - { - areaStyle: {}, - name: '销售数量', - data: [123,41,144,200,56,74,282,192], - type: 'line', - lineStyle: { - normal: { - color: '#869ad7', - } - }, - } - ] - }; - - // 使用刚指定的配置项和数据显示图表。 - this.chartLine.setOption(option); - - }, - methods: { - init() { - this.dataForm.dateRange = [] - this.dataForm.dateRange.push(getYMD(new Date().getTime() - 3600 * 1000 * 24 * 30) + ' 00:00') - this.dataForm.dateRange.push(getYMD(new Date()) + ' 23:59') - }, - - queryChart() { - let params = { - groupType: this.dataForm.groupType, - startDate: this.dataForm.dateRange[0] + ':00', - endDate: this.dataForm.dateRange[1] + ':59', - index: this.dataForm.index - } - this.loading = true - this.$http.post(`/iailab-iems-coal-proddisp/analysis/index/chart`, params).then(({data: res}) => { - this.loading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - let series = [] - if (res.data.series) { - res.data.series.forEach(function (item) { - series.push( - { - name: item.name, - data: item.data, - type: 'line', - smooth: false - } - ) - }) - } - - this.chartOption = { - grid: { - top: '8%', - right: '10%', - bottom: '12%', - left: '10%' - }, - legend: { - type: 'scroll', - orient: 'vertical', - right: 5, - top: 20, - bottom: 20, - data: res.data.legend - }, - toolbox: { - show: true, - top: 0, - right: '10%', - feature: { - dataView: {readOnly: false}, - magicType: {type: ['line', 'bar']}, - saveAsImage: {} - } - }, - xAxis: { - type: 'category', - data: res.data.categories - }, - yAxis: { - type: 'value', - name: res.data.valueName, - nameTextStyle: { - fontWeight: 'bold' - }, - axisLine: { - show: true - } - }, - series: series - } - - }).catch(() => { - this.loading = false - }) - } - } - } -</script> diff --git a/src/views/proddisp/report/sc-bc.vue b/src/views/proddisp/report/sc-bc.vue deleted file mode 100644 index cb60cb8..0000000 --- a/src/views/proddisp/report/sc-bc.vue +++ /dev/null @@ -1,57 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <el-form :inline="true" :model="dataForm"> - <el-form-item label="日期" prop="RQ"> - <el-date-picker - v-model="dataForm.RQ" - type="date" - format="yyyy-MM-dd" - value-format="yyyy-MM-dd" - :clearable="false" - placeholder="选择日期"> - </el-date-picker> - </el-form-item> - <el-form-item label="班次" prop="BC"> - <dict-select-tag style="width: 100%" - v-model="dataForm.BC" - placeholder="班次" - dictCode="bc" - :clearable="false"/> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()" :loading="loading">查询</el-button> - </el-form-item> - </el-form> - <report-view ref="reportView" :src="reportsrc" v-loading="loading" @loadCompleted="loading = false"></report-view> - </el-card> -</template> -<script> - import ReportView from '@/components/report/report-view' - import DictSelectTag from "@/components/dict/dict-select-tag"; - import { getLastDate, getLastClass } from '@/utils/dateUtils' - export default { - components: { - ReportView, - DictSelectTag - }, - data () { - return { - loading: true, - dataForm: { - RQ: getLastDate(), - BC: getLastClass() - }, - dateValue: getLastDate(), - t: new Date().getTime(), - reportsrc: `/iail-report/preview?reportModel=whs-sc-bc.ureport.xml&reportId=34¶ms=RQ:${getLastDate()},BC:${getLastClass()}&editable=true` - } - }, - methods: { - getDataList () { - this.loading = true - this.t = new Date().getTime() - this.reportsrc = `/iail-report/preview?reportModel=whs-sc-bc.ureport.xml&reportId=34¶ms=RQ:${this.dataForm.RQ},BC:${this.dataForm.BC}&editable=true&t=${this.t}` - } - } - } -</script> diff --git a/src/views/proddisp/report/sc-day.vue b/src/views/proddisp/report/sc-day.vue deleted file mode 100644 index d71ebba..0000000 --- a/src/views/proddisp/report/sc-day.vue +++ /dev/null @@ -1,47 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <el-form :inline="true" :model="dataForm"> - <el-form-item label="日期" prop="RQ"> - <el-date-picker - v-model="dataForm.RQ" - type="date" - format="yyyy-MM-dd" - value-format="yyyy-MM-dd" - :clearable="false" - placeholder="选择日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()" :loading="loading">查询</el-button> - </el-form-item> - </el-form> - <report-view ref="reportView" :src="reportsrc" v-loading="loading" @loadCompleted="loading = false"></report-view> - </el-card> -</template> -<script> - import ReportView from '@/components/report/report-view' - import { getNowDate } from '@/utils/dateUtils' - export default { - components: { - ReportView - }, - data () { - return { - loading: true, - dataForm: { - RQ: getNowDate() - }, - dateValue: getNowDate(), - t: new Date().getTime(), - reportsrc: `/iail-report/preview?reportModel=whs-sc-day.ureport.xml&reportId=34¶ms=RQ:${getNowDate()}&editable=true` - } - }, - methods: { - getDataList () { - this.loading = true - this.t = new Date().getTime() - this.reportsrc = `/iail-report/preview?reportModel=whs-sc-day.ureport.xml&reportId=34¶ms=RQ:${this.dataForm.RQ}&editable=true&t=${this.t}` - } - } - } -</script> diff --git a/src/views/proddisp/report/sc-gml.vue b/src/views/proddisp/report/sc-gml.vue deleted file mode 100644 index 7fa15df..0000000 --- a/src/views/proddisp/report/sc-gml.vue +++ /dev/null @@ -1,47 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <el-form :inline="true" :model="dataForm"> - <el-form-item label="月份" prop="RQ"> - <el-date-picker - v-model="dataForm.RQ" - type="month" - format="yyyy-MM" - value-format="yyyy-MM" - :clearable="false" - placeholder="选择日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()" :loading="loading">查询</el-button> - </el-form-item> - </el-form> - <report-view ref="reportView" :src="reportsrc" v-loading="loading" @loadCompleted="loading = false"></report-view> - </el-card> -</template> -<script> - import ReportView from '@/components/report/report-view' - import { getYM } from '@/utils/dateUtils' - export default { - components: { - ReportView - }, - data () { - return { - loading: true, - dataForm: { - RQ: getYM(new Date()) - }, - dateValue: getYM(new Date()), - t: new Date().getTime(), - reportsrc: `/iail-report/preview?reportModel=whs-sc-gml.ureport.xml&reportId=34¶ms=RQ:${getYM(new Date())}&editable=true` - } - }, - methods: { - getDataList () { - this.loading = true - this.t = new Date().getTime() - this.reportsrc = `/iail-report/preview?reportModel=whs-sc-gml.ureport.xml&reportId=34¶ms=RQ:${this.dataForm.RQ}&editable=true&t=${this.t}` - } - } - } -</script> diff --git a/src/views/proddisp/report/sc-mon.vue b/src/views/proddisp/report/sc-mon.vue deleted file mode 100644 index a494005..0000000 --- a/src/views/proddisp/report/sc-mon.vue +++ /dev/null @@ -1,47 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <el-form :inline="true" :model="dataForm"> - <el-form-item label="月份" prop="RQ"> - <el-date-picker - v-model="dataForm.RQ" - type="month" - format="yyyy-MM" - value-format="yyyy-MM" - :clearable="false" - placeholder="选择日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()" :loading="loading">查询</el-button> - </el-form-item> - </el-form> - <report-view ref="reportView" :src="reportsrc" v-loading="loading" @loadCompleted="loading = false"></report-view> - </el-card> -</template> -<script> - import ReportView from '@/components/report/report-view' - import { getYM } from '@/utils/dateUtils' - export default { - components: { - ReportView - }, - data () { - return { - loading: true, - dataForm: { - RQ: getYM(new Date()) - }, - dateValue: getYM(new Date()), - t: new Date().getTime(), - reportsrc: `/iail-report/preview?reportModel=whs-sc-mon.ureport.xml&reportId=34¶ms=RQ:${getYM(new Date())}&editable=true` - } - }, - methods: { - getDataList () { - this.loading = true - this.t = new Date().getTime() - this.reportsrc = `/iail-report/preview?reportModel=whs-sc-mon.ureport.xml&reportId=34¶ms=RQ:${this.dataForm.RQ}&editable=true&t=${this.t}` - } - } - } -</script> diff --git a/src/views/proddisp/standingBook/daily-sales/form.vue b/src/views/proddisp/standingBook/daily-sales/form.vue index 575aca5..7b8b46c 100644 --- a/src/views/proddisp/standingBook/daily-sales/form.vue +++ b/src/views/proddisp/standingBook/daily-sales/form.vue @@ -1,212 +1,3 @@ <template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> + <div></div> </template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> diff --git a/src/views/proddisp/standingBook/dispatch-log/form.vue b/src/views/proddisp/standingBook/dispatch-log/form.vue index 575aca5..2527ca0 100644 --- a/src/views/proddisp/standingBook/dispatch-log/form.vue +++ b/src/views/proddisp/standingBook/dispatch-log/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template> <div></div></template> diff --git a/src/views/proddisp/standingBook/hour-volume/form.vue b/src/views/proddisp/standingBook/hour-volume/form.vue index 575aca5..2527ca0 100644 --- a/src/views/proddisp/standingBook/hour-volume/form.vue +++ b/src/views/proddisp/standingBook/hour-volume/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template> <div></div></template> diff --git a/src/views/proddisp/standingBook/on-duty-info/form.vue b/src/views/proddisp/standingBook/on-duty-info/form.vue index 575aca5..2527ca0 100644 --- a/src/views/proddisp/standingBook/on-duty-info/form.vue +++ b/src/views/proddisp/standingBook/on-duty-info/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template> <div></div></template> diff --git a/src/views/proddisp/standingBook/power-consume/det.vue b/src/views/proddisp/standingBook/power-consume/det.vue deleted file mode 100644 index 4edcb26..0000000 --- a/src/views/proddisp/standingBook/power-consume/det.vue +++ /dev/null @@ -1,207 +0,0 @@ -<template> - <!-- 搜索 --> - <ContentWrap> - <el-form - class="-mb-15px" - :model="queryParams" - ref="queryFormRef" - :inline="true" - label-width="68px" - > - <el-form-item label="开始时间"> - <el-date-picker - size="mini" - v-model="queryParams.startTime" - format="YYYY-MM-DD HH:mm:00" - value-format="YYYY-MM-DD HH:mm:00" - type="datetime" - :clearable="false" - placeholder="选择日期时间"/> - </el-form-item> - <el-form-item label="结束时间"> - <el-date-picker - size="mini" - v-model="queryParams.endTime" - format="YYYY-MM-DD HH:mm:00" - value-format="YYYY-MM-DD HH:mm:00" - type="datetime" - :clearable="false" - placeholder="选择日期时间"/> - </el-form-item> - <el-form-item label="系统" prop="xt"> - <el-input - v-model="queryParams.xt" - placeholder="请输入系统" - clearable - @keyup.enter="handleQuery" - class="!w-240px" - /> - </el-form-item> - <el-form-item> - <el-button @click="handleQuery"> - <Icon icon="ep:search" class="mr-5px" /> - 搜索 - </el-button> - <el-button @click="resetQuery"> - <Icon icon="ep:refresh" class="mr-5px" /> - 重置 - </el-button> - <el-button - type="primary" - plain - @click="openForm('create')" - v-hasPermi="['data:point:create']" - > - <Icon icon="ep:plus" class="mr-5px" /> - 新增 - </el-button> - <el-button - type="warning" - plain - @click="handleImport" - v-hasPermi="['data:point:import']" - > - <Icon icon="ep:upload" /> 导入 - </el-button> - <el-button - type="success" - plain - @click="handleExport" - :loading="exportLoading" - v-hasPermi="['data:point:export']" - > - <Icon icon="ep:download" />导出 - </el-button> - </el-form-item> - </el-form> - </ContentWrap> - - <!-- 列表 --> - <ContentWrap> - <el-table border stripe v-loading="loading" :data="list"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"/> - <el-table-column prop="lsh" header-align="center" align="center" label="流水号" min-width="250"/> - <el-table-column prop="rq" header-align="center" align="center" label="日期" min-width="200"/> - <el-table-column prop="bcName" header-align="center" align="center" label="班次" min-width="200"/> - <el-table-column prop="xtName" header-align="center" align="center" label="系统" min-width="300"/> - <el-table-column prop="nbdrl" header-align="center" align="center" label="电耗" min-width="200"> - <template #default="scope"><span v-if="Number(scope.nbdrl) === Number('-2')" style="color: red;">电耗通讯中断</span> - <span v-else>{{ scope.nbdrl }}</span></template> - </el-table-column> - <el-table-column label="操作" fixed="right" header-align="center" align="center" width="160"> - <template #default="scope"> - <el-button type="text" size="small" - @click="showDet(scope.id)">电耗明细</el-button> - </template> - </el-table-column> - </el-table> - <!-- 分页 --> - <Pagination - :total="total" - v-model:page="queryParams.pageNo" - v-model:limit="queryParams.pageSize" - @pagination="getList" - /> - </ContentWrap> - <!--电耗明细--> - <Form ref="formRef"/> -</template> -<script lang="ts" setup> - import * as DaPoint from '@/api/prod/dailySales' - import {ref} from "vue"; - import download from "@/utils/download"; - - import listAddOrUpdate from './list-add-or-update.vue' - - defineOptions({name: 'onDutyInfo'}) - - const message = useMessage() // 消息弹窗 - const {t} = useI18n() // 国际化 - - const loading = ref(true) // 列表的加载中 - const total = ref(0) // 列表的总页数 - const list = ref([]) // 列表的数据 - const queryParams = reactive({ - pageNo: 1, - pageSize: 10, - startDate: undefined, - endDate: undefined, - xt: undefined - }) - const queryFormRef = ref() // 搜索的表单 - - /** 查询列表 */ - const getList = async () => { - loading.value = true - try { - const page = await DaPoint.getDaPointPage(queryParams) - list.value = page.list - total.value = page.total - } finally { - loading.value = false - } - } - - /** 搜索按钮操作 */ - const handleQuery = () => { - queryParams.pageNo = 1 - getList() - } - - /** 查看数据操作 */ - const chartView = ref() - const chartHandle = (raw: object) => { - chartView.value.open(raw) - } - - /** 重置按钮操作 */ - const resetQuery = () => { - queryFormRef.value.resetFields() - handleQuery() - } - - /** 添加/修改操作 */ - const formRef = ref() - const openForm = (type: string, id?: number) => { - formRef.value.open(type, id) - } - - /** 删除按钮操作 */ - const handleDelete = async (id: number) => { - try { - // 删除的二次确认 - await message.delConfirm() - // 发起删除 - await DaPoint.deleteDaPoint(id) - message.success(t('common.delSuccess')) - // 刷新列表 - await getList() - } catch { - } - } - /** 测点导入 */ - const importFormRef = ref() - const handleImport = () => { - importFormRef.value.open() - } - - /** 导出按钮操作 */ - const exportLoading = ref(false) - const handleExport = async () => { - try { - // 导出的二次确认 - await message.exportConfirm() - // 发起导出 - exportLoading.value = true - const data = await DaPoint.exportDaPoint(queryParams) - download.excel(data, '测点列表.xlsx') - } catch { - } finally { - exportLoading.value = false - } - } - /** 初始化 **/ - onMounted(async () => { - await getList() - }) -</script> diff --git a/src/views/proddisp/standingBook/power-consume/form.vue b/src/views/proddisp/standingBook/power-consume/form.vue index 575aca5..2527ca0 100644 --- a/src/views/proddisp/standingBook/power-consume/form.vue +++ b/src/views/proddisp/standingBook/power-consume/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template> <div></div></template> diff --git a/src/views/proddisp/standingBook/power-consume/list.vue b/src/views/proddisp/standingBook/power-consume/list.vue index 5c8ccb9..0c47438 100644 --- a/src/views/proddisp/standingBook/power-consume/list.vue +++ b/src/views/proddisp/standingBook/power-consume/list.vue @@ -117,7 +117,6 @@ import {ref} from "vue"; import download from "@/utils/download"; import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' - import det from './det.vue' defineOptions({name: 'PowerConsume'}) diff --git a/src/views/proddisp/standingBook/prod-accident/form.vue b/src/views/proddisp/standingBook/prod-accident/form.vue index 575aca5..0ada1d8 100644 --- a/src/views/proddisp/standingBook/prod-accident/form.vue +++ b/src/views/proddisp/standingBook/prod-accident/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template><div></div></template> diff --git a/src/views/proddisp/standingBook/prod-volume/form.vue b/src/views/proddisp/standingBook/prod-volume/form.vue index 575aca5..0ada1d8 100644 --- a/src/views/proddisp/standingBook/prod-volume/form.vue +++ b/src/views/proddisp/standingBook/prod-volume/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template><div></div></template> diff --git a/src/views/proddisp/standingBook/product-stock/form.vue b/src/views/proddisp/standingBook/product-stock/form.vue index 575aca5..0ada1d8 100644 --- a/src/views/proddisp/standingBook/product-stock/form.vue +++ b/src/views/proddisp/standingBook/product-stock/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template><div></div></template> diff --git a/src/views/proddisp/standingBook/raw-coal-stock/form.vue b/src/views/proddisp/standingBook/raw-coal-stock/form.vue index 575aca5..0ada1d8 100644 --- a/src/views/proddisp/standingBook/raw-coal-stock/form.vue +++ b/src/views/proddisp/standingBook/raw-coal-stock/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template><div></div></template> diff --git a/src/views/proddisp/standingBook/raw-coal-to-wash/form.vue b/src/views/proddisp/standingBook/raw-coal-to-wash/form.vue index 575aca5..0ada1d8 100644 --- a/src/views/proddisp/standingBook/raw-coal-to-wash/form.vue +++ b/src/views/proddisp/standingBook/raw-coal-to-wash/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template><div></div></template> diff --git a/src/views/proddisp/standingBook/raw-coal-to-wash/wash-det.vue b/src/views/proddisp/standingBook/raw-coal-to-wash/wash-det.vue deleted file mode 100644 index 979f9b6..0000000 --- a/src/views/proddisp/standingBook/raw-coal-to-wash/wash-det.vue +++ /dev/null @@ -1,111 +0,0 @@ -<template> - <div class="mod-prod-plan-det"> - <el-form :inline="true" :model="dataForm"> - <el-form-item> - <span>入洗明细</span><span>【{{dataForm.lsh}}】</span> - </el-form-item> - <el-form-item> - <el-button size="mini" @click="getDataList()">{{ $t('refresh') }}</el-button> - <el-button size="mini" type="primary" @click="openForm(dataForm.id)">新增</el-button> - </el-form-item> - </el-form> - <el-table - ref="table" - :data="dataList" - border - height="400" - highlight-current-row - v-loading="dataListLoading" - style="width: 100%;"> - <el-table-column type="index" header-align="center" align="center" width="50" label="序号"></el-table-column> - <el-table-column prop="mzName" header-align="center" align="center" label="入洗煤种"></el-table-column> - <el-table-column prop="bl" header-align="center" align="center" label="入洗比例(%)"></el-table-column> - <el-table-column prop="rxl" header-align="center" align="center" label="入洗量"></el-table-column> - <el-table-column prop="bz" header-align="center" align="center" label="备注"></el-table-column> - <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> - <template slot-scope="scope"> - <el-button type="text" size="small" @click="openForm(dataForm.id,scope.row.id)">修改</el-button> - <el-button type="text" size="small" @click="handleDelete(scope.row.id)">删除</el-button> - </template> - </el-table-column> - </el-table> - <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> - </div> -</template> -<script> - import mixinViewModule from '@/mixins/view-module' - import AddOrUpdate from './list-add-or-update'; - export default { - mixins: [mixinViewModule], - data() { - return { - dataList: [], - dataForm: { - id: '', - lsh: '' - }, - dataListLoading: false - } - }, - components: { - AddOrUpdate - }, - methods: { - // 新增 或 修改 - openForm (washId,id) { - if( washId == ''){ - this.$alert('请先选择要编辑的总入洗量', '提示', { - confirmButtonText: '确定', - }); - }else{ - this.addOrUpdateVisible = true - this.$nextTick(() => { - this.$refs.addOrUpdate.init(id,washId) - }) - } - }, - //删除 - handleDelete(id){ - this.$confirm(`确定对所选项目进行[删除]操作?`, '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.$http.post(`/iailab-iems-coal-proddisp/wash/to-wash/deleteDet/${id}`).then(({data: res}) => { - if (res.code !== 0) { - this.$message.error(data.msg) - } else { - this.$message({ - message: '操作成功', - type: 'success', - duration: 1500, - }) - this.getDataList() - } - }) - }).catch(() => {}) - }, - - init(row) { - this.dataForm.id = row.id || '0' - this.dataForm.lsh = row.lsh - this.$nextTick(() => { - this.getDataList() - }) - }, - // 获取数据列表 - getDataList() { - this.dataListLoading = true - this.$http.get(`/iailab-iems-coal-proddisp/wash/to-wash/selectDetList/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - this.dataListLoading = false - } - this.dataList = res.list - this.dataListLoading = false - }).catch(() => { - }) - } - } - } -</script> diff --git a/src/views/proddisp/standingBook/raw-coal-transfer-in/form.vue b/src/views/proddisp/standingBook/raw-coal-transfer-in/form.vue index 575aca5..0ada1d8 100644 --- a/src/views/proddisp/standingBook/raw-coal-transfer-in/form.vue +++ b/src/views/proddisp/standingBook/raw-coal-transfer-in/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template><div></div></template> diff --git a/src/views/proddisp/standingBook/run-time/det.vue b/src/views/proddisp/standingBook/run-time/det.vue deleted file mode 100644 index a69eba7..0000000 --- a/src/views/proddisp/standingBook/run-time/det.vue +++ /dev/null @@ -1,64 +0,0 @@ -<template> - <el-drawer - direction="rtl" - :visible.sync="visible" - @close="handleClose" - size="50%"> - <div class="mod-consume-power-det" style="padding: 5px;"> - <el-form :inline="true" :model="dataForm" ref="dataForm" @keyup.enter.native="getDataList()" label-width="10px"> - <el-form-item prop="sbmc"> - <el-input size="mini" v-model="dataForm.sbmc" placeholder="设备名称" - clearable></el-input> - </el-form-item> - <el-form-item> - <el-button size="mini" @click="getDataList()">{{ $t('query') }}</el-button> - </el-form-item> - </el-form> - <el-table v-loading="dataListLoading" :data="dataList" row-key="id" border style="width: 100%;" - @selection-change="dataListSelectionChangeHandle"> - <el-table-column type="index" header-align="center" align="center" min-width="50" label="序号"></el-table-column> - <el-table-column prop="sbmc" header-align="center" align="center" label="设备名称" min-width="100"></el-table-column> - <el-table-column prop="xss" header-align="center" align="center" label="小时数" min-width="150"></el-table-column> - <el-table-column prop="fzs" header-align="center" align="center" label="分钟数" min-width="150"></el-table-column> - <el-table-column prop="zsc" header-align="center" align="center" label="总时长(分钟)" min-width="200"></el-table-column> - </el-table> - </div> - </el-drawer> -</template> -<script> - import mixinViewModule from '@/mixins/view-module' - - export default { - mixins: [mixinViewModule], - data() { - return { - mixinViewModuleOptions: { - createdIsNeed: false, - getDataListURL: '/iailab-iems-coal-proddisp/device/run-time-det/list', - getDataListIsPage: true, - }, - visible: false, - dataForm: { - runTimeId: '', - sbbm: '', - sbmc: '' - } - } - }, - methods: { - init(runTimeId) { - this.dataForm.runTimeId = runTimeId - this.visible = true - this.$nextTick(() => { - this.getDataList() - }) - }, - - handleClose() { - this.$refs['dataForm'].resetFields() - this.dataList = [] - }, - - } - } -</script> diff --git a/src/views/proddisp/standingBook/run-time/form.vue b/src/views/proddisp/standingBook/run-time/form.vue index 575aca5..0ada1d8 100644 --- a/src/views/proddisp/standingBook/run-time/form.vue +++ b/src/views/proddisp/standingBook/run-time/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template><div></div></template> diff --git a/src/views/proddisp/standingBook/target-consume/form.vue b/src/views/proddisp/standingBook/target-consume/form.vue index 575aca5..0ada1d8 100644 --- a/src/views/proddisp/standingBook/target-consume/form.vue +++ b/src/views/proddisp/standingBook/target-consume/form.vue @@ -1,212 +1 @@ -<template> - <el-dialog :visible.sync="visible" append-to-body :title="!dataForm.id ? $t('add') : $t('update')" - :close-on-click-modal="false" :close-on-press-escape="false"> - <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px"> - <el-row> - <el-col :span="12"> - <el-form-item prop="rq" label="日期"> - <el-date-picker - style="width: 100%" - v-model="dataForm.rq" - type="date" - :clearable="true" - value-format="yyyy-MM-dd" - placeholder="日期"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="bc" label="班次"> - <dict-select-tag style="width: 100%" v-model="dataForm.bc" clearable placeholder="班次" dictCode="bc"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="yxfw" label="影响范围"> - <el-input v-model="dataForm.yxfw" clearable placeholder="影响范围"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgnr" label="事故内容"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故内容" - v-model="dataForm.sgnr"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> - <el-form-item prop="kssj" label="开始时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.kssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="开始时间"> - </el-date-picker> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item prop="jssj" label="结束时间"> - <el-date-picker - style="width: 100%" - v-model="dataForm.jssj" - type="datetime" - :clearable="true" - value-format="yyyy-MM-dd HH:mm:ss" - placeholder="结束时间"> - </el-date-picker> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sgyy" label="事故原因"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故原因" - v-model="dataForm.sgyy"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="sghg" label="事故后果"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入事故后果" - v-model="dataForm.sghg"> - </el-input> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="24"> - <el-form-item prop="bz" label="备注"> - <el-input - type="textarea" - :autosize="{ minRows: 3, maxRows: 3}" - placeholder="请输入备注" - v-model="dataForm.bz"> - </el-input> - </el-form-item> - </el-col> - </el-row> - </el-form> - <template slot="footer"> - <el-button size="mini" :loading="loading" @click="visible = false">{{ $t('cancel') }}</el-button> - <el-button size="mini" :loading="loading" type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }} - </el-button> - </template> - </el-dialog> -</template> - -<script> -import debounce from 'lodash/debounce' -import DictSelectTag from '@/components/dict/dict-select-tag' -import {getDictItem} from "@/utils/dictUtils"; -export default { - data() { - return { - visible: false, - loading: false, - dataForm: { - id: '', - rq: '', - bc: '', - yxfw: '', - sgnr: '', - kssj: '', - jssj: '', - cxsj: '', - sgyy: '', - sghg: '', - bz: '' - } - } - }, - components: { - DictSelectTag - }, - computed: { - dataRule() { - return { - rq: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - bc: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - yxfw: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - sgnr: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ], - kssj: [ - {required: true, message: this.$t('validate.required'), trigger: 'blur'} - ] - } - } - }, - methods: { - init() { - this.visible = true - this.$nextTick(() => { - this.$refs['dataForm'].resetFields() - if (this.dataForm.id) { - this.getInfo() - } - }) - }, - // 获取信息 - getInfo() { - this.$http.get(`/iailab-iems-coal-proddisp/work/prod-accident/info/${this.dataForm.id}`).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.info - } - }).catch(() => { - }) - }, - // 表单提交 - dataFormSubmitHandle: debounce(function () { - this.$refs['dataForm'].validate((valid) => { - if (!valid) { - return false - } - this.loading = true - this.$http['post'](`/iailab-iems-coal-proddisp/work/prod-accident/${!this.dataForm.id ? 'add' : 'update'}`, this.dataForm).then(({data: res}) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - this.loading = false - }).catch(() => { - }) - }) - }, 1000, {'leading': true, 'trailing': false}) - } -} -</script> +<template><div></div></template> diff --git a/src/views/proddisp/statisticalReports/dailyReports.vue b/src/views/proddisp/statisticalReports/dailyReports.vue deleted file mode 100644 index 04a6654..0000000 --- a/src/views/proddisp/statisticalReports/dailyReports.vue +++ /dev/null @@ -1,47 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <el-form :inline="true" :model="dataForm"> - <el-form-item label="日期" prop="RQ"> - <el-date-picker - v-model="dataForm.RQ" - type="date" - format="yyyy-MM-dd" - value-format="yyyy-MM-dd" - :clearable="false" - placeholder="选择日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()" :loading="loading">查询</el-button> - </el-form-item> - </el-form> - <report-view ref="reportView" :src="reportsrc" v-loading="loading" @loadCompleted="loading = false"></report-view> - </el-card> -</template> -<script> - import ReportView from '@/components/report/report-view' - import { getNowDate } from '@/utils/dateUtils' - export default { - components: { - ReportView - }, - data () { - return { - loading: true, - dataForm: { - RQ: getNowDate() - }, - dateValue: getNowDate(), - t: new Date().getTime(), - reportsrc: `/iail-report/preview?reportModel=whs-sc-day.ureport.xml&reportId=34¶ms=RQ:${getNowDate()}&editable=true` - } - }, - methods: { - getDataList () { - this.loading = true - this.t = new Date().getTime() - this.reportsrc = `/iail-report/preview?reportModel=whs-sc-day.ureport.xml&reportId=34¶ms=RQ:${this.dataForm.RQ}&editable=true&t=${this.t}` - } - } - } -</script> diff --git a/src/views/proddisp/statisticalReports/outboundReports.vue b/src/views/proddisp/statisticalReports/outboundReports.vue deleted file mode 100644 index b56a23c..0000000 --- a/src/views/proddisp/statisticalReports/outboundReports.vue +++ /dev/null @@ -1,58 +0,0 @@ -<template> - <el-card shadow="never" class="aui-card--fill"> - <el-form :inline="true" :model="dataForm"> - <el-form-item prop="RQ"> - <el-date-picker - v-model="dataForm.RQ" - type="date" - format="yyyy-MM-dd" - value-format="yyyy-MM-dd" - :clearable="false" - placeholder="开始日期"> - </el-date-picker> - </el-form-item> - <el-form-item prop="end"> - <el-date-picker - v-model="dataForm.end" - type="date" - format="yyyy-MM-dd" - value-format="yyyy-MM-dd" - :clearable="false" - placeholder="结束日期"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button @click="getDataList()" :loading="loading">查询</el-button> - </el-form-item> - </el-form> - <report-view ref="reportView" :src="reportsrc" v-loading="loading" @loadCompleted="loading = false"></report-view> - </el-card> -</template> -<script> - import ReportView from '@/components/report/report-view' - import { getNowDate } from '@/utils/dateUtils' - export default { - components: { - ReportView - }, - data () { - return { - loading: true, - dataForm: { - RQ: getNowDate(), - end: '' - }, - dateValue: getNowDate(), - t: new Date().getTime(), - reportsrc: `/iail-report/preview?reportModel=whs-mz-ssjm.ureport.xml&reportId=34¶ms=RQ:${getNowDate()}&editable=true` - } - }, - methods: { - getDataList () { - this.loading = true - this.t = new Date().getTime() - this.reportsrc = `/iail-report/preview?reportModel=whs-mz-ssjm.ureport.xml&reportId=34¶ms=RQ:${this.dataForm.RQ}&editable=true&t=${this.t}` - } - } - } -</script> diff --git a/src/views/xmcpms/coal-quality/analysis/wash-curves/WashCurvesForm.vue b/src/views/xmcpms/coal-quality/analysis/wash-curves/WashCurvesForm.vue index af49711..c23f58e 100644 --- a/src/views/xmcpms/coal-quality/analysis/wash-curves/WashCurvesForm.vue +++ b/src/views/xmcpms/coal-quality/analysis/wash-curves/WashCurvesForm.vue @@ -36,7 +36,7 @@ <el-select v-model="formData.mz" placeholder="煤种" clearable > <el-option - v-for="dict in getStrDictOptions(DICT_TYPE.YMMZ)" + v-for="dict in getStrDictOptions(DICT_TYPE.PMS_YMMZ)" :key="dict.value" :label="dict.label" :value="dict.value" diff --git a/yarn.lock b/yarn.lock index 82904e6..de82f8b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1196,112 +1196,112 @@ "@esbuild/aix-ppc64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2faix-ppc64/-/aix-ppc64-0.19.12.tgz#d1bc06aedb6936b3b6d313bf809a5a40387d2b7f" + resolved "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz#d1bc06aedb6936b3b6d313bf809a5a40387d2b7f" integrity sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA== "@esbuild/android-arm64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fandroid-arm64/-/android-arm64-0.19.12.tgz#7ad65a36cfdb7e0d429c353e00f680d737c2aed4" + resolved "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz#7ad65a36cfdb7e0d429c353e00f680d737c2aed4" integrity sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA== "@esbuild/android-arm@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fandroid-arm/-/android-arm-0.19.12.tgz#b0c26536f37776162ca8bde25e42040c203f2824" + resolved "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.19.12.tgz#b0c26536f37776162ca8bde25e42040c203f2824" integrity sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w== "@esbuild/android-x64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fandroid-x64/-/android-x64-0.19.12.tgz#cb13e2211282012194d89bf3bfe7721273473b3d" + resolved "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.19.12.tgz#cb13e2211282012194d89bf3bfe7721273473b3d" integrity sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew== "@esbuild/darwin-arm64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fdarwin-arm64/-/darwin-arm64-0.19.12.tgz#cbee41e988020d4b516e9d9e44dd29200996275e" + resolved "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz#cbee41e988020d4b516e9d9e44dd29200996275e" integrity sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g== "@esbuild/darwin-x64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fdarwin-x64/-/darwin-x64-0.19.12.tgz#e37d9633246d52aecf491ee916ece709f9d5f4cd" + resolved "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz#e37d9633246d52aecf491ee916ece709f9d5f4cd" integrity sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A== "@esbuild/freebsd-arm64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2ffreebsd-arm64/-/freebsd-arm64-0.19.12.tgz#1ee4d8b682ed363b08af74d1ea2b2b4dbba76487" + resolved "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz#1ee4d8b682ed363b08af74d1ea2b2b4dbba76487" integrity sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA== "@esbuild/freebsd-x64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2ffreebsd-x64/-/freebsd-x64-0.19.12.tgz#37a693553d42ff77cd7126764b535fb6cc28a11c" + resolved "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz#37a693553d42ff77cd7126764b535fb6cc28a11c" integrity sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg== "@esbuild/linux-arm64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2flinux-arm64/-/linux-arm64-0.19.12.tgz#be9b145985ec6c57470e0e051d887b09dddb2d4b" + resolved "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz#be9b145985ec6c57470e0e051d887b09dddb2d4b" integrity sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA== "@esbuild/linux-arm@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2flinux-arm/-/linux-arm-0.19.12.tgz#207ecd982a8db95f7b5279207d0ff2331acf5eef" + resolved "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz#207ecd982a8db95f7b5279207d0ff2331acf5eef" integrity sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w== "@esbuild/linux-ia32@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2flinux-ia32/-/linux-ia32-0.19.12.tgz#d0d86b5ca1562523dc284a6723293a52d5860601" + resolved "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz#d0d86b5ca1562523dc284a6723293a52d5860601" integrity sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA== "@esbuild/linux-loong64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2flinux-loong64/-/linux-loong64-0.19.12.tgz#9a37f87fec4b8408e682b528391fa22afd952299" + resolved "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz#9a37f87fec4b8408e682b528391fa22afd952299" integrity sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA== "@esbuild/linux-mips64el@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2flinux-mips64el/-/linux-mips64el-0.19.12.tgz#4ddebd4e6eeba20b509d8e74c8e30d8ace0b89ec" + resolved "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz#4ddebd4e6eeba20b509d8e74c8e30d8ace0b89ec" integrity sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w== "@esbuild/linux-ppc64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2flinux-ppc64/-/linux-ppc64-0.19.12.tgz#adb67dadb73656849f63cd522f5ecb351dd8dee8" + resolved "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz#adb67dadb73656849f63cd522f5ecb351dd8dee8" integrity sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg== "@esbuild/linux-riscv64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2flinux-riscv64/-/linux-riscv64-0.19.12.tgz#11bc0698bf0a2abf8727f1c7ace2112612c15adf" + resolved "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz#11bc0698bf0a2abf8727f1c7ace2112612c15adf" integrity sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg== "@esbuild/linux-s390x@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2flinux-s390x/-/linux-s390x-0.19.12.tgz#e86fb8ffba7c5c92ba91fc3b27ed5a70196c3cc8" + resolved "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz#e86fb8ffba7c5c92ba91fc3b27ed5a70196c3cc8" integrity sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg== "@esbuild/linux-x64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2flinux-x64/-/linux-x64-0.19.12.tgz#5f37cfdc705aea687dfe5dfbec086a05acfe9c78" + resolved "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz#5f37cfdc705aea687dfe5dfbec086a05acfe9c78" integrity sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg== "@esbuild/netbsd-x64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fnetbsd-x64/-/netbsd-x64-0.19.12.tgz#29da566a75324e0d0dd7e47519ba2f7ef168657b" + resolved "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz#29da566a75324e0d0dd7e47519ba2f7ef168657b" integrity sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA== "@esbuild/openbsd-x64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fopenbsd-x64/-/openbsd-x64-0.19.12.tgz#306c0acbdb5a99c95be98bdd1d47c916e7dc3ff0" + resolved "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz#306c0acbdb5a99c95be98bdd1d47c916e7dc3ff0" integrity sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw== "@esbuild/sunos-x64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fsunos-x64/-/sunos-x64-0.19.12.tgz#0933eaab9af8b9b2c930236f62aae3fc593faf30" + resolved "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz#0933eaab9af8b9b2c930236f62aae3fc593faf30" integrity sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA== "@esbuild/win32-arm64@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fwin32-arm64/-/win32-arm64-0.19.12.tgz#773bdbaa1971b36db2f6560088639ccd1e6773ae" + resolved "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz#773bdbaa1971b36db2f6560088639ccd1e6773ae" integrity sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A== "@esbuild/win32-ia32@0.19.12": version "0.19.12" - resolved "http://172.16.8.100:4873/@esbuild%2fwin32-ia32/-/win32-ia32-0.19.12.tgz#000516cad06354cc84a73f0943a4aa690ef6fd67" + resolved "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz#000516cad06354cc84a73f0943a4aa690ef6fd67" integrity sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ== "@esbuild/win32-x64@0.19.12": @@ -1649,77 +1649,77 @@ "@rollup/rollup-android-arm-eabi@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-android-arm-eabi/-/rollup-android-arm-eabi-4.21.0.tgz#d941173f82f9b041c61b0dc1a2a91dcd06e4b31e" + resolved "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.21.0.tgz#d941173f82f9b041c61b0dc1a2a91dcd06e4b31e" integrity sha512-WTWD8PfoSAJ+qL87lE7votj3syLavxunWhzCnx3XFxFiI/BA/r3X7MUM8dVrH8rb2r4AiO8jJsr3ZjdaftmnfA== "@rollup/rollup-android-arm64@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-android-arm64/-/rollup-android-arm64-4.21.0.tgz#7e7157c8543215245ceffc445134d9e843ba51c0" + resolved "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.21.0.tgz#7e7157c8543215245ceffc445134d9e843ba51c0" integrity sha512-a1sR2zSK1B4eYkiZu17ZUZhmUQcKjk2/j9Me2IDjk1GHW7LB5Z35LEzj9iJch6gtUfsnvZs1ZNyDW2oZSThrkA== "@rollup/rollup-darwin-arm64@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-darwin-arm64/-/rollup-darwin-arm64-4.21.0.tgz#f0a18a4fc8dc6eb1e94a51fa2adb22876f477947" + resolved "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.21.0.tgz#f0a18a4fc8dc6eb1e94a51fa2adb22876f477947" integrity sha512-zOnKWLgDld/svhKO5PD9ozmL6roy5OQ5T4ThvdYZLpiOhEGY+dp2NwUmxK0Ld91LrbjrvtNAE0ERBwjqhZTRAA== "@rollup/rollup-darwin-x64@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-darwin-x64/-/rollup-darwin-x64-4.21.0.tgz#34b7867613e5cc42d2b85ddc0424228cc33b43f0" + resolved "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.21.0.tgz#34b7867613e5cc42d2b85ddc0424228cc33b43f0" integrity sha512-7doS8br0xAkg48SKE2QNtMSFPFUlRdw9+votl27MvT46vo44ATBmdZdGysOevNELmZlfd+NEa0UYOA8f01WSrg== "@rollup/rollup-linux-arm-gnueabihf@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.21.0.tgz#422b19ff9ae02b05d3395183d1d43b38c7c8be0b" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.21.0.tgz#422b19ff9ae02b05d3395183d1d43b38c7c8be0b" integrity sha512-pWJsfQjNWNGsoCq53KjMtwdJDmh/6NubwQcz52aEwLEuvx08bzcy6tOUuawAOncPnxz/3siRtd8hiQ32G1y8VA== "@rollup/rollup-linux-arm-musleabihf@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.21.0.tgz#568aa29195ef6fc57ec6ed3f518923764406a8ee" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.21.0.tgz#568aa29195ef6fc57ec6ed3f518923764406a8ee" integrity sha512-efRIANsz3UHZrnZXuEvxS9LoCOWMGD1rweciD6uJQIx2myN3a8Im1FafZBzh7zk1RJ6oKcR16dU3UPldaKd83w== "@rollup/rollup-linux-arm64-gnu@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.21.0.tgz#22309c8bcba9a73114f69165c72bc94b2fbec085" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.21.0.tgz#22309c8bcba9a73114f69165c72bc94b2fbec085" integrity sha512-ZrPhydkTVhyeGTW94WJ8pnl1uroqVHM3j3hjdquwAcWnmivjAwOYjTEAuEDeJvGX7xv3Z9GAvrBkEzCgHq9U1w== "@rollup/rollup-linux-arm64-musl@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.21.0.tgz#c93c388af6d33f082894b8a60839d7265b2b9bc5" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.21.0.tgz#c93c388af6d33f082894b8a60839d7265b2b9bc5" integrity sha512-cfaupqd+UEFeURmqNP2eEvXqgbSox/LHOyN9/d2pSdV8xTrjdg3NgOFJCtc1vQ/jEke1qD0IejbBfxleBPHnPw== "@rollup/rollup-linux-powerpc64le-gnu@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.21.0.tgz#493c5e19e395cf3c6bd860c7139c8a903dea72b4" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.21.0.tgz#493c5e19e395cf3c6bd860c7139c8a903dea72b4" integrity sha512-ZKPan1/RvAhrUylwBXC9t7B2hXdpb/ufeu22pG2psV7RN8roOfGurEghw1ySmX/CmDDHNTDDjY3lo9hRlgtaHg== "@rollup/rollup-linux-riscv64-gnu@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.21.0.tgz#a2eab4346fbe5909165ce99adb935ba30c9fb444" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.21.0.tgz#a2eab4346fbe5909165ce99adb935ba30c9fb444" integrity sha512-H1eRaCwd5E8eS8leiS+o/NqMdljkcb1d6r2h4fKSsCXQilLKArq6WS7XBLDu80Yz+nMqHVFDquwcVrQmGr28rg== "@rollup/rollup-linux-s390x-gnu@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.21.0.tgz#0bc49a79db4345d78d757bb1b05e73a1b42fa5c3" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.21.0.tgz#0bc49a79db4345d78d757bb1b05e73a1b42fa5c3" integrity sha512-zJ4hA+3b5tu8u7L58CCSI0A9N1vkfwPhWd/puGXwtZlsB5bTkwDNW/+JCU84+3QYmKpLi+XvHdmrlwUwDA6kqw== "@rollup/rollup-linux-x64-gnu@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.21.0.tgz#4fd36a6a41f3406d8693321b13d4f9b7658dd4b9" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.21.0.tgz#4fd36a6a41f3406d8693321b13d4f9b7658dd4b9" integrity sha512-e2hrvElFIh6kW/UNBQK/kzqMNY5mO+67YtEh9OA65RM5IJXYTWiXjX6fjIiPaqOkBthYF1EqgiZ6OXKcQsM0hg== "@rollup/rollup-linux-x64-musl@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-linux-x64-musl/-/rollup-linux-x64-musl-4.21.0.tgz#10ebb13bd4469cbad1a5d9b073bd27ec8a886200" + resolved "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.21.0.tgz#10ebb13bd4469cbad1a5d9b073bd27ec8a886200" integrity sha512-1vvmgDdUSebVGXWX2lIcgRebqfQSff0hMEkLJyakQ9JQUbLDkEaMsPTLOmyccyC6IJ/l3FZuJbmrBw/u0A0uCQ== "@rollup/rollup-win32-arm64-msvc@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.21.0.tgz#2fef1a90f1402258ef915ae5a94cc91a5a1d5bfc" + resolved "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.21.0.tgz#2fef1a90f1402258ef915ae5a94cc91a5a1d5bfc" integrity sha512-s5oFkZ/hFcrlAyBTONFY1TWndfyre1wOMwU+6KCpm/iatybvrRgmZVM+vCFwxmC5ZhdlgfE0N4XorsDpi7/4XQ== "@rollup/rollup-win32-ia32-msvc@4.21.0": version "4.21.0" - resolved "http://172.16.8.100:4873/@rollup%2frollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.21.0.tgz#a18ad47a95c5f264defb60acdd8c27569f816fc1" + resolved "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.21.0.tgz#a18ad47a95c5f264defb60acdd8c27569f816fc1" integrity sha512-G9+TEqRnAA6nbpqyUqgTiopmnfgnMkR3kMukFBDsiyy23LZvUCpiUwjTRx6ezYCjJODXrh52rBR9oXvm+Fp5wg== "@rollup/rollup-win32-x64-msvc@4.21.0": @@ -1734,47 +1734,47 @@ "@swc/core-darwin-arm64@1.7.14": version "1.7.14" - resolved "http://172.16.8.100:4873/@swc%2fcore-darwin-arm64/-/core-darwin-arm64-1.7.14.tgz#a4530ec755ea183802cc9dfe4900ab5f6a327fea" + resolved "https://registry.npmmirror.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.7.14.tgz#a4530ec755ea183802cc9dfe4900ab5f6a327fea" integrity sha512-V0OUXjOH+hdGxDYG8NkQzy25mKOpcNKFpqtZEzLe5V/CpLJPnpg1+pMz70m14s9ZFda9OxsjlvPbg1FLUwhgIQ== "@swc/core-darwin-x64@1.7.14": version "1.7.14" - resolved "http://172.16.8.100:4873/@swc%2fcore-darwin-x64/-/core-darwin-x64-1.7.14.tgz#2c9c717fd28dd1dde9c21cf58b01f1cda7976b1a" + resolved "https://registry.npmmirror.com/@swc/core-darwin-x64/-/core-darwin-x64-1.7.14.tgz#2c9c717fd28dd1dde9c21cf58b01f1cda7976b1a" integrity sha512-9iFvUnxG6FC3An5ogp5jbBfQuUmTTwy8KMB+ZddUoPB3NR1eV+Y9vOh/tfWcenSJbgOKDLgYC5D/b1mHAprsrQ== "@swc/core-linux-arm-gnueabihf@1.7.14": version "1.7.14" - resolved "http://172.16.8.100:4873/@swc%2fcore-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.14.tgz#fed055c9c65347177c8df88720f8a51793a4df06" + resolved "https://registry.npmmirror.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.7.14.tgz#fed055c9c65347177c8df88720f8a51793a4df06" integrity sha512-zGJsef9qPivKSH8Vv4F/HiBXBTHZ5Hs3ZjVGo/UIdWPJF8fTL9OVADiRrl34Q7zOZEtGXRwEKLUW1SCQcbDvZA== "@swc/core-linux-arm64-gnu@1.7.14": version "1.7.14" - resolved "http://172.16.8.100:4873/@swc%2fcore-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.14.tgz#ca740c8ea26f041b2dc43ba87facec452052814f" + resolved "https://registry.npmmirror.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.7.14.tgz#ca740c8ea26f041b2dc43ba87facec452052814f" integrity sha512-AxV3MPsoI7i4B8FXOew3dx3N8y00YoJYvIPfxelw07RegeCEH3aHp2U2DtgbP/NV1ugZMx0TL2Z2DEvocmA51g== "@swc/core-linux-arm64-musl@1.7.14": version "1.7.14" - resolved "http://172.16.8.100:4873/@swc%2fcore-linux-arm64-musl/-/core-linux-arm64-musl-1.7.14.tgz#fbc6fed24f5ad58b948e5b7abe6cd1f07112bef1" + resolved "https://registry.npmmirror.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.7.14.tgz#fbc6fed24f5ad58b948e5b7abe6cd1f07112bef1" integrity sha512-JDLdNjUj3zPehd4+DrQD8Ltb3B5lD8D05IwePyDWw+uR/YPc7w/TX1FUVci5h3giJnlMCJRvi1IQYV7K1n7KtQ== "@swc/core-linux-x64-gnu@1.7.14": version "1.7.14" - resolved "http://172.16.8.100:4873/@swc%2fcore-linux-x64-gnu/-/core-linux-x64-gnu-1.7.14.tgz#509a37833e4fbf89506b9291d9bd131fa2017fca" + resolved "https://registry.npmmirror.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.7.14.tgz#509a37833e4fbf89506b9291d9bd131fa2017fca" integrity sha512-Siy5OvPCLLWmMdx4msnEs8HvEVUEigSn0+3pbLjv78iwzXd0qSBNHUPZyC1xeurVaUbpNDxZTpPRIwpqNE2+Og== "@swc/core-linux-x64-musl@1.7.14": version "1.7.14" - resolved "http://172.16.8.100:4873/@swc%2fcore-linux-x64-musl/-/core-linux-x64-musl-1.7.14.tgz#81156cc6ff814ad4b8fcf6eb6658d3f247db0b57" + resolved "https://registry.npmmirror.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.7.14.tgz#81156cc6ff814ad4b8fcf6eb6658d3f247db0b57" integrity sha512-FtEGm9mwtRYQNK43WMtUIadxHs/ja2rnDurB99os0ZoFTGG2IHuht2zD97W0wB8JbqEabT1XwSG9Y5wmN+ciEQ== "@swc/core-win32-arm64-msvc@1.7.14": version "1.7.14" - resolved "http://172.16.8.100:4873/@swc%2fcore-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.14.tgz#c605fa783b5fbe1fff784ace4c4bb074b8d6026d" + resolved "https://registry.npmmirror.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.7.14.tgz#c605fa783b5fbe1fff784ace4c4bb074b8d6026d" integrity sha512-Jp8KDlfq7Ntt2/BXr0y344cYgB1zf0DaLzDZ1ZJR6rYlAzWYSccLYcxHa97VGnsYhhPspMpmCvHid97oe2hl4A== "@swc/core-win32-ia32-msvc@1.7.14": version "1.7.14" - resolved "http://172.16.8.100:4873/@swc%2fcore-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.14.tgz#3e15dc3b662c9fab851a38b3e271c8e2da4ba03a" + resolved "https://registry.npmmirror.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.7.14.tgz#3e15dc3b662c9fab851a38b3e271c8e2da4ba03a" integrity sha512-I+cFsXF0OU0J9J4zdWiQKKLURO5dvCujH9Jr8N0cErdy54l9d4gfIxdctfTF+7FyXtWKLTCkp+oby9BQhkFGWA== "@swc/core-win32-x64-msvc@1.7.14": @@ -5096,7 +5096,7 @@ fsevents@~2.3.2, fsevents@~2.3.3: version "2.3.3" - resolved "http://172.16.8.100:4873/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + resolved "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== function-bind@^1.1.2: -- Gitblit v1.9.3