Commit c85d2388 authored by 黄奎's avatar 黄奎

页面验证修改

parent 82cd3fa9
<style>
.ShoppingReceipt {
padding-top: 25px;
}
.ShoppingReceipt .singeRowTable_two td{
border-top: 0;
border-left: 0;
}
.ShoppingReceipt .singeRowTable_two tr:last-child td{
border-bottom: 0;
}
.ShoppingReceipt {
padding-top: 25px;
}
.ShoppingReceipt .singeRowTable_two td {
border-top: 0;
border-left: 0;
}
.ShoppingReceipt .singeRowTable_two tr:last-child td {
border-bottom: 0;
}
</style>
<template>
<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">
<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">
<tr>
<th colspan="6" height="40">购物店佣金回执单</th>
</tr>
<tr>
<td width="150px">团号</td>
<td width="150px">{{TCID}}</td>
<td width="150px">导游姓名</td>
<td width="150px">{{GuideName}}</td>
<td width="150px">地区</td>
<td width="150px">{{StartCityNames}}</td>
<td width="150px">团号</td>
<td width="150px">{{TCID}}</td>
<td width="150px">导游姓名</td>
<td width="150px">{{GuideName}}</td>
<td width="150px">地区</td>
<td width="150px">{{StartCityNames}}</td>
</tr>
<tr>
<td colspan="3" width="450px">购物店</td>
......@@ -38,14 +42,14 @@
<td width="150px">
<input type="checkbox" v-model="son.IsSelect" :disabled="son.SourceType===2">
</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>
</td>
</tr>
</tbody>
</table>
<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>
</template>
......@@ -59,14 +63,16 @@
LeaderName: '',
GuideName: '',
StartCityNames: '',
TCID:''
TCID: ''
}
},
methods: {
getData: function () {
this.loading = true;
this.apipost('dmcstatistics_post_GetDMCTravelPriceShop', {TCIDS: this.tcIdList}, res=>{
if (res.data.resultCode===1) {
this.apipost('dmcstatistics_post_GetDMCTravelPriceShop', {
TCIDS: this.tcIdList
}, res => {
if (res.data.resultCode === 1) {
this.dataList = res.data.data;
} else {
this.$message.error(res.data.message);
......@@ -75,29 +81,34 @@
}, null)
},
saveFrom: function () {
this.loading = true;
let saveMsg = [];
let _this = this;
this.dataList.forEach(x=>{
x.ShopList.forEach(y=>{
this.dataList.forEach(x => {
x.ShopList.forEach(y => {
if (y.IsSelect) {
y.TCIDS = this.tcIdList;
saveMsg.push(y)
}
})
});
this.apipost('dmcstatistics_post_SaveDMCTravelPriceShop', saveMsg, res=>{
if (res.data.resultCode===1) {
this.$message.success(res.data.message);
setTimeout(function () {
_this.MsgBus.$emit('msg');
_this.MsgBus.$emit('refresh');
},500)
} else {
this.$message.error(res.data.message);
}
this.loading = false;
}, null)
if (saveMsg && saveMsg.length > 0) {
this.loading = true;
this.apipost('dmcstatistics_post_SaveDMCTravelPriceShop', saveMsg, res => {
if (res.data.resultCode === 1) {
this.$message.success(res.data.message);
setTimeout(function () {
_this.MsgBus.$emit('msg');
_this.MsgBus.$emit('refresh');
}, 500)
} else {
this.$message.error(res.data.message);
}
this.loading = false;
}, null)
} else {
this.Info("请选择购物店!");
}
}
},
mounted() {
......@@ -109,4 +120,4 @@
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