|
|
@@ -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>
|