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

页面修改

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