Commit c85d2388 authored by 黄奎's avatar 黄奎

页面验证修改

parent 82cd3fa9
<style> <style>
.ShoppingReceipt { .ShoppingReceipt {
padding-top: 25px; padding-top: 25px;
} }
.ShoppingReceipt .singeRowTable_two td{
.ShoppingReceipt .singeRowTable_two td {
border-top: 0; border-top: 0;
border-left: 0; border-left: 0;
} }
.ShoppingReceipt .singeRowTable_two tr:last-child td{
.ShoppingReceipt .singeRowTable_two tr:last-child td {
border-bottom: 0; border-bottom: 0;
} }
</style> </style>
<template> <template>
<div class='flexOne ShoppingReceipt' v-loading="loading"> <div class='flexOne ShoppingReceipt' v-loading="loading">
<table border="0" cellspacing="1" cellpadding="0" class="singeRowTable" style="border: 1px solid rgb(230, 230, 230);background: #ccc;width: 900px"> <table border="0" cellspacing="1" cellpadding="0" class="singeRowTable"
style="border: 1px solid rgb(230, 230, 230);background: #ccc;width: 900px">
<tr> <tr>
<th colspan="6" height="40">购物店佣金回执单</th> <th colspan="6" height="40">购物店佣金回执单</th>
</tr> </tr>
...@@ -45,7 +49,7 @@ ...@@ -45,7 +49,7 @@
</tbody> </tbody>
</table> </table>
<div style="padding: 20px 0 20px 20px;width: 900px;text-align: right"> <div style="padding: 20px 0 20px 20px;width: 900px;text-align: right">
<input type="button" class="normalBtn" value="保存" @click="saveFrom"/> <input type="button" class="normalBtn" value="保存" @click="saveFrom" />
</div> </div>
</div> </div>
</template> </template>
...@@ -59,14 +63,16 @@ ...@@ -59,14 +63,16 @@
LeaderName: '', LeaderName: '',
GuideName: '', GuideName: '',
StartCityNames: '', StartCityNames: '',
TCID:'' TCID: ''
} }
}, },
methods: { methods: {
getData: function () { getData: function () {
this.loading = true; this.loading = true;
this.apipost('dmcstatistics_post_GetDMCTravelPriceShop', {TCIDS: this.tcIdList}, res=>{ this.apipost('dmcstatistics_post_GetDMCTravelPriceShop', {
if (res.data.resultCode===1) { TCIDS: this.tcIdList
}, res => {
if (res.data.resultCode === 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
...@@ -75,29 +81,34 @@ ...@@ -75,29 +81,34 @@
}, null) }, null)
}, },
saveFrom: function () { saveFrom: function () {
this.loading = true;
let saveMsg = []; let saveMsg = [];
let _this = this; let _this = this;
this.dataList.forEach(x=>{ this.dataList.forEach(x => {
x.ShopList.forEach(y=>{ x.ShopList.forEach(y => {
if (y.IsSelect) { if (y.IsSelect) {
y.TCIDS = this.tcIdList; y.TCIDS = this.tcIdList;
saveMsg.push(y) saveMsg.push(y)
} }
}) })
}); });
this.apipost('dmcstatistics_post_SaveDMCTravelPriceShop', saveMsg, res=>{ if (saveMsg && saveMsg.length > 0) {
if (res.data.resultCode===1) { this.loading = true;
this.apipost('dmcstatistics_post_SaveDMCTravelPriceShop', saveMsg, res => {
if (res.data.resultCode === 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
setTimeout(function () { setTimeout(function () {
_this.MsgBus.$emit('msg'); _this.MsgBus.$emit('msg');
_this.MsgBus.$emit('refresh'); _this.MsgBus.$emit('refresh');
},500) }, 500)
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
this.loading = false; this.loading = false;
}, null) }, null)
} else {
this.Info("请选择购物店!");
}
} }
}, },
mounted() { mounted() {
......
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