| | |
| | | <div class="table_list"> |
| | | <div style="text-align: right" |
| | | class="mb10"> |
| | | <el-button type="primary" |
| | | @click="openForm('add')">生产报工</el-button> |
| | | <!-- <el-button type="primary" |
| | | @click="openForm('add')">生产报工</el-button> --> |
| | | <el-button @click="handleOut">导出</el-button> |
| | | </div> |
| | | <PIMTable rowKey="id" |
| | |
| | | }, |
| | | }, |
| | | { |
| | | label: "生产时间", |
| | | prop: "createTime", |
| | | width: 120, |
| | | formatData: params => { |
| | | const date = new Date(params); |
| | | return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart( |
| | | 2, |
| | | "0" |
| | | )}-${String(date.getDate()).padStart(2, "0")}`; |
| | | }, |
| | | }, |
| | | { |
| | | dataType: "action", |
| | | label: "操作", |
| | | align: "center", |