Browse Source

0412 新看板

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

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

@ -75,39 +75,42 @@
</download-excel> </download-excel>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table
:height="height"
:data="tableData"
border
style="width: 100%">
<el-table-column
prop=""
header-align="center"
fixed="left"
align="center"
width="100"
label="操作">
<template slot-scope="scope" class="foo_container">
<a type="text" size="small" v-if="scope.row.acceptQty>0" @click="printCard(scope.row)">让步接收标签</a>
</template>
</el-table-column>
<el-table-column
v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
header-align="center"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
<div class="sfdcTable">
<el-table
:height="height"
:data="tableData"
:row-class-name="tableRowClassName"
border
style="width: 100%">
<el-table-column
prop=""
header-align="center"
fixed="left"
align="center"
width="100"
label="操作">
<template slot-scope="scope" class="foo_container">
<a type="text" size="small" v-if="scope.row.acceptQty>0" @click="printCard(scope.row)">让步接收标签</a>
</template>
</el-table-column>
<el-table-column
v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
header-align="center"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</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