Commit fcc30a2a authored by 黄奎's avatar 黄奎

购物店保存数据重复修改

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