Explorar o código

1823 套餐功能调整

cyy %!s(int64=2) %!d(string=hai) anos
pai
achega
a36fc1c022
Modificáronse 1 ficheiros con 11 adicións e 2 borrados
  1. 11 2
      pages/jiance/order.vue

+ 11 - 2
pages/jiance/order.vue

@@ -735,8 +735,17 @@
 						this.form.weiTuoFangMingChe = data.ke_hu_dang_wei || ''
 						this.form.heTongBianHao = data.he_tong_bian_hao_ || ''
 					}
+					let tcbh = ''
+					if(data.xuan_ze_tao_can_=='' || data.xuan_ze_tao_can_ == null){
+						tcbh = data.xin_zeng_tao_can_
+					}
+					else if(data.xin_zeng_tao_can_=='' || data.xin_zeng_tao_can_ == null){
+						tcbh = data.xuan_ze_tao_can_
+					}else{
+						tcbh = data.xuan_ze_tao_can_+','+data.xin_zeng_tao_can_
+					}
 					this.getJiance(e, type, weiTouId)
-					this.getTaoCanList(data.xuan_ze_tao_can_)
+					this.getTaoCanList(tcbh)
 				}
 			},
 			//根据合同id选择检测项目
@@ -805,7 +814,7 @@
 			//根据合同查询套餐 1根据合同人套餐id里面选择套餐 2.根据合同id选择套餐
 			getTaoCanList(id, type) {
 				let sql =
-					`select  * from  t_jctc  where FIND_IN_SET(id_,'${id}')`
+					`select  * from  t_jctc  where FIND_IN_SET(id_,'${id}') and zhuang_tai_ = '有效'`
 
 				let requestData = this.$sig(sql)
 				this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {