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

新增供应商酒店重复验证

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