Commit 57bd7aab authored by 黄奎's avatar 黄奎

页面修改

parent c20c4fc4
<style> <style>
@import "../../assets/css/comSupplier.css"; @import "../../assets/css/comSupplier.css";
</style> </style>
<template> <template>
<div class="flexOne suppierManage"> <div class="flexOne suppierManage">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<span> <span>
<em>{{$t('system.quety_area')}}</em> <em>{{$t('system.quety_area')}}</em>
<el-select v-model="msg.CountryStr" clearable class="w150" filterable @change="getProvinceList(msg.CountryStr,1)" :placeholder="$t('hotel.hotel_country')"> <el-select v-model="msg.CountryStr" clearable class="w150" filterable
<el-option v-for='item in countryList' @change="getProvinceList(msg.CountryStr,1)" :placeholder="$t('hotel.hotel_country')">
:key="item.ID" <el-option v-for='item in countryList' :key="item.ID" :label="item.Name" :value="item.ID">
:label="item.Name" </el-option>
:value="item.ID"> </el-select>
</el-option> <el-select v-model="msg.ProvinceStr" class="w150" filterable @change="getProvinceList(msg.ProvinceStr,2)"
</el-select> :placeholder="$t('hotel.hotel_province')">
<el-select v-model="msg.ProvinceStr" class="w150" filterable @change="getProvinceList(msg.ProvinceStr,2)" :placeholder="$t('hotel.hotel_province')"> <el-option v-for='item in provinceList' :key="item.ID" :label="item.Name" :value="item.ID">
<el-option v-for='item in provinceList' </el-option>
:key="item.ID" </el-select>
:label="item.Name" <el-select v-model="msg.CityStr" class="w150" filterable @change="getProvinceList(msg.CityStr,3)"
:value="item.ID"> :placeholder="$t('hotel.hotel_city')">
</el-option> <el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-select> </el-option>
<el-select v-model="msg.CityStr" class="w150" filterable @change="getProvinceList(msg.CityStr,3)" :placeholder="$t('hotel.hotel_city')"> </el-select>
<el-option v-for='item in cityList' <el-select v-model="msg.DistrictStr" class="w150" filterable :placeholder="$t('hotel.hotel_area')">
:key="item.ID" <el-option v-for='item in district' :key="item.ID" :label="item.Name" :value="item.ID">
:label="item.Name" </el-option>
:value="item.ID"> </el-select>
</el-option> </span>
</el-select> </li>
<el-select v-model="msg.DistrictStr" class="w150" filterable :placeholder="$t('hotel.hotel_area')"> <li>
<el-option v-for='item in district' <span>
:key="item.ID" <em>{{$t('hotel.suplier_name')}}</em>
:label="item.Name" <el-input maxlength="50" @keyup.native.enter="initData" v-model="msg.Name" class="permiss-input w150"
:value="item.ID"> :placeholder="$t('pub.pleaseImport')"></el-input>
</el-option> </span>
</el-select> </li>
</span> <li>
</li> <span>
<li> <em>{{$t('hotel.suplier_contact')}}</em>
<span> <el-input maxlength="50" @keyup.native.enter="initData" v-model="msg.Contact" class="permiss-input w150"
<em>{{$t('hotel.suplier_name')}}</em><el-input maxlength="50" @keyup.native.enter="initData" v-model="msg.Name" class="permiss-input w150" :placeholder="$t('pub.pleaseImport')"></el-input> :placeholder="$t('pub.pleaseImport')"></el-input>
</span> </span>
</li> </li>
<li> <li>
<span> <button class="hollowFixedBtn" type="button"
<em>{{$t('hotel.suplier_contact')}}</em><el-input maxlength="50" @keyup.native.enter="initData" v-model="msg.Contact" class="permiss-input w150" :placeholder="$t('pub.pleaseImport')"></el-input> @click="resetPageIndex(),initData()">{{$t('pub.searchBtn')}}</button>
</span> <button class="normalBtn" type="button"
</li> @click="clearinputInfo(),outerVisible = true,dialogTitle='添加供应商'">{{$t('pub.addBtn')}}</button>
<li> </li>
<button class="hollowFixedBtn" type="button" @click="resetPageIndex(),initData()">{{$t('pub.searchBtn')}}</button> </ul>
<button class="normalBtn" type="button" @click="clearinputInfo(),outerVisible = true,dialogTitle='添加供应商'">{{$t('pub.addBtn')}}</button> <el-dialog custom-class='addCompany' :title="dialogTitle" :visible.sync="outerVisible" center>
</li> <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
</ul> <el-form-item :label="$t('hotel.suplier_name')" prop="Name">
<el-dialog custom-class='addCompany' :title="dialogTitle" :visible.sync="outerVisible" center> <el-input type="text" class="w300" maxlength="50" v-model="addMsg.Name"></el-input>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px" > </el-form-item>
<el-form-item :label="$t('hotel.suplier_name')" prop="Name"> <el-form-item :label="$t('restaurant.res_belongArea')">
<el-input type="text" class="w300" maxlength="50" v-model="addMsg.Name"></el-input> <el-select v-model="addMsg.Country" clearable class="w150" filterable
</el-form-item> @change="getProvinceList(addMsg.Country,1)" :placeholder="$t('hotel.hotel_country')">
<el-form-item :label="$t('restaurant.res_belongArea')"> <el-option v-for='item in countryList' :key="item.ID" :label="item.Name" :value="item.ID">
<el-select v-model="addMsg.Country" clearable class="w150" filterable @change="getProvinceList(addMsg.Country,1)" :placeholder="$t('hotel.hotel_country')"> </el-option>
<el-option v-for='item in countryList' </el-select>
:key="item.ID" <el-select v-model="addMsg.Province" class="w150" filterable @change="getProvinceList(addMsg.Province,2)"
:label="item.Name" :placeholder="$t('hotel.hotel_province')">
:value="item.ID"> <el-option v-for='item in provinceList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="addMsg.Province" class="w150" filterable @change="getProvinceList(addMsg.Province,2)" :placeholder="$t('hotel.hotel_province')"> <el-select v-model="addMsg.City" class="w150" filterable @change="getProvinceList(addMsg.City,3)"
<el-option v-for='item in provinceList' :placeholder="$t('hotel.hotel_city')">
:key="item.ID" <el-option v-for='item in cityList' :key="item.ID" :label="item.Name" :value="item.ID">
:label="item.Name" </el-option>
:value="item.ID"> </el-select>
</el-option> <el-select v-model="addMsg.District" class="w150" filterable :placeholder="$t('hotel.hotel_area')">
</el-select> <el-option v-for='item in district' :key="item.ID" :label="item.Name" :value="item.ID">
<el-select v-model="addMsg.City" class="w150" filterable @change="getProvinceList(addMsg.City,3)" :placeholder="$t('hotel.hotel_city')"> </el-option>
<el-option v-for='item in cityList' </el-select>
:key="item.ID" </el-form-item>
:label="item.Name" <el-form-item :label="$t('hotel.table_HotelAddress')" prop="Address">
:value="item.ID"> <el-input type="text" class="w300" maxlength="50" v-model="addMsg.Address"
</el-option> :placeholder="$t('hotel.table_areaDetail')"></el-input>
</el-select> </el-form-item>
<el-select v-model="addMsg.District" class="w150" filterable :placeholder="$t('hotel.hotel_area')"> <el-form-item label="付款方式" prop="Address">
<el-option v-for='item in district' <el-select v-model="addMsg.PayType" filterable placeholder="请选择" class="w300">
:key="item.ID" <el-option v-for='item in PayTypeList' :key="item.Id" :label="item.name" :value="item.Id">
:label="item.Name" </el-option>
:value="item.ID"> </el-select>
</el-option> </el-form-item>
</el-select> <el-form-item label="是否有手配费">
</el-form-item> <el-switch v-model="addMsg.IsHaveShouPeiFee" :active-value="inActive" :inactive-value="notInActive">
<el-form-item :label="$t('hotel.table_HotelAddress')" prop="Address"> </el-switch>
<el-input type="text" class="w300" maxlength="50" v-model="addMsg.Address" :placeholder="$t('hotel.table_areaDetail')"></el-input> </el-form-item>
</el-form-item> <el-form-item v-if="addMsg.IsHaveShouPeiFee==1" label="手配费金额">
<el-form-item label="付款方式" prop="Address"> <el-input type="text" class="w300" maxlength="10" @keyup.native="checkPrice(addMsg,'ShouPeiMoney')"
<el-select v-model="addMsg.PayType" filterable placeholder="请选择" class="w300"> v-model="addMsg.ShouPeiMoney"></el-input>
<el-option v-for='item in PayTypeList' </el-form-item>
:key="item.Id" <el-form-item :label="$t('hotel.table_tel')" prop="Tel">
:label="item.name" <el-input type="text" class="w300" maxlength="20" v-model="addMsg.Tel"></el-input>
:value="item.Id"> </el-form-item>
</el-option> <el-form-item :label="$t('hotel.suplier_contact')" prop="Contact">
</el-select> <el-input type="text" class="w300" maxlength="20" v-model="addMsg.Contact"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="是否有手配费"> <el-form-item :label="$t('hotel.hotel_fax')" prop="Fax">
<el-switch v-model="addMsg.IsHaveShouPeiFee" :active-value="inActive" :inactive-value="notInActive"> <el-input type="text" class="w300" maxlength="20" v-model="addMsg.Fax"></el-input>
</el-switch> </el-form-item>
</el-form-item> <el-form-item :label="$t('hotel.hotel_remark')" prop="Remark">
<el-form-item v-if="addMsg.IsHaveShouPeiFee==1" label="手配费金额"> <el-input type="textarea" class="w300" maxlength="200" v-model="addMsg.Remark"></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>
<el-form-item :label="$t('hotel.table_tel')" prop="Tel"> <div slot="footer" class="dialog-footer">
<el-input type="text" class="w300" maxlength="20" v-model="addMsg.Tel"></el-input> <button class="hollowFixedBtn"
</el-form-item> @click="resetForm('addMsg'),outerVisible = false">{{$t('pub.cancelBtn')}}</button> &nbsp;
<el-form-item :label="$t('hotel.suplier_contact')" prop="Contact"> <button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.sureBtn')}}</button>
<el-input type="text" class="w300" maxlength="20" v-model="addMsg.Contact"></el-input> </div>
</el-form-item> </el-dialog>
<el-form-item :label="$t('hotel.hotel_fax')" prop="Fax"> </div>
<el-input type="text" class="w300" maxlength="20" v-model="addMsg.Fax"></el-input> <div class="supplierList clearfix" v-loading="loading">
</el-form-item> <div class="supList" v-for="item in tabelDate" :key="item.subCode">
<el-form-item :label="$t('hotel.hotel_remark')" prop="Remark"> <div class="suTop">
<el-input type="textarea" class="w300" maxlength="200" v-model="addMsg.Remark"></el-input> <img src="../../assets/img/suplier.jpg">
</el-form-item> <div class="topCircle">{{item.Number}}</div>
</el-form> </div>
<div slot="footer" class="dialog-footer"> <div class="supTitle">{{item.Name}}</div>
<button class="hollowFixedBtn" @click="resetForm('addMsg'),outerVisible = false">{{$t('pub.cancelBtn')}}</button> &nbsp; <div class="telNumber">{{item.Tel}}</div>
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.sureBtn')}}</button> <div class="Address">
</div> <div v-show="item.Contact">
</el-dialog> <i class="iconfont icon-img_dz"></i>
</div> <el-tooltip class="item" effect="dark" :content="item.Contact" placement="top-start">
<div class="supplierList clearfix" v-loading="loading"> <div class="AddressInner">{{item.Contact}}</div>
<div class="supList" v-for="item in tabelDate" :key="item.subCode"> </el-tooltip>
<div class="suTop"> </div>
<img src="../../assets/img/suplier.jpg"> </div>
<div class="topCircle">{{item.Number}}</div> <div class="updataBtn">
</div> <button class="normalBtn UPBtn"
<div class="supTitle">{{item.Name}}</div> @click="outerVisible = true,dialogTitle='修改供应商信息',updateInfo(item.ID)">{{$t('pub.updateMsg')}}</button>
<div class="telNumber">{{item.Tel}}</div> <button class="hollowFixedBtn UPBtn" @click="isdelete(item.ID)">删除</button>
<div class="Address"> <button class="hollowFixedBtn HS_financial" @click="AccountManage(item)">账户管理</button>
<div v-show="item.Contact"> </div>
<i class="iconfont icon-img_dz"></i> </div>
<el-tooltip class="item" effect="dark" :content="item.Contact" placement="top-start"> </div>
<div class="AddressInner">{{item.Contact}}</div> <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
</el-tooltip> layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total">
</div> </el-pagination>
</div> </div>
<div class="updataBtn">
<button class="normalBtn UPBtn" @click="outerVisible = true,dialogTitle='修改供应商信息',updateInfo(item.ID)">{{$t('pub.updateMsg')}}</button>
<button class="hollowFixedBtn UPBtn" @click="isdelete(item.ID)">删除</button>
<button class="hollowFixedBtn HS_financial" @click="AccountManage(item)">账户管理</button>
</div>
</div>
</div>
<el-pagination
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size="this.msg.pageSize"
:total="total">
</el-pagination>
</div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
total: 0, total: 0,
currentPage: 1, currentPage: 1,
tabelDate: "", tabelDate: "",
outerVisible: false, outerVisible: false,
isRight: true, isRight: true,
loading: true, loading: true,
dialogTitle: "", dialogTitle: "",
countryList: "", countryList: "",
provinceList: "", provinceList: "",
cityList: "", cityList: "",
district: "", district: "",
deleteID: "", deleteID: "",
typeList: "", typeList: "",
TypeOne: "", TypeOne: "",
inActive: 1, //有手配费 inActive: 1, //有手配费
notInActive: 0, //无手配费 notInActive: 0, //无手配费
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 18, pageSize: 18,
Name: "", Name: "",
Contact: "", Contact: "",
Type: 1, Type: 1,
CountryStr: "", CountryStr: "",
ProvinceStr: "", ProvinceStr: "",
CityStr: "", CityStr: "",
DistrictStr: "" DistrictStr: ""
},
addMsg: {
ID: 0,
Name: "",
Country: "",
Province: "",
City: "",
District: "",
Address: "",
Tel: "",
Contact: "",
Fax: "",
Remark: "",
Type: "1",
PayType:'',
//是否有手配费
IsHaveShouPeiFee:0,
//手配费金额
ShouPeiMoney:0
},
//付款方式
PayTypeList:[{
name:'现付',
Id:1
},{
name:'签单',
Id:2
}],
rules: {
Name: [
{ required: true, message: "请输入供应商名称", trigger: "blur" }
],
Contact: [{ required: true, message: "请输入联系人", trigger: "blur" }]
}
};
},
methods: {
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.initData();
},
resetPageIndex() {
this.msg.pageIndex = 1;
this.currentPage = 1;
},
initData() {
this.loading = true;
this.apipost(
"supplier_get_GetPageList",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.tabelDate = res.data.data.pageData;
this.total = res.data.data.count;
}
},
null
);
},
isdelete(ID) {
this.deleteID = ID;
this.$confirm("是否删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.$message({
type: "success",
message: "删除成功!"
});
this.delsuppli();
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除"
});
});
},
delsuppli() {
let msg = {
supplierID: this.deleteID
};
this.apipost(
"supplier_post_Remove",
msg,
response => {
if (response.data.resultCode == 1) {
this.Success("删除成功!");
this.initData();
} else {
this.Error(response.data.message);
}
}, },
null addMsg: {
); ID: 0,
}, Name: "",
saveInfo() { Country: "",
if(this.addMsg.ShouPeiMoney==''){ Province: "",
this.addMsg.ShouPeiMoney=0; City: "",
} District: "",
this.apipost( Address: "",
"supplier_post_Set", Tel: "",
this.addMsg, Contact: "",
res => { Fax: "",
if (res.data.resultCode == 1) { Remark: "",
this.initData(); Type: "1",
this.Success("保存成功!"); PayType: '',
this.outerVisible = false; //是否有手配费
} else { IsHaveShouPeiFee: 0,
this.Error(res.data.message); //手配费金额
} ShouPeiMoney: 0
}, },
null //付款方式
); PayTypeList: [{
name: '现付',
Id: 1
}, {
name: '签单',
Id: 2
}],
rules: {
Name: [{
required: true,
message: "请输入供应商名称",
trigger: "blur"
}],
Contact: [{
required: true,
message: "请输入联系人",
trigger: "blur"
}]
}
};
}, },
clearinputInfo() { methods: {
(this.addMsg = { handleCurrentChange(val) {
Name: "", this.msg.pageIndex = val;
Country: "", this.initData();
Province: "", },
City: "", resetPageIndex() {
District: "", this.msg.pageIndex = 1;
Address: "", this.currentPage = 1;
Tel: "", },
Contact: "", initData() {
Fax: "", this.loading = true;
Remark: "", this.apipost(
Type: 1, "supplier_get_GetPageList",
PayType:'', this.msg,
IsHaveShouPeiFee:0, res => {
ShouPeiMoney:0 this.loading = false;
}), if (res.data.resultCode == 1) {
this.tabelDate = res.data.data.pageData;
this.total = res.data.data.count;
}
},
null
);
},
isdelete(ID) {
this.deleteID = ID;
this.$confirm("是否删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.$message({
type: "success",
message: "删除成功!"
});
this.delsuppli();
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除"
});
});
},
delsuppli() {
let msg = {
supplierID: this.deleteID
};
this.apipost(
"supplier_post_Remove",
msg,
response => {
if (response.data.resultCode == 1) {
this.Success("删除成功!");
this.initData();
} else {
this.Error(response.data.message);
}
},
null
);
},
saveInfo() {
if (this.addMsg.ShouPeiMoney == '') {
this.addMsg.ShouPeiMoney = 0;
}
this.apipost(
"supplier_post_Set",
this.addMsg,
res => {
if (res.data.resultCode == 1) {
this.initData();
this.Success("保存成功!");
this.outerVisible = false;
} else {
this.Error(res.data.message);
}
},
null
);
},
clearinputInfo() {
(this.addMsg = {
Name: "",
Country: "",
Province: "",
City: "",
District: "",
Address: "",
Tel: "",
Contact: "",
Fax: "",
Remark: "",
Type: 1,
PayType: '',
IsHaveShouPeiFee: 0,
ShouPeiMoney: 0
}),
(this.provinceList = ""); (this.provinceList = "");
this.cityList = ""; this.cityList = "";
this.district = ""; this.district = "";
}, },
updateInfo(ID) { updateInfo(ID) {
this.addMsg.ID = ID; this.addMsg.ID = ID;
let msg = { let msg = {
supplierID: ID supplierID: ID
}; };
this.apipost( this.apipost(
"supplier_post_Get", "supplier_post_Get",
msg, msg,
res => { res => {
this.addMsg.Country = res.data.data.Country; this.addMsg.Country = res.data.data.Country;
if (res.data.data.Country !== 0) { if (res.data.data.Country !== 0) {
this.getProvinceList(res.data.data.Country, 1); this.getProvinceList(res.data.data.Country, 1);
} }
if (res.data.data.Province !== 0) { if (res.data.data.Province !== 0) {
this.getProvinceList(res.data.data.Province, 2); this.getProvinceList(res.data.data.Province, 2);
}
if (res.data.data.City !== 0) {
this.getProvinceList(res.data.data.City, 3);
}
this.addMsg = res.data.data;
this.addMsg.Type = 1;
},
null
);
},
getProvinceList(ID, type) {
//根据省份获取城市
let msg = {
Id: ID
};
if (type == 1) {
this.addMsg.Province = "";
this.addMsg.City = "";
this.addMsg.District = "";
this.msg.ProvinceStr = "";
this.msg.CityStr = "";
this.msg.DistrictStr = "";
} else if (type == 2) {
this.addMsg.City = "";
this.addMsg.District = "";
this.msg.CityStr = "";
this.msg.DistrictStr = "";
} else if (type == 3) {
this.addMsg.District = "";
this.msg.DistrictStr = "";
}
if (this.addMsg.Country != "" || this.msg.CountryStr != "") {
this.apipost(
"dict_post_Destination_GetChildList",
msg,
res => {
if (type == 1) {
this.provinceList = res.data.data;
} else if (type == 2) {
this.cityList = res.data.data;
} else if (type == 3) {
this.district = res.data.data;
}
},
err => {}
);
}
},
getCountryList() {
//获取国家
let msg = {};
this.apipost(
"dict_post_Destination_GetCountry",
msg,
res => {
this.countryList = res.data.data;
},
err => {}
);
},
goUrl(path, id) {
this.$router.push({
path: path,
query: {
id: id
} }
if (res.data.data.City !== 0) { });
this.getProvinceList(res.data.data.City, 3); },
submitForm(addMsg) {
//提交创建、修改表单
let that = this;
that.$refs[addMsg].validate(valid => {
if (valid) {
that.saveInfo();
} else {
return false;
} }
this.addMsg = res.data.data; });
this.addMsg.Type = 1; },
}, resetForm(formName) {
null this.$refs[formName].resetFields();
); },
}, trim(str) {
getProvinceList(ID, type) { //去除空格
//根据省份获取城市 return str.replace(/\s+/g, "");
let msg = { Id: ID }; },
if (type == 1) { gettypeList() {
this.addMsg.Province = ""; //获取类型
this.addMsg.City = ""; let msg = {};
this.addMsg.District = "";
this.msg.ProvinceStr = "";
this.msg.CityStr = "";
this.msg.DistrictStr = "";
} else if (type == 2) {
this.addMsg.City = "";
this.addMsg.District = "";
this.msg.CityStr = "";
this.msg.DistrictStr = "";
} else if (type == 3) {
this.addMsg.District = "";
this.msg.DistrictStr = "";
}
if (this.addMsg.Country != "" || this.msg.CountryStr != "") {
this.apipost( this.apipost(
"dict_post_Destination_GetChildList", "hotel_post_GetResourceType",
msg, msg,
res => { res => {
if (type == 1) { this.typeList = res.data.data;
this.provinceList = res.data.data;
} else if (type == 2) {
this.cityList = res.data.data;
} else if (type == 3) {
this.district = res.data.data;
}
}, },
err => {} err => {}
); );
},
//账户管理
AccountManage(item) {
this.$router.push({
name: "empBankAccount",
query: {
id: item.ID,
type: 1,
blank: 'y',
tab: '账户管理'
}
});
} }
}, },
getCountryList() {
//获取国家 mounted() {
let msg = {}; this.initData();
this.apipost( this.getCountryList(); //初始化国家下拉
"dict_post_Destination_GetCountry",
msg,
res => {
this.countryList = res.data.data;
},
err => {}
);
},
goUrl(path, id) {
this.$router.push({ path: path, query: { id: id } });
},
submitForm(addMsg) {
//提交创建、修改表单
let that = this;
that.$refs[addMsg].validate(valid => {
if (valid) {
that.saveInfo();
} else {
return false;
}
});
},
resetForm(formName) {
this.$refs[formName].resetFields();
},
trim(str) {
//去除空格
return str.replace(/\s+/g, "");
},
gettypeList() {
//获取类型
let msg = {};
this.apipost(
"hotel_post_GetResourceType",
msg,
res => {
this.typeList = res.data.data;
},
err => {}
);
},
//账户管理
AccountManage(item) {
this.$router.push({
name: "empBankAccount",
query: { id: item.ID, type: 1,blank:'y', tab:'账户管理' }
});
} }
}, };
mounted() { </script>
this.initData();
this.getCountryList(); //初始化国家下拉
}
};
</script>
\ No newline at end of file
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