Commit 8929ed0a authored by 黄奎's avatar 黄奎

页面修改

parent f118d779
<style> <style>
.SupplierTable td{ .SupplierTable td {
padding:0 5px; padding: 0 5px;
text-align: center!important; text-align: center !important;
} }
.SupplierTable .linkStr {
color: blue;
text-decoration: underline;
cursor: pointer;
}
</style> </style>
<template> <template>
<div class="flexOne SupplierHandeFee"> <div class="flexOne SupplierHandeFee">
...@@ -51,9 +58,15 @@ ...@@ -51,9 +58,15 @@
<template v-for="(subItem,subIndex) in item.SubList"> <template v-for="(subItem,subIndex) in item.SubList">
<tr :key="subIndex"> <tr :key="subIndex">
<td>{{subItem.OutBranchName}}</td> <td>{{subItem.OutBranchName}}</td>
<td>{{subItem.TCNUM}}({{subItem.TCID}})</td> <td><span class="linkStr" @click="gotoDmcTable(subItem)"> {{subItem.TCNUM}}({{subItem.TCID}})
<td v-if="subIndex==0" :rowspan="item.SubList.length">{{item.DMCNum}}</td> </span>
<td>{{subItem.GuestNum}}</td> </td>
<td v-if="subIndex==0" :rowspan="item.SubList.length">
<span class="linkStr" @click="gotoDmcTable(subItem)"> {{item.DMCNum}} </span>
</td>
<td>
<span class="linkStr" @click="goUrlT(subItem)"> {{subItem.GuestNum}} </span>
</td>
<td>{{subItem.UnitPrice}}</td> <td>{{subItem.UnitPrice}}</td>
<td style="text-align:left!important;"> <td style="text-align:left!important;">
<span style="color:red;">{{subItem.DayCount}}</span> <span style="color:red;">{{subItem.DayCount}}</span>
...@@ -68,7 +81,7 @@ ...@@ -68,7 +81,7 @@
<template v-if="subItem.Frids!=''"> {{subItem.RMBMoney}}</template> <template v-if="subItem.Frids!=''"> {{subItem.RMBMoney}}</template>
</td> </td>
<td> <td>
{{subItem.Frids}} <a v-if="subItem.Frids!=''" class="linkStr" @click="goFncUrl(subItem.Frids)">{{subItem.Frids}}</a>
</td> </td>
<td v-if="subIndex==0" :rowspan="item.SubList.length"> <td v-if="subIndex==0" :rowspan="item.SubList.length">
<el-tooltip class="item" effect="dark" content="生成单据" placement="top-start"> <el-tooltip class="item" effect="dark" content="生成单据" placement="top-start">
...@@ -113,26 +126,56 @@ ...@@ -113,26 +126,56 @@
}, },
filters: {}, filters: {},
methods: { methods: {
  //生成手配费单据 goUrlT(item) {
      CreateSupplierBill(item) { this.$router.push({
        var that = this; name: "RegistrationList",
        this.Confirm("是否要生成财务单据?", function () { query: {
          that.loading = true; "id": item.TCID,
          that.apipost("dmcstatistics_get_CreateDmcSupplierHotelBillService", { blank: 'y',
              TCID: item.TCIDS, tab: "报名清单"
              Supplier:that.msg.Supplier, }
QMonthStr:that.msg.QMonthStr, })
            }, },
            res => { goFncUrl(frid) {
              that.loading = false; this.$router.push({
              if (res.data.resultCode == 1) { name: "FinancialDocumentsDetail",
                that.Success('生成单据成功!'); query: {
                that.getList(); id: frid,
              } else { blank: "y",
                that.Error(res.data.data); tab: "单据详情"
              } }
            }, null); });
        }); },
gotoDmcTable(item) {
this.$router.push({
name: "dmcTotalTable",
query: {
TCNUM: item.TCNUM,
blank: "y",
tab: "详情"
}
});
},
//生成手配费单据
CreateSupplierBill(item) {
var that = this;
this.Confirm("是否要生成财务单据?", function () {
that.loading = true;
that.apipost("dmcstatistics_get_CreateDmcSupplierHotelBillService", {
TCID: item.TCIDS,
Supplier: that.msg.Supplier,
QMonthStr: that.msg.QMonthStr,
},
res => {
that.loading = false;
if (res.data.resultCode == 1) {
that.Success('生成单据成功!');
that.getList();
} else {
that.Error(res.data.data);
}
}, null);
});
}, },
//报价单下载 //报价单下载
DownLoadFile() { DownLoadFile() {
...@@ -145,12 +188,12 @@ ...@@ -145,12 +188,12 @@
return; return;
} }
var SupplierName = '' var SupplierName = ''
this.SupplierList.forEach(x=>{ this.SupplierList.forEach(x => {
if(this.msg.Supplier==x.ID){ if (this.msg.Supplier == x.ID) {
SupplierName=x.Name SupplierName = x.Name
} }
}) })
var fileName = SupplierName + this.msg.QMonthStr+".xls"; var fileName = SupplierName + this.msg.QMonthStr + ".xls";
this.loading = true; this.loading = true;
this.GetLocalFile("dmc_get_DowmLoadDmcSupplierHote", this.msg, fileName, res => { this.GetLocalFile("dmc_get_DowmLoadDmcSupplierHote", this.msg, fileName, res => {
this.loading = false; this.loading = false;
...@@ -166,6 +209,7 @@ ...@@ -166,6 +209,7 @@
this.Error('请选择供应商'); this.Error('请选择供应商');
return; return;
} }
this.msg.PageIndex = 1;
this.getList(); this.getList();
}, },
//获取数据 //获取数据
......
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