|
@@ -9,20 +9,6 @@
|
|
|
placeholder="请输入内容"
|
|
placeholder="请输入内容"
|
|
|
clearable
|
|
clearable
|
|
|
></el-input>
|
|
></el-input>
|
|
|
- <!-- <span class="t-span">检测申请单号</span
|
|
|
|
|
- ><el-input
|
|
|
|
|
- class="inp"
|
|
|
|
|
- v-model="shenqingdanid"
|
|
|
|
|
- placeholder="请输入内容"
|
|
|
|
|
- clearable
|
|
|
|
|
- ></el-input> -->
|
|
|
|
|
- <!-- <span class="t-span">委托单位</span
|
|
|
|
|
- ><el-input
|
|
|
|
|
- class="inp"
|
|
|
|
|
- v-model="danwei"
|
|
|
|
|
- placeholder="请输入内容"
|
|
|
|
|
- clearable
|
|
|
|
|
- ></el-input> -->
|
|
|
|
|
<span class="t-span">报告编号</span
|
|
<span class="t-span">报告编号</span
|
|
|
><el-input
|
|
><el-input
|
|
|
class="inp"
|
|
class="inp"
|
|
@@ -40,8 +26,6 @@
|
|
|
border
|
|
border
|
|
|
:stripe="true"
|
|
:stripe="true"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
- height="75vh"
|
|
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
|
|
:header-cell-style="{
|
|
:header-cell-style="{
|
|
|
color: '#000',
|
|
color: '#000',
|
|
|
'font-size': '14px',
|
|
'font-size': '14px',
|
|
@@ -49,7 +33,6 @@
|
|
|
background: '#a7d6f8 !important',
|
|
background: '#a7d6f8 !important',
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
- <!-- <el-table-column type="selection" width="55"> </el-table-column> -->
|
|
|
|
|
<el-table-column prop="chu_ju_bao_gao_sh" label="年份" width="80">
|
|
<el-table-column prop="chu_ju_bao_gao_sh" label="年份" width="80">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.chu_ju_bao_gao_sh | yeare("年") }}
|
|
{{ scope.row.chu_ju_bao_gao_sh | yeare("年") }}
|
|
@@ -65,50 +48,44 @@
|
|
|
<el-table-column prop="jian_ce_kai_shi_s" label="检测时间" width="100">
|
|
<el-table-column prop="jian_ce_kai_shi_s" label="检测时间" width="100">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- prop="jian_ce_shen_qing"
|
|
|
|
|
|
|
+ prop="wei_tuo_zhan_shi_"
|
|
|
label="检测委托单号"
|
|
label="检测委托单号"
|
|
|
width="180"
|
|
width="180"
|
|
|
>
|
|
>
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ {{ scope.row.wei_tuo_zhan_shi_ | returnweituobianhao(wTBH) }}
|
|
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column prop="wei_tuo_dan_wei_" label="委托单位">
|
|
|
|
|
- </el-table-column> -->
|
|
|
|
|
<el-table-column prop="wei_tuo_ri_qi_" label="委托日期" width="100">
|
|
<el-table-column prop="wei_tuo_ri_qi_" label="委托日期" width="100">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="yang_pin_bian_hao" label="样品编号" width="150">
|
|
<el-table-column prop="yang_pin_bian_hao" label="样品编号" width="150">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="yang_pin_ming_che" label="样品名称" width="">
|
|
<el-table-column prop="yang_pin_ming_che" label="样品名称" width="">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-
|
|
|
|
|
- <!-- <el-table-column prop="lian_xi_ren_" label="联系人">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column prop="lian_xi_dian_hua_" label="联系电话">
|
|
|
|
|
- </el-table-column> -->
|
|
|
|
|
- <!-- <el-table-column prop="lei_bie_qu_fen_yu" label="类别">
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- {{scope.row.lei_bie_qu_fen_yu.toUpperCase()}}
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column> -->
|
|
|
|
|
- <el-table-column label="操作" align="left" width="100" >
|
|
|
|
|
|
|
+ <el-table-column label="操作" align="left" width="100">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-popover placement="left" width="150" trigger="click">
|
|
<el-popover placement="left" width="150" trigger="click">
|
|
|
<div slot="reference" class="more">
|
|
<div slot="reference" class="more">
|
|
|
<i class="el-icon-caret-bottom"></i>查阅
|
|
<i class="el-icon-caret-bottom"></i>查阅
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- <div class="item" style="color: #85ce61">
|
|
|
|
|
- <i class="el-icon-s-order"></i> 合同
|
|
|
|
|
- </div> -->
|
|
|
|
|
-
|
|
|
|
|
<div
|
|
<div
|
|
|
class="item"
|
|
class="item"
|
|
|
style="color: #85ce61"
|
|
style="color: #85ce61"
|
|
|
- @click="alertReport(reports.jianceshenqingdan, scope.row.id_)"
|
|
|
|
|
|
|
+ @click="
|
|
|
|
|
+ alertReport(
|
|
|
|
|
+ reports.jianceshenqingdan,
|
|
|
|
|
+ scope.row.jian_ce_shen_qing
|
|
|
|
|
+ )
|
|
|
|
|
+ "
|
|
|
>
|
|
>
|
|
|
<i class="el-icon-s-order"></i> 检测委托单
|
|
<i class="el-icon-s-order"></i> 检测委托单
|
|
|
</div>
|
|
</div>
|
|
|
<div
|
|
<div
|
|
|
class="item"
|
|
class="item"
|
|
|
style="color: #85ce61"
|
|
style="color: #85ce61"
|
|
|
- @click="reports.hetongpingshen, scope.row"
|
|
|
|
|
|
|
+ @click="
|
|
|
|
|
+ alertReport(reports.hetongpingshen, scope.row.jian_ce_shen_qing)
|
|
|
|
|
+ "
|
|
|
>
|
|
>
|
|
|
<i class="el-icon-s-order"></i> 合同评审
|
|
<i class="el-icon-s-order"></i> 合同评审
|
|
|
</div>
|
|
</div>
|
|
@@ -156,20 +133,13 @@
|
|
|
style="color: #85ce61; cursor: pointer"
|
|
style="color: #85ce61; cursor: pointer"
|
|
|
v-for="it in yubaogaoitem"
|
|
v-for="it in yubaogaoitem"
|
|
|
:key="it.id_"
|
|
:key="it.id_"
|
|
|
- @click="yuReports(reports.yubaogao,it.id)"
|
|
|
|
|
|
|
+ @click="yuReports(reports.yubaogao, it.id)"
|
|
|
>
|
|
>
|
|
|
- {{ it.jian_ce_xiang_mu_ }}预报告记录
|
|
|
|
|
|
|
+ {{ it.jian_ce_xiang_mu_ }}预报告记录
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-popover>
|
|
</el-popover>
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- <div
|
|
|
|
|
- class="item"
|
|
|
|
|
- style="color: #85ce61"
|
|
|
|
|
- @click="juTiItem(scope.row)"
|
|
|
|
|
- >
|
|
|
|
|
- <i class="el-icon-s-order"></i> 预报告
|
|
|
|
|
- </div> -->
|
|
|
|
|
<div
|
|
<div
|
|
|
class="item"
|
|
class="item"
|
|
|
style="color: #85ce61"
|
|
style="color: #85ce61"
|
|
@@ -235,7 +205,7 @@ export default {
|
|
|
jiancebaogao: "42明鉴/吴/明鉴细胞专业技术检测报告.rpx",
|
|
jiancebaogao: "42明鉴/吴/明鉴细胞专业技术检测报告.rpx",
|
|
|
},
|
|
},
|
|
|
shenqingdanid: "",
|
|
shenqingdanid: "",
|
|
|
- nianfen:'',
|
|
|
|
|
|
|
+ nianfen: "",
|
|
|
danwei: "",
|
|
danwei: "",
|
|
|
bianhao: "",
|
|
bianhao: "",
|
|
|
tableData: [],
|
|
tableData: [],
|
|
@@ -243,6 +213,7 @@ export default {
|
|
|
yubaogaoitm: [],
|
|
yubaogaoitm: [],
|
|
|
hetong: [],
|
|
hetong: [],
|
|
|
triggerType: "click",
|
|
triggerType: "click",
|
|
|
|
|
+ wTBH: [],
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
filters: {
|
|
filters: {
|
|
@@ -253,26 +224,36 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- yeare(value,dedal){
|
|
|
|
|
- if(value ==undefined || value ==null || undefined ==""){
|
|
|
|
|
- return ""
|
|
|
|
|
|
|
+ returnweituobianhao(value, arr) {
|
|
|
|
|
+ for (var i = 0; i < arr.length; i++) {
|
|
|
|
|
+ if (arr[i] != null && arr[i] != undefined) {
|
|
|
|
|
+ console.log(arr[i].shen_qing_id_==value)
|
|
|
|
|
+ if (arr[i].shen_qing_id_ == value) {
|
|
|
|
|
+ console.log(arr,arr[i].wei_tuo_bian_hao_ );
|
|
|
|
|
+ return arr[i].wei_tuo_bian_hao_;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ yeare(value, dedal) {
|
|
|
|
|
+ if (value == undefined || value == null || undefined == "") {
|
|
|
|
|
+ return "";
|
|
|
}
|
|
}
|
|
|
- if(dedal=="年"){
|
|
|
|
|
- return value.split("-")[0]
|
|
|
|
|
- }else if(dedal=="月"){
|
|
|
|
|
- return value.split("-")[0] + value.split("-")[1]
|
|
|
|
|
- }else{
|
|
|
|
|
- value
|
|
|
|
|
|
|
+ if (dedal == "年") {
|
|
|
|
|
+ return value.split("-")[0];
|
|
|
|
|
+ } else if (dedal == "月") {
|
|
|
|
|
+ return value.split("-")[0] + value.split("-")[1];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ value;
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
let sql =
|
|
let sql =
|
|
|
"select * from t_mjjcbg WHERE shi_fou_yu_bao_ga='否' and lei_bie_qu_fen_yu ='cnas' and zhuang_tai_ ='报告待发放' or zhuang_tai_ = '已完成' ORDER BY create_time_ DESC limit 0,20";
|
|
"select * from t_mjjcbg WHERE shi_fou_yu_bao_ga='否' and lei_bie_qu_fen_yu ='cnas' and zhuang_tai_ ='报告待发放' or zhuang_tai_ = '已完成' ORDER BY create_time_ DESC limit 0,20";
|
|
|
this.loadData(sql);
|
|
this.loadData(sql);
|
|
|
- // curdPost("sql", sql).then((response) => {
|
|
|
|
|
- // this.tableData = response.variables.data;
|
|
|
|
|
- // });
|
|
|
|
|
|
|
+
|
|
|
let sumsql =
|
|
let sumsql =
|
|
|
"select COUNT(*) AS sum FROM t_mjjcbg WHERE shi_fou_yu_bao_ga='否' and lei_bie_qu_fen_yu ='cnas' and zhuang_tai_ ='报告待发放' or zhuang_tai_ = '已完成'";
|
|
"select COUNT(*) AS sum FROM t_mjjcbg WHERE shi_fou_yu_bao_ga='否' and lei_bie_qu_fen_yu ='cnas' and zhuang_tai_ ='报告待发放' or zhuang_tai_ = '已完成'";
|
|
|
curdPost("sql", sumsql).then((response) => {
|
|
curdPost("sql", sumsql).then((response) => {
|
|
@@ -281,10 +262,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
// 请求表格数据函数
|
|
// 请求表格数据函数
|
|
|
- loadData(sql) {
|
|
|
|
|
|
|
+ async loadData(sql) {
|
|
|
let this_ = this;
|
|
let this_ = this;
|
|
|
this.listData = [];
|
|
this.listData = [];
|
|
|
- curdPost("sql", sql).then((res) => {
|
|
|
|
|
|
|
+ await curdPost("sql", sql).then((res) => {
|
|
|
this_.tableData = res.variables.data;
|
|
this_.tableData = res.variables.data;
|
|
|
if (this_.tableData.length > 0) {
|
|
if (this_.tableData.length > 0) {
|
|
|
this.hetongidFn(this_.tableData);
|
|
this.hetongidFn(this_.tableData);
|
|
@@ -292,6 +273,16 @@ export default {
|
|
|
this_.tableData = [];
|
|
this_.tableData = [];
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ for (let i = 0; i < this.tableData.length; i++) {
|
|
|
|
|
+ let sql =
|
|
|
|
|
+ "select wei_tuo_bian_hao_,shen_qing_id_ FROM t_mjwtzsb WHERE shen_qing_id_ ='" +
|
|
|
|
|
+ this.tableData[i].wei_tuo_zhan_shi_ +
|
|
|
|
|
+ "'";
|
|
|
|
|
+ await curdPost("sql", sql).then((res) => {
|
|
|
|
|
+ let data = res.variables.data;
|
|
|
|
|
+ this_.wTBH.push(data[0]);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
hetongidFn(bianhaoArr) {
|
|
hetongidFn(bianhaoArr) {
|
|
|
var sqlStr = "";
|
|
var sqlStr = "";
|
|
@@ -343,7 +334,7 @@ export default {
|
|
|
curdPost("sql", itemSql).then((res) => {
|
|
curdPost("sql", itemSql).then((res) => {
|
|
|
this_.itemInfo = res.variables.data;
|
|
this_.itemInfo = res.variables.data;
|
|
|
for (var i = 0; i++; i < this_itemInfo) {
|
|
for (var i = 0; i++; i < this_itemInfo) {
|
|
|
- if (this_itemInfo[i].shi_fou_yu_bao_ga=="是") {
|
|
|
|
|
|
|
+ if (this_itemInfo[i].shi_fou_yu_bao_ga == "是") {
|
|
|
this_.yubaogaoitem.push(it);
|
|
this_.yubaogaoitem.push(it);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -355,11 +346,9 @@ export default {
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- yuReports(url,id){
|
|
|
|
|
- this.alertReport(
|
|
|
|
|
- url,
|
|
|
|
|
- id
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ yuReports(url, id) {
|
|
|
|
|
+ console.log(url, id);
|
|
|
|
|
+ this.alertReport(url, id);
|
|
|
},
|
|
},
|
|
|
formEvent(itemName) {
|
|
formEvent(itemName) {
|
|
|
if (itemName.includes("pH检测")) {
|
|
if (itemName.includes("pH检测")) {
|
|
@@ -471,14 +460,12 @@ export default {
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- isYubaogao(value, row) {
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ isYubaogao(value, row) {},
|
|
|
// pin凑sql
|
|
// pin凑sql
|
|
|
selectSplit() {
|
|
selectSplit() {
|
|
|
var q1, q2, q3;
|
|
var q1, q2, q3;
|
|
|
if (this.nianfen) {
|
|
if (this.nianfen) {
|
|
|
- q1 = "chu_ju_bao_gao_sh like'" +"%" + this.nianfen + "%" + "' ";
|
|
|
|
|
|
|
+ q1 = "chu_ju_bao_gao_sh like'" + "%" + this.nianfen + "%" + "' ";
|
|
|
}
|
|
}
|
|
|
if (this.danwei) {
|
|
if (this.danwei) {
|
|
|
q2 = "wei_tuo_dan_wei_ = '" + this.danwei + "' ";
|
|
q2 = "wei_tuo_dan_wei_ = '" + this.danwei + "' ";
|
|
@@ -515,13 +502,15 @@ export default {
|
|
|
handleSizeChange(value) {
|
|
handleSizeChange(value) {
|
|
|
this.currentPage4 = 1;
|
|
this.currentPage4 = 1;
|
|
|
let sql =
|
|
let sql =
|
|
|
- "select * from t_mjjcbg WHERE shi_fou_yu_bao_ga='否' and lei_bie_qu_fen_yu ='cnas' and zhuang_tai_ ='报告待发放' or zhuang_tai_ = '已完成' ORDER BY create_time_ DESC limit 0,"+value;
|
|
|
|
|
|
|
+ "select * from t_mjjcbg WHERE shi_fou_yu_bao_ga='否' and lei_bie_qu_fen_yu ='cnas' and zhuang_tai_ ='报告待发放' or zhuang_tai_ = '已完成' ORDER BY create_time_ DESC limit 0," +
|
|
|
|
|
+ value;
|
|
|
this.loadData(sql);
|
|
this.loadData(sql);
|
|
|
},
|
|
},
|
|
|
handleCurrentChange(value) {
|
|
handleCurrentChange(value) {
|
|
|
let sql =
|
|
let sql =
|
|
|
"select * from t_mjjcbg WHERE shi_fou_yu_bao_ga='否' and lei_bie_qu_fen_yu ='cnas' and zhuang_tai_ ='报告待发放' or zhuang_tai_ = '已完成' ORDER BY create_time_ DESC limit " +
|
|
"select * from t_mjjcbg WHERE shi_fou_yu_bao_ga='否' and lei_bie_qu_fen_yu ='cnas' and zhuang_tai_ ='报告待发放' or zhuang_tai_ = '已完成' ORDER BY create_time_ DESC limit " +
|
|
|
- value +", 20";
|
|
|
|
|
|
|
+ value +
|
|
|
|
|
+ ", 20";
|
|
|
this.loadData(sql);
|
|
this.loadData(sql);
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -538,12 +527,6 @@ export default {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
|
}
|
|
}
|
|
|
-// .tableRowClassName {
|
|
|
|
|
-// backface-visibility: #d9eefd;
|
|
|
|
|
-// }
|
|
|
|
|
-// .el-table .warning-row {
|
|
|
|
|
-// background: #d9eefd;
|
|
|
|
|
-// }
|
|
|
|
|
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
|
|
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
|
|
|
background: #d9eefd;
|
|
background: #d9eefd;
|
|
|
}
|
|
}
|