liuhairui 1 year ago
parent
commit
2ca6b28d04
1 changed files with 49 additions and 109 deletions
  1. 49 109
      src/view/performance/Dayreports.vue

+ 49 - 109
src/view/performance/Dayreports.vue

@@ -15,37 +15,14 @@
           <div class="gva-table-box">
           <div class="gva-table-box">
             <el-form-item>
             <el-form-item>
               <el-input v-model="positionvalue" placeholder="输入工单编号或产品名称" style="width: 180px" />
               <el-input v-model="positionvalue" placeholder="输入工单编号或产品名称" style="width: 180px" />
-              <el-button
-                type="primary"
-                class="search"
-                icon="search"
-                @click="onSearch"
-              ></el-button>
-              <el-button type="primary" class="bt" icon="plus" @click="onAdd"
-                >新增</el-button
-              >
-              <el-button
-                type="primary"
-                class="bt"
-                icon="copy-document"
-                @click="onCountByGdbh"
-                >切换显示方式</el-button
-              >
-              <el-button type="primary" class="bt" icon="delete" @click="onDel"
-                >删除</el-button
-              >
-              <el-button type="primary" class="bt" @click="synchronous"
-                >同步</el-button
-              >
+              <el-button type="primary" class="search" icon="search" @click="onSearch"></el-button>
+              <el-button type="primary" class="bt" icon="plus" @click="onAdd">新增</el-button>
+              <el-button type="primary" class="bt" icon="copy-document" @click="onCountByGdbh">切换显示方式</el-button>
+              <el-button type="primary" class="bt" icon="delete" @click="onDel" >删除</el-button >
+              <el-button type="primary" class="bt" @click="synchronous" >同步</el-button >
               <el-button type="primary" icon="edit"   @click="gd_gxclhconClick"  class="bt" title="工序产量核查">工序产量核查</el-button>
               <el-button type="primary" icon="edit"   @click="gd_gxclhconClick"  class="bt" title="工序产量核查">工序产量核查</el-button>
               <div style="margin-left: auto">
               <div style="margin-left: auto">
-                <el-button
-                  type="primary"
-                  class="bt"
-                  icon="download"
-                  @click="exportToExcel2"
-                  >导出到Excel</el-button
-                >
+                <el-button type="primary" class="bt" icon="download"  @click="exportToExcel2" >导出到Excel</el-button>
               </div>
               </div>
             </el-form-item>
             </el-form-item>
             <!-- 数据展示 -->
             <!-- 数据展示 -->
@@ -63,18 +40,10 @@
               :show-overflow-tooltip="true"
               :show-overflow-tooltip="true"
               @row-click="Click"
               @row-click="Click"
               @selection-change="handleSelectionChange"
               @selection-change="handleSelectionChange"
-              @row-dblclick="doubleClick"
-            >
+              @row-dblclick="doubleClick">
               <!-- <el-table-column type="selection" width="55" /> -->
               <!-- <el-table-column type="selection" width="55" /> -->
               <el-table-column fixed align="left" sortable label="工单编号" prop="sczl_gdbh" width="105"/>
               <el-table-column fixed align="left" sortable label="工单编号" prop="sczl_gdbh" width="105"/>
-              <el-table-column
-                fixed
-                align="left"
-                sortable
-                label="产品名称"
-                prop="Gd_cpmc"
-                width="250"
-              />
+              <el-table-column fixed align="left" sortable label="产品名称" prop="Gd_cpmc" width="250" />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
                 sortable
                 sortable
@@ -84,10 +53,9 @@
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="生产日期"
                 label="生产日期"
                 prop="sczl_rq"
                 prop="sczl_rq"
-                width="120"
+                width="100"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
@@ -105,213 +73,184 @@
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="流程单"
                 label="流程单"
                 prop="sczl_num"
                 prop="sczl_num"
-                width="91"
+                width="70"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="车头产量"
                 label="车头产量"
                 prop="sczl_cl"
                 prop="sczl_cl"
-                width="120"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="色度数"
                 label="色度数"
                 prop="sczl_ms"
                 prop="sczl_ms"
-                width="91"
+                width="70"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="制程废"
                 label="制程废"
                 prop="sczl_zcfp"
                 prop="sczl_zcfp"
-                width="91"
+                width="85"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="次品"
                 label="次品"
                 prop="sczl_zccp"
                 prop="sczl_zccp"
-                width="77"
+                width="60"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="来料异常"
                 label="来料异常"
                 prop="incomingerror"
                 prop="incomingerror"
-                width="105"
+                width="85"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="装版工时"
                 label="装版工时"
                 prop="sczl_装版工时"
                 prop="sczl_装版工时"
-                width="105"
+                width="85"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="保养工时"
                 label="保养工时"
                 prop="sczl_保养工时"
                 prop="sczl_保养工时"
-                width="105"
+                width="85"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="打样工时"
                 label="打样工时"
                 prop="sczl_打样工时"
                 prop="sczl_打样工时"
-                width="105"
+                width="85"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="异常停机工时"
                 label="异常停机工时"
                 prop="sczl_异常停机工时"
                 prop="sczl_异常停机工时"
-                width="133"
+                width="110"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="设备运行工时"
                 label="设备运行工时"
                 prop="sczl_设备运行工时"
                 prop="sczl_设备运行工时"
-                width="133"
+                width="110"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员编号1"
                 label="组员编号1"
                 prop="sczl_bh1"
                 prop="sczl_bh1"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员姓名1"
                 label="组员姓名1"
                 prop="name1"
                 prop="name1"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员编号2"
                 label="组员编号2"
                 prop="sczl_bh2"
                 prop="sczl_bh2"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员姓名2"
                 label="组员姓名2"
                 prop="name2"
                 prop="name2"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员编号3"
                 label="组员编号3"
                 prop="sczl_bh3"
                 prop="sczl_bh3"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员姓名3"
                 label="组员姓名3"
                 prop="name3"
                 prop="name3"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员编号4"
                 label="组员编号4"
                 prop="sczl_bh4"
                 prop="sczl_bh4"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员姓名4"
                 label="组员姓名4"
                 prop="name4"
                 prop="name4"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员编号5"
                 label="组员编号5"
                 prop="sczl_bh5"
                 prop="sczl_bh5"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员姓名5"
                 label="组员姓名5"
                 prop="name5"
                 prop="name5"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员编号6"
                 label="组员编号6"
                 prop="sczl_bh6"
                 prop="sczl_bh6"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="组员姓名6"
                 label="组员姓名6"
                 prop="name6"
                 prop="name6"
-                width="113"
+                width="90"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="拆片联拼系数"
                 label="拆片联拼系数"
                 prop="拆片联拼系数"
                 prop="拆片联拼系数"
-                width="133"
+                width="110"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="拆片条小盒系数"
                 label="拆片条小盒系数"
                 prop="拆片条小盒系数"
                 prop="拆片条小盒系数"
-                width="147"
+                width="125"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="工价系数"
                 label="工价系数"
                 prop="sczl_工价系数"
                 prop="sczl_工价系数"
-                width="105"
+                width="85"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="日定额"
                 label="日定额"
                 prop="日定额"
                 prop="日定额"
-                width="91"
+                width="80"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="千件工价"
                 label="千件工价"
                 prop="千件工价"
                 prop="千件工价"
-                width="105"
+                width="85"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="补产标准"
                 label="补产标准"
                 prop="补产标准"
                 prop="补产标准"
-                width="105"
+                width="85"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
                 sortable
                 sortable
                 label="创建用户"
                 label="创建用户"
                 prop="sys_id"
                 prop="sys_id"
-                width="120"
+                width="160"
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
@@ -329,10 +268,9 @@
               />
               />
               <el-table-column
               <el-table-column
                 align="left"
                 align="left"
-                sortable
                 label="UNIQID"
                 label="UNIQID"
                 prop="UniqId"
                 prop="UniqId"
-                width="100"
+                width="90"
               />
               />
               <!-- <el-table-column align="left" label="table_type"  prop="table_type" width="120"/> -->
               <!-- <el-table-column align="left" label="table_type"  prop="table_type" width="120"/> -->
               <tbody>
               <tbody>
@@ -2563,14 +2501,18 @@ function onSearch() {
   GetLocate();
   GetLocate();
 }
 }
 const ADD = ref("0");
 const ADD = ref("0");
-//新增
+/*
+	新增
+*/
 function onAdd() {
 function onAdd() {
+	//进入新增页面光标自动聚焦
 	setTimeout(() => {
 	setTimeout(() => {
 	const inputElement = document.getElementById('工单编号');
 	const inputElement = document.getElementById('工单编号');
 		if (inputElement) {
 		if (inputElement) {
 			inputElement.focus();		
 			inputElement.focus();		
 		}
 		}
 	}, 100);
 	}, 100);
+	
   ADD.value = "新增";
   ADD.value = "新增";
   type.value = "create";
   type.value = "create";
   if (table_type == "db_sczl") {
   if (table_type == "db_sczl") {
@@ -2579,16 +2521,14 @@ function onAdd() {
     }
     }
     initFormData();
     initFormData();
     dialogFormVisible.value = true;
     dialogFormVisible.value = true;
-  
   } else {
   } else {
-    // GetInfo(table.value)
-    // console.log(['table_type'])
-    // console.log('此数据无法新增')
     dialogFormVisible.value = true;
     dialogFormVisible.value = true;
   }
   }
-  // Productionadd()
 }
 }
-//新增
+
+/*
+	机台生产日报表维护新增接口
+*/
 const Productionadd = async () => {
 const Productionadd = async () => {
   const response = await productionadd();
   const response = await productionadd();
   if (response.code === 0) {
   if (response.code === 0) {