Commit 9ff86110 authored by 黄奎's avatar 黄奎

页面修改

parent fbb86bfb
......@@ -445,8 +445,11 @@
</template>
{{postConfig.AuditContent}}
</template>
<template> <el-button type="primary" class="normalBtn" style="float:right;margin-right:40px;" :loading="importOfferLoading" @click="downLoadOffer(postConfig)">下载报价单
</el-button></template>
<template>
<el-button type="primary" class="normalBtn" style="float:right;margin-right:40px;"
:loading="importOfferLoading" @click="downLoadOffer(postConfig)">下载报价单
</el-button>
</template>
</td>
<td colspan="3">
当前团队类型: <template v-if="postConfig.TeamTypeName=='小包团'">
......@@ -457,10 +460,10 @@
</template>
</td>
</tr>
</table>
<div class="Cost_Line"></div>
</el-form>
</div>
......@@ -469,7 +472,7 @@
<script>
export default {
props: ["postConfig", "OtherPrice", "dayCostPrice", "LineList", "CostNumberList", "CurrencyNumberListExt",
"CostCurrencyList", "teamPrice", "IsEdit", "loading"
"CostCurrencyList", "teamPrice", "IsEdit", "loading","OfferId"
],
data() {
return {
......@@ -501,30 +504,27 @@
document.body.appendChild(link);
link.click();
},
downLoadOffer(item) {
var downMsg = {
OfferId: item.ID,
};
var fileName = "【" + item.OutDateTime + "】";
if (item.TCNUMS && item.TCNUMS.length < 20) {
fileName += item.TCNUMS;
}
if (item.Title) {
if (item.Title.length > 20) {
fileName += item.Title.substring(0, 20);
} else {
fileName += item.Title;
}
}
fileName += ".xls"
this.loading = true;
this.GetLocalFile("quotation_get_DownLoadQuotation", downMsg, fileName, res => {
this.loading = false;
});
},
var downMsg = {
OfferId: this.OfferId,
};
var fileName = "【" + item.OutDateTime + "】";
if (item.TCNUMS && item.TCNUMS.length < 20) {
fileName += item.TCNUMS;
}
if (item.Title) {
if (item.Title.length > 20) {
fileName += item.Title.substring(0, 20);
} else {
fileName += item.Title;
}
}
fileName += ".xls"
this.loading = true;
this.GetLocalFile("quotation_get_DownLoadQuotation", downMsg, fileName, res => {
this.loading = false;
});
},
//调用父组件方法
SubSaveType(type) {
this.$parent.SaveData(type);
......
......@@ -810,7 +810,6 @@
this.downloadBill = true;
},
downLoadOffer(item) {
var downMsg = {
OfferId: item.ID,
};
......
......@@ -119,7 +119,7 @@
<CostNewPriceCC ref="CostNewPrice" :postConfig="postData" :OtherPrice="OtherPrice"
:dayCostPrice="dayCostPriceList" :LineList="LineList" :CostCurrencyList="CostCurrencyList"
:CostNumberList="CostNumberList" :CurrencyNumberListExt="CurrencyNumberListExt" :teamPrice="teamPrice"
:loading="loading">
:loading="loading" :OfferId="OfferId">
</CostNewPriceCC>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment