| | |
| | | |
| | | <el-tabs type="border-card" style="margin-top: 10px" @tab-click="tabClick"> |
| | | <el-tab-pane label="末道工序"> |
| | | <div class="elTableDiv"> |
| | | <div class="elTableDiv" style="margin: 0 auto 10px;"> |
| | | <el-table |
| | | ref="tableDataRef2" |
| | | ref="tableDataRef" |
| | | class="tableFixed" |
| | | :data="tableData" |
| | | :height="isExpandForm?(tableHeight-70):(tableHeight-30)+'px'" |
| | | :height="isExpandForm?(tableHeight-80):(tableHeight-40)+'px'" |
| | | border |
| | | :summary-method="getSummaries" |
| | | show-summary |
| | | :row-class-name="tableRowClassName" |
| | | :style="{width: 100+'%',height:isExpandForm?(tableHeight-70):(tableHeight-30)+'px',}" |
| | | :style="{width: 100+'%',height:isExpandForm?(tableHeight-80):(tableHeight-40)+'px',}" |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="ratio" |
| | | label="工序单价" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.unprice">{{ row.ratio }} %</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="usermoney" |
| | | label="个人记件工资" |
| | | width="130" |
| | |
| | | /> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="逐道工序"> |
| | | <div class="elTableDiv"> |
| | | <div class="elTableDiv" style="margin: 0 auto 10px;"> |
| | | <el-table |
| | | ref="tableDataRef" |
| | | ref="tableDataRef2" |
| | | class="tableFixed" |
| | | :data="tableData" |
| | | :height="isExpandForm?(tableHeight-70):(tableHeight-30)+'px'" |
| | | :data="tableData2" |
| | | :height="isExpandForm?(tableHeight-80):(tableHeight-40)+'px'" |
| | | border |
| | | :summary-method="getSummaries" |
| | | show-summary |
| | | :row-class-name="tableRowClassName" |
| | | :style="{width: 100+'%',height:isExpandForm?(tableHeight-70):(tableHeight-30)+'px',}" |
| | | :style="{width: 100+'%',height:isExpandForm?(tableHeight-80):(tableHeight-40)+'px',}" |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | |
| | | groupArr: [], |
| | | total: 10, |
| | | tableData: [], |
| | | tableData2: [], |
| | | dialogVisible: false, |
| | | tagArr: [], // |
| | | dialogForm: { |
| | |
| | | } |
| | | |
| | | const res = await PeopleSalaryReportSearch(data) |
| | | this.tableData = res.data |
| | | if (this.form.compute === 'last') { |
| | | this.tableData = res.data |
| | | } |
| | | if (this.form.compute === 'contin') { |
| | | this.tableData2 = res.data |
| | | } |
| | | this.total = res.count |
| | | |
| | | return { code: res.code } |