Commit c85d2388 authored by 黄奎's avatar 黄奎

页面验证修改

parent 82cd3fa9
<style> <style>
.ShoppingReceipt { .ShoppingReceipt {
padding-top: 25px; padding-top: 25px;
} }
.ShoppingReceipt .singeRowTable_two td{
border-top: 0; .ShoppingReceipt .singeRowTable_two td {
border-left: 0; border-top: 0;
} border-left: 0;
.ShoppingReceipt .singeRowTable_two tr:last-child td{ }
border-bottom: 0;
} .ShoppingReceipt .singeRowTable_two tr:last-child td {
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>
<tr> <tr>
<td width="150px">团号</td> <td width="150px">团号</td>
<td width="150px">{{TCID}}</td> <td width="150px">{{TCID}}</td>
<td width="150px">导游姓名</td> <td width="150px">导游姓名</td>
<td width="150px">{{GuideName}}</td> <td width="150px">{{GuideName}}</td>
<td width="150px">地区</td> <td width="150px">地区</td>
<td width="150px">{{StartCityNames}}</td> <td width="150px">{{StartCityNames}}</td>
</tr> </tr>
<tr> <tr>
<td colspan="3" width="450px">购物店</td> <td colspan="3" width="450px">购物店</td>
...@@ -38,14 +42,14 @@ ...@@ -38,14 +42,14 @@
<td width="150px"> <td width="150px">
<input type="checkbox" v-model="son.IsSelect" :disabled="son.SourceType===2"> <input type="checkbox" v-model="son.IsSelect" :disabled="son.SourceType===2">
</td> </td>
<td colspan="2" width="300px" v-if="index==0" :rowspan="item.ShopList.length"> <td colspan="2" width="300px" v-if="index==0" :rowspan="item.ShopList.length">
<el-input v-model="son.PolicyAttention" type="textarea"></el-input> <el-input v-model="son.PolicyAttention" type="textarea"></el-input>
</td> </td>
</tr> </tr>
</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.$message.success(res.data.message); this.apipost('dmcstatistics_post_SaveDMCTravelPriceShop', saveMsg, res => {
setTimeout(function () { if (res.data.resultCode === 1) {
_this.MsgBus.$emit('msg'); this.$message.success(res.data.message);
_this.MsgBus.$emit('refresh'); setTimeout(function () {
},500) _this.MsgBus.$emit('msg');
} else { _this.MsgBus.$emit('refresh');
this.$message.error(res.data.message); }, 500)
} } else {
this.loading = false; this.$message.error(res.data.message);
}, null) }
this.loading = false;
}, null)
} else {
this.Info("请选择购物店!");
}
} }
}, },
mounted() { mounted() {
...@@ -109,4 +120,4 @@ ...@@ -109,4 +120,4 @@
this.getData() this.getData()
} }
}; };
</script> </script>
\ No newline at end of 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