From fadf2795757ac6df1c792546725ea177c93d9d7a Mon Sep 17 00:00:00 2001
From: kimi <kimi42345@gmail.com>
Date: 星期三, 18 三月 2020 14:03:10 +0800
Subject: [PATCH] Merge branch 'master' of http://highdatas.com:9000/r/~kimi/srs

---
 src/components/popup/portion/substepReadOnly.vue |   49 ++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 46 insertions(+), 3 deletions(-)

diff --git a/src/components/popup/portion/substepReadOnly.vue b/src/components/popup/portion/substepReadOnly.vue
index 3b04c4c..6b60675 100644
--- a/src/components/popup/portion/substepReadOnly.vue
+++ b/src/components/popup/portion/substepReadOnly.vue
@@ -1181,14 +1181,23 @@
 <script>
   export default {
 		props:{
-			showData_: {
+			/* showData_: {
 				type: Object,
 				required: true
 			},
 			form_objs: {
 			   type: Object,
 			   required: true
+			}, */
+			
+			xmId: {
+			   type: String,
+			   required: true
 			},
+			/* totalItems: {
+				type: Array,
+				required: true
+			} */
 		},
     data() {
       return {
@@ -1480,6 +1489,40 @@
 			},
 			
 			getDetailed() {
+				let me = this;
+				let url = "/api/detail/parent/" + this.xmId;
+				this.$axios.get(url).then(data_ => {
+					me.defaultCheckedKeys = [];
+					me.showData = {};
+					let details_ = data_.data.data;
+					me.money = 0;
+					if(details_.length > 0) {//濡傛灉瀛樺湪鏄庣粏
+						for(let i=0; i<details_.length; i++) {
+							let detail_ = details_[i];
+							//璁剧疆鏍戠殑閫変腑
+							me.defaultCheckedKeys.push(detail_.type);
+							//灞曞紑鎵�鏈夋爲鑺傜偣瀵瑰簲鐨刦rom
+							me.showData[detail_.type] = true;
+							
+							//缁欐墍鏈夌殑from鐨勬暟鎹祴鍊�
+							
+							me.form_[detail_.type] = detail_;
+							me.form_[detail_.type].userIds = [];
+							me.form_[detail_.type].userIds.push(detail_.roleName);
+							me.form_[detail_.type].userIds.push(detail_.userId);
+							
+							me.money += parseFloat(detail_.budget); 
+						}
+						
+						
+						
+					}
+				}).catch(error =>{
+				})
+				
+			},
+			
+			/* getDetailed() {
 				this.showData = this.showData_;
 				this.form_= this.form_objs;
 				this.money = 0;
@@ -1487,9 +1530,9 @@
 					
 					let form_obj = {};
 					form_obj = this.form_objs[itm_k];
-					this.money += form_obj.budget; 
+					this.money += parseFloat(form_obj.budget); 
 				}
-			},
+			}, */
 			
 			//鍗曚竴浜嬩欢
 			title_titleType(val) {

--
Gitblit v1.8.0