Commit 986ade7a authored by 黄奎's avatar 黄奎

新增供应商酒店重复验证

parent 37e9bb7c
......@@ -14,7 +14,7 @@
<input type="button" class="normalBtn" value="新增" @click="isShow=true,dialogTitle='新增供应商酒店付款方式'" />
</li>
</ul>
<el-dialog :title="dialogTitle" :visible.sync="isShow" center custom-class="w460">
<el-dialog :title="dialogTitle" :visible.sync="isShow" center custom-class="w460">
<el-form :model="addMsg" label-width="100px">
<el-form-item :label="$t('hotel.suplier_name')" prop="Name">
{{SupplierName}}
......@@ -141,6 +141,22 @@
this.addMsg.SubPayType = 0;
},
SaveData() {
if (this.addMsg.HotelId <= 0) {
this.Info("请选择酒店!");
return;
}
if (this.addMsg.SubPayType <= 0) {
this.Info("请选择付款方式!");
return;
}
if (this.addMsg.StartDate == "") {
this.Info("请选择开始时间!");
return;
}
if (this.addMsg.EndDate == "") {
this.Info("请选择结束时间!");
return;
}
this.apipost(
"supplier_post_SetSupplierDetailService",
this.addMsg,
......@@ -167,12 +183,12 @@
res => {
this.loading = false;
if (res.data.resultCode == 1) {
var nData=res.data.data;
this.addMsg.Id=nData.Id;
this.addMsg.HotelId=nData.HotelId;
this.addMsg.SubPayType=nData.SubPayType;
this.addMsg.StartDate=nData.StartDateStr;
this.addMsg.EndDate=nData.EndDateStr;
var nData = res.data.data;
this.addMsg.Id = nData.Id;
this.addMsg.HotelId = nData.HotelId;
this.addMsg.SubPayType = nData.SubPayType;
this.addMsg.StartDate = nData.StartDateStr;
this.addMsg.EndDate = nData.EndDateStr;
} else {
this.Error(res.data.message);
}
......
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