diff --git a/warehousing-system/project_web/src/components/initial_value/storehouse.vue b/warehousing-system/project_web/src/components/initial_value/storehouse.vue
index 2e533371..1087f37b 100644
--- a/warehousing-system/project_web/src/components/initial_value/storehouse.vue
+++ b/warehousing-system/project_web/src/components/initial_value/storehouse.vue
@@ -185,30 +185,19 @@
- 仓库坐标精度:
+ 仓库经纬度:
-
+
-
- 仓库坐标维度:
-
-
-
-
-
@@ -537,37 +526,28 @@
- 仓库坐标精度
+ 仓库经纬度
- {{ temp.lon }}
+ {{ temp.lon }},{{ temp.lat }}
- 仓库坐标维度
+ 房源
- {{ temp.lat }}
+ {{ temp.housingResource }}
-
-
- 房源
-
-
-
-
- {{ temp.housingResource }}
-
-
+
库房面积
@@ -578,9 +558,6 @@
{{ temp.acreage }}
-
-
-
库房高度
@@ -591,6 +568,9 @@
{{ temp.storeyHeight }}
+
+
+
月租金
@@ -601,9 +581,6 @@
{{ temp.monthlyPrice }}
-
-
-
库房性质名称
@@ -701,7 +678,8 @@ export default {
fullscreenloading: null,
msg: [],
imagesg:[],
- meetfunctions:[]
+ meetfunctions:[],
+ jingweidu:''
};
},
watch: {
@@ -709,7 +687,6 @@ export default {
deep: true,
immediate: true,
handler(newVal, oldVal) {
- console.log(newVal);
const aa=[]
for (var i = 0; i < newVal.length; i++) {
aa.push(newVal[i].sid)
@@ -766,9 +743,7 @@ export default {
this.storehouseList = result.data.records;
},
addStorehouseDialog() {
- this.clearList()
- this.imgPrl=[]
- this.imgList=[]
+ this.claerArrList()
this.title = "新增仓库";
this.storehouseDialogVisible = true;
},
@@ -779,16 +754,13 @@ export default {
}
},
async updataStorehousedialog(storehouse) {
- this.clearList()
- this.imgList=[]
- this.msg=[]
- this.imgPrl=[]
- this.imagesg=[]
+ this.claerArrList()
this.title = "修改仓库";
this.storehouseDialogVisible = true;
const { data: result } = await this.$http.get(
`/v1/shstorehouse/fetchDetailsBySid/${storehouse.sid}`
);
+ this.jingweidu=result.data.lon+','+result.data.lat
if (result.code == 200) {
this.form = result.data;
let value=result.data.pics
@@ -800,6 +772,13 @@ export default {
this.msg.push(value[i])
}
}
+ },
+ claerArrList(){
+ this.clearList()
+ this.imgList=[]
+ this.msg=[]
+ this.imgPrl=[]
+ this.imagesg=[]
},
async addStorehouse() {
const { data: result } = await this.$http.post(
@@ -809,11 +788,7 @@ export default {
if (result.code == 200) this.$message.success("成功添加仓库");
this.getStorehouseList();
this.storehouseDialogVisible = false;
- this.clearList()
- this.msg=[]
- this.imgList=[]
- this.imgPrl=[]
- this.imagesg=[]
+ this.claerArrList()
},
async updataStorehouse() {
const { data: result } = await this.$http.post(
@@ -823,6 +798,7 @@ export default {
if (result.code == 200) this.$message.success("更新成功");
this.getStorehouseList();
this.storehouseDialogVisible = false;
+ this.claerArrList()
},
operationStorehouse() {
if (this.title === "新增仓库") return this.addStorehouse();
@@ -940,35 +916,6 @@ export default {
});
}
},
- handleSuccess(resp, file, fileList) {
- console.log("222", resp);
- const rdata = resp.data;
- const _this = this;
- _this.form.picUrl = rdata;
- if (this.fullscreenloading) this.fullscreenloading.close();
- this.fullscreenloading = null;
- _this.$message({
- showClose: true,
- type: "success",
- message: "导入成功",
- });
- },
- handleProgress(event, file, fileList) {
- const _this = this;
- this.fullscreenloading = this.$loading({
- lock: true,
- text: "文件正在上传",
- spinner: "el-icon-loading",
- background: "rgba(0, 0, 0, 0.7)",
- });
- console.log("111", event.percent);
- if (event.percent >= 100) {
- _this.fullscreenloading.text = "上传完成,正在导入数据库";
- }
- },
- beforeRemove(file, fileList) {
- return this.$confirm(`确定移除 ${file.name}?`);
- },
async LookStorehousedialog(purchase) {
this.addPurchaseDialogVisible = true;
const _this = this;
@@ -979,11 +926,6 @@ export default {
_this.temp = result.data;
}
},
- toDownload() {
- if (this.temp.picUrl) {
- window.open(this.temp.picUrl, "_blank");
- }
- },
backDatas(value) {
const aa = []
if (value.length > 0 && value != null && value != undefined) {
@@ -996,11 +938,58 @@ export default {
},
backData(value) {
this.form.picUrl = value[0].response.data
- },
+ },
meetfunction(val){
if(val.length==0){
this.form.picUrl=''
+ // this.imgPrl=[]
}
+ },
+ isLngAndLat() {
+ var index = document.getElementById("lngAndLat").value;
+ var array = index.split(",");
+ if (array[0] == undefined || array[1] == undefined){
+ this.$confirm(
+ "请输入经度和纬度,经纬度用','隔开!",
+ "提示",
+ {
+ showCancelButton:false,
+ confirmButtonText: "确定",
+ type: "warning",
+ }
+ ).catch((error) => error);
+ return false;
+ }
+ var longreg = /^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/;
+ if(!longreg.test(array[0])){
+ this.$confirm(
+ "经度整数部分为0-180,小数部分为0到6位!",
+ "提示",
+ {
+ showCancelButton:false,
+ confirmButtonText: "确定",
+ type: "warning",
+ }
+ ).catch((error) => error);
+ return false;
+ }
+ //纬度,整数部分为0-90小数部分为0到6位
+ var latreg = /^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;
+ if(!latreg.test(array[1])) {
+ this.$confirm(
+ "纬度整数部分为0-90,小数部分为0到6位!",
+ "提示",
+ {
+ showCancelButton:false,
+ confirmButtonText: "确定",
+ type: "warning",
+ }
+ ).catch((error) => error);
+ }
+ if(array!=undefined){
+ this.form.lon=array[0]
+ this.form.lat=array[1]
+ }
}
},
mounted() {
diff --git a/warehousing-system/project_web/src/components/pictureList/pictureList.vue b/warehousing-system/project_web/src/components/pictureList/pictureList.vue
new file mode 100644
index 00000000..ac9a6a9c
--- /dev/null
+++ b/warehousing-system/project_web/src/components/pictureList/pictureList.vue
@@ -0,0 +1,1092 @@
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.provinceName }}
+ -{{ scope.row.cityName }}-
+ {{ scope.row.countyName }}
+
+
+
+
+ 查看详情
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 客户名称:
+
+
+
+
+
+
+
+
+
+
+
+
+ 仓库名称:
+
+
+
+
+
+
+
+
+
+
+ 仓库简称:
+
+
+
+
+
+
+ 仓库编码:
+
+
+
+
+
+
+
+
+ 仓库经纬度:
+
+
+
+
+
+
+
+
+ 所属地:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详细地址:
+
+
+
+
+
+
+
+ 库房面积:
+
+
+
+
+
+
+ 库房高度:
+
+
+
+
+
+
+
+ 月租金:
+
+
+
+
+
+ 库房性质名称:
+
+
+
+
+
+
+
+
+
+
+
+ 房源信息:
+
+
+
+
+
+
+ 联系人姓名:
+
+
+
+
+
+
+
+ 联系人电话:
+
+
+
+
+
+ 仓库图片:
+
+
+
+
+
+
+
+
+
+ 仓库详细图片:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 客户名称
+
+
+
+
+ {{ temp.custerName }}
+
+
+
+
+ 仓库名称
+
+
+
+
+ {{ temp.name }}
+
+
+
+
+
+
+ 仓库简称
+
+
+
+
+ {{ temp.simpleName }}
+
+
+
+
+ 仓库编码
+
+
+
+
+ {{ temp.code }}
+
+
+
+
+
+
+ 联系人
+
+
+
+
+ {{ temp.linkerName }}
+
+
+
+
+ 联系电话
+
+
+
+
+ {{ temp.linkerPhone }}
+
+
+
+
+
+
+ 省-市-县
+
+
+
+
+ {{ temp.provinceName }} - {{ temp.cityName }} -
+ {{ temp.countyName }}
+
+
+
+
+ 区域名称
+
+
+
+
+ {{ temp.regionName }}
+
+
+
+
+
+
+ 详细地址
+
+
+
+
+ {{ temp.address }}
+
+
+
+
+
+
+
+ 仓库经纬度
+
+
+
+
+ {{ temp.lon }},{{ temp.lat }}
+
+
+
+
+ 房源
+
+
+
+
+ {{ temp.housingResource }}
+
+
+
+
+
+
+
+
+ 库房面积
+
+
+
+
+ {{ temp.acreage }}
+
+
+
+
+ 库房高度
+
+
+
+
+ {{ temp.storeyHeight }}
+
+
+
+
+
+
+
+ 月租金
+
+
+
+
+ {{ temp.monthlyPrice }}
+
+
+
+
+ 库房性质名称
+
+
+
+
+ {{ temp.attributeNames }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/warehousing-system/project_web/src/components/uploadFile/uploadTwo.vue b/warehousing-system/project_web/src/components/uploadFile/uploadTwo.vue
index 91df745d..a956b684 100644
--- a/warehousing-system/project_web/src/components/uploadFile/uploadTwo.vue
+++ b/warehousing-system/project_web/src/components/uploadFile/uploadTwo.vue
@@ -71,15 +71,20 @@
},
watch: {
imgUrl: {
- deep: true,
- immediate: true,
+ deep: false,
+ immediate: false,
handler(newVal, oldVal) {
- if(newVal.url!=undefined){
- let copy = newVal.slice();
-
- this.files = copy
- }
-
+ let copy = newVal.slice();
+ let time=setTimeout(() => {
+ if(copy[0] !== undefined){
+ // console.log(copy[0].url);
+ if(copy[0].url!== ''){
+ this.files = copy
+ clearTimeout(time)
+ }
+ }
+ }, 200);
+ this.files=[]
}
}
},