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

库存管理页面修改

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