Commit fcc30a2a authored by 黄奎's avatar 黄奎

购物店保存数据重复修改

parent 682e908d
......@@ -3,7 +3,7 @@
<div class="query-box" style="border-bottom: none;">
<ul>
<li>
<input type="button" class="normalBtn" value="保存" @click="SaveData()" />
<input type="button" class="normalBtn" :value="SaveText" :disabled="IsDisable" @click="SaveData()" />
</li>
</ul>
</div>
......@@ -14,7 +14,7 @@
<th colspan="8">地接OP</th>
</tr>
<tr>
<th width="120">进店团号</th>
<th width="120" style="display:none;">进店团号</th>
<th width="180">店名</th>
<th width="90">公司</th>
<th width="120">进店时间</th>
......@@ -36,7 +36,7 @@
</tr>
<tbody v-for="(item,outindex) in list" :class="{roomReservationsSplitTrCss:outindex%2!=0}">
<tr v-for="(subItem,subIndex) in item.ShopDetailsList">
<td class="more_td" v-if="subIndex==0" :rowspan="item.ShopDetailsList.length">
<td class="more_td" v-if="subIndex==0" :rowspan="item.ShopDetailsList.length" style="display:none;">
<!--进店团号-->
<el-input v-model="item.ShopDetailsList[0].ShopNum"></el-input>
</td>
......@@ -89,7 +89,7 @@
<el-input type="number" v-model="item.ShopDetailsList[0].GuideCommission"></el-input>
<!--GuideCommission 导游佣金应付-->
</td>
<td class="more_td _height_45" >
<td class="more_td _height_45">
<el-input type="number" v-model="subItem.CompanyCommission"></el-input>
<!--CompanyCommission 公司佣金应收-->
</td>
......@@ -132,6 +132,8 @@
export default {
data() {
return {
SaveText: "保存",
IsDisable: false, //是否禁用
loading: false,
list: [],
upIndex: '',
......@@ -274,9 +276,13 @@
},
//保存数据
SaveData() {
this.SaveText = "保存中..";
this.IsDisable = true;
this.apipost(
"dmcstatistics_get_SetPriceShop", this.list,
res => {
this.SaveText = "保存";
this.IsDisable = false;
let _this = this;
this.Info(res.data.message);
setTimeout(function () {
......@@ -322,5 +328,4 @@
cursor: pointer;
}
</style>
\ No newline at end of file
</style>
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