保养信息维护导出
This commit is contained in:
@@ -117,3 +117,50 @@ export function submit2(num1, num2, num3) {
|
||||
}
|
||||
})
|
||||
}
|
||||
export function exportOut(num1, num2, num3) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '3',
|
||||
name: `SELECT *
|
||||
,case when [FN1] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN1]) else '' end as [姓名1]
|
||||
,case when [FN2] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN2]) else '' end as [姓名2]
|
||||
,case when [FN3] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN3]) else '' end as [姓名3]
|
||||
,case when [FN4] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN4]) else '' end as [姓名4]
|
||||
,case when [FN5] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN5]) else '' end as [姓名5]
|
||||
,case when [FN6] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN6]) else '' end as [姓名6]
|
||||
,case when [FN7] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN7]) else '' end as [姓名7]
|
||||
,case when [FN8] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN8]) else '' end as [姓名8]
|
||||
,case when [FN9] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN9]) else '' end as [姓名9]
|
||||
,case when [FN10] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN10]) else '' end as [姓名10]
|
||||
,case when [FN11] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN11]) else '' end as [姓名11]
|
||||
,case when [FN12] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN12]) else '' end as [姓名12]
|
||||
,case when [FN13] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN13]) else '' end as [姓名13]
|
||||
,case when [FN14] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN14]) else '' end as [姓名14]
|
||||
,case when [FN15] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN15]) else '' end as [姓名15]
|
||||
,case when [FN16] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN16]) else '' end as [姓名16]
|
||||
,case when [FN17] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN17]) else '' end as [姓名17]
|
||||
,case when [FN18] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN18]) else '' end as [姓名18]
|
||||
,case when [FN19] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN19]) else '' end as [姓名19]
|
||||
,case when [FN20] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN20]) else '' end as [姓名20]
|
||||
,case when [FN21] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN21]) else '' end as [姓名21]
|
||||
,case when [FN22] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN22]) else '' end as [姓名22]
|
||||
,case when [FN23] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN23]) else '' end as [姓名23]
|
||||
,case when [FN24] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN24]) else '' end as [姓名24]
|
||||
,case when [FN25] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN25]) else '' end as [姓名25]
|
||||
,case when [FN26] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN26]) else '' end as [姓名26]
|
||||
,case when [FN27] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN27]) else '' end as [姓名27]
|
||||
,case when [FN28] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN28]) else '' end as [姓名28]
|
||||
,case when [FN29] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN29]) else '' end as [姓名29]
|
||||
,case when [FN30] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN30]) else '' end as [姓名30]
|
||||
,case when [FN31] in (select 人员编号 from 人事档案管理_人员名单) then (select 姓名 from 人事档案管理_人员名单 where 人员编号 = [FN31]) else '' end as [姓名31]
|
||||
FROM
|
||||
[基础数据_设备工位点检表] inner join [工位日点检任务记录]
|
||||
on [基础数据_设备工位点检表].工位号 = [工位日点检任务记录].工位号
|
||||
inner join [基础数据_点检内容]
|
||||
on [工位日点检任务记录].点检任务编号 = [基础数据_点检内容].点检任务编号
|
||||
where [基础数据_设备工位点检表].工位号 = '${num1}' and 年 = '${num2}' and 月 = '${num3}' order by [工位日点检任务记录].点检任务编号`
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -103,6 +103,275 @@
|
||||
</el-table>
|
||||
</el-col>
|
||||
</el-card>
|
||||
<el-card v-show="false" style="width: 1565px">
|
||||
<el-button size="mini" type="primary" @click="exportOut()">导出</el-button>
|
||||
<div id="dianjianbiao">
|
||||
<div style="width: 1541px;font-size: 28px;font-weight: bold;text-align: center;">设备保养点检记录表</div>
|
||||
<div>
|
||||
<span style="font-size: 20px;margin-left: 50px">设备名称:</span>
|
||||
<span style="font-size: 20px">{{ 设备名称 }}</span>
|
||||
<span style="font-size: 20px;margin-left: 50px">设备编号:</span>
|
||||
<span style="font-size: 20px">{{ 设备编号 }}</span>
|
||||
</div>
|
||||
<el-table :data="tableData" :resizable="false" style="margin: 5px 0 0 0;width: 1541px" border>
|
||||
<el-table-column :resizable="false" align="center" label="项次" type="index" width="50"/>
|
||||
<el-table-column :resizable="false" align="center" label="日保养项目" width="250">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.保养项目 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="1" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F1===1">V</span>
|
||||
<span v-if="scope.row.F1===2">R</span>
|
||||
<span v-if="scope.row.F1===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="2" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F2===1">V</span>
|
||||
<span v-if="scope.row.F2===2">R</span>
|
||||
<span v-if="scope.row.F2===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="3" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F3===1">V</span>
|
||||
<span v-if="scope.row.F3===2">R</span>
|
||||
<span v-if="scope.row.F3===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="4" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F4===1">V</span>
|
||||
<span v-if="scope.row.F4===2">R</span>
|
||||
<span v-if="scope.row.F4===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="5" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F5===1">V</span>
|
||||
<span v-if="scope.row.F5===2">R</span>
|
||||
<span v-if="scope.row.F5===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="6" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F6===1">V</span>
|
||||
<span v-if="scope.row.F6===2">R</span>
|
||||
<span v-if="scope.row.F6===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="7" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F7===1">V</span>
|
||||
<span v-if="scope.row.F7===2">R</span>
|
||||
<span v-if="scope.row.F7===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="8" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F8===1">V</span>
|
||||
<span v-if="scope.row.F8===2">R</span>
|
||||
<span v-if="scope.row.F8===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="9" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F9===1">V</span>
|
||||
<span v-if="scope.row.F9===2">R</span>
|
||||
<span v-if="scope.row.F9===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="10" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F10===1">V</span>
|
||||
<span v-if="scope.row.F10===2">R</span>
|
||||
<span v-if="scope.row.F10===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="11" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F11===1">V</span>
|
||||
<span v-if="scope.row.F11===2">R</span>
|
||||
<span v-if="scope.row.F11===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="12" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F12===1">V</span>
|
||||
<span v-if="scope.row.F12===2">R</span>
|
||||
<span v-if="scope.row.F12===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="13" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F13===1">V</span>
|
||||
<span v-if="scope.row.F13===2">R</span>
|
||||
<span v-if="scope.row.F13===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="14" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F14===1">V</span>
|
||||
<span v-if="scope.row.F14===2">R</span>
|
||||
<span v-if="scope.row.F14===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="15" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F15===1">V</span>
|
||||
<span v-if="scope.row.F15===2">R</span>
|
||||
<span v-if="scope.row.F15===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="16" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F16===1">V</span>
|
||||
<span v-if="scope.row.F16===2">R</span>
|
||||
<span v-if="scope.row.F16===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="17" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F17===1">V</span>
|
||||
<span v-if="scope.row.F17===2">R</span>
|
||||
<span v-if="scope.row.F17===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="18" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F18===1">V</span>
|
||||
<span v-if="scope.row.F18===2">R</span>
|
||||
<span v-if="scope.row.F18===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="19" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F19===1">V</span>
|
||||
<span v-if="scope.row.F19===2">R</span>
|
||||
<span v-if="scope.row.F19===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="20" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F20===1">V</span>
|
||||
<span v-if="scope.row.F20===2">R</span>
|
||||
<span v-if="scope.row.F20===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="21" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F21===1">V</span>
|
||||
<span v-if="scope.row.F21===2">R</span>
|
||||
<span v-if="scope.row.F21===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="21" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F21===1">V</span>
|
||||
<span v-if="scope.row.F21===2">R</span>
|
||||
<span v-if="scope.row.F21===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="23" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F23===1">V</span>
|
||||
<span v-if="scope.row.F23===2">R</span>
|
||||
<span v-if="scope.row.F23===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="24" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F24===1">V</span>
|
||||
<span v-if="scope.row.F24===2">R</span>
|
||||
<span v-if="scope.row.F24===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="25" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F25===1">V</span>
|
||||
<span v-if="scope.row.F25===2">R</span>
|
||||
<span v-if="scope.row.F25===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="26" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F26===1">V</span>
|
||||
<span v-if="scope.row.F26===2">R</span>
|
||||
<span v-if="scope.row.F26===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="27" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F27===1">V</span>
|
||||
<span v-if="scope.row.F27===2">R</span>
|
||||
<span v-if="scope.row.F27===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="28" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F28===1">V</span>
|
||||
<span v-if="scope.row.F28===2">R</span>
|
||||
<span v-if="scope.row.F28===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="29" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F29===1">V</span>
|
||||
<span v-if="scope.row.F29===2">R</span>
|
||||
<span v-if="scope.row.F29===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="30" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F30===1">V</span>
|
||||
<span v-if="scope.row.F30===2">R</span>
|
||||
<span v-if="scope.row.F30===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" align="center" label="31" width="40">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.F31===1">V</span>
|
||||
<span v-if="scope.row.F31===2">R</span>
|
||||
<span v-if="scope.row.F31===3">X</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="width: 300px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 80px;">点 检 人(操作工)</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名1 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名2 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名3 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名4 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名5 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名6 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名7 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名8 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名9 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名10 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名11 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名12 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名13 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名14 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名15 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名16 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名17 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名18 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名19 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名20 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名21 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名22 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名23 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名24 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名25 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名26 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名27 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名28 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名29 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名30 : '' }}</div>
|
||||
<div style="width: 40px;height: 80px;border: 1px solid rgb(235,238,245);float: left;text-align: center;line-height: 40px;-webkit-writing-mode: vertical-rl;">{{ tableData[0] ? tableData[0].姓名31 : '' }}</div>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-dialog :visible.sync="dialogFormVisible1" title="新增" center width="500px">
|
||||
<el-form ref="form1" :model="form1" :rules="rules" label-position="right" label-width="160px">
|
||||
@@ -139,7 +408,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getTableData1, getTableData2, getTableData3, editType, confirmEdit1, confirmEdit2, selectCount, openDelete1, openDelete2, submit1, submit2 } from '@/api/ManufacturingCenter/maintainInformation'
|
||||
import { getTableData1, getTableData2, getTableData3, editType, confirmEdit1, confirmEdit2, selectCount, openDelete1, openDelete2, submit1, submit2, exportOut } from '@/api/ManufacturingCenter/maintainInformation'
|
||||
import $ from 'jquery'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -181,7 +451,10 @@ export default {
|
||||
点检类型名称: [{ required: true, message: '请输入点检类型名称', trigger: 'blur' }],
|
||||
保养项目: [{ required: true, message: '请输入保养项目', trigger: 'blur' }],
|
||||
保养周期: [{ required: true, message: '请选择保养周期', trigger: 'change' }]
|
||||
}
|
||||
},
|
||||
tableData: [],
|
||||
设备名称: '',
|
||||
设备编号: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -406,11 +679,39 @@ export default {
|
||||
return false
|
||||
}
|
||||
})
|
||||
},
|
||||
exportOut() {
|
||||
exportOut('OP1030', 2019, 12).then(response => {
|
||||
this.设备名称 = response.data[0].设备名称
|
||||
this.设备编号 = response.data[0].设备编号
|
||||
this.tableData = response.data
|
||||
console.log(response.data)
|
||||
})
|
||||
const htmlNode = $('#dianjianbiao').html()
|
||||
const body = $('body')
|
||||
body.children().hide()
|
||||
const printNode = $(htmlNode)
|
||||
body.append(printNode)
|
||||
window.print()
|
||||
body.children().not('script').show()
|
||||
body.children().not('#app').hide()
|
||||
printNode.remove()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
<style lang="scss">
|
||||
#dianjianbiao {
|
||||
/*.el-table td, .el-table th.is-leaf,.el-table--border, .el-table--group{*/
|
||||
/*border-color: black !important;*/
|
||||
/*}*/
|
||||
/*.el-table--border::after, .el-table--group::after, .el-table::before{*/
|
||||
/*background-color: black !important;*/
|
||||
/*}*/
|
||||
/*th {*/
|
||||
/*background: white !important;*/
|
||||
/*color: black !important;*/
|
||||
/*}*/
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user