Commit 74edb8a0 authored by 黄奎's avatar 黄奎

财务单据导出修改

parent ae595af7
...@@ -509,11 +509,44 @@ ...@@ -509,11 +509,44 @@
<button class="normalBtn" type="button" @click="showDiv">{{$t('pub.addBtn')}}</button> <button class="normalBtn" type="button" @click="showDiv">{{$t('pub.addBtn')}}</button>
<button class="normalBtn importBtn" type="button" @click="outerVisible=true">导入营销数据</button> <button class="normalBtn importBtn" type="button" @click="outerVisible=true">导入营销数据</button>
<a class="hollowFixedBtn downBtn" :href="downList">下载模板</a> <a class="hollowFixedBtn downBtn" :href="downList">下载模板</a>
<button class="hollowFixedBtn" type="button" style="display:none;"
@click="DownLoadShop()">导出</button>
</li> </li>
</ul> </ul>
</div> </div>
<!--不要删除-->
<div style="display:none">
<table>
<tr>
<td>
进店时间:
</td>
<td>
<el-date-picker class="w150" type="date" value-format="yyyy-MM-dd" placeholder=""
v-model="DownLoadmsg.EnterTime"></el-date-picker>
</td>
<td>
创建时间:
</td>
<td>
<el-date-picker class="w150" type="date" value-format="yyyy-MM-dd" placeholder=""
v-model="DownLoadmsg.CreateDate">
</el-date-picker>
</td>
<td>
购物店:
</td>
<td>
<el-select multiple="" class="w150" v-model='DownLoadmsg.ShopIds' filterable placeholder="请选择购物店">
<el-option v-for='item in getShop' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</td>
<td>
<button class="hollowFixedBtn" type="button" @click="DownLoadShop()">导出</button>
</td>
</tr>
</table>
</div>
<div class="hotelResource clearfix" v-loading="loading" :class="{'divTop':isShow,'fillTop':fillShow}"> <div class="hotelResource clearfix" v-loading="loading" :class="{'divTop':isShow,'fillTop':fillShow}">
<div class="resourceList" v-for="item in dataInfo" :key="item.subCode"> <div class="resourceList" v-for="item in dataInfo" :key="item.subCode">
<div class="reTopInfo"> <div class="reTopInfo">
...@@ -804,6 +837,17 @@ ...@@ -804,6 +837,17 @@
QDistrict: "", QDistrict: "",
Name: "" Name: ""
}, },
//文件下载参数
DownLoadmsg: {
//创建日期
CreateDate: "",
//进店时间
EnterTime: "",
//操作人
CreateBy: 0,
//购物店Ids
ShopIds: ""
},
addMsg: { addMsg: {
ID: "0", ID: "0",
Name: "", Name: "",
...@@ -852,15 +896,12 @@ ...@@ -852,15 +896,12 @@
//下载Excel //下载Excel
DownLoadShop() { DownLoadShop() {
this.loading = true; this.loading = true;
let qMsg = { this.DownLoadmsg.CreateBy = this.getLocalStorage().EmployeeId;
queryMsg: this.msg,
uid: this.getLocalStorage().EmployeeId
};
let fileName = "购物店单据导出" + this.$commonUtils.getCurrentDate() + ".xls"; let fileName = "购物店单据导出" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile("shop_get_downloadShopFinaceList", qMsg, fileName, this.GetLocalFile("shop_get_downloadShopFinaceList", this.DownLoadmsg, fileName,
res => { res => {
this.loading = false; this.loading = false;
}); });
}, },
//上传购物店图片 //上传购物店图片
UploadImage(file) { UploadImage(file) {
......
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