Commit adaffbbb authored by 黄媛媛's avatar 黄媛媛
parents 57c96009 bb4be032
...@@ -142,14 +142,12 @@ ...@@ -142,14 +142,12 @@
{{subItem.Remarks}} {{subItem.Remarks}}
</td> </td>
<td :rowspan="item.ShopDetailsList.length" v-if='subIndex==0' style=""> <td :rowspan="item.ShopDetailsList.length" v-if='subIndex==0' style="">
<!-- style="display:none;" -->
<div > <div >
<p style="cursor: pointer;color:blue;" @click="CreateBill(item.ShopDetailsList)">生成单据</p>
<p style="cursor: pointer;color:blue;margin-top:10px;" @click="CreateHandBill(outItem)">手动生成单据</p> <p style="cursor: pointer;color:blue;margin-top:10px;" @click="CreateHandBill(outItem)">手动生成单据</p>
</div> </div>
</td> </td>
<td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0">
<td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0"> <p style="cursor: pointer;color:blue;" @click="CreateBill(item.ShopDetailsList,outItem)">生成单据</p>
<p style="cursor: pointer;color:blue;margin-top:5px;" <p style="cursor: pointer;color:blue;margin-top:5px;"
@click="goHuiZhi(outItem.TCIDs, item.LeaderName, item.GuideName, item.StartCityNames, item.TCNUMS)"> @click="goHuiZhi(outItem.TCIDs, item.LeaderName, item.GuideName, item.StartCityNames, item.TCNUMS)">
选择购物店</p> 选择购物店</p>
...@@ -381,32 +379,44 @@ ...@@ -381,32 +379,44 @@
var that = this; var that = this;
this.Confirm('是否生成财务单据?', function () { this.Confirm('是否生成财务单据?', function () {
that.loading = true; that.loading = true;
var array = []; // var array = [];
ShopDetailsList.forEach(subItem => { // ShopDetailsList.forEach(subItem => {
var obj = { // var obj = {
LeaderId: subItem.LeaderId != null ? subItem.LeaderId : 0, // LeaderId: subItem.LeaderId != null ? subItem.LeaderId : 0,
LeaderName: subItem.LeaderName != null ? subItem.LeaderName : "", // LeaderName: subItem.LeaderName != null ? subItem.LeaderName : "",
TCID: subItem.TCID, // TCID: subItem.TCID,
GuideId: subItem.GuideId != null ? subItem.GuideId : 0, // GuideId: subItem.GuideId != null ? subItem.GuideId : 0,
GuideName: subItem.GuideName != null ? subItem.GuideName : "", // GuideName: subItem.GuideName != null ? subItem.GuideName : "",
TCNUM: subItem.TCNUMS, // TCNUM: subItem.TCNUMS,
} // }
array.push(obj) // array.push(obj)
}); // });
var billMsg = { // var billMsg = {
ShopDetailsList: ShopDetailsList, // ShopDetailsList: ShopDetailsList,
LeaderGuide: array // LeaderGuide: array
// };
// that.apipost('dmcstatistics_post_ShopCreateBill', billMsg, res => {
// that.loading = false;
// if (res.data.resultCode == 1) {
// that.Success(res.data.message);
// } else {
// that.Error(res.data.message);
// }
// }, err => {})
var nMsg={
TCIDs:outItem.TCIDs,
uid: that.getLocalStorage().EmployeeId
}; };
that.apipost('dmcstatistics_post_ShopCreateBill', billMsg, res => { let fileName = "生成[" + outItem.NewCombinationNum + "]购物店数据.xls";
that.loading = false; that.GetLocalFile("dmcstatistics_post_ShopCreateBillAndExport", nMsg, fileName,
if (res.data.resultCode == 1) { res => {
that.Success(res.data.message); that.loading = false;
} else { that.Success("导入成功!");
that.Error(res.data.message); that.getList();
} });
}, err => {})
});
});
}, },
}, },
mounted() { mounted() {
......
...@@ -1269,13 +1269,28 @@ ...@@ -1269,13 +1269,28 @@
uid: that.getLocalStorage().EmployeeId uid: that.getLocalStorage().EmployeeId
}; };
let fileName = "生成购物店数据" + that.$commonUtils.getCurrentDate() + ".xls"; let fileName = "生成购物店数据" + that.$commonUtils.getCurrentDate() + ".xls";
that.GetLocalFile("ShoppingInfo_Post_ImportAndExport", qMsg, fileName, // that.GetLocalFile("ShoppingInfo_Post_ImportAndExport", qMsg, fileName,
// res => {
// that.tabLoading = false;
// that.fillShow = false;
// that.Success("导入成功!");
// that.getList();
// });
that.apipost(
"ShoppingInfo_Post_ImportAndExport_V2",
qMsg,
res => { res => {
that.tabLoading = false; if (res.data.resultCode == 1) {
that.fillShow = false; that.tabLoading = false;
that.Success("导入成功!"); that.fillShow = false;
that.getList(); that.Success("导入成功!");
}); that.getList();
} else {
that.Error(res.data.message);
}
},
err => {}
);
}); });
}, },
getDownList() { getDownList() {
......
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