Commit 9239f34c authored by 华国豪's avatar 华国豪 🙄

又改了两个多语言

parent 29d5923f
...@@ -198,5 +198,20 @@ export const obj = { ...@@ -198,5 +198,20 @@ export const obj = {
chulijieguo: "处理结果", chulijieguo: "处理结果",
qingxuanzcljg: "请选择处理结果", qingxuanzcljg: "请选择处理结果",
chulichenggong: "处理成功", chulichenggong: "处理成功",
tianjiajdcp: "添加酒店产品",
qingxuanzjdzy: "请选择酒店资源",
qingxuanzcpmc: "请选择产品名称",
qingxuanbizhong: "请选币种",
xiugaijiudcp: "修改酒店产品",
tijiaobaojia: "提交报价",
qingshurcbj: "请输入成本价",
qingshurlwxs: "请输入两位小数",
qingshurukc: "请输入库存",
qingshuruB2Bjg: "请输入B2B价格",
qingshuruB2Cjg: "请输入B2C价格",
qingshurnbjg: "请输入内部价格",
qingxuanzgys: "请输选择供应商",
qingxuanzeriq: "请选择日期",
zhengzaitijiao: "正在提交",
} }
export default obj; export default obj;
\ No newline at end of file
...@@ -198,5 +198,20 @@ export const obj = { ...@@ -198,5 +198,20 @@ export const obj = {
chulijieguo: "處理結果", chulijieguo: "處理結果",
qingxuanzcljg: "請選擇處理結果", qingxuanzcljg: "請選擇處理結果",
chulichenggong: "處理成功", chulichenggong: "處理成功",
tianjiajdcp: "添加飯店產品",
qingxuanzjdzy: "請選擇飯店資源",
qingxuanzcpmc: "請選擇產品名稱",
qingxuanbizhong: "請選幣種",
xiugaijiudcp: "修改飯店產品",
tijiaobaojia: "提交報價",
qingshurcbj: "請輸入成本價",
qingshurlwxs: "請輸入兩位小數",
qingshurukc: "請輸入庫存",
qingshuruB2Bjg: "請輸入B2B價格",
qingshuruB2Cjg: "請輸入B2C價格",
qingshurnbjg: "請輸入內部價格",
qingxuanzgys: "請輸選擇供應商",
qingxuanzeriq: "請選擇日期",
zhengzaitijiao: "正在提交",
} }
export default obj; export default obj;
\ No newline at end of file
...@@ -330,17 +330,17 @@ ...@@ -330,17 +330,17 @@
<ul> <ul>
<li> <li>
<i class="arrow monthminus" @click="currentYear-=1,getDateString(),initCalendar(dateString)"></i> <i class="arrow monthminus" @click="currentYear-=1,getDateString(),initCalendar(dateString)"></i>
<input type="text" v-model="currentYear" class="currentInput" @input="getDateString(),initCalendar(dateString)" /> <input type="text" v-model="currentYear" class="currentInput" @input="getDateString(),initCalendar(dateString)" />{{$t('pub.year')}}
<i class="arrow monthadd" @click="currentYear+=1,getDateString(),initCalendar(dateString)"></i> <i class="arrow monthadd" @click="currentYear+=1,getDateString(),initCalendar(dateString)"></i>
</li> </li>
<li> <li>
<i class="arrow monthminus" @click="pickPre(currentYear,currentMonth)"></i> <i class="arrow monthminus" @click="pickPre(currentYear,currentMonth)"></i>
<input type="text" v-model="currentMonth" class="currentInput" @input="getDateString(),initCalendar(dateString)" /> <input type="text" v-model="currentMonth" class="currentInput" @input="getDateString(),initCalendar(dateString)" />{{$t('pub.month')}}
<i class="arrow monthadd" @click="pickNext(currentYear,currentMonth)"></i> <i class="arrow monthadd" @click="pickNext(currentYear,currentMonth)"></i>
</li> </li>
<li> <li>
<div class="ckAll"> <div class="ckAll">
<el-checkbox class="checkBox" v-model='isCheckAll' @change="checkAll">全选</el-checkbox> <el-checkbox class="checkBox" v-model='isCheckAll' @change="checkAll">{{$t('system.table_chekAll')}}</el-checkbox>
</div> </div>
</li> </li>
</ul> </ul>
...@@ -383,8 +383,8 @@ ...@@ -383,8 +383,8 @@
<label>{{$t('hotel.hotel_Supplier')}}{{dayobject.SupplierName}}</label> <label>{{$t('hotel.hotel_Supplier')}}{{dayobject.SupplierName}}</label>
</div> </div>
</div> </div>
<input type="button" class="hollowFixedBtn delButton" @click="isdelete(dayobject.ID)" value="删除" /> <input type="button" class="hollowFixedBtn delButton" @click="isdelete(dayobject.ID)" :value="$t('system.table_delete')" />
<button class="hollowFixedBtn delButton" @click="updateInfo(dayobject.ID,dayobject.date,index)">修改</button> <button class="hollowFixedBtn delButton" @click="updateInfo(dayobject.ID,dayobject.date,index)">{{$t('system.table_edit')}}</button>
</div> </div>
</li> </li>
</ul> </ul>
...@@ -444,21 +444,21 @@ ...@@ -444,21 +444,21 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_Supplier')" v-if="IsSelfBook==1" prop="Supplier"> <el-form-item :label="$t('hotel.hotel_Supplier')" v-if="IsSelfBook==1" prop="Supplier">
<el-select v-model="addMsg.Supplier" class="w210" filterable clearable :placeholder="$t('hotel.hotel_inputholder')"> <el-select v-model="addMsg.Supplier" class="w210" filterable clearable :placeholder="$t('hotel.hotel_inputholder')">
<el-option label='不限' value=''></el-option> <el-option :label='$t("pub.ph_buxian")' value=''></el-option>
<el-option v-for="item in SupplierList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> <el-option v-for="item in SupplierList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
<div class="resDiv"> <div class="resDiv">
<el-form-item label="币种"> <el-form-item :label="$t('hotel.hotel_Currency')">
<el-select placeholder="请选币种" filterable class='multiple_input w210' @change="getCurrentRate(addMsg.CurrencyId)" <el-select placeholder="$t('ground.qingxuanbizhong')" filterable class='multiple_input w210' @change="getCurrentRate(addMsg.CurrencyId)"
v-model="addMsg.CurrencyId"> v-model="addMsg.CurrencyId">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in allCurrencyList" :key="item.ID" :label="item.Name" :value="item.ID"> <el-option v-for="item in allCurrencyList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="汇率" prop="Fax"> <el-form-item :label="$t('hotel.hotel_CurrentRate')" prop="Fax">
<el-input class="w210" v-model='addMsg.CurrentRate' @keyup.native="checkRate(addMsg,'CurrentRate')"></el-input> <el-input class="w210" v-model='addMsg.CurrentRate' @keyup.native="checkRate(addMsg,'CurrentRate')"></el-input>
</el-form-item> </el-form-item>
</div> </div>
...@@ -475,8 +475,8 @@ ...@@ -475,8 +475,8 @@
</div> </div>
<button type="success" class="subPrice" :class="{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}" <button type="success" class="subPrice" :class="{'comDisableBtn':isDisable==true,'normalBtn':isDisable==false}"
:disabled='isDisable' @click="isDeleteNote=true,submitForm('addMsg')">{{comBtnText}}</button> :disabled='isDisable' @click="isDeleteNote=true,submitForm('addMsg')">{{comBtnText}}</button>
<button type="success" class="hollowFixedBtn" @click="goBack" v-if="updateDay=='-1'">返回</button> <button type="success" class="hollowFixedBtn" @click="goBack" v-if="updateDay=='-1'">{{$t('ground.returnBack')}}</button>
<button type="success" class="hollowFixedBtn" @click="resetForm('addMsg')" v-else>取消</button> <button type="success" class="hollowFixedBtn" @click="resetForm('addMsg')" v-else>{{$t('ground.cancelBtn')}}</button>
</div> </div>
</div> </div>
</div> </div>
...@@ -507,7 +507,7 @@ export default { ...@@ -507,7 +507,7 @@ export default {
IsSelfBook: 0, IsSelfBook: 0,
Country:0, Country:0,
//提交报价中 //提交报价中
comBtnText: "提交报价", comBtnText: this.$t('ground.tijiaobaojia'),
isDisable: false, isDisable: false,
//选中状态 //选中状态
isCheckAll: false, isCheckAll: false,
...@@ -537,62 +537,62 @@ export default { ...@@ -537,62 +537,62 @@ export default {
CostPrice: [ CostPrice: [
{ {
required: true, required: true,
message: "请输入成本价", message: this.$t('ground.qingshurcbj'),
trigger: "change" trigger: "change"
}, },
{ {
pattern: this.$commonUtils.Regex.el_Isdecimal, pattern: this.$commonUtils.Regex.el_Isdecimal,
message: "请输入两位小数" message: this.$t('ground.qingshurlwxs')
} }
], ],
Inventory: [ Inventory: [
{ {
required: true, required: true,
message: "请输入库存", message: this.$t('ground.qingshurukc'),
trigger: "change" trigger: "change"
}, },
{ {
pattern: this.$commonUtils.Regex.el_Isdecimal, pattern: this.$commonUtils.Regex.el_Isdecimal,
message: "请输入正确的数字" message: this.$t('ground.qingshuruzqdsz')
} }
], ],
B2BPrice: [ B2BPrice: [
{ {
required: true, required: true,
message: "请输入B2B价格", message: this.$t('ground.qingshuruB2Bjg'),
trigger: "change" trigger: "change"
}, },
{ {
pattern: this.$commonUtils.Regex.el_Isdecimal, pattern: this.$commonUtils.Regex.el_Isdecimal,
message: "请输入两位小数" message: this.$t('ground.qingshurlwxs')
} }
], ],
B2CPrice: [ B2CPrice: [
{ {
required: true, required: true,
message: "请输入B2C价格", message: this.$t('ground.qingshuruB2Cjg'),
trigger: "change" trigger: "change"
}, },
{ {
pattern: this.$commonUtils.Regex.el_Isdecimal, pattern: this.$commonUtils.Regex.el_Isdecimal,
message: "请输入两位小数" message: this.$t('ground.qingshurlwxs')
} }
], ],
SalesPrice: [ SalesPrice: [
{ {
required: true, required: true,
message: "请输入内部价格", message: this.$t('ground.qingshurnbjg'),
trigger: "change" trigger: "change"
}, },
{ {
pattern: this.$commonUtils.Regex.el_Isdecimal, pattern: this.$commonUtils.Regex.el_Isdecimal,
message: "请输入两位小数" message: this.$t('ground.qingshurlwxs')
} }
], ],
Supplier: [ Supplier: [
{ {
required: true, required: true,
message: "请输选择供应商" message: this.$t('ground.qingxuanzgys')
} }
] ]
}, },
...@@ -682,21 +682,21 @@ export default { ...@@ -682,21 +682,21 @@ export default {
this.addMsg.DateList == "" && this.addMsg.DateList == "" &&
(this.addMsg.StartDate == "" || this.addMsg.EndDate == "") (this.addMsg.StartDate == "" || this.addMsg.EndDate == "")
) { ) {
this.Error("请选择日期"); this.Error(this.$t('ground.qingxuanzeriq'));
return; return;
} }
this.isDisable = true; this.isDisable = true;
this.comBtnText = "正在提交"; this.comBtnText = this.$t('ground.zhengzaitijiao');
this.apipost( this.apipost(
"dict_post_HotelOffer_Set", "dict_post_HotelOffer_Set",
this.addMsg, this.addMsg,
res => { res => {
this.isDisable = false; this.isDisable = false;
this.comBtnText = "提交报价"; this.comBtnText = this.$t('ground.tijiaobaojia');
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.initDataTable(); this.initDataTable();
this.addMsg = {}; this.addMsg = {};
this.Success("保存成功!"); this.Success(this.$t('tips.saveYes'));
this.DateArr = []; this.DateArr = [];
this.resetForm("addMsg"); this.resetForm("addMsg");
} else { } else {
...@@ -708,7 +708,7 @@ export default { ...@@ -708,7 +708,7 @@ export default {
}, },
isdelete(ID) { isdelete(ID) {
var that = this; var that = this;
that.Confirm("是否删除?", function() { that.Confirm(this.$t('tips.shifoushanchu'), function() {
that.apipost( that.apipost(
"dict_post_HotelOffer_Remove", "dict_post_HotelOffer_Remove",
{ {
...@@ -718,7 +718,7 @@ export default { ...@@ -718,7 +718,7 @@ export default {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
that.initDataTable(); that.initDataTable();
that.initCalendar(); that.initCalendar();
that.Success("删除成功!"); that.Success(this.$t('tips.shanchuchenggong'));
} }
} }
); );
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
<button class="hollowFixedBtn" type="success" <button class="hollowFixedBtn" type="success"
@click="resetPageIndex(),initData()">{{$t('pub.searchBtn')}}</button> @click="resetPageIndex(),initData()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" type="success" <button class="normalBtn" type="success"
@click="outerVisible = true,dialogTitle='添加酒店产品',initAddMsg()">{{$t('pub.addBtn')}}</button> @click="outerVisible = true,dialogTitle=$t('ground.tianjiajdcp'),initAddMsg()">{{$t('pub.addBtn')}}</button>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -230,11 +230,11 @@ ...@@ -230,11 +230,11 @@
</el-tooltip> </el-tooltip>
</td> </td>
<td> <td>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
<el-button type="primary" @click="outerVisible = true,dialogTitle='修改酒店产品',updateProduct(index,item.ID)" <el-button type="primary" @click="outerVisible = true,dialogTitle=$t('ground.xiugaijiudcp'),updateProduct(index,item.ID)"
icon="el-icon-edit" circle></el-button> icon="el-icon-edit" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="报价管理" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('restaurant.res_bidManage')" placement="top-start">
<el-button type="info" @click="goUrl('HotelPrice',item.ID)" icon="el-icon-document" circle></el-button> <el-button type="info" @click="goUrl('HotelPrice',item.ID)" icon="el-icon-document" circle></el-button>
</el-tooltip> </el-tooltip>
</td> </td>
...@@ -284,16 +284,16 @@ ...@@ -284,16 +284,16 @@
//表单必填验证 //表单必填验证
Hotel_ID: [{ Hotel_ID: [{
required: true, required: true,
message: "请选择酒店资源" message: this.$t('ground.qingxuanzjdzy')
}], }],
HotelProductType: [{ HotelProductType: [{
required: true, required: true,
message: "请选择产品名称" message: this.$t('ground.qingxuanzcpmc')
}], }],
ServiceNumber: [{ ServiceNumber: [{
required: true, required: true,
pattern: this.$commonUtils.Regex.el_isInteger, pattern: this.$commonUtils.Regex.el_isInteger,
message: "请输入正确的数字" message: this.$t('ground.qingshuruzqdsz')
}] }]
} }
}; };
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
}, },
isdelete(ID) { isdelete(ID) {
this.innerVisible = true; this.innerVisible = true;
this.insideDialogTxt = "是否删除?"; this.insideDialogTxt = this.$t('tips.shifoushanchu');
this.isDeleteNote = false; this.isDeleteNote = false;
this.deleteID = ID; this.deleteID = ID;
}, },
...@@ -389,7 +389,7 @@ ...@@ -389,7 +389,7 @@
this.addMsg, this.addMsg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tips("保存成功!", "success"); this.tips(this.$t('tips.saveYes'), "success");
this.initData(); this.initData();
this.resetForm("addMsg"); this.resetForm("addMsg");
this.outerVisible = false; this.outerVisible = false;
......
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