|
|
@ -696,6 +696,19 @@ export default { |
|
|
this.$emit('close'); |
|
|
this.$emit('close'); |
|
|
this.saveVisible = false |
|
|
this.saveVisible = false |
|
|
}, |
|
|
}, |
|
|
|
|
|
getHeaderStyle({ column }) { |
|
|
|
|
|
console.log('1',column + '' + this.authFlag) |
|
|
|
|
|
if (!this.authFlag) { |
|
|
|
|
|
return {}; |
|
|
|
|
|
} |
|
|
|
|
|
// 需要橙色的字段列表 |
|
|
|
|
|
const orangeProps = ['costModel', 'weighted', 'weighted2']; |
|
|
|
|
|
return { |
|
|
|
|
|
backgroundColor: orangeProps.includes(column.property) |
|
|
|
|
|
? 'rgb(210,113,44)' |
|
|
|
|
|
: 'rgb(46,110,186)', |
|
|
|
|
|
}; |
|
|
|
|
|
}, |
|
|
toFixed(val,fixed){ |
|
|
toFixed(val,fixed){ |
|
|
if (!val || isNaN(val) || !fixed){ |
|
|
if (!val || isNaN(val) || !fixed){ |
|
|
return val |
|
|
return val |
|
|
@ -785,7 +798,8 @@ export default { |
|
|
<template v-if="saveAuth"> |
|
|
<template v-if="saveAuth"> |
|
|
<el-button type="primary" v-if="!authFlag" :disabled="quote.status !== '草稿' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button> |
|
|
<el-button type="primary" v-if="!authFlag" :disabled="quote.status !== '草稿' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<el-table ref="table1" v-loading="queryLoading" border :data="dataList" style="width: 100%;margin-top: 5px" :height="height" @header-dragend="handleColumnResize"> |
|
|
|
|
|
|
|
|
<el-table ref="table1" v-loading="queryLoading" border :data="dataList" style="width: 100%;margin-top: 5px" |
|
|
|
|
|
:height="height" @header-dragend="handleColumnResize" :header-cell-style="getHeaderStyle"> |
|
|
<el-table-column width="50" align="center" label="默认行" v-if="quoteGroupDetail && quoteGroupDetail.status === '草稿'"> |
|
|
<el-table-column width="50" align="center" label="默认行" v-if="quoteGroupDetail && quoteGroupDetail.status === '草稿'"> |
|
|
<template slot-scope="{row}"> |
|
|
<template slot-scope="{row}"> |
|
|
<el-radio |
|
|
<el-radio |
|
|
|