Commit f17eab66 authored by zhengke's avatar zhengke

修改手配

parent 14008603
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</el-switch> </el-switch>
</el-form-item> </el-form-item>
<el-form-item v-if="addMsg.IsHaveShouPeiFee==1" label="手配费金额"> <el-form-item v-if="addMsg.IsHaveShouPeiFee==1" label="手配费金额">
<el-input type="text" class="w300" maxlength="20" @keyup.native="checkPrice(addMsg,'ShouPeiMoney')" v-model="addMsg.ShouPeiMoney"></el-input> <el-input type="text" class="w300" maxlength="10" @keyup.native="checkPrice(addMsg,'ShouPeiMoney')" v-model="addMsg.ShouPeiMoney"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.table_tel')" prop="Tel"> <el-form-item :label="$t('hotel.table_tel')" prop="Tel">
<el-input type="text" class="w300" maxlength="20" v-model="addMsg.Tel"></el-input> <el-input type="text" class="w300" maxlength="20" v-model="addMsg.Tel"></el-input>
...@@ -292,6 +292,9 @@ export default { ...@@ -292,6 +292,9 @@ export default {
); );
}, },
saveInfo() { saveInfo() {
if(this.addMsg.ShouPeiMoney==''){
this.addMsg.ShouPeiMoney=0;
}
this.apipost( this.apipost(
"supplier_post_Set", "supplier_post_Set",
this.addMsg, this.addMsg,
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<li> <li>
<input v-if="IsOperation!=1" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" /> <input v-if="IsOperation!=1" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" />
<input style="display:none;" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" /> <input style="display:none;" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" />
<span v-if="IsOperation==1" style="color:red;font-size:14px;">已制单,不能修改!</span> <span v-if="IsOperation==1" style="color:red;font-size:14px;">已制单,不能修改!</span>
</li> </li>
</ul> </ul>
税别计算: 单价 * (预订人数-免减人数) * (1 + 0.08 - 返佣比例 / 100) <br /> 税别计算: 单价 * (预订人数-免减人数) * (1 + 0.08 - 返佣比例 / 100) <br />
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
供应商 供应商
</td> </td>
<td> <td>
<el-select class='w120 sel' v-model='subItem.SupplierId' filterable placeholder="请选择供应商"> <el-select class='w120 sel' v-model='subItem.SupplierId' @change="getSupplierShoupei(subItem)" filterable placeholder="请选择供应商">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="(SupplierItem,Supplierindex) in SupplierList" :key="Supplierindex" <el-option v-for="(SupplierItem,Supplierindex) in SupplierList" :key="Supplierindex"
:label="SupplierItem.Name" :value="SupplierItem.ID"> :label="SupplierItem.Name" :value="SupplierItem.ID">
...@@ -442,6 +442,10 @@ ...@@ -442,6 +442,10 @@
</template> </template>
</template> </template>
</table> </table>
<div class="noDataNotice" v-if="list.length<1">
<i class="iconfont icon-kong"></i>
<p>{{$t('active.ld_noData')}}</p>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -714,6 +718,13 @@ ...@@ -714,6 +718,13 @@
} }
subItem.isShowPop = false; subItem.isShowPop = false;
subItem.ckedHotelName = ""; subItem.ckedHotelName = "";
//遍历手配
this.SupplierList.forEach(x=>{
if(x.ID==subItem.SupplierId){
subItem.IsHaveShouPeiFee = x.IsHaveShouPeiFee;
subItem.ShouPeiMoney = x.ShouPeiMoney;
}
})
}) })
}); });
this.list = list; this.list = list;
...@@ -902,6 +913,15 @@ ...@@ -902,6 +913,15 @@
} }
}, err => {}); }, err => {});
}, },
//改变id获取手配价格
getSupplierShoupei(SubItem){
this.SupplierList.forEach(x=>{
if(x.ID==SubItem.SupplierId){
SubItem.IsHaveShouPeiFee=x.IsHaveShouPeiFee;
SubItem.ShouPeiMoney=x.ShouPeiMoney;
}
})
}
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage() let userInfo = this.getLocalStorage()
......
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