Commit a632d671 authored by 华国豪's avatar 华国豪 🙄
parents 62f7ef4d 03037592
...@@ -613,23 +613,25 @@ ...@@ -613,23 +613,25 @@
<div style="width: 100%;min-height:200px; overflow-x: auto;padding:0 20px; " class="HotelQueryList" <div style="width: 100%;min-height:200px; overflow-x: auto;padding:0 20px; " class="HotelQueryList"
v-loading="loading"> v-loading="loading">
<div style="margin:20px 0"> <div style="margin:20px 0">
<span style="color:#fff;background-color: #ff3737;padding:2px 4px;border-radius:5px"></span> <span style="color:#fff;background-color: #ff3737;padding:2px 4px;border-radius:5px">赤い</span>
<span style="color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px">旺季</span> <span style="color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px">ハイシーズン</span>
<span style="color:#000000;background-color: #bcd6ee;padding:2px 4px;border-radius:5px">平季</span> <span style="color:#000000;background-color: #bcd6ee;padding:2px 4px;border-radius:5px">フラットシーズン</span>
<span style="color:#000000;background-color: #DDDDDD;padding:2px 4px;border-radius:5px">淡季</span> <span style="color:#000000;background-color: #DDDDDD;padding:2px 4px;border-radius:5px">ローシーズン</span>
<span style="color:#000000;background-color: #02F78E;padding:2px 4px;border-radius:5px">别价</span> <span style="color:#000000;background-color: #02F78E;padding:2px 4px;border-radius:5px">別価格</span>
</div> </div>
<template v-if="isShow"> <template v-if="isShow">
<el-table v-if="dataList.length>0" :data="dataList" style="width:100%" border v-loading='loading' <el-table v-if="dataList.length>0" :data="dataList" style="width:100%" border v-loading='loading'
:height="tableHeight"> :height="tableHeight">
<el-table-column fixed label="酒店名称" min-width="180"> <!-- 酒店名称 -->
<el-table-column fixed label="ホテル名" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
{{scope.row.HotelName}}</div> {{scope.row.HotelName}}</div>
<div>{{scope.row.TotalInventory}}</div> <div>{{scope.row.TotalInventory}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="价格&库存" fixed min-width="120"> <!-- 价格库存 -->
<el-table-column label="価格&在庫" fixed min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="Hotel_kong">价格</div> <div class="Hotel_kong">价格</div>
<div class="Hotel_kong" style="min-width:60px;">总/用/剩</div> <div class="Hotel_kong" style="min-width:60px;">总/用/剩</div>
...@@ -741,10 +743,10 @@ ...@@ -741,10 +743,10 @@
<el-form> <el-form>
<table border="0" cellspacing="1" cellpadding="0" class="HouseTypeList Hq_addTable" style="width:100%;"> <table border="0" cellspacing="1" cellpadding="0" class="HouseTypeList Hq_addTable" style="width:100%;">
<tr> <tr>
<th width="50">编号</th> <th width="50"></th>
<th>内容</th> <th>内容</th>
<th width="70">操作人</th> <th width="70">オペレーター</th>
<th width="140">操作时间</th> <th width="140">稼働時間</th>
</tr> </tr>
<template v-if="queryMsg.total>0"> <template v-if="queryMsg.total>0">
<tr v-for="(item,index) in HotelTipList"> <tr v-for="(item,index) in HotelTipList">
......
...@@ -59,13 +59,13 @@ ...@@ -59,13 +59,13 @@
<div class="login_Title"> <div class="login_Title">
{{groupModel.GroupName?groupModel.GroupName:''}} {{groupModel.GroupName?groupModel.GroupName:''}}
</div> </div>
<div class="loginXI">供应商登录</div> <div class="loginXI">サプライヤーログイン</div>
</div> </div>
<div class="login-commonBotm T1"> <div class="login-commonBotm T1">
<i class="icon-login-name iconfont icon-user11"></i> <i class="icon-login-name iconfont icon-user11"></i>
<input class="input" @focus="name_bline=true" @blur="name_bline=false" maxlength="20" <input class="input" @focus="name_bline=true" @blur="name_bline=false" maxlength="20"
autocomplete="new-password" v-model="userInfo.name" style="background-color:transparent !important;" autocomplete="new-password" v-model="userInfo.name" style="background-color:transparent !important;"
type="text" :placeholder="$t('login.login_account')" @keyup.enter="doLogin" /> type="text" placeholder="アカウント番号を入力してください" @keyup.enter="doLogin" />
<div class="name_bline_left Supplier_Left_Line" :class="name_bline==true?'_bline_w':''"></div> <div class="name_bline_left Supplier_Left_Line" :class="name_bline==true?'_bline_w':''"></div>
<div class="name_bline_right Supplier_Right_Line" :class="name_bline==true?'_bline_w':''"></div> <div class="name_bline_right Supplier_Right_Line" :class="name_bline==true?'_bline_w':''"></div>
</div> </div>
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<i class="icon-login-password iconfont icon-mima"></i> <i class="icon-login-password iconfont icon-mima"></i>
<input class="input" @focus="pwd_bline=true" @blur="pwd_bline=false" maxlength="20" <input class="input" @focus="pwd_bline=true" @blur="pwd_bline=false" maxlength="20"
autocomplete="new-password" v-model="userInfo.password" style="background-color:transparent !important" autocomplete="new-password" v-model="userInfo.password" style="background-color:transparent !important"
type="password" :placeholder="$t('login.login_password')" @keyup.enter="doLogin" /> type="password" placeholder="パスワードを入力してください" @keyup.enter="doLogin" />
<div class="pwd_bline_left Supplier_Left_Line" :class="pwd_bline==true?'_bline_w':''"></div> <div class="pwd_bline_left Supplier_Left_Line" :class="pwd_bline==true?'_bline_w':''"></div>
<div class="pwd_bline_right Supplier_Right_Line" :class="pwd_bline==true?'_bline_w':''"></div> <div class="pwd_bline_right Supplier_Right_Line" :class="pwd_bline==true?'_bline_w':''"></div>
</div> </div>
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<div v-show="passwordIsShow"><img src="../assets/img/login-error-tips.png" />{{ passwordErrorMsg }}</div> <div v-show="passwordIsShow"><img src="../assets/img/login-error-tips.png" />{{ passwordErrorMsg }}</div>
</div> </div>
<button type="button" class="loginBtn" :class="{'loginIng':loginState==1}" :disabled="loginState==1" <button type="button" class="loginBtn" :class="{'loginIng':loginState==1}" :disabled="loginState==1"
@click="doLogin">{{loginState==1?'登录中...':'登录'}}</button> @click="doLogin">{{loginState==1?'ログイン...':'ログイン'}}</button>
</div> </div>
</form> </form>
</div> </div>
...@@ -213,11 +213,11 @@ ...@@ -213,11 +213,11 @@
doLogin() { doLogin() {
if (this.userInfo.name == "") { if (this.userInfo.name == "") {
this.nameIsShow = true; this.nameIsShow = true;
this.nameErrorMsg = "请输入用户名"; this.nameErrorMsg = "ユーザー名を入力してください";
return; return;
} else if (this.userInfo.password == "") { } else if (this.userInfo.password == "") {
this.passwordIsShow = true; this.passwordIsShow = true;
this.passwordErrorMsg = "请输入密码"; this.passwordErrorMsg = "パスワードを入力してください";
return; return;
} else { } else {
this.nameIsShow = false; this.nameIsShow = false;
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
<div class="_vad_top clearfix"> <div class="_vad_top clearfix">
<span class="_num PingFangSC">{{$t('visa.v_tuan')}}{{num}}</span> <span class="_num PingFangSC">{{$t('visa.v_tuan')}}{{num}}</span>
<div class="fr"> <div class="fr">
<button @click="DeleteMore" class="normalBtn">批量删除</button>
<el-dropdown split-button type="primary" trigger="click" @command="bindVisa"> <el-dropdown split-button type="primary" trigger="click" @command="bindVisa">
{{$t('visa.v_tvisa')}} {{$t('visa.v_tvisa')}}
<el-dropdown-menu slot="dropdown" > <el-dropdown-menu slot="dropdown" >
...@@ -33,7 +35,7 @@ ...@@ -33,7 +35,7 @@
<el-dropdown split-button type="primary" trigger="click" @command="bindVisa"> <el-dropdown split-button type="primary" trigger="click" @command="bindVisa">
{{$t('visa.v_gvisa')}} {{$t('visa.v_gvisa')}}
<el-dropdown-menu slot="dropdown" > <el-dropdown-menu slot="dropdown" >
<el-dropdown-item v-for="item in VisaManagementList" :key='item.Id' v-if="item.IsOrderSigned==1" :command='{id:item.Id,type:1}'>{{item.Name}}</el-dropdown-item> <el-dropdown-item v-for="(item,index) in VisaManagementList" :key='index+50000' v-if="item.IsOrderSigned==1" :command='{id:item.Id,type:1}'>{{item.Name}}</el-dropdown-item>
<el-dropdown-item v-if="LineID!=14" :command='{id:-1,type:1}'>{{$t('visaT.v_Othervisas')}}</el-dropdown-item> <el-dropdown-item v-if="LineID!=14" :command='{id:-1,type:1}'>{{$t('visaT.v_Othervisas')}}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
...@@ -48,7 +50,7 @@ ...@@ -48,7 +50,7 @@
<th>{{$t('visa.v_visaType')}}</th> <th>{{$t('visa.v_visaType')}}</th>
<th>{{$t('visa.v_qianzhengst')}}</th> <th>{{$t('visa.v_qianzhengst')}}</th>
<th>{{$t('admin.admin_czPerson')}}</th> <th>{{$t('admin.admin_czPerson')}}</th>
<th>{{$t('hotel.table_operat')}}</th> <th> <input type="checkbox" @change="checkAll2" v-model="checkd2" >{{$t('hotel.table_operat')}}</th>
</tr> </tr>
<tr v-for="(item,index) in dataList"> <tr v-for="(item,index) in dataList">
<td width=150 class="text_left"> <td width=150 class="text_left">
...@@ -97,6 +99,7 @@ ...@@ -97,6 +99,7 @@
</td> </td>
<td>{{item.UpdateName}} <img class="_head_img" :src="item.UpdatePhoto" alt=""></td> <td>{{item.UpdateName}} <img class="_head_img" :src="item.UpdatePhoto" alt=""></td>
<td style="position:relative;width:200px"> <td style="position:relative;width:200px">
<input v-if="item.VisaType==2 || item.SignStatus==2" type="checkbox" v-model="checkList2" :value="item.Id" @change="checkThis2">
<el-button @click="deletelist(item.Id)" type="danger" style="padding:5px" icon="el-icon-delete" circle></el-button> <el-button @click="deletelist(item.Id)" type="danger" style="padding:5px" icon="el-icon-delete" circle></el-button>
<!-- <i @click="deletelist(item.Id)" class="iconfont icon-img_delete_small"></i> --> <!-- <i @click="deletelist(item.Id)" class="iconfont icon-img_delete_small"></i> -->
<span v-if="LineID!=14"> <span v-if="LineID!=14">
...@@ -126,6 +129,11 @@ export default { ...@@ -126,6 +129,11 @@ export default {
checkListAll:[], checkListAll:[],
loading:false, loading:false,
checkd:false, checkd:false,
checkd2:false,
checkList2:[],
checkListAll2:[],
deleteStatus:false,
lastlen:false,
StatusList:[ StatusList:[
{ {
Id:'-1', Id:'-1',
...@@ -186,6 +194,7 @@ export default { ...@@ -186,6 +194,7 @@ export default {
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.deleteStatus=false;
this.deleteTshi(id) this.deleteTshi(id)
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
...@@ -197,8 +206,17 @@ export default { ...@@ -197,8 +206,17 @@ export default {
deleteTshi(id){ // 删除操作 deleteTshi(id){ // 删除操作
this.apipost('dmc_post_DelVisaPeople',{GuestId:id},res=>{ this.apipost('dmc_post_DelVisaPeople',{GuestId:id},res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
if(this.deleteStatus){
if(this.lastlen){
this.getData()
this.$message.success(res.data.message)
}
}else{
this.$message.success(res.data.message) this.$message.success(res.data.message)
this.getData() this.getData()
}
}else{ }else{
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
...@@ -229,6 +247,50 @@ export default { ...@@ -229,6 +247,50 @@ export default {
} }
},err=>{}) },err=>{})
}, },
DeleteMore(){
let len=this.checkList2.length;
if(len==0){
this.Error("至少选择一条!");
return;
}
this.deleteStatus=true;
this.lastlen=false;
this.$confirm(this.$t('visaT.sfshanchubd'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
for(let i=0;i<this.checkList2.length;i++){
if(i+1==len){
this.lastlen=true;
}
this.deleteTshi(this.checkList2[i])
}
}).catch(() => {
this.$message({
type: 'info',
message: this.$t('tips.cancleDelete')
});
});
},
checkThis2(){ // 单选
if(this.checkList2.length==this.checkListAll2.length){
this.checkd2 = true
return
}
this.checkd2 = false
},
checkAll2(){ //全选
if(this.checkList2.length==this.checkListAll2.length){
this.checkList2=[]
return
}
this.checkList2 = this.checkListAll2
},
checkThis(){ // 单选 checkThis(){ // 单选
if(this.checkList.length==this.checkListAll.length){ if(this.checkList.length==this.checkListAll.length){
this.checkd = true this.checkd = true
...@@ -243,6 +305,7 @@ export default { ...@@ -243,6 +305,7 @@ export default {
} }
this.checkList = this.checkListAll this.checkList = this.checkListAll
}, },
getVisaManagementList(){ // 获取签证管理 getVisaManagementList(){ // 获取签证管理
this.apipost('dmc_get_visa_GetVisaManagementList',{Status:0,BranchId:-1,SignStatus:0},res=>{ this.apipost('dmc_get_visa_GetVisaManagementList',{Status:0,BranchId:-1,SignStatus:0},res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
...@@ -259,6 +322,11 @@ export default { ...@@ -259,6 +322,11 @@ export default {
// console.log("res",res); // console.log("res",res);
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.dataList = res.data.data; this.dataList = res.data.data;
this.dataList.forEach(x=>{
if(x.VisaType==2 || x.SignStatus==2){
this.checkListAll2.push(x.Id)
}
})
if(this.LineID==14){ if(this.LineID==14){
this.dataList.forEach(x=>{ this.dataList.forEach(x=>{
if(x.ApplyStatus==-1){ if(x.ApplyStatus==-1){
......
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