|
|
@@ -289,12 +289,12 @@
|
|
|
// 获取已委托样品数量
|
|
|
const sql3 = `select count(yp.id_) as unReceive from t_lhypb yp, t_lhwtsqb wt where yp.parent_id_ = wt.id_ and yp.create_time_ like '${this.month}%'`
|
|
|
// 获取样品 收样/留样/不合格数量
|
|
|
- const sql4 = `select count(id_) as receive, count(shi_fou_liu_yang_ = '是' or null) as keep, count(yan_shou_jie_guo_ = '残缺' or null) as incomplete from t_lhypdjb where create_time_ like '${this.month}%'`
|
|
|
+ const sql4 = `select count(a.id_) as receive, count(a.shi_fou_liu_yang_ = '是' or null) as keep, count(a.yan_shou_jie_guo_ = '残缺' or null) as incomplete from (select id_, shi_fou_liu_yang_, yan_shou_jie_guo_ from t_lhypdjb where create_time_ like '${this.month}%' group by yang_ben_bian_hao) as a`
|
|
|
Promise.all([
|
|
|
curdPost('sql', sql1),
|
|
|
curdPost('sql', sql2),
|
|
|
curdPost('sql', sql3),
|
|
|
- curdPost('sql', sql4),
|
|
|
+ curdPost('sql', sql4)
|
|
|
]).then(([ res1, res2, res3, res4]) => {
|
|
|
this.bottomCardData.flag = false
|
|
|
const data1 = res1.variables.data
|