linweizeng 3 years ago
parent
commit
dcb3a200e9

+ 40 - 3
pages/communication/communication.vue

@@ -93,6 +93,19 @@
 			<uni-section title="沟通内容确定" type="line" padding v-if="id != '' && form.leiXing != '2'">
 				<textarea maxlength="-1" v-model="form.gouTongQueDingNei" placeholder="意见和建议" :disabled="true"></textarea>
 			</uni-section>
+			<u-row v-if="typeValue == 1">
+				<u-col span="6">
+					<uni-section title="沟通人" type="line" padding>
+						<view style="height: 40rpx">{{bianZhiRenName}}</view>
+					</uni-section>
+				</u-col>
+				<u-col span="6">
+					<uni-section title="确定人" type="line" padding>
+						<view style="height: 40rpx;">{{queDingRenName}}</view>
+					</uni-section>
+				</u-col>
+			</u-row>
+
 
 			<view class="padding flex flex-direction" v-if="typeValue == '3'">
 				<u-button type="success" class="btn btn-back-color" @click="onSubmit">提交
@@ -171,7 +184,9 @@
 				}],
 				kehuXinXinList: [],
 
-				weiTuoList: []
+				weiTuoList: [],
+				bianZhiRenName: '',
+				queDingRenName: ''
 			}
 		},
 		onLoad(options) {
@@ -335,6 +350,18 @@
 						if (data.lei_xing_ == '2' && data.shi_fou_guo_shen_ == '已编制') {
 							this.getTaskId(data.id_)
 						}
+
+						if (data.bian_zhi_ren_) {
+							this.getBianZhiRen(data.bian_zhi_ren_, res => {
+								this.bianZhiRenName = res.NAME_
+							})
+						}
+
+						if (data.gou_tong_ren_yuan) {
+							this.getBianZhiRen(data.gou_tong_ren_yuan, res => {
+								this.queDingRenName = res.NAME_
+							})
+						}
 						uni.hideLoading()
 					}
 				})
@@ -454,7 +481,7 @@
 				let useId = info.user.id
 
 				let sql =
-					`select id_,wei_tuo_bian_hao_ from t_lhwtsqb where create_by_ = '${useId}' order by create_time_ desc`
+					`select tl.id_,tl.wei_tuo_bian_hao_ from t_lhwtsqb tl left join t_bjd td on tl.he_tong_id_ = td.id_ where (tl.create_by_ = '${useId}' or td.ke_hu_zhang_hao_ = '${useId}') and tl.wei_tuo_lei_xing_ = '客户委托' ORDER BY tl.create_time_ desc`
 
 				let requestData = this.$sig(sql)
 				this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
@@ -593,6 +620,16 @@
 					document.body.removeChild(link)
 					uni.hideLoading()
 				})
+			},
+			getBianZhiRen(id, callback) {
+				let sql = `select * from ibps_party_employee where ID_ = '${id}'`
+				let requestData = this.$sig(sql)
+				this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
+					const datas = res.data.variables.data
+					if (datas.length > 0) {
+						callback(datas[0])
+					}
+				})
 			}
 		}
 	}
@@ -604,6 +641,6 @@
 	}
 
 	.btn {
-		margin: 15rpx
+		margin: 15rpx;
 	}
 </style>

+ 1 - 1
pages/communication/communicationList.vue

@@ -10,7 +10,7 @@
 		<view class="cu-bar bg-white search fixed" :style="[{top:CustomBar + 'px'}]">
 			<view class="search-form round">
 				<text class="cuIcon-search"></text>
-				<input type="text" v-model="keyword" placeholder="输入搜索的关键词" confirm-type="search" @confirm="search"></input>
+				<input type="text" v-model="keyword" placeholder="请输入表单编号" confirm-type="search" @confirm="search"></input>
 			</view>
 			<view class="action">
 				<button class="cu-btn bg-gradual-blue shadow-blur round" @tap="search">搜索</button>

+ 1 - 1
pages/jiance/order.vue

@@ -1213,7 +1213,7 @@
 							name: 'index'
 						})
 					} else {
-						meth.getPrompt('提交异常!', 'fail')
+						meth.getPrompt('提交异常!', 'error')
 						uni.hideLoading()
 					}
 				});