Bläddra i källkod

Merge branch 'crm_15' into debug

bding 1 år sedan
förälder
incheckning
801df2403e
2 ändrade filer med 10 tillägg och 4 borttagningar
  1. 1 3
      pages-approve/components/steps.vue
  2. 9 1
      pages-approve/custome/detail.vue

+ 1 - 3
pages-approve/components/steps.vue

@@ -85,7 +85,6 @@
 					if(item[0].NodeType==='cc'){
 						stepCon.intro='抄送'+item.length+'人'
 					}
-					
 					return stepCon
 				})
 
@@ -109,8 +108,7 @@
 						}
 					})
 				}
-				
-				return arr
+				return arr || []
 			}
 		},
 		data () {

+ 9 - 1
pages-approve/custome/detail.vue

@@ -27,7 +27,8 @@
 					<block v-for="item in baseInfo">
 						<view :key="item.key">
 							<text class="lable">{{ item.key }}:</text>
-							<text :style="{ color: item.color }">{{ item.val }}</text>
+							<text :style="{ color: item.color }" v-if="item.key==='合同期限'">{{showTermHandelr(item)}}</text>
+							<text :style="{ color: item.color }" v-else>{{ item.val }}</text>
 							<van-tag v-if="item.tag" color="#ECF5FF" text-color="#4A83F1" style="margin-left:5px">
 								{{ item.tag }}
 							</van-tag>
@@ -310,6 +311,7 @@
 						{
 							key: "合同期限",
 							val: `${contractInfo.StartDate}~${contractInfo.EndDate}`.replace(/-/g, '.'),
+							quarter:contractInfo.Quarter ||''
 						},
 						{
 							key: "合同金额",
@@ -429,6 +431,7 @@
 						{
 							key: "合同期限",
 							val: `${contractInfo.StartDate}~${contractInfo.EndDate}`.replace(/-/g, '.'),
+							quarter:contractInfo.Quarter||''
 						},
 						{
 							key: "合同金额",
@@ -596,6 +599,11 @@
 				}
 
 				this.varietyInfo = obj
+			},
+			// 合同期限
+			showTermHandelr(item) {
+				let str = item.quarter? `${item.quarter}(${item.val})` : item.val
+				return str
 			}
 		},
 	}