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> </download-excel>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="sfdcTable">
<el-table <el-table
:height="height" :height="height"
:data="tableData" :data="tableData"
:row-class-name="tableRowClassName"
border border
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
@ -108,6 +110,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div> </div>
</template> </template>
@ -459,6 +462,40 @@
serialNumber: null, serialNumber: null,
columnType: null, columnType: null,
align: 'right' 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", tableId: "sfdcList",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
@ -754,7 +791,14 @@
printTransNoLabel(inList); printTransNoLabel(inList);
} }
}) })
},
tableRowClassName ({row, rowIndex}) {
if ( row.csysScrapRate<row.scrapRate) {
return 'false-row'
} }
return ''
},
}, },
created () { created () {
@ -763,7 +807,7 @@
} }
</script> </script>
<style scoped>
<style >
.input_left{ .input_left{
text-align: left; text-align: left;
} }
@ -776,5 +820,8 @@
input[type='number'] { input[type='number'] {
-moz-appearance: textfield !important; -moz-appearance: textfield !important;
} }
.sfdcTable .el-table .false-row {
background-color: #e7d45e;
color: #000207;
}
</style> </style>
Loading…
Cancel
Save