Browse Source

员工日工资/加班工资日期、工单号列固定

曹鹤洋 1 year ago
parent
commit
a76a539649

+ 27 - 26
src/view/performance/14-overTimePayVerification/index.vue

@@ -50,13 +50,13 @@
               <el-button
                 type="primary"
                 :icon="Search"
-                @click="onSearch"
+                @click="onSearch"
 				class="bt"
               >搜索
               </el-button>
 			  <el-button
 			    type="primary"
-			    @click="onAttendance"
+			    @click="onAttendance"
 				class="bt"
 			  >考勤建立
 			  </el-button>
@@ -69,14 +69,14 @@
                 <el-button
                   type="primary"
                   :icon="Download"
-                  @click="exportExcel"
+                  @click="exportExcel"
 				  class="bt"
                 >导出到Excel(汇总)
                 </el-button>
 				<el-button
 				  type="primary"
 				  :icon="Download"
-				  @click="exportExcel2"
+				  @click="exportExcel2"
 				  class="bt"
 				>导出到Excel(明细)
 				</el-button>
@@ -141,6 +141,7 @@
                 :prop="column.prop"
                 :label="column.label"
                 :width="column.width"
+                :fixed="column.fixed"
                 show-overflow-tooltip="true"
 				sortable
               />
@@ -331,8 +332,8 @@ const tableCols1 = [
   { label: '计时补差', prop: '计时补差', width: '120' },
 ]
 const tableCols2 = [
-  { label: '日期', prop: 'sczl_rq', width: '105' },
-  { label: '工单编号', prop: 'sczl_gdbh', width: '105' },
+  { label: '日期', prop: 'sczl_rq', width: '105', fixed: true },
+  { label: '工单编号', prop: 'sczl_gdbh', width: '105', fixed: true },
   { label: '成品名称', prop: 'Gd_cpmc', width: '150' },
   { label: '印件及工序', prop: 'sczl_type', width: '150' },
   { label: '车头产量', prop: '班组车头产量', width: '105' },
@@ -423,7 +424,7 @@ const handleDblclick1 = async(row) => {
   //   tableData2.splice(0, tableData2.length, ...data)
   // }
 }
-const clickybupdate = async(row) => {
+const clickybupdate = async(row) => {
 	if(row.bh == undefined) return
   params.code = row.bh
   const { date, code } = params
@@ -467,23 +468,23 @@ const onSearch = () => {
 
 // 导出excel
 function exportExcel() {
- if(tableData1.length<1){
- 	ElMessage({
- 	  type: 'error',
- 	  message: '请确认上方表格内是否存在内容'
- 	})
- }else{
- 	exportExcelFile(tableData1,tableCols1)
+ if(tableData1.length<1){
+ 	ElMessage({
+ 	  type: 'error',
+ 	  message: '请确认上方表格内是否存在内容'
+ 	})
+ }else{
+ 	exportExcelFile(tableData1,tableCols1)
  }
 }
 function exportExcel2() {
- if(tableData2.length<1){
- 	ElMessage({
- 	  type: 'error',
- 	  message: '请确认上方表格内是否存在内容'
- 	})
- }else{
- 	exportExcelFile(tableData2,tableCols2)
+ if(tableData2.length<1){
+ 	ElMessage({
+ 	  type: 'error',
+ 	  message: '请确认上方表格内是否存在内容'
+ 	})
+ }else{
+ 	exportExcelFile(tableData2,tableCols2)
  }
 }
 const exportExcelFile = (tableData, tableCols) => {
@@ -594,10 +595,10 @@ const onAttendance = () => {
 
 :deep(.el-table td .cell) {
   line-height: 30px !important;
-}
-.bt {
-  margin-left: 2px !important;
-  padding: 3px !important;
-  font-size: 12px;
+}
+.bt {
+  margin-left: 2px !important;
+  padding: 3px !important;
+  font-size: 12px;
 }
 </style>

+ 3 - 2
src/view/performance/yuangongrigongzi.vue

@@ -90,6 +90,7 @@
 		  	    :prop="column.prop"
 		  	    :label="column.label"
 		  	    :width="column.width"
+		  	    :fixed="column.fixed"
 		  	    show-overflow-tooltip="true"
 		  	  				sortable
 		  	  />
@@ -384,8 +385,8 @@ const tableCols1 = [
   { label: '日工资合计', prop: '日工资合计', width: '135' },
 ]
 const tableCols2 = [
-  { label: '日期', prop: 'sczl_rq', width: '105' },
-  { label: '工单编号', prop: 'sczl_gdbh', width: '105' },
+  { label: '日期', prop: 'sczl_rq', width: '105', fixed: true },
+  { label: '工单编号', prop: 'sczl_gdbh', width: '105', fixed: true },
   { label: '产品名称', prop: 'Gd_cpmc', width: '120' },
   { label: '印件及工序', prop: 'sczl_type', width: '120' },
   { label: '机台编号', prop: 'sczl_jtbh', width: '105' },