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

页面修改

parent 21bc5ae9
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<i class="iconfont icon-shanchu"></i> <i class="iconfont icon-shanchu"></i>
</el-tooltip> </el-tooltip>
</span> </span>
<span style="background:#85ce61;display:none;" class="opbd" @click="DownLoadFile(item.ID)"> <span style="background:#85ce61; " class="opbd" @click="DownLoadFile(item)">
<el-tooltip class="item" effect="dark" content="下载" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" content="下载" placement="top-start" popper-class="max-w250">
<i class="iconfont icon-bb-xiazai"></i> <i class="iconfont icon-bb-xiazai"></i>
</el-tooltip> </el-tooltip>
...@@ -475,14 +475,22 @@ ...@@ -475,14 +475,22 @@
} }
}, },
//报价单下载 //报价单下载
DownLoadFile(configId) { DownLoadFile(item) {
this.loading=true; this.loading = true;
var newMsg = { var newMsg = {
ID: configId ID: item.ID
}; };
var fileName = "成本下载" + configId + ".xls"; var fileName = "";
if (item.CustomerName) {
fileName += "【" + item.CustomerName + "】";
} else if (item.LtName) {
fileName += "【" + item.LtName + "】";
} else if (item.LineName) {
fileName += "【" + item.LineName + "】";
}
fileName += "成本下载.xls";
this.GetLocalFile("quotation_get_DownLoadQuotation", newMsg, fileName, res => { this.GetLocalFile("quotation_get_DownLoadQuotation", newMsg, fileName, res => {
this.loading=false; this.loading = false;
}); });
}, },
}, },
......
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