From 2fd52d533086043a79cca272726e8ecc08dbb3cc Mon Sep 17 00:00:00 2001
From: hdy <1105738590@qq.com>
Date: 星期三, 24 一月 2024 18:33:31 +0800
Subject: [PATCH] 新增-生产报表

---
 jcdm-ui/src/views/main/pr/detectionReport/index.vue     |  218 ++++++++++++++
 jcdm-ui/src/views/main/pr/refuelDataReport/index.vue    |  219 ++++++++++++++
 jcdm-ui/src/views/main/pr/cameraReport/index.vue        |  218 ++++++++++++++
 jcdm-ui/src/views/main/pr/productResultReport/index.vue |  220 ++++++++++++++
 4 files changed, 875 insertions(+), 0 deletions(-)

diff --git a/jcdm-ui/src/views/main/pr/cameraReport/index.vue b/jcdm-ui/src/views/main/pr/cameraReport/index.vue
new file mode 100644
index 0000000..99f245b
--- /dev/null
+++ b/jcdm-ui/src/views/main/pr/cameraReport/index.vue
@@ -0,0 +1,218 @@
+<template>
+  <div class="app-container">
+    <el-card class="box-card" >
+      <el-form :model="queryParams" ref="queryForm" :inline="true"  v-show="showSearch" label-width="68px" >
+        <el-form-item label-width="120" label="绠变綋缂栫爜:" prop="sfcCode">
+          <el-input clearable
+                    v-model="queryParams.sfcCode"
+                    placeholder="璇疯緭鍏ョ浣撶紪鐮�"
+                    @keyup.enter.native="handleQuery"/>
+        </el-form-item>
+        <el-form-item label-width="120" label="宸ヤ綅鍙�:" prop="locationCode">
+          <el-input clearable
+                    v-model="queryParams.locationCode"
+                    placeholder="璇疯緭鍏ュ伐浣嶅彿"
+                    @keyup.enter.native="handleQuery"/>
+        </el-form-item>
+        <el-form-item label-width="130" label="淇濆瓨鏃ユ湡" prop="dateConditions">
+          <el-date-picker
+            v-model="queryParams.dateConditions"
+            type="datetimerange"
+            :picker-options="pickerOptions"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            range-separator="鑷�"
+            start-placeholder="寮�濮嬫棩鏈�"
+            end-placeholder="缁撴潫鏃ユ湡"
+            align="right">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item style="float: right">
+          <el-button type="primary" icon="el-icon-refresh" @click="handleQuery">鏌ヨ</el-button>
+          <el-button type=""    icon="el-icon-refresh"  @click="resetQuery">閲嶇疆</el-button>
+        </el-form-item>
+      </el-form>
+    </el-card> <el-card style="margin-top: 10px" class="box-card">
+    <el-table v-loading="loading" border :data="cameraReportList" @selection-change="handleSelectionChange" v-if="cameraReportList.length > 0">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="绠变綋缂栫爜" align="center" width="200" prop="sfcCode"></el-table-column>
+      <el-table-column label="宸ヤ綅" align="center" prop="locationCode"></el-table-column>
+      <el-table-column label="鍙傛暟缂栫爜" align="center" prop="paramCode"></el-table-column>
+      <el-table-column label="鍙傛暟鍚嶇О" align="center" prop="paramName"></el-table-column>
+      <el-table-column label="鍙傛暟鍊�" align="center" prop="paramValue"></el-table-column>
+      <el-table-column label="閲囬泦鏃堕棿" align="center" prop="collectionTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.collectionTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="鐘舵��" align="center" prop="state"></el-table-column>
+      <el-table-column label="鍗曚綅" align="center" prop="unit"></el-table-column>
+    </el-table>
+    <el-empty v-else>
+      <span slot="description">鏆傛棤鏁版嵁</span>
+    </el-empty>
+  </el-card>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+  </div>
+</template>
+<script>
+
+import { listParamCollection, getParamCollection, delParamCollection, addParamCollection, updateParamCollection } from "@/api/main/da/paramCollection/paramCollection";
+
+export default {
+  name: "camera",
+  computed: {
+  },
+  dicts: ['sys_normal_disable','order_scheduling_produce_status','print_status'],
+  components: {
+  },
+  data(){
+    return{
+      dateRange: '',
+      // 鐢ㄤ簬瀛樺偍閫夋嫨鐨勬棩鏈熻寖鍥�
+      total: 0,
+      ids: [],
+      cameraReportList: [],
+      loading: true,
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        workOrderNo: null,
+        sfcCode: null,
+        productCode: null,
+        productionLine: null,
+        locationCode: null,
+        equipmentNo: null,
+        paramCode: null,
+        paramValue: null,
+        paramUpper: null,
+        paramLower: null,
+        paramStandard: null,
+        collectionTime: null,
+        spareField1: null,
+        spareField2: null,
+        createUser: null,
+        createTime: null,
+        updateUser: null,
+        updateTime: null,
+        state: null,
+        paramName: null,
+        unit: null,
+        type: '鐩告満妫�娴�',
+        startDate: null,
+        endDate: null,
+        dateConditions: [],
+      },
+      pickerOptions: {
+        shortcuts: [{
+          text: '鏈�杩戜竴鍛�',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
+            picker.$emit('pick', [start, end]);
+          }
+        }, {
+          text: '鏈�杩戜竴涓湀',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+            picker.$emit('pick', [start, end]);
+          }
+        }, {
+          text: '鏈�杩戜笁涓湀',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
+            picker.$emit('pick', [start, end]);
+          }
+        }]
+      },
+    }
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    reset() {
+      this.form = {
+        id: null,
+        workOrderNo: null,
+        sfcCode: null,
+        productCode: null,
+        productionLine: null,
+        locationCode: null,
+        equipmentNo: null,
+        paramCode: null,
+        paramValue: null,
+        paramUpper: null,
+        paramLower: null,
+        paramStandard: null,
+        collectionTime: null,
+        spareField1: null,
+        spareField2: null,
+        createUser: null,
+        createTime: null,
+        updateUser: null,
+        updateTime: null,
+        state: null,
+        paramName: null,
+        unit: null,
+        type: '鐩告満妫�娴�',
+      };
+      this.resetForm("form");
+    },
+    /** 鎼滅储鎸夐挳鎿嶄綔 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 閲嶇疆鎸夐挳鎿嶄綔 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length !== 1
+      this.multiple = !selection.length
+    },
+
+    getList() {
+      this.loading = true;
+      listParamCollection(this.queryParams).then(response => {
+        this.tightenReportList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+
+  },
+}
+
+</script>
+
+<style scoped>
+::v-deep .el-form-item__label{
+  font-size: large;
+}
+::v-deep .el-card__body{
+  padding: 15px 20px 0px 20px;
+}
+</style>
diff --git a/jcdm-ui/src/views/main/pr/detectionReport/index.vue b/jcdm-ui/src/views/main/pr/detectionReport/index.vue
new file mode 100644
index 0000000..2a24d05
--- /dev/null
+++ b/jcdm-ui/src/views/main/pr/detectionReport/index.vue
@@ -0,0 +1,218 @@
+<template>
+  <div class="app-container">
+    <el-card class="box-card" >
+      <el-form :model="queryParams" ref="queryForm" :inline="true"  v-show="showSearch" label-width="68px" >
+        <el-form-item label-width="120" label="绠变綋缂栫爜:" prop="sfcCode">
+          <el-input clearable
+                    v-model="queryParams.sfcCode"
+                    placeholder="璇疯緭鍏ョ浣撶紪鐮�"
+                    @keyup.enter.native="handleQuery"/>
+        </el-form-item>
+        <el-form-item label-width="120" label="宸ヤ綅鍙�:" prop="locationCode">
+          <el-input clearable
+                    v-model="queryParams.locationCode"
+                    placeholder="璇疯緭鍏ュ伐浣嶅彿"
+                    @keyup.enter.native="handleQuery"/>
+        </el-form-item>
+        <el-form-item label-width="130" label="淇濆瓨鏃ユ湡" prop="dateConditions">
+          <el-date-picker
+            v-model="queryParams.dateConditions"
+            type="datetimerange"
+            :picker-options="pickerOptions"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            range-separator="鑷�"
+            start-placeholder="寮�濮嬫棩鏈�"
+            end-placeholder="缁撴潫鏃ユ湡"
+            align="right">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item style="float: right">
+          <el-button type="primary" icon="el-icon-refresh" @click="handleQuery">鏌ヨ</el-button>
+          <el-button type=""    icon="el-icon-refresh"  @click="resetQuery">閲嶇疆</el-button>
+        </el-form-item>
+      </el-form>
+    </el-card> <el-card style="margin-top: 10px" class="box-card">
+    <el-table v-loading="loading" border :data="detectionReportList" @selection-change="handleSelectionChange" v-if="detectionReportList.length > 0">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="绠变綋缂栫爜" align="center" width="200" prop="sfcCode"></el-table-column>
+      <el-table-column label="宸ヤ綅" align="center" prop="locationCode"></el-table-column>
+      <el-table-column label="鍙傛暟缂栫爜" align="center" prop="paramCode"></el-table-column>
+      <el-table-column label="鍙傛暟鍚嶇О" align="center" prop="paramName"></el-table-column>
+      <el-table-column label="鍙傛暟鍊�" align="center" prop="paramValue"></el-table-column>
+      <el-table-column label="閲囬泦鏃堕棿" align="center" prop="collectionTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.collectionTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="鐘舵��" align="center" prop="state"></el-table-column>
+      <el-table-column label="鍗曚綅" align="center" prop="unit"></el-table-column>
+    </el-table>
+    <el-empty v-else>
+      <span slot="description">鏆傛棤鏁版嵁</span>
+    </el-empty>
+  </el-card>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+  </div>
+</template>
+<script>
+
+import { listParamCollection, getParamCollection, delParamCollection, addParamCollection, updateParamCollection } from "@/api/main/da/paramCollection/paramCollection";
+
+export default {
+  name: "detection",
+  computed: {
+  },
+  dicts: ['sys_normal_disable','order_scheduling_produce_status','print_status'],
+  components: {
+  },
+  data(){
+    return{
+      dateRange: '',
+      // 鐢ㄤ簬瀛樺偍閫夋嫨鐨勬棩鏈熻寖鍥�
+      total: 0,
+      ids: [],
+      detectionReportList: [],
+      loading: true,
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        workOrderNo: null,
+        sfcCode: null,
+        productCode: null,
+        productionLine: null,
+        locationCode: null,
+        equipmentNo: null,
+        paramCode: null,
+        paramValue: null,
+        paramUpper: null,
+        paramLower: null,
+        paramStandard: null,
+        collectionTime: null,
+        spareField1: null,
+        spareField2: null,
+        createUser: null,
+        createTime: null,
+        updateUser: null,
+        updateTime: null,
+        state: null,
+        paramName: null,
+        unit: null,
+        type: '澶栨紡妫�娴�',
+        startDate: null,
+        endDate: null,
+        dateConditions: [],
+      },
+      pickerOptions: {
+        shortcuts: [{
+          text: '鏈�杩戜竴鍛�',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
+            picker.$emit('pick', [start, end]);
+          }
+        }, {
+          text: '鏈�杩戜竴涓湀',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+            picker.$emit('pick', [start, end]);
+          }
+        }, {
+          text: '鏈�杩戜笁涓湀',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
+            picker.$emit('pick', [start, end]);
+          }
+        }]
+      },
+    }
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    reset() {
+      this.form = {
+        id: null,
+        workOrderNo: null,
+        sfcCode: null,
+        productCode: null,
+        productionLine: null,
+        locationCode: null,
+        equipmentNo: null,
+        paramCode: null,
+        paramValue: null,
+        paramUpper: null,
+        paramLower: null,
+        paramStandard: null,
+        collectionTime: null,
+        spareField1: null,
+        spareField2: null,
+        createUser: null,
+        createTime: null,
+        updateUser: null,
+        updateTime: null,
+        state: null,
+        paramName: null,
+        unit: null,
+        type: '澶栨紡妫�娴�',
+      };
+      this.resetForm("form");
+    },
+    /** 鎼滅储鎸夐挳鎿嶄綔 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 閲嶇疆鎸夐挳鎿嶄綔 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length !== 1
+      this.multiple = !selection.length
+    },
+
+    getList() {
+      this.loading = true;
+      listParamCollection(this.queryParams).then(response => {
+        this.detectionReportList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+
+  },
+}
+
+</script>
+
+<style scoped>
+::v-deep .el-form-item__label{
+  font-size: large;
+}
+::v-deep .el-card__body{
+  padding: 15px 20px 0px 20px;
+}
+</style>
diff --git a/jcdm-ui/src/views/main/pr/productResultReport/index.vue b/jcdm-ui/src/views/main/pr/productResultReport/index.vue
new file mode 100644
index 0000000..ac597fa
--- /dev/null
+++ b/jcdm-ui/src/views/main/pr/productResultReport/index.vue
@@ -0,0 +1,220 @@
+<template>
+  <div class="app-container">
+    <el-card class="box-card" >
+      <el-form :model="queryParams" ref="queryForm" :inline="true"  v-show="showSearch" label-width="68px" >
+        <el-form-item label-width="120" label="绠变綋缂栫爜:" prop="sfcCode">
+          <el-input clearable
+                    v-model="queryParams.sfcCode"
+                    placeholder="璇疯緭鍏ョ浣撶紪鐮�"
+                    @keyup.enter.native="handleQuery"/>
+        </el-form-item>
+        <el-form-item label-width="120" label="宸ヤ綅鍙�:" prop="locationCode">
+          <el-input clearable
+                    v-model="queryParams.locationCode"
+                    placeholder="璇疯緭鍏ュ伐浣嶅彿"
+                    @keyup.enter.native="handleQuery"/>
+        </el-form-item>
+        <el-form-item label-width="130" label="淇濆瓨鏃ユ湡" prop="dateConditions">
+          <el-date-picker
+            v-model="queryParams.dateConditions"
+            type="datetimerange"
+            :picker-options="pickerOptions"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            range-separator="鑷�"
+            start-placeholder="寮�濮嬫棩鏈�"
+            end-placeholder="缁撴潫鏃ユ湡"
+            align="right">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item style="float: right">
+          <el-button type="primary" icon="el-icon-refresh" @click="handleQuery">鏌ヨ</el-button>
+          <el-button type=""    icon="el-icon-refresh"  @click="resetQuery">閲嶇疆</el-button>
+        </el-form-item>
+      </el-form>
+    </el-card> <el-card style="margin-top: 10px" class="box-card">
+    <el-table v-loading="loading" border :data="productResultReportList" @selection-change="handleSelectionChange" v-if="productResultReportList.length > 0">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="绠变綋缂栫爜" align="center" width="200" prop="sfcCode"></el-table-column>
+      <el-table-column label="宸ヤ綅" align="center" prop="locationCode"></el-table-column>
+      <el-table-column label="鍙傛暟缂栫爜" align="center" prop="paramCode"></el-table-column>
+      <el-table-column label="鍙傛暟鍚嶇О" align="center" prop="paramName"></el-table-column>
+      <el-table-column label="鍙傛暟鍊�" align="center" prop="paramValue"></el-table-column>
+      <el-table-column label="閲囬泦鏃堕棿" align="center" prop="collectionTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.collectionTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="鐘舵��" align="center" prop="state"></el-table-column>
+      <el-table-column label="鍗曚綅" align="center" prop="unit"></el-table-column>
+    </el-table>
+    <el-empty v-else>
+      <span slot="description">鏆傛棤鏁版嵁</span>
+    </el-empty>
+  </el-card>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+  </div>
+</template>
+<script>
+
+import { listParamCollection, getParamCollection, delParamCollection, addParamCollection, updateParamCollection } from "@/api/main/da/paramCollection/paramCollection";
+
+export default {
+  name: "productResult",
+  computed: {
+  },
+  dicts: ['sys_normal_disable','order_scheduling_produce_status','print_status'],
+  components: {
+  },
+  data(){
+    return{
+      dateRange: '',
+      // 鐢ㄤ簬瀛樺偍閫夋嫨鐨勬棩鏈熻寖鍥�
+      total: 0,
+      ids: [],
+      productResultReportList: [],
+      loading: true,
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        workOrderNo: null,
+        sfcCode: null,
+        productCode: null,
+        productionLine: null,
+        locationCode: null,
+        equipmentNo: null,
+        paramCode: null,
+        paramValue: null,
+        paramUpper: null,
+        paramLower: null,
+        paramStandard: null,
+        collectionTime: null,
+        spareField1: null,
+        spareField2: null,
+        createUser: null,
+        createTime: null,
+        updateUser: null,
+        updateTime: null,
+        state: null,
+        paramName: null,
+        unit: null,
+        type: '宸ヤ綅浜у搧缁撴灉',
+        startDate: null,
+        endDate: null,
+        dateConditions: [],
+      },
+
+      pickerOptions: {
+        shortcuts: [{
+          text: '鏈�杩戜竴鍛�',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
+            picker.$emit('pick', [start, end]);
+          }
+        }, {
+          text: '鏈�杩戜竴涓湀',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+            picker.$emit('pick', [start, end]);
+          }
+        }, {
+          text: '鏈�杩戜笁涓湀',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
+            picker.$emit('pick', [start, end]);
+          }
+        }]
+      },
+
+    }
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    reset() {
+      this.form = {
+        id: null,
+        workOrderNo: null,
+        sfcCode: null,
+        productCode: null,
+        productionLine: null,
+        locationCode: null,
+        equipmentNo: null,
+        paramCode: null,
+        paramValue: null,
+        paramUpper: null,
+        paramLower: null,
+        paramStandard: null,
+        collectionTime: null,
+        spareField1: null,
+        spareField2: null,
+        createUser: null,
+        createTime: null,
+        updateUser: null,
+        updateTime: null,
+        state: null,
+        paramName: null,
+        unit: null,
+        type: '宸ヤ綅浜у搧缁撴灉',
+      };
+      this.resetForm("form");
+    },
+    /** 鎼滅储鎸夐挳鎿嶄綔 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 閲嶇疆鎸夐挳鎿嶄綔 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length !== 1
+      this.multiple = !selection.length
+    },
+
+    getList() {
+      this.loading = true;
+      listParamCollection(this.queryParams).then(response => {
+        this.productResultReportList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+
+  },
+}
+
+</script>
+
+<style scoped>
+::v-deep .el-form-item__label{
+  font-size: large;
+}
+::v-deep .el-card__body{
+  padding: 15px 20px 0px 20px;
+}
+</style>
diff --git a/jcdm-ui/src/views/main/pr/refuelDataReport/index.vue b/jcdm-ui/src/views/main/pr/refuelDataReport/index.vue
new file mode 100644
index 0000000..a1fb1d6
--- /dev/null
+++ b/jcdm-ui/src/views/main/pr/refuelDataReport/index.vue
@@ -0,0 +1,219 @@
+<template>
+  <div class="app-container">
+    <el-card class="box-card" >
+      <el-form :model="queryParams" ref="queryForm" :inline="true"  v-show="showSearch" label-width="68px" >
+        <el-form-item label-width="120" label="绠变綋缂栫爜:" prop="sfcCode">
+          <el-input clearable
+                    v-model="queryParams.sfcCode"
+                    placeholder="璇疯緭鍏ョ浣撶紪鐮�"
+                    @keyup.enter.native="handleQuery"/>
+        </el-form-item>
+        <el-form-item label-width="120" label="宸ヤ綅鍙�:" prop="locationCode">
+          <el-input clearable
+                    v-model="queryParams.locationCode"
+                    placeholder="璇疯緭鍏ュ伐浣嶅彿"
+                    @keyup.enter.native="handleQuery"/>
+        </el-form-item>
+        <el-form-item label-width="130" label="淇濆瓨鏃ユ湡" prop="dateConditions">
+          <el-date-picker
+            v-model="queryParams.dateConditions"
+            type="datetimerange"
+            :picker-options="pickerOptions"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            range-separator="鑷�"
+            start-placeholder="寮�濮嬫棩鏈�"
+            end-placeholder="缁撴潫鏃ユ湡"
+            align="right">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item style="float: right">
+          <el-button type="primary" icon="el-icon-refresh" @click="handleQuery">鏌ヨ</el-button>
+          <el-button type=""    icon="el-icon-refresh"  @click="resetQuery">閲嶇疆</el-button>
+        </el-form-item>
+      </el-form>
+    </el-card> <el-card style="margin-top: 10px" class="box-card">
+    <el-table v-loading="loading" border :data="refuelDataReportList" @selection-change="handleSelectionChange" v-if="refuelDataReportList.length > 0">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="绠变綋缂栫爜" align="center" width="200" prop="sfcCode"></el-table-column>
+      <el-table-column label="宸ヤ綅" align="center" prop="locationCode"></el-table-column>
+      <el-table-column label="鍙傛暟缂栫爜" align="center" prop="paramCode"></el-table-column>
+      <el-table-column label="鍙傛暟鍚嶇О" align="center" prop="paramName"></el-table-column>
+      <el-table-column label="鍙傛暟鍊�" align="center" prop="paramValue"></el-table-column>
+      <el-table-column label="閲囬泦鏃堕棿" align="center" prop="collectionTime" width="180">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.collectionTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="鐘舵��" align="center" prop="state"></el-table-column>
+      <el-table-column label="鍗曚綅" align="center" prop="unit"></el-table-column>
+    </el-table>
+    <el-empty v-else>
+      <span slot="description">鏆傛棤鏁版嵁</span>
+    </el-empty>
+  </el-card>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+  </div>
+</template>
+<script>
+
+import { listParamCollection, getParamCollection, delParamCollection, addParamCollection, updateParamCollection } from "@/api/main/da/paramCollection/paramCollection";
+
+export default {
+  name: "refuelData",
+  computed: {
+  },
+  dicts: ['sys_normal_disable','order_scheduling_produce_status','print_status'],
+  components: {
+  },
+  data(){
+    return{
+      dateRange: '',
+      // 鐢ㄤ簬瀛樺偍閫夋嫨鐨勬棩鏈熻寖鍥�
+      total: 0,
+      ids: [],
+      refuelDataReportList: [],
+      loading: true,
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        workOrderNo: null,
+        sfcCode: null,
+        productCode: null,
+        productionLine: null,
+        locationCode: null,
+        equipmentNo: null,
+        paramCode: null,
+        paramValue: null,
+        paramUpper: null,
+        paramLower: null,
+        paramStandard: null,
+        collectionTime: null,
+        spareField1: null,
+        spareField2: null,
+        createUser: null,
+        createTime: null,
+        updateUser: null,
+        updateTime: null,
+        state: null,
+        paramName: null,
+        unit: null,
+        type: '鏈烘补鍔犳敞鏁版嵁',
+        startDate: null,
+        endDate: null,
+        dateConditions: [],
+      },
+      pickerOptions: {
+        shortcuts: [{
+          text: '鏈�杩戜竴鍛�',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
+            picker.$emit('pick', [start, end]);
+          }
+        }, {
+          text: '鏈�杩戜竴涓湀',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+            picker.$emit('pick', [start, end]);
+          }
+        }, {
+          text: '鏈�杩戜笁涓湀',
+          onClick(picker) {
+            const end = new Date();
+            const start = new Date();
+            start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
+            picker.$emit('pick', [start, end]);
+          }
+        }]
+      },
+    }
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+
+    reset() {
+      this.form = {
+        id: null,
+        workOrderNo: null,
+        sfcCode: null,
+        productCode: null,
+        productionLine: null,
+        locationCode: null,
+        equipmentNo: null,
+        paramCode: null,
+        paramValue: null,
+        paramUpper: null,
+        paramLower: null,
+        paramStandard: null,
+        collectionTime: null,
+        spareField1: null,
+        spareField2: null,
+        createUser: null,
+        createTime: null,
+        updateUser: null,
+        updateTime: null,
+        state: null,
+        paramName: null,
+        unit: null,
+        type: '鏈烘补鍔犳敞鏁版嵁',
+      };
+      this.resetForm("form");
+    },
+    /** 鎼滅储鎸夐挳鎿嶄綔 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 閲嶇疆鎸夐挳鎿嶄綔 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length !== 1
+      this.multiple = !selection.length
+    },
+
+    getList() {
+      this.loading = true;
+      listParamCollection(this.queryParams).then(response => {
+        this.refuelDataReportList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+
+  },
+}
+
+</script>
+
+<style scoped>
+::v-deep .el-form-item__label{
+  font-size: large;
+}
+::v-deep .el-card__body{
+  padding: 15px 20px 0px 20px;
+}
+</style>

--
Gitblit v1.9.3