diff --git a/src/views/mortgage/shanhaiGf.vue b/src/views/mortgage/shanhaiGf.vue
index 17284be..b4f304f 100644
--- a/src/views/mortgage/shanhaiGf.vue
+++ b/src/views/mortgage/shanhaiGf.vue
@@ -18,7 +18,14 @@
山海能源光伏动产质押项目全局数据大屏
+
+
+
+
仓库分布图
+
@@ -187,7 +194,10 @@
{{ item.tbdate }}
-
{{ item.projectname }}
+
{{ item.projectname }}
{{ item.type=='1'?"用信":'还信' }}
{{ item.money }}元
@@ -234,9 +244,15 @@
-
{{ item.createTime }}
-
{{ item.entryName }}
-
{{ item.name }}
+
{{ item.createTime }}
+
{{ item.entryName }}
+
{{ item.name }}
@@ -247,13 +263,64 @@
-
+
+
+
+
+
+
+
+
+ {clickArrayMarker(marker, e)}" />
+
+
+
+
+
+ 当前选中仓库信息
+
+
+
+ {{ currentStore.warehouseName }}
+ {{ currentStore.warehouseCode }}
+
+
+
+
+ 仓库列表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -277,26 +344,27 @@
times: getCurrentDate(),
time: "",
myChart: "",
- options: [{
- value: "选项1",
- label: "黄金糕",
- },
- {
- value: "选项2",
- label: "双皮奶",
- },
- {
- value: "选项3",
- label: "蚵仔煎",
- },
- {
- value: "选项4",
- label: "龙须面",
- },
- {
- value: "选项5",
- label: "北京烤鸭",
- },
+ options: [
+ // {
+ // value: "选项1",
+ // label: "黄金糕",
+ // },
+ // {
+ // value: "选项2",
+ // label: "双皮奶",
+ // },
+ // {
+ // value: "选项3",
+ // label: "蚵仔煎",
+ // },
+ // {
+ // value: "选项4",
+ // label: "龙须面",
+ // },
+ // {
+ // value: "选项5",
+ // label: "北京烤鸭",
+ // },
],
value1: "",
params: {
@@ -357,7 +425,39 @@
map: []
},
dialogReport: false,
- reportUrl: ''
+ reportUrl: '',
+
+ activeNames: ['info', 'list'],
+ dialogVisible: false,
+ params: {
+ projectSid: '',
+ projectName: '',
+ orderDate: '',
+ },
+ warehouseImg: "",
+ warehouseSid: "",
+ cameraList: [],
+ currentStore: {
+ serNumber: '',
+ name: '',
+ address: '',
+ area: '',
+ dueDiligence: ''
+ },
+ queryParams: {
+ name: '',
+ projectSid: ""
+ },
+ dataList: [],
+ tableLoading: false,
+ controlVisible: false,
+ zoom: 7,
+ center: [114.490788, 38.033577],
+ markers: [],
+ mapicon: {
+ red: 'https://supervise.yxtsoft.com/map365/image/icon_local_red.png',
+ blue: process.env.VUE_APP_PUBLIC_PATH + 'image/icon_local_blue.png'
+ },
};
},
@@ -486,6 +586,64 @@
})
},
+ showPos() {
+ this.dialogVisible = true
+ this.loadList2()
+ },
+ handleClose() {
+ this.dialogVisible = false
+ },
+ loadList2() {
+ this.queryParams.projectSid = this.params.projectSid
+ req.getPos(this.queryParams).then(res => {
+ this.dataList = res.data
+ this.resetMarkers()
+ }).catch(e => {
+ console.log('GdinventoryLog-loadList-ee:', e)
+ })
+ },
+ dosearch() {
+ this.loadList2()
+ },
+ resetQuery() {
+ this.queryParams = {
+ name: '',
+ projectSid: this.params.projectSid
+ }
+ this.loadList2()
+ },
+ resetMarkers() {
+ this.markers = []
+ for (var i in this.dataList) {
+ const d = this.dataList[i]
+ // let nicon = this.mapicon.red
+ // if (d.dueDiligence === '是') {
+ // nicon = this.mapicon.red
+ // }
+ const newMarker = {
+ id: d.sid,
+ position: [d.longitude, d.latitude],
+ title: d.warehouseName,
+ icon: this.mapicon.red,
+ label: {
+ direction: 'bottom',
+ offset: [0, 5], // 设置文本标注偏移量
+ content: "" + d.warehouseName + '
' // 设置文本标注内容
+ }
+ }
+ this.markers.push(newMarker)
+ // console.log("marksers", this.markers);
+ }
+ },
+ clickArrayMarker(marker) {
+ for (var i in this.dataList) {
+ if (marker.id === this.dataList[i].sid) {
+ this.currentStore = this.dataList[i]
+ break
+ }
+ }
+ },
+
seleProject(val) {
console.log('seleProject', val)
@@ -507,14 +665,17 @@
console.log('itemClick2', row)
// this.dialogReport = true
// this.reportUrl = row.absolutePath
- window.open("https://view.xdocin.com/view?src=" + encodeURIComponent(
- row.absolutePath));
+ // window.open("https://view.xdocin.com/view?src=" + encodeURIComponent(
+ // row.absolutePath));
+ // window.open("https://supervise.yxtsoft.com/downfile/reportprojectdaily/13_20240920170045117798.doc");
+ window.open(row.absolutePath);
+
+ },
+ handleCloseReport() {
+ this.dialogReport = false
+ this.reportUrl = ''
},
- // handleCloseReport() {
- // // this.dialogReport = false
- // this.reportUrl = ''
- // },
getTime() {
var today = new Date();
var y = today.getFullYear();
@@ -4444,6 +4605,59 @@