|
|
|
@ -48,6 +48,10 @@ export default { |
|
|
|
type:Boolean, |
|
|
|
default:true |
|
|
|
}, |
|
|
|
isExport:{ |
|
|
|
type:Boolean, |
|
|
|
default:false |
|
|
|
}, |
|
|
|
}, |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
@ -638,6 +642,11 @@ export default { |
|
|
|
columnWidth: 100 |
|
|
|
}, |
|
|
|
], |
|
|
|
|
|
|
|
exportData:[], |
|
|
|
exportName: '报价条目明细'+this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
|
exportHeader: ["报价条目明细"], |
|
|
|
exportFooter: [], |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
@ -880,6 +889,21 @@ export default { |
|
|
|
this.$emit('close'); |
|
|
|
this.saveVisible = false; |
|
|
|
}, |
|
|
|
fields() { |
|
|
|
let json = "{" |
|
|
|
this.columns.forEach((item, index) => { |
|
|
|
if (index === this.columns.length - 1) { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" |
|
|
|
} else { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + "," |
|
|
|
} |
|
|
|
}) |
|
|
|
json += "}" |
|
|
|
return eval("(" + json + ")") |
|
|
|
}, |
|
|
|
createExportData() { |
|
|
|
return this.dataList; |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch:{ |
|
|
|
quote(newVal,oldVal){ |
|
|
|
@ -931,6 +955,20 @@ export default { |
|
|
|
<template v-if="saveAuth"> |
|
|
|
<el-button type="primary" v-if="!authFlag" :disabled="quote.status === '下达' || !quote.status" @click="handleSaveQuoteDetail(null)">新增</el-button> |
|
|
|
</template> |
|
|
|
<template v-if="isExport"> |
|
|
|
<download-excel |
|
|
|
:fields="fields()" |
|
|
|
:data="exportData" |
|
|
|
type="xls" |
|
|
|
:name="exportName" |
|
|
|
:header="exportHeader" |
|
|
|
:footer="exportFooter" |
|
|
|
:fetch="createExportData" |
|
|
|
worksheet="导出信息" |
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
{{ '导出' }} |
|
|
|
</download-excel> |
|
|
|
</template> |
|
|
|
<el-table v-loading="queryLoading" border :data="dataList" style="width: 100%;margin-top: 5px" :height="height"> |
|
|
|
<el-table-column width="80" align="center" label="默认报价行" v-if="quoteGroupDetail && quoteGroupDetail.status === '草稿'"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
|