|
@@ -550,6 +550,9 @@
|
|
|
lhypbIndex: 0,
|
|
lhypbIndex: 0,
|
|
|
lhypbShow: false,
|
|
lhypbShow: false,
|
|
|
lhypbIndexData: 'add', //判断样品添加还是修改
|
|
lhypbIndexData: 'add', //判断样品添加还是修改
|
|
|
|
|
+ buttonFlagNum: '',
|
|
|
|
|
+
|
|
|
|
|
+ taoCanList: []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
@@ -570,6 +573,9 @@
|
|
|
this.getTaskId(options.id)
|
|
this.getTaskId(options.id)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if (options.buttonFlag) {
|
|
|
|
|
+ this.buttonFlagNum = options.buttonFlag
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
onReady() {
|
|
onReady() {
|
|
|
this.$refs.form.setRules(this.rules);
|
|
this.$refs.form.setRules(this.rules);
|
|
@@ -767,7 +773,8 @@
|
|
|
this.form.weiTuoFangLianXiD = data.dian_hua_
|
|
this.form.weiTuoFangLianXiD = data.dian_hua_
|
|
|
this.form.weiTuoFangLianXiR = data.lian_xi_ren_
|
|
this.form.weiTuoFangLianXiR = data.lian_xi_ren_
|
|
|
this.form.weiTuoFangMingChe = data.ke_hu_dang_wei
|
|
this.form.weiTuoFangMingChe = data.ke_hu_dang_wei
|
|
|
- this.getJiance(e)
|
|
|
|
|
|
|
+ this.getJiance(e, '')
|
|
|
|
|
+ this.getTaoCanList(data.xuan_ze_tao_can_)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//根据合同id选择检测项目
|
|
//根据合同id选择检测项目
|
|
@@ -821,6 +828,35 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ //根据合同查询套餐
|
|
|
|
|
+ getTaoCanList(id) {
|
|
|
|
|
+ let sql =
|
|
|
|
|
+ `select * from t_jctc where FIND_IN_SET(id_,'${id}')`
|
|
|
|
|
+ let requestData = this.$sig(sql)
|
|
|
|
|
+ this.$http.post("/ibps/business/v3/sys/universal/inputSqlSelectData", requestData).then(res => {
|
|
|
|
|
+ if (res.data.state == 200) {
|
|
|
|
|
+ const datas = res.data.variables.data
|
|
|
|
|
+ if (datas.length > 0) {
|
|
|
|
|
+ this.taoCanShow = true
|
|
|
|
|
+ datas.forEach(item => {
|
|
|
|
|
+ this.$set(item, 'chacked', false)
|
|
|
|
|
+ })
|
|
|
|
|
+ this.taoCanList = datas
|
|
|
|
|
+ } else {
|
|
|
|
|
+
|
|
|
|
|
+ setTimeout(function() {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '该合同没有套餐检测项目',
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ duration: 1000
|
|
|
|
|
+ })
|
|
|
|
|
+ }, 500);
|
|
|
|
|
+ this.taoCanShow = false
|
|
|
|
|
+ this.taoCanList = []
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
//选择项目
|
|
//选择项目
|
|
|
changeIndex(it, index, x) {
|
|
changeIndex(it, index, x) {
|
|
|
let itemData = this.form.lhypb[index]
|
|
let itemData = this.form.lhypb[index]
|
|
@@ -1238,8 +1274,6 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
//添加样品记录
|
|
//添加样品记录
|
|
|
getSing() {
|
|
getSing() {
|
|
|
if (this.form.heTongId == '') {
|
|
if (this.form.heTongId == '') {
|
|
@@ -1302,7 +1336,9 @@
|
|
|
showBoolean2: false,
|
|
showBoolean2: false,
|
|
|
showBoolean3: false,
|
|
showBoolean3: false,
|
|
|
showBoolean4: false,
|
|
showBoolean4: false,
|
|
|
- mingChengShow: false
|
|
|
|
|
|
|
+ mingChengShow: false,
|
|
|
|
|
+
|
|
|
|
|
+ taoCanList: JSON.parse(JSON.stringify(this.taoCanList))
|
|
|
}
|
|
}
|
|
|
this.lhypbShow = true
|
|
this.lhypbShow = true
|
|
|
this.lhypbIndexData = 'add'
|
|
this.lhypbIndexData = 'add'
|