Browse Source

2025.05.15 报价审批详情优化

java8
jiayang yue 8 months ago
parent
commit
7d15bcb590
  1. 2
      src/views/modules/auth/authQuote.vue
  2. 16
      src/views/modules/quote/detail/quoteDetail.vue

2
src/views/modules/auth/authQuote.vue

@ -129,7 +129,7 @@
<el-dialog title="报价信息" v-drag @close="closeQuoteRuleDetailDataDialog"
:close-on-click-modal="false" style="margin-top: -20px" :visible.sync="quoteRuleDetailModalFlag"
width="1480px">
width="1280px">
<el-form :inline="true" label-width="120px" label-position="top">
<el-form-item label="Application">
<el-input v-model="quoteCurrentRow.application" style="width: 210px" readonly></el-input>

16
src/views/modules/quote/detail/quoteDetail.vue

@ -696,6 +696,19 @@ export default {
this.$emit('close');
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){
if (!val || isNaN(val) || !fixed){
return val
@ -785,7 +798,8 @@ export default {
<template v-if="saveAuth">
<el-button type="primary" v-if="!authFlag" :disabled="quote.status !== '草稿' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button>
</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 === '草稿'">
<template slot-scope="{row}">
<el-radio

Loading…
Cancel
Save