Commit 2a02fc33 authored by 吴春's avatar 吴春

1

parent 8066fd1f
...@@ -445,6 +445,8 @@ ...@@ -445,6 +445,8 @@
</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)">下载报价单
</el-button></template>
</td> </td>
<td colspan="3"> <td colspan="3">
当前团队类型: <template v-if="postConfig.TeamTypeName=='小包团'"> 当前团队类型: <template v-if="postConfig.TeamTypeName=='小包团'">
...@@ -455,7 +457,10 @@ ...@@ -455,7 +457,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>
...@@ -496,6 +501,30 @@ ...@@ -496,6 +501,30 @@
document.body.appendChild(link); document.body.appendChild(link);
link.click(); 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;
});
},
//调用父组件方法 //调用父组件方法
SubSaveType(type) { SubSaveType(type) {
this.$parent.SaveData(type); this.$parent.SaveData(type);
......
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