Przeglądaj źródła

投资接口对接

zhbyyy 2 lat temu
rodzic
commit
9b860acc25

+ 3 - 3
investmentPort/investHomeGroup.html

@@ -505,7 +505,7 @@
             </div>
             <div class="content top-lb">
               <div v-for="(item,index) in titleList.slice(0,11)" :key="index" @mouseenter="yellowMouse(index)"
-                @mouseleave="yellowType=true" @click="showChartLTipDouble(item.name,'right')"
+                @mouseleave="yellowType=true" @click="showChartLTipDouble(item.name,'right','','','','','','','','','',311,4,item.projectStepCode)"
                 class="topCard flex items-center justify-center flex-col  overflow-hidden pointer">
                 <div class="flex items-center justify-center shrink-0"
                   :class="(item.type==1&&item.name)?'titleBackBlue':(item.type==2&&item.name)?'titleBackYellow':''">
@@ -526,7 +526,7 @@
             </div>
             <div class="content top-rb">
               <div class="topCard flex items-center justify-center flex-col  overflow-hidden pointer"
-                @mouseenter="yellowMouse(12)" @click="showChartLTipDouble(titleList[12].name,'right')">
+                @mouseenter="yellowMouse(12)" @click="showChartLTipDouble(titleList[12].name,'right','','','','','','','','','',311,4,titleList[12].projectStepCode)">
                 <div class="flex items-center justify-center shrink-0"
                   :class="(titleList[12].type==1)?'titleBackBlue':'titleBackYellow'"><span
                     class="flex items-center justify-center"
@@ -541,7 +541,7 @@
                 </div>
               </div>
               <div class="topCard flex items-center justify-center flex-col pointer" @mouseenter="yellowMouse(14)"
-                @click="showChartLTipDouble(titleList[14].name,'right')">
+                @click="showChartLTipDouble(titleList[14].name,'right','','','','','','','','','',311,4,titleList[14].projectStepCode)">
                 <div class="flex items-center justify-center shrink-0"
                   :class="(titleList[14].type==1)?'titleBackBlue':'titleBackYellow'"><span
                     class="flex items-center justify-center"

+ 11 - 11
investmentPort/js/groupData.js

@@ -360,13 +360,13 @@ let center1 = [1324.08, 442, 1169.91, 154]
 // 左中
 let center2 = [
   {
-    name: '传统产业', y: 105.29,value :105.29, num: 195, sliced: false, selected: false,color:'#064F78'
+    name: '传统产业', y: 105.29, value: 105.29, num: 195, sliced: false, selected: false, color: '#064F78'
   },
   {
-    name: '战略新兴产业', y: 996.44, value :296.44,num: 295, sliced: false, selected: false,color:'#BDB35D'
+    name: '战略新兴产业', y: 996.44, value: 296.44, num: 295, sliced: false, selected: false, color: '#BDB35D'
   },
   {
-    name: '基础产业', y: 722.34, value :322.34,num: 95, sliced: false, selected: false,color:'#623726'
+    name: '基础产业', y: 722.34, value: 322.34, num: 95, sliced: false, selected: false, color: '#623726'
   },
   // {
   //   name: '传统产业-续建', y: 405.29,value :405.29, num: 195, sliced: false, selected: false,
@@ -522,21 +522,21 @@ let proState = {
 // 右边大屏
 // 上面
 let right1 = [
-  { name: '初步设计', type: 1, number: '106' },
+  { name: '初步设计', type: 1, number: '106', projectStepCode: '01' },
   { name: '', type: 1, number: '' },
-  { name: '详细设计', type: 1, number: '103' },
+  { name: '详细设计', type: 1, number: '103', projectStepCode: '02' },
   { name: '', type: 1, number: '' },
-  { name: '施工', type: 1, number: '62' },
+  { name: '施工', type: 1, number: '62', projectStepCode: '03' },
   { name: '', type: 1, number: '' },
-  { name: '完工', type: 1, number: '35' },
+  { name: '完工', type: 1, number: '35', projectStepCode: '04' },
   { name: '', type: 1, number: '' },
-  { name: '验收', type: 1, number: '42' },
+  { name: '验收', type: 1, number: '42', projectStepCode: '05' },
   { name: '', type: 1, number: '' },
-  { name: '决算', type: 1, number: '33' },
+  { name: '决算', type: 1, number: '33', projectStepCode: '06' },
   { name: '', type: 1, number: '' },
-  { name: '前期准备', type: 1, number: '66' },
+  { name: '前期准备', type: 1, number: '66', projectStepCode: '07' },
   { name: '', type: 1, number: '' },
-  { name: '工商变更登记', type: 1, number: '77' },
+  { name: '工商变更登记', type: 1, number: '77', projectStepCode: '08' },
   { name: '', type: 1, number: '' },
 ]
 let right2 = [[120, 3423094], [], [121, 3423094], [], [122, 3423094], [], [123, 3423094], [], [124, 3423094], [], [125, 3423094], [], [126, 3423094], [], [127, 3423094]]

+ 57 - 20
investmentPort/js/investHomeGroup.js

@@ -2,12 +2,13 @@ let app = new Vue({
   el: '#app',
   data () {
     return {
+      rightAdd: {},// 左边新增筛选参数
       projectNum: '', // 项目列表弹窗顶部类目筛选条件
       centerType: false, // 中间3D饼图
       boardType: '', // 哪边的项目看板
       pullShow: false, // 选择年份弹窗
       pollList: [],
-      mockData: true,// 是否使用修改的数据
+      mockData: false,// 是否使用修改的数据
       year: '', // 选择的年份
       boardUrl: '', // 跳转路径
       boardTipShow: false, // 项目看板弹窗专用
@@ -753,29 +754,63 @@ let app = new Vue({
           access_token: this.access_token,
           "request": {
             isInsert: this.mockData ? '1' : '0',
-            modelName,
+            modelName: this.rightAdd.modelName,
+            projectStepCode: this.rightAdd.projectStepCode,
             substraction,
             orgName
           },
           pageSize: 1000
         }
         post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_middle/getTwoLevelData', value).then(res => {
+          that.originalConfig6 = res.data
           that.config6.data = []
           if (this.projectNum == 311) {
             that.config6.header = ["所属集团", "项目名称", '实施主体', '投中项目阶段', '投资总额(万元)']
-          } else if (this.projectNum == 2141) {
-            that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '本年度计划投资额(万元)']
+            res.data.forEach((item, index) => {
+              that.config6.data[index] = []
+              that.config6.data[index][0] = item.mdnb_unitcompany
+              that.config6.data[index][1] = item.mdnb_project_name
+              that.config6.data[index][2] = item.mdnb_implement_org
+              that.config6.data[index][3] = item.mdnb_projectstep_mid
+              that.config6.data[index][4] = item.mdnb_investment_money / 10000
+            })
+          } else if (this.projectNum == 312 || this.projectNum == 313) {
+            that.config6.header = ["所属集团", "项目名称", '实施主体', '容差百分比', '投资总额(万元)']
+            res.data.forEach((item, index) => {
+              that.config6.data[index] = []
+              that.config6.data[index][0] = item.mdnb_unitcompany
+              that.config6.data[index][1] = item.mdnb_project_name
+              that.config6.data[index][2] = item.mdnb_implement_org
+              that.config6.data[index][3] = item.mdnb_percentagetolerance
+              that.config6.data[index][4] = item.mdnb_investment_money / 10000
+            })
+          } else if (this.projectNum == 314) {
+            that.config6.header = ["所属集团", "项目名称", '实施主体', '预算额(万元)', '已签订合同额(万元)', '产值认定额(万元)', '结算额(万元)', '付款申请额(万元)', '实际付款额(万元)']
+            res.data.forEach((item, index) => {
+              that.config6.data[index] = []
+              that.config6.data[index][0] = item.mdnb_unitcompany
+              that.config6.data[index][1] = item.mdnb_project_name
+              that.config6.data[index][2] = item.mdnb_implement_org
+              that.config6.data[index][3] = item.mdnb_budgetamount / 10000
+              that.config6.data[index][4] = item.mdnb_contractamount / 10000
+              that.config6.data[index][5] = item.mdnb_outputamount / 10000
+              that.config6.data[index][6] = item.mdnb_settlementamount / 10000
+              that.config6.data[index][6] = item.mdnb_paymentamount / 10000
+              that.config6.data[index][6] = item.mdnb_actualpayamount / 10000
+            })
+          } else if (this.projectNum == 315) {
+            that.config6.header = ["所属集团", "项目名称", '实施主体', '高风险项', '中风险项', '低风险项', '投资总额(万元)']
+            res.data.forEach((item, index) => {
+              that.config6.data[index] = []
+              that.config6.data[index][0] = item.mdnb_unitcompany
+              that.config6.data[index][1] = item.mdnb_project_name
+              that.config6.data[index][2] = item.mdnb_implement_org
+              that.config6.data[index][3] = item.mdnb_heigtdanger
+              that.config6.data[index][4] = item.mdnb_middledanger
+              that.config6.data[index][5] = item.mdnb_lowdanger
+              that.config6.data[index][6] = item.mdnb_investment_money / 10000
+            })
           }
-          that.originalConfig6 = res.data
-          res.data.forEach((item, index) => {
-            that.config6.data[index] = []
-            that.config6.data[index][0] = item.mdnb_project_name
-            that.config6.data[index][1] = item.mdnb_org
-            that.config6.data[index][2] = item.mdnb_implement_org
-            that.config6.data[index][3] = item.mdnb_insdrutytype1
-            that.config6.data[index][4] = item.mdnb_insdrutytype2
-            that.config6.data[index][5] = item.mdnb_investment_money
-          })
           that.config6 = { ...that.config6 }
           that.projectListTipShow = true
           resolve(1);
@@ -1265,7 +1300,9 @@ let app = new Vue({
       return myArr
     },
     // 两个柱状图的弹窗
-    showChartLTipDouble (e, location, mdnb_textfield11, mdnb_textfield13, mdnb_textfield16, mdnb_textfield23, type, param, typeCTwo, paramCTwo, portType, num) {
+    showChartLTipDouble (e, location, mdnb_textfield11, mdnb_textfield13, mdnb_textfield16, mdnb_textfield23, type, param, typeCTwo, paramCTwo, portType, num, modelName, projectStepCode) {
+      modelName ? this.rightAdd.modelName = modelName : this.rightAdd.modelName = ''
+      projectStepCode ? this.rightAdd.projectStepCode = projectStepCode : this.rightAdd.projectStepCode = ''
       num && (this.projectNum = num)
       this.titleName = e
       this.closeTap()
@@ -1459,7 +1496,7 @@ let app = new Vue({
       that.myChartTip1.on('click', function (param) {
         if (that.versions) {
           if (location == 'right') {
-            that.rightPenetrateTwo('', '', that.findCode(param.name))
+            that.rightPenetrateTwo(that.rightPenetrateTwo.modelName, '', that.findCode(param.name))
           } else if (location == 'left') {
             that.leftPenetrateTwo(mdnb_textfield11, mdnb_textfield13, mdnb_textfield16, mdnb_textfield23, param.name, that.projectNum)
           } else if (location == 'center') {
@@ -1602,7 +1639,7 @@ let app = new Vue({
       that.myChartTip2.on('click', function (param) {
         if (that.versions) {
           if (location == 'right') {
-            that.rightPenetrateTwo('', '', that.findCode(param.name))
+            that.rightPenetrateTwo(that.rightPenetrateTwo.modelName, '', that.findCode(param.name))
           } else if (location == 'left') {
             that.leftPenetrateTwo(mdnb_textfield11, mdnb_textfield13, mdnb_textfield16, mdnb_textfield23, param.name, that.projectNum)
           } else if (location == 'center') {
@@ -1742,7 +1779,7 @@ let app = new Vue({
       that.myChartTip3.on('click', function (param) {
         if (that.versions) {
           if (location == 'right') {
-            that.rightPenetrateTwo('', '', that.findCode(param.name))
+            that.rightPenetrateTwo(that.rightPenetrateTwo.modelName, '', that.findCode(param.name))
           } else if (location == 'left') {
             that.leftPenetrateTwo(mdnb_textfield11, mdnb_textfield13, mdnb_textfield16, mdnb_textfield23, param.name, that.projectNum)
           } else if (location == 'center') {
@@ -4065,7 +4102,7 @@ let app = new Vue({
       }
       let that = this
       that.left8Chart.on('click', function (param) {
-        that.showChartLTipDouble(param.name, 'left', '项目阶段分析', '股权类进度分布', param.name, param.seriesName,'', '', '', '', '', 216)
+        that.showChartLTipDouble(param.name, 'left', '项目阶段分析', '股权类进度分布', param.name, param.seriesName, '', '', '', '', '', 216)
       })
       that.left8Chart.setOption(option)
       tools.loopShowTooltip(that.left8Chart, option, {
@@ -6415,7 +6452,7 @@ let app = new Vue({
       }
       that.right3Chart.on('click', function (param) {
         if (that.versions) {
-          that.rightPenetrateTwo('', '', that.findCode(param.name), 'right')
+          that.rightPenetrateTwo(that.rightPenetrateTwo.modelName, '', that.findCode(param.name), 'right')
         } else {
           that.projectListTipShow = true
         }

+ 2 - 2
investmentPort/styles/investHomeGroup.css

@@ -839,10 +839,10 @@ tspan {
   left: calc(50% - ( 1500px / 9 * 16 + 200px) / 2);
   z-index: 99999999999 !important;
 }
-.productTip .header-item,
+/* .productTip .header-item,
 .productTip .ceil {
   width: calc(100% / 6) !important;
-}
+} */
 .productPoptitle {
   font-size: 40px !important;
   top: 80px !important;