Commit 58739fa4 authored by 黄奎's avatar 黄奎

库存管理页面修改

parent baee45c9
......@@ -39,9 +39,12 @@
v-loading='msg.loading'>
<tr>
<th width="5%">序号</th>
<th width="5%">停车场名称/停车场地址</th>
<th width="5%">停车场名称</th>
<th width="5%">停车场地址</th>
<th width="5%">联系电话</th>
<th width="10%">地区</th>
<th width="10%">总库存/使用库存/剩余库存</th>
<th width="10%">价格</th>
<th width="10%">操作人</th>
<th width="10%">操作</th>
</tr>
......@@ -51,15 +54,22 @@
</td>
<td style="text-align:left;padding:0 20px;">
{{item.ParkName}}
<br />
</td>
<td>
{{item.Address}}
</td>
<td style="text-align:left;padding:0 20px;">
{{item.ParkTel}}
</td>
<td>
{{item.CountryName}}-{{item.ProvinceName}}-{{item.CityName}}-{{item.DistrictName}}
</td>
<td>
{{item.StockNum}}/{{item.UseNum}}/{{item.ShengYu}}
</td>
<td>
{{item.ParkPrice}}
</td>
<td>
{{item.CreatyByName}}
<br />
......@@ -70,16 +80,15 @@
<el-button type="primary" icon="el-icon-edit" @click="IsShow=true,GetPark(item.Id)" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top-start">
<el-button type="danger" icon="el-icon-delete"
@click="delPark(item.Id)" circle></el-button>
<el-button type="danger" icon="el-icon-delete" @click="delPark(item.Id)" circle></el-button>
</el-tooltip>
</td>
</tr>
</table>
</div>
<div class="noDataNotice" v-if="!DataList||DataList.length==0">
<i class="iconfont icon-kong"></i>
<p>没有找到你需要的数据</p>
<i class="iconfont icon-kong"></i>
<p>没有找到你需要的数据</p>
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage"
......@@ -104,8 +113,8 @@
</el-col>
<el-col :span="5">
<el-form-item label="国家">
<el-select v-model="PostMsg.Country" clearable class="w210" filterable @change="getAddProvince(PostMsg.Country,1)"
:placeholder="$t('hotel.hotel_country')">
<el-select v-model="PostMsg.Country" clearable class="w210" filterable
@change="getAddProvince(PostMsg.Country,1)" :placeholder="$t('hotel.hotel_country')">
<el-option :label="$t('pub.unlimitedSel')" :value="0"></el-option>
<el-option v-for="item in countryList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
......@@ -146,10 +155,23 @@
<el-input v-model="PostMsg.Lat" class="w210"></el-input>
</el-form-item>
</el-col> -->
<el-col :span="5">
<el-form-item label="电话">
<el-input v-model="PostMsg.ParkTel" class="w210" max-length="30"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="价格">
<el-input v-model="PostMsg.ParkPrice" @keyup.native="checkPrice(PostMsg,'ParkPrice')" class="w210"
max-length="15">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="库存数量">
<el-input v-model="PostMsg.StockNum" @keyup.native="checkInteger(PostMsg,'StockNum')" class="w210"></el-input>
<el-input v-model="PostMsg.StockNum" @keyup.native="checkInteger(PostMsg,'StockNum')" class="w210">
</el-input>
</el-form-item>
</el-col>
</el-form>
......@@ -190,13 +212,15 @@
Lng: "",
Lat: "",
StockNum: 0,
ParkPrice: 0,
ParkTel: ""
},
countryList:[],
provinceList:[],
cityList:[],
provinceList2:[],
cityList2:[],
selectAddress:false,
countryList: [],
provinceList: [],
cityList: [],
provinceList2: [],
cityList2: [],
selectAddress: false,
}
},
......@@ -227,12 +251,11 @@
}, res => {
if (res.data.resultCode == 1) {
this.PostMsg = res.data.data;
console.log(this.PostMsg);
if(this.PostMsg.Country>0){
this.getPrivince(this.PostMsg.Country,1);
if (this.PostMsg.Country > 0) {
this.getPrivince(this.PostMsg.Country, 1);
}
if(this.PostMsg.Province>0){
this.getPrivince(this.PostMsg.Province,2);
if (this.PostMsg.Province > 0) {
this.getPrivince(this.PostMsg.Province, 2);
}
} else {
this.$message.error(res.data.message)
......@@ -254,6 +277,8 @@
this.PostMsg.Lng = "";
this.PostMsg.Lat = "";
this.PostMsg.StockNum = 0;
this.PostMsg.ParkPrice = 0;
this.PostMsg.ParkTel = "";
this.getList();
} else {
this.$message.error(res.data.message)
......@@ -341,28 +366,28 @@
err => {}
);
}
},
},
//初始化对应下拉
getPrivince(ID,type){
let msg = {
Id: ID
};
this.apipost(
"dict_post_Destination_GetChildList",
msg,
res => {
if (type == 1) {
this.provinceList2 = res.data.data;
} else if (type == 2) {
this.cityList2 = res.data.data;
}
},
err => {}
);
getPrivince(ID, type) {
let msg = {
Id: ID
};
this.apipost(
"dict_post_Destination_GetChildList",
msg,
res => {
if (type == 1) {
this.provinceList2 = res.data.data;
} else if (type == 2) {
this.cityList2 = res.data.data;
}
},
err => {}
);
},
//重置
resetMsg(){
resetMsg() {
let msg = {
Id: 0,
ParkName: "",
......@@ -384,7 +409,7 @@
this.PostMsg.Lng = msg.lng;
this.PostMsg.Lat = msg.lat;
this.PostMsg.Address = msg.address;
console.log(msg,'msssgggg');
console.log(msg, 'msssgggg');
console.log(msg.address);
},
......@@ -393,8 +418,8 @@
this.getCountryList();
this.getList();
},
components:{
googleMap: googleMap,
components: {
googleMap: googleMap,
}
}
......@@ -449,14 +474,17 @@
cursor: pointer;
}
.busStockManager .w150 .el-input{
width:150px;
.busStockManager .w150 .el-input {
width: 150px;
}
.busStockManager .el-button.is-circle{
padding:5px;
.busStockManager .el-button.is-circle {
padding: 5px;
}
.busStockManager .mapList{
width:850px;
height:510px;
.busStockManager .mapList {
width: 850px;
height: 510px;
}
</style>
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