Browse Source

0412 新看板

master
ruanqi 2 years ago
parent
commit
760eb93ea0
  1. 51
      src/views/modules/production/searchSfdc.vue

51
src/views/modules/production/searchSfdc.vue

@ -75,9 +75,11 @@
</download-excel>
</el-form-item>
</el-form>
<div class="sfdcTable">
<el-table
:height="height"
:data="tableData"
:row-class-name="tableRowClassName"
border
style="width: 100%">
<el-table-column
@ -108,6 +110,7 @@
</template>
</el-table-column>
</el-table>
</div>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
@ -459,6 +462,40 @@
serialNumber: null,
columnType: null,
align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "scrapRate",
columnLabel: "订单报废率",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 80,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "csysScrapRate",
columnLabel: "系统报废率",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 80,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
@ -754,7 +791,14 @@
printTransNoLabel(inList);
}
})
},
tableRowClassName ({row, rowIndex}) {
if ( row.csysScrapRate<row.scrapRate) {
return 'false-row'
}
return ''
},
},
created () {
@ -763,7 +807,7 @@
}
</script>
<style scoped>
<style >
.input_left{
text-align: left;
}
@ -776,5 +820,8 @@
input[type='number'] {
-moz-appearance: textfield !important;
}
.sfdcTable .el-table .false-row {
background-color: #e7d45e;
color: #000207;
}
</style>
Loading…
Cancel
Save