|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
-<!-- 折算系数维护 -->
|
|
|
+<!-- 折算值维护 -->
|
|
|
<div class="sourcecode">
|
|
|
<div class="box">
|
|
|
<div class="box-top">
|
|
@@ -30,17 +30,43 @@
|
|
|
</el-form-item>
|
|
|
</el-col> -->
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="公式版本">
|
|
|
- <el-date-picker
|
|
|
+ <el-form-item label="检测日期">
|
|
|
+ <!-- <el-date-picker
|
|
|
v-model="filterForm.data.clock"
|
|
|
type="date"
|
|
|
placeholder=""
|
|
|
style="width: 100%;"
|
|
|
value-format="yyyyMMdd"
|
|
|
- ></el-date-picker>
|
|
|
+ :custom ="1"
|
|
|
+ ></el-date-picker> -->
|
|
|
+ <zj-timegran-date
|
|
|
+ v-model="filterForm.data.clock"
|
|
|
+ style="width: 100%;"
|
|
|
+ :type="'daterange'"
|
|
|
+ :oneFoo="getTableData"
|
|
|
+ :timegranId="filterForm.data.timegranid"
|
|
|
+ :custom ="1"
|
|
|
+ ></zj-timegran-date>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
+ <el-form-item label="时间粒度">
|
|
|
+ <el-select
|
|
|
+ filterable clearable
|
|
|
+ v-model="filterForm.data.timegranid"
|
|
|
+ placeholder=""
|
|
|
+ style="width: 100%;"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item of nameObj.timegranid.arr"
|
|
|
+ :key="item.id"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-col :span="6">
|
|
|
<el-form-item label="能介编码">
|
|
|
<el-input clearable
|
|
|
v-model.trim="filterForm.data.energyid"
|
|
@@ -48,17 +74,17 @@
|
|
|
style="width: 100%;"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div class="box-top-gjl">
|
|
|
- <el-button
|
|
|
+ <!-- <el-button
|
|
|
class="button"
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
icon="el-icon-save"
|
|
|
@click="but_more()"
|
|
|
- >保存</el-button>
|
|
|
+ >保存</el-button> -->
|
|
|
<div style="float:right; text-align: right;">
|
|
|
<el-button
|
|
|
class="button"
|
|
@@ -68,14 +94,14 @@
|
|
|
v-privilege="activeMenu + 'QUERY'"
|
|
|
@click="getTableData(1)"
|
|
|
>查询</el-button>
|
|
|
- <el-button
|
|
|
+ <!-- <el-button
|
|
|
class="button"
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
icon="el-icon-refresh"
|
|
|
v-privilege="activeMenu + 'QUERY'"
|
|
|
@click="tableDataCancel();"
|
|
|
- >重置</el-button>
|
|
|
+ >重置</el-button> -->
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
:icon="filterForm.show ? 'el-icon-caret-top' : 'el-icon-caret-bottom'"
|
|
@@ -108,14 +134,14 @@
|
|
|
highlight-current-row
|
|
|
@selection-change="handleSelectionChange">
|
|
|
>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
sortable
|
|
|
type="selection"
|
|
|
width="40"
|
|
|
align="center"
|
|
|
fixed="left"
|
|
|
>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column
|
|
|
prop="id"
|
|
|
width="40"
|
|
@@ -129,24 +155,26 @@
|
|
|
prop="materialsource"
|
|
|
label="物料来源"
|
|
|
width="100px"
|
|
|
+ align="center"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ nameObj.materialsource.obj[scope.row.materialsource] ? nameObj.materialsource.obj[scope.row.materialsource].name : scope.row.materialsource }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
sortable
|
|
|
prop="energyid"
|
|
|
label="能介编码"
|
|
|
width="100px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
- ></el-table-column>
|
|
|
+ ></el-table-column> -->
|
|
|
<el-table-column
|
|
|
sortable
|
|
|
:sort-by="function(row, index) { return sortFoo(row, index, 'energyid') }"
|
|
|
prop="energyname"
|
|
|
label="能介名称"
|
|
|
+ align="center"
|
|
|
width="120px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
@@ -157,14 +185,24 @@
|
|
|
<el-table-column
|
|
|
sortable
|
|
|
prop="clock"
|
|
|
- label="公式版本"
|
|
|
+ label="检测日期"
|
|
|
+ align="center"
|
|
|
+ width="100px"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ sortable
|
|
|
+ prop="estimatedvalue"
|
|
|
+ label="低热值"
|
|
|
+ align="center"
|
|
|
width="100px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
sortable
|
|
|
prop="code"
|
|
|
- label="折标值"
|
|
|
+ label="折标值/灰分"
|
|
|
+ align="center"
|
|
|
width="125px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
@@ -190,6 +228,7 @@
|
|
|
sortable
|
|
|
prop="unitid"
|
|
|
label="单位"
|
|
|
+ align="center"
|
|
|
width="145px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
@@ -220,6 +259,7 @@
|
|
|
sortable
|
|
|
prop="description"
|
|
|
label="描述"
|
|
|
+ align="center"
|
|
|
width="180px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
@@ -242,6 +282,7 @@
|
|
|
sortable
|
|
|
prop="bz"
|
|
|
label="备注"
|
|
|
+ align="center"
|
|
|
min-width="150px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
@@ -260,7 +301,7 @@
|
|
|
<span v-else>{{scope.row.bz}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
sortable
|
|
|
prop="revisor"
|
|
|
label="修改人"
|
|
@@ -273,7 +314,7 @@
|
|
|
label="修改时间"
|
|
|
width="125px"
|
|
|
:show-overflow-tooltip="true"
|
|
|
- ></el-table-column>
|
|
|
+ ></el-table-column> -->
|
|
|
<!-- <el-table-column
|
|
|
class-name="gn-TableDownloadExcel-none"
|
|
|
label="操作"
|
|
@@ -353,8 +394,12 @@
|
|
|
|
|
|
<script>
|
|
|
import { zCheckNumber1 } from '~/utils/validator.js'
|
|
|
+import timegranDate from '~/components/zg/timegranDate.vue'
|
|
|
import { formatDate } from '@/utils/util.js';
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ 'zj-timegran-date': timegranDate
|
|
|
+ },
|
|
|
name: 'sourcecode',
|
|
|
data () {
|
|
|
return {
|
|
@@ -365,7 +410,7 @@ export default {
|
|
|
data: {
|
|
|
code: '',
|
|
|
energyid: '',
|
|
|
- timegranid: 'MONTH',
|
|
|
+ timegranid: 'DAY',
|
|
|
clock: formatDate(new Date(), 'yyyyMMdd')
|
|
|
},
|
|
|
rules: {
|
|
@@ -393,6 +438,22 @@ export default {
|
|
|
obj: {},
|
|
|
arr: []
|
|
|
},
|
|
|
+ timegranid: {
|
|
|
+ obj: {
|
|
|
+ "DAY": {name: "天"},
|
|
|
+ "MONTH": {name: "月"}
|
|
|
+ },
|
|
|
+ arr: [
|
|
|
+ {
|
|
|
+ id: "DAY",
|
|
|
+ name: "天"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: "MONTH",
|
|
|
+ name: "月"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
materialsource: {
|
|
|
obj: {
|
|
|
'1011GL1': {
|
|
@@ -561,7 +622,9 @@ export default {
|
|
|
let that = this,
|
|
|
params = {
|
|
|
energyid: that.filterForm.data.energyid,
|
|
|
- clock: that.filterForm.data.clock
|
|
|
+ startTime: that.filterForm.data.clock[0],
|
|
|
+ endTime:that.filterForm.data.clock[1],
|
|
|
+ timegranid: that.filterForm.data.timegranid
|
|
|
};
|
|
|
that.pageNum = pageNum || that.pageNum;
|
|
|
that.tableLoading = true;
|
|
@@ -580,6 +643,7 @@ export default {
|
|
|
clock: item.CLOCK,
|
|
|
description: item.DESCRIPTION,
|
|
|
code: item.CODE,
|
|
|
+ estimatedvalue: item.ESTIMATEDVALUE,
|
|
|
isavailable: item.ISAVAILABLE,
|
|
|
revisetime: item.REVISETIME,
|
|
|
materialsource: item.MATERIALSOURCE,
|
|
@@ -625,52 +689,52 @@ export default {
|
|
|
that.dialog.editorBox.type = 'edit';
|
|
|
that.dialog.editorBox.show = true;
|
|
|
},
|
|
|
- but_more () {
|
|
|
- let that = this;
|
|
|
- if (that.multipleSelection.length > 0) {
|
|
|
- that.$refs['dialog_form_arr'].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- let SubmitData = [];
|
|
|
- for (var name in that.tableFormDataObj) {
|
|
|
- SubmitData.push({
|
|
|
- id: that.tableFormDataObj[name].id,
|
|
|
- code: that.tableFormDataObj[name].code,
|
|
|
- clock: that.tableFormDataObj[name].clock,
|
|
|
- sourcecode: that.tableFormDataObj[name].sourcecode,
|
|
|
- analyzecode: that.tableFormDataObj[name].analyzecode,
|
|
|
- description: that.tableFormDataObj[name].description,
|
|
|
- isavailable: that.tableFormDataObj[name].isavailable,
|
|
|
- materialsource: that.tableFormDataObj[name].materialsource,
|
|
|
- revisor: that.tableFormDataObj[name].revisor,
|
|
|
- revisetime: that.tableFormDataObj[name].revisetime,
|
|
|
- materialno: that.tableFormDataObj[name].materialno,
|
|
|
- unitid: that.tableFormDataObj[name].unitid,
|
|
|
- bz: that.tableFormDataObj[name].bz
|
|
|
- });
|
|
|
- }
|
|
|
- that.loading = true;
|
|
|
- that.axios.put('pass/ems/v1/foldthevaluess/', SubmitData)
|
|
|
- .then(function (res) {
|
|
|
- if (res.code === '0') {
|
|
|
- that.$message({
|
|
|
- message: '修改成功',
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
- that.getTableData();
|
|
|
- that.dialog.editorBox.show = false;
|
|
|
- } else {
|
|
|
- that.$message.error(res.message);
|
|
|
- }
|
|
|
- that.loading = false;
|
|
|
- }).catch(function () {
|
|
|
- that.loading = false;
|
|
|
- });
|
|
|
- } else {
|
|
|
- that.$message.error('请输入正确的折标系数');
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
+ // but_more () {
|
|
|
+ // let that = this;
|
|
|
+ // if (that.multipleSelection.length > 0) {
|
|
|
+ // that.$refs['dialog_form_arr'].validate((valid) => {
|
|
|
+ // if (valid) {
|
|
|
+ // let SubmitData = [];
|
|
|
+ // for (var name in that.tableFormDataObj) {
|
|
|
+ // SubmitData.push({
|
|
|
+ // id: that.tableFormDataObj[name].id,
|
|
|
+ // code: that.tableFormDataObj[name].code,
|
|
|
+ // clock: that.tableFormDataObj[name].clock,
|
|
|
+ // sourcecode: that.tableFormDataObj[name].sourcecode,
|
|
|
+ // analyzecode: that.tableFormDataObj[name].analyzecode,
|
|
|
+ // description: that.tableFormDataObj[name].description,
|
|
|
+ // isavailable: that.tableFormDataObj[name].isavailable,
|
|
|
+ // materialsource: that.tableFormDataObj[name].materialsource,
|
|
|
+ // revisor: that.tableFormDataObj[name].revisor,
|
|
|
+ // revisetime: that.tableFormDataObj[name].revisetime,
|
|
|
+ // materialno: that.tableFormDataObj[name].materialno,
|
|
|
+ // unitid: that.tableFormDataObj[name].unitid,
|
|
|
+ // bz: that.tableFormDataObj[name].bz
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // that.loading = true;
|
|
|
+ // that.axios.put('pass/ems/v1/foldthevaluess/', SubmitData)
|
|
|
+ // .then(function (res) {
|
|
|
+ // if (res.code === '0') {
|
|
|
+ // that.$message({
|
|
|
+ // message: '修改成功',
|
|
|
+ // type: 'success'
|
|
|
+ // });
|
|
|
+ // that.getTableData();
|
|
|
+ // that.dialog.editorBox.show = false;
|
|
|
+ // } else {
|
|
|
+ // that.$message.error(res.message);
|
|
|
+ // }
|
|
|
+ // that.loading = false;
|
|
|
+ // }).catch(function () {
|
|
|
+ // that.loading = false;
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // that.$message.error('请输入正确的折标系数');
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // },
|
|
|
dataSave () {
|
|
|
let that = this;
|
|
|
let SubmitData = {
|