USER-20230908AJ\Administrator 2 săptămâni în urmă
părinte
comite
a626fef9f2

+ 12 - 6
page_task/task_details/module/entities.vue

@@ -5,7 +5,7 @@
       <view class="size-20 title-num">{{stageList.length}}</view>
     </view>
     <view class="row-c r-20 sys-background-fff m-b20" v-for="(item,index) in stageList" :key="index">
-      <view class="file-box r-20">
+      <view class="file-box r-20" @click="openInfo(1,item)">
         <view class="file-data">
           <view class="file-icon" style="background-color:#FC526A " >
             <uni-icons type="calendar" color="#fff" size="20"></uni-icons>
@@ -27,7 +27,7 @@
       <view class="size-20 title-num">{{oneList.length}}</view>
     </view>
     <view class="row-c r-20 sys-background-fff m-b20" v-for="(item,index) in oneList" :key="index">
-      <view class="file-box r-20">
+      <view class="file-box r-20" @click="openInfo(2,item)">
         <view class="file-data">
           <view class="file-icon" style="background-color:#9335FF " >
             <uni-icons type="calendar" color="#fff" size="20"></uni-icons>
@@ -49,7 +49,7 @@
       <view class="size-20 title-num">{{twoList.length}}</view>
     </view>
     <view class="row-c r-20 sys-background-fff m-b20" v-for="(item,index) in twoList" :key="index">
-      <view class="file-box r-20">
+      <view class="file-box r-20" @click="openInfo(3,item)">
         <view class="file-data">
           <view class="file-icon" style="background-color:#009BF2 " >
             <uni-icons type="calendar" color="#fff" size="20"></uni-icons>
@@ -71,7 +71,7 @@
       <view class="size-20 title-num">{{threeList.length}}</view>
     </view>
     <view class="row-c r-20 sys-background-fff m-b20" v-for="(item,index) in threeList" :key="index">
-      <view class="file-box r-20">
+      <view class="file-box r-20" @click="openInfo(4,item)">
         <view class="file-data">
           <view class="file-icon" style="background-color:#00B05E " >
             <uni-icons type="calendar" color="#fff" size="20"></uni-icons>
@@ -93,7 +93,7 @@
       <view class="size-20 title-num">{{fourList.length}}</view>
     </view>
     <view class="row-c r-20 sys-background-fff m-b20" v-for="(item,index) in fourList" :key="index">
-      <view class="file-box r-20">
+      <view class="file-box r-20"@click="openInfo(4,item)">
         <view class="file-data">
           <view class="file-icon" style="background-color:#FF7E00 " >
             <uni-icons type="calendar" color="#fff" size="20"></uni-icons>
@@ -110,14 +110,17 @@
       </view>
     </view>
 
-
+    <popupModuleVue ref="popupModuleRef"></popupModuleVue>
 	</view>
 </template>
 
 <script>
 
+  import popupModuleVue from "@/pages/index/module/popup-module.vue";
+
   export default {
     name:'entities',
+    components: {popupModuleVue},
 		props: {
       businessId:{
         default:0
@@ -141,6 +144,9 @@
       this.getStageList()
     },
     methods: {
+      openInfo(colorType,data){
+        this.$refs.popupModuleRef.openPop(colorType,data)
+      },
       getStageList() {
         this.stageList=[{'attachmentName':'大连迈世未履行(2024)辽0211民初2861号民事判决书','attachmentFormat':'docx','attachmentSize':1165710},]
         this.oneList=[{'attachmentName':'大连迈世农业发展有限公司','attachmentFormat':'docx','attachmentSize':1165710},]

+ 6 - 6
page_task/task_details/module/graph.vue

@@ -119,12 +119,12 @@ export default {
       // 示例数据
       this.graphData = {
         nodes: [
-          { id: 'node1', name: '债务', type: 'center', x: 275, y: 150, size: 20, color: '#ff6b35' },
-          { id: 'node2', name: '大连迈世农业发展有限公司', type: 'user', x: 275, y: 150, size: 15, color: '#8b5cf6' },
-          { id: 'node3', name: '迈世集团有限公司', type: 'product', x: 275, y: 150, size: 15, color: '#3b82f6' },
-          { id: 'node4', name: '宜居园81号2单元1层1号房屋', type: 'category', x: 275, y: 150, size: 15, color: '#10b981' },
-          { id: 'node6', name: '景山东园7号13层2号房屋', type: 'category', x: 275, y: 150, size: 15, color: '#10b981' },
-          { id: 'node5', name: '中信银行股份有限公司大连分行', type: 'service', x: 275, y: 150, size: 15, color: '#6366f1' }
+          { id: 'node1','nodeType':1, name: '债务', type: 'center', x: 275, y: 150, size: 20, color: '#ff6b35' },
+          { id: 'node2','nodeType':2, name: '大连迈世农业发展有限公司', type: 'user', x: 275, y: 150, size: 15, color: '#8b5cf6' },
+          { id: 'node3','nodeType':3, name: '迈世集团有限公司', type: 'product', x: 275, y: 150, size: 15, color: '#3b82f6' },
+          { id: 'node4','nodeType':4, name: '宜居园81号2单元1层1号房屋', type: 'category', x: 275, y: 150, size: 15, color: '#10b981' },
+          { id: 'node6','nodeType':4, name: '景山东园7号13层2号房屋', type: 'category', x: 275, y: 150, size: 15, color: '#10b981' },
+          { id: 'node5','nodeType':5, name: '中信银行股份有限公司大连分行', type: 'service', x: 275, y: 150, size: 15, color: '#6366f1' }
         ],
         links: [
           { source: 'node1', target: 'node2' },

+ 10 - 4
page_task/task_details/module/word.vue

@@ -51,11 +51,17 @@ export default {
   },
   methods: {
     openDocument(url){
-      uni.openDocument({
-        filePath: url,
-        showMenu: true,
+      uni.downloadFile({
+        url: url,
         success: function (res) {
-          console.log('打开文档成功');
+          let filePath = res.tempFilePath;
+          uni.openDocument({
+            filePath: filePath,
+            showMenu: true,
+            success: function (res) {
+              console.log('打开文档成功');
+            }
+          });
         }
       });
     },

+ 5 - 4
page_task/task_details/task_details.vue

@@ -51,11 +51,8 @@
 
     </view>
 
+    <popupModuleVue ref="popupModuleRef"></popupModuleVue>
 
-    <uni-popup ref="executePopup" type="bottom">
-      <EnSelect title="请选择任务接收人" :local-data="executeData" ref="system" v-model="executeId"
-                @setAffirm="setNewExecute" @close="closeExecutePopup"></EnSelect>
-    </uni-popup>
 
   </view>
 </template>
@@ -80,9 +77,11 @@ import EnSelect from "@/components/en-utils/en-select/en-select.vue";
 import CreditList from "@/page_task/credit/credit.vue";
 import Graph from "@/page_task/task_details/module/graph.vue";
 import Entities from "@/page_task/task_details/module/entities.vue";
+import popupModuleVue from "@/pages/index/module/popup-module.vue";
 
 export default {
   components: {
+    popupModuleVue,
     Entities,
     Graph,
     CreditList,
@@ -183,6 +182,8 @@ export default {
     setNode(node){
       console.log("----------事件回调----------")
       console.log(node)
+      node.attachmentName=node.name
+      this.$refs.popupModuleRef.openPop(node.nodeType,node)
     },
     makingCall(phone){
       tools.makingCall(phone)

+ 8 - 8
pages/index/index.vue

@@ -2,7 +2,7 @@
 	<view class="flex-common-css page-box box-bg">
 		<Nav :title="'我的'" :genre="1" :back="false" :is_fixed='false'></Nav>
 		<Search :placeholder="'姓名或电话'" @setSearch="setSearch"></Search>
-		<task-ima-tab @setProductId="setProductId" :num-type="0"></task-ima-tab> 
+		<task-ima-tab @setProductId="setProductId" :num-type="0"></task-ima-tab>
 		<!-- 		<view class="page-box-bg-fff m-lr20 r-20">
 			<z-tabs ref="tabs" :list="tabsList" :active-style="{color:'#10B261',fontWeight:'bold',fontSize:'30rpx'}"
 				:bar-style="{background:'#10B261'}" :inactive-style="{fontWeight:'bold',fontSize:'28rpx'}"
@@ -152,9 +152,9 @@
 					this.backlogList = data
 				} else {
 					this.backlogList = [{
-							img: 'https://copyright.bdstatic.com/vcg/creative/d6c6a351be227d5d3b3e8c1f96f56e50.jpg@h_1280',
+							img: 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/272247/11/21904/319337/680a15b3F83ce2abb/edea9200bca61e12.jpg',
 							proportion: '37',
-							name: '市中心写字楼 - 优越地段',
+							name: '大连市甘井子区红旗中路86号5单元3层2号房屋',
 							live: false,
 							percentage: '3.1',
 							description: '地铁地产有限责任公司',
@@ -165,9 +165,9 @@
 							id: 1,
 						},
 						{
-							img: 'https://pic.rmb.bdstatic.com/bjh/3ea195479f8a/250303/f53064611fee7c092312f3b6ea8e439d.jpeg',
+							img: 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/291521/34/387/2600515/680d9b5cFb8b7b047/cada828e2de5de80.jpg',
 							proportion: '71',
-							name: '塔楼-黄金地段',
+							name: '大连市甘井子区丛岭街67号1层3号',
 							live: false,
 							percentage: '4.1',
 							description: '医疗地产公司',
@@ -178,9 +178,9 @@
 							id: 2,
 						},
 						{
-							img: 'https://qcloud.dpfile.com/pc/3B5v9C_aeqiLmADxyv5K2oclwwy3V_g7gw7Dmq38AuV9VmaUI3Rb5Uvj6kJNMMCrY0q73sB2DyQcgmKUxZFQtw.jpg',
+							img: 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/310628/9/1190/138687/6825caaaF809d367e/78f129884bf3a7bf.png',
 							proportion: '60',
-							name: '豪华零售中心-高街',
+							name: '大连市中山区致富街31号43层2号房屋',
 							live: false,
 							percentage: '1.5',
 							description: '奢侈品地产公司',
@@ -240,4 +240,4 @@
 		height: 16rpx;
 		border-radius: 50%;
 	}
-</style>
+</style>

+ 23 - 7
pages/index/module/popup-module.vue

@@ -1,7 +1,7 @@
 <template>
 	<uni-popup background-color="#fff" ref="popup" type="bottom" borderRadius="10px 10px 10px 10px">
 		<view class="p-24 box-border-box pop-box r-20">
-      <view v-if="colorType<=4">
+      <view v-if="colorType<=5">
         <view  class="r-40 p-20 box-border-box flex-stretch mb-48 box-shadow"
                :class="colorType === 1?'bgc-F92A3B-E70073':colorType === 2?'bgc-AB46FF-8125FE':colorType === 3?'bgc-00B6DC-0F62FA':'bgc-00C651-009B65'">
           <view class="mr-20 q-box fc-fff size-48"
@@ -9,14 +9,25 @@
             {{colorType === 1?'$':colorType === 2?'🏚':colorType === 3?'🛡':'🎁'}}
           </view>
           <view class="flex-direction flex-start">
-            <view class="size-24 fc-fff sys-weight-600 mb-10 zw-box"
-                  :class="colorType === 1?'bgc-F8516C':colorType === 2?'bgc-B365FF':colorType === 3?'bgc-34B4EB':'bgc-34CA79'">
+            <view class="size-24 fc-fff sys-weight-600 mb-10 zw-box bgc-F8516C" v-if="colorType===1"  >
               债务
             </view>
+            <view class="size-24 fc-fff sys-weight-600 mb-10 zw-box bgc-B365FF" v-else-if="colorType===2"  >
+              借款人
+            </view>
+            <view class="size-24 fc-fff sys-weight-600 mb-10 zw-box bgc-34B4EB" v-else-if="colorType===3" >
+              担保人
+            </view>
+            <view class="size-24 fc-fff sys-weight-600 mb-10 zw-box bgc-34CA79" v-else-if="colorType===4" >
+              抵押物
+            </view>
+            <view class="size-24 fc-fff sys-weight-600 mb-10 zw-box bgc-34CA79" v-else>
+              债权人
+            </view>
             <view class="fc-fff size-32 text-overflow-ellipsis-one mb-10">
-              优先担保贷款#2024-001
+              {{itemData.attachmentName}}
             </view>
-            <view class="fc-fff hy-box size-24">
+            <view class="fc-fff hy-box size-24" v-if="colorType===1">
               活跃的
             </view>
           </view>
@@ -48,7 +59,7 @@
             实体详情
           </view>
           <view class="b-F3F4F6-1 box-shadow sys-radius-20">
-            <view class="p-30 box-border-box b-b-F3F4F6 center row-justify-sb" v-for="(item) in 14">
+            <view class="p-30 box-border-box b-b-F3F4F6 center row-justify-sb" v-for="(item) in 3">
               <view class="size-28">
                 实体类型
               </view>
@@ -112,6 +123,9 @@
           total_price: '',
           predict_msg: '',
         },
+        itemData:{
+          attachmentName:""
+        }
       }
 		},
 		onLoad(data) {},
@@ -121,8 +135,10 @@
         if (colorType !==undefined){
           this.colorType=colorType
         }
-        if(colorType===5){
+        if(colorType===6){
           this.propertyRes=data
+        }else {
+          this.itemData=data
         }
 				this.$refs.popup.open()
 			},

+ 1 - 1
pages/task/task.vue

@@ -392,7 +392,7 @@
 						console.log(res, 'res');
 						this.propertyRes = res.data
 						this.propertyRes.total_price = (res.data.unit_price*this.propertyData.area).toFixed(2)
-            this.$refs.popupModuleRef.openPop(5,this.propertyRes)
+            this.$refs.popupModuleRef.openPop(6,this.propertyRes)
 					} else {
 						tools.error(res.msg)
 					}