浏览代码

完善计量检定功能

hfxc226 2 年之前
父节点
当前提交
4d05b80370

+ 12 - 11
src/views/dashboard/MeasureLogReport.vue

@@ -5,7 +5,7 @@
         <a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}">
           <div class="extra-wrapper" slot="tabBarExtraContent">
             <a-row>
-              <a-col :md="3" :sm="24">
+              <a-col :md="6" :sm="24">
                 <a-month-picker
                   style="margin-left: 8px"
                   :default-value="moment(defaultStartMonth, monthFormat)"
@@ -13,7 +13,7 @@
                   v-model="queryParam.startMonth"
                   placeholder="开始月份"
                   @change="onStartChange" /></a-col>
-              <a-col :md="3" :sm="24">
+              <a-col :md="6" :sm="24">
                 <a-month-picker
                   style="margin-left: 8px"
                   :default-value="moment(defaultEndMonth, monthFormat)"
@@ -22,13 +22,13 @@
                   placeholder="结束月份"
                   @change="onEndChange" />
               </a-col>
-              <a-col :md="2" :sm="24">
+              <a-col :md="3" :sm="24">
                 <a-button style="margin-left: 8px" type="default" @click="getData()">查询</a-button>
               </a-col>
-              <a-col :md="2" :sm="24">
+              <a-col :md="3" :sm="24">
                 <a-button style="margin-left: 8px" type="primary" @click="handlePrint()">打印</a-button>
               </a-col>
-              <a-col :md="2" :sm="24">
+              <a-col :md="3" :sm="24">
                 <a-button style="margin-left: 8px" type="primary" @click="doExport()">导出</a-button>
               </a-col>
             </a-row>
@@ -50,6 +50,7 @@
                     bordered
                     :data-source="chartsData"
                     :columns="columns"
+                    :pageSize="12"
                     tableLayout="auto"
                     :scroll="{x: 1, y: BaseTool.Constant.scrollY }"
                     rowKey="month">
@@ -68,25 +69,25 @@
         </a-tabs>
       </div>
     </a-card>
-    <print-in-check-job-report ref="basePrintModal" @ok="handleOk"/>
-    <detail-check-job-report ref="detailModal" @ok="handleOk"/>
+    <print-in-measure-log-report ref="basePrintModal" @ok="handleOk"/>
+    <detail-measure-log-report ref="detailModal" @ok="handleOk"/>
   </div>
 </template>
 
 <script>
 import { getMonthReport, exportMonthReport } from '@/api/report/measure-log'
 import { Chart } from '@antv/g2'
-import PrintInCheckJobReport from '@/views/dashboard/modules/PrintInCheckJobReport'
-import DetailCheckJobReport from '@/views/dashboard/modules/DetailCheckJobReport'
+import PrintInMeasureLogReport from '@/views/dashboard/modules/PrintInMeasureLogReport'
+import DetailMeasureLogReport from '@/views/dashboard/modules/DetailMeasureLogReport'
 import moment from 'moment'
 import { fetchSbTypeTree } from '@/api/sb/type'
 
 export default {
   name: 'MeasureLogReport',
   components: {
-    PrintInCheckJobReport,
+    PrintInMeasureLogReport,
     Chart,
-    DetailCheckJobReport
+    DetailMeasureLogReport
   },
   props: {
     title: {

+ 1 - 3
src/views/dashboard/modules/DetailMeasureLogReport.vue

@@ -1,7 +1,7 @@
 <template>
   <a-modal
     :title="modalTitle"
-    :width="1200"
+    :width="1000"
     :visible="visible"
     :confirmLoading="confirmLoading"
     @cancel="handleCancel"
@@ -59,8 +59,6 @@ export default {
         {
           title: '序号',
           dataIndex: 'index',
-          checked: true,
-          width: '70px',
           customRender: (text, record, index) => {
             return `${index + 1}`
           }

+ 0 - 1
src/views/dashboard/modules/PrintInMeasureLogReport.vue

@@ -20,7 +20,6 @@
           <tr>
             <td class="text-center">月份</td>
             <td class="text-center">总数</td>
-            <td class="text-center">完成数</td>
           </tr>
           <tr :key="index" v-for="(item,index) in items">
             <td class="text-center">{{ item.month}}</td>

+ 1 - 1
src/views/sb/info/SbInfoDebug.vue

@@ -302,7 +302,7 @@ export default {
         },
 
         {
-          title: '系列号(出厂编号)',
+          title: '出厂编号',
           dataIndex: 'zzh',
           width: 120,
           checked: true

+ 1 - 1
src/views/sb/info/SbInfoStandard.vue

@@ -305,7 +305,7 @@ export default {
         },
 
         {
-          title: '系列号(出厂编号)',
+          title: '出厂编号',
           dataIndex: 'zzh',
           width: 120,
           checked: true

+ 1 - 1
src/views/sb/info/SbInfoTestRun.vue

@@ -302,7 +302,7 @@ export default {
         },
 
         {
-          title: '系列号(出厂编号)',
+          title: '出厂编号',
           dataIndex: 'zzh',
           width: 120,
           checked: true

+ 1 - 1
src/views/sb/info/modules/BaseForm.vue

@@ -180,7 +180,7 @@
         </a-col>
         <a-col :lg="12" :md="24" :sm="24">
           <a-form-item
-            label="系列号(出厂编号)"
+            label="出厂编号"
             :labelCol="BaseTool.Constant.labelCol"
             :wrapperCol="BaseTool.Constant.wrapperCol"
           >

+ 1 - 1
src/views/sb/info/modules/BaseFormNew.vue

@@ -389,7 +389,7 @@
               </a-col>
               <a-col :lg="12" :md="24" :sm="24">
                 <a-form-item
-                  label="系列号(出厂编号)"
+                  label="出厂编号"
                   :labelCol="BaseTool.Constant.labelCol"
                   :wrapperCol="BaseTool.Constant.wrapperCol"
                 >

+ 1 - 1
src/views/sb/info/modules/Detail.vue

@@ -162,7 +162,7 @@
               <a-descriptions-item label="大小尺寸">
                 {{ model.zz }}
               </a-descriptions-item>
-              <a-descriptions-item label="系列号(出厂编号)">{{ model.zzh }}</a-descriptions-item>
+              <a-descriptions-item label="出厂编号">{{ model.zzh }}</a-descriptions-item>
               <a-descriptions-item label="使用位置">{{ model.cph }}</a-descriptions-item>
               <a-descriptions-item label="设备位置">{{ model.positionName }}</a-descriptions-item>
               <a-descriptions-item label="使用寿命">{{ model.workYear }}</a-descriptions-item>

+ 1 - 1
src/views/sb/info/modules/DetailBak.vue

@@ -31,7 +31,7 @@
         <a-descriptions-item label="自定义类型">{{ BaseTool.Object.getField(useTypeMap,model.useType) }}</a-descriptions-item>
         <a-descriptions-item label="生产商">{{ model.producerName }}</a-descriptions-item>
         <a-descriptions-item label="大小尺寸">{{ model.zz }}</a-descriptions-item>
-        <a-descriptions-item label="系列号(出厂编号)">{{ model.zzh }}</a-descriptions-item>
+        <a-descriptions-item label="出厂编号">{{ model.zzh }}</a-descriptions-item>
         <a-descriptions-item label="使用人">{{ model.saveUserName }}</a-descriptions-item>
         <a-descriptions-item label="维修人">{{ model.repairUserName }}</a-descriptions-item>
         <a-descriptions-item label="第二维修人">{{ model.repairUserSecondName }}</a-descriptions-item>

+ 1 - 1
src/views/sb/info/modules/DetailC.vue

@@ -107,7 +107,7 @@
               <a-descriptions-item label="大小尺寸">
                 {{ model.zz }}
               </a-descriptions-item>
-              <a-descriptions-item label="系列号(出厂编号)">{{ model.zzh }}</a-descriptions-item>
+              <a-descriptions-item label="出厂编号">{{ model.zzh }}</a-descriptions-item>
               <a-descriptions-item label="使用位置">{{ model.cph }}</a-descriptions-item>
               <a-descriptions-item label="设备位置">{{ model.positionName }}</a-descriptions-item>
               <a-descriptions-item label="使用寿命">{{ model.workYear }}</a-descriptions-item>