|
|
@@ -1,4 +1,4 @@
|
|
|
-<!-- 三级审核 -->
|
|
|
+<!-- 三级审核: -->
|
|
|
<template>
|
|
|
<div class="examination testManagement">
|
|
|
<div class="common-head-search">
|
|
|
@@ -25,11 +25,11 @@
|
|
|
style="width: 150px" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="创建时间">
|
|
|
- <el-date-picker v-model="searchForm.times[0]" value-format="yyyy-MM-dd HH:mm:ss" format="" type="date"
|
|
|
+ <el-date-picker v-model="searchForm.times[0]" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date"
|
|
|
placeholder="开始日期" size="mini" style="width: 140px" :default-time="'00:00:00'">
|
|
|
</el-date-picker>
|
|
|
<span>至</span>
|
|
|
- <el-date-picker v-model="searchForm.times[1]" value-format="yyyy-MM-dd HH:mm:ss" format="" type="date"
|
|
|
+ <el-date-picker v-model="searchForm.times[1]" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date"
|
|
|
placeholder="结束日期" size="mini" style="width: 140px" :default-time="'23:59:59'">
|
|
|
</el-date-picker>
|
|
|
<!-- <el-date-picker
|
|
|
@@ -116,10 +116,18 @@
|
|
|
label="使用设备"></el-table-column>
|
|
|
<el-table-column show-overflow-tooltip sortable min-width="75" align="center" prop="entrMemo"
|
|
|
label="委托备注"></el-table-column>
|
|
|
+ <el-table-column sortable show-overflow-tooltip align="center" min-width="100px" prop="auditMan"
|
|
|
+ label="二审审核人"></el-table-column>
|
|
|
+ <el-table-column sortable show-overflow-tooltip align="center" min-width="140px" prop="auditTime"
|
|
|
+ label="二审审核时间"></el-table-column>
|
|
|
<el-table-column show-overflow-tooltip sortable min-width="75" align="center" prop="checkMan"
|
|
|
label="提交人"></el-table-column>
|
|
|
<el-table-column show-overflow-tooltip sortable min-width="75" align="center" prop="checkTime"
|
|
|
label="提交时间"></el-table-column>
|
|
|
+ <el-table-column show-overflow-tooltip sortable min-width="75" align="center" prop="createMan"
|
|
|
+ label="创建人"></el-table-column>
|
|
|
+ <el-table-column show-overflow-tooltip sortable min-width="75" align="center" prop="createTime"
|
|
|
+ label="创建时间"></el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<div class="common-foot-style">
|
|
|
@@ -182,10 +190,18 @@
|
|
|
align="center"></el-table-column>
|
|
|
<el-table-column sortable show-overflow-tooltip min-width="140px" prop="checkTime" label="提交时间"
|
|
|
align="center"></el-table-column>
|
|
|
- <el-table-column sortable show-overflow-tooltip min-width="80px" prop="apprMan" label="审核人"
|
|
|
+ <el-table-column sortable show-overflow-tooltip align="center" min-width="100px" prop="auditMan"
|
|
|
+ label="二审审核人"></el-table-column>
|
|
|
+ <el-table-column sortable show-overflow-tooltip align="center" min-width="140px" prop="auditTime"
|
|
|
+ label="二审审核时间"></el-table-column>
|
|
|
+ <el-table-column sortable show-overflow-tooltip min-width="100px" prop="apprMan" label="三审审核人"
|
|
|
align="center"></el-table-column>
|
|
|
- <el-table-column sortable show-overflow-tooltip min-width="140px" prop="apprTime" label="审核时间"
|
|
|
+ <el-table-column sortable show-overflow-tooltip min-width="140px" prop="apprTime" label="三审审核时间"
|
|
|
align="center"></el-table-column>
|
|
|
+ <el-table-column show-overflow-tooltip sortable min-width="75" align="center" prop="createMan"
|
|
|
+ label="创建人"></el-table-column>
|
|
|
+ <el-table-column show-overflow-tooltip sortable min-width="75" align="center" prop="createTime"
|
|
|
+ label="创建时间"></el-table-column>
|
|
|
</el-table>
|
|
|
<div class="common-foot-style">
|
|
|
<el-pagination @size-change="handleSizeChangeDep" @current-change="Data5()"
|
|
|
@@ -301,16 +317,16 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="col.prop == 'matName'">{{
|
|
|
tableData[scope.$index].matName
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
<span v-else-if="col.prop == 'sampleNo'">{{
|
|
|
tableData[scope.$index].sampleNo
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
<span v-else-if="col.prop == 'carNo'">{{
|
|
|
tableData[scope.$index].carNo
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
<span v-else-if="scope.$index > 0">{{
|
|
|
scope.row[col.prop]
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</template>
|
|
|
@@ -599,8 +615,10 @@ export default {
|
|
|
this.activeName = this.fromDaiban.status == 1 ? "second" : "first";
|
|
|
} else {
|
|
|
this.searchForm.times = [
|
|
|
- this.getYNM(new Date(timestamp)) + " 00:00:00",
|
|
|
- this.getYNM(new Date()) + " 23:59:59",
|
|
|
+ this.getYNM(new Date(timestamp)),
|
|
|
+ this.getYNM(new Date()),
|
|
|
+ // this.getYNM(new Date(timestamp)) + " 00:00:00",
|
|
|
+ // this.getYNM(new Date()) + " 23:59:59",
|
|
|
];
|
|
|
}
|
|
|
this.activeMenu = window.top.localStorage.getItem("activeMenu");
|
|
|
@@ -615,17 +633,17 @@ export default {
|
|
|
this.getCompany();
|
|
|
});
|
|
|
},
|
|
|
- watch: {
|
|
|
- "$route.query.type"(newType) {
|
|
|
- this.searchForm.type = newType || '';
|
|
|
- }
|
|
|
-},
|
|
|
+ watch: {
|
|
|
+ "$route.query.type"(newType) {
|
|
|
+ this.searchForm.type = newType || '';
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
- this.searchForm.type = this.$route.query.type || '';
|
|
|
+ this.searchForm.type = this.$route.query.type || '';
|
|
|
this.axios
|
|
|
.post(
|
|
|
"pass/baseManagement/v1/limsbaseinfos/queryBaseInfoByBaseCode",
|
|
|
- { validFlag: 1, baseCode: 4801},
|
|
|
+ { validFlag: 1, baseCode: 4801 },
|
|
|
{ individualType: "json" }
|
|
|
)
|
|
|
.then((res) => {
|
|
|
@@ -812,8 +830,10 @@ export default {
|
|
|
let timestamp = new Date().getTime() - 7 * 24 * 60 * 60 * 1000; // 默认前一周
|
|
|
|
|
|
this.searchForm.times = [
|
|
|
- this.getYNM(new Date(timestamp)) + " 00:00:00",
|
|
|
- this.getYNM(new Date()) + " 23:59:59",
|
|
|
+ this.getYNM(new Date(timestamp)),
|
|
|
+ this.getYNM(new Date()),
|
|
|
+ // this.getYNM(new Date(timestamp)) + " 00:00:00",
|
|
|
+ // this.getYNM(new Date()) + " 23:59:59",
|
|
|
];
|
|
|
this.searchData();
|
|
|
},
|
|
|
@@ -1332,15 +1352,19 @@ export default {
|
|
|
},
|
|
|
// 未审核
|
|
|
Data4() {
|
|
|
- let startTime = "";
|
|
|
- let endTime = "";
|
|
|
- if (!this.searchForm.times) {
|
|
|
- startTime = "";
|
|
|
- endTime = "";
|
|
|
- } else {
|
|
|
- startTime = this.searchForm.times[0];
|
|
|
- endTime = this.searchForm.times[1];
|
|
|
- }
|
|
|
+ let startTime = null;
|
|
|
+ let endTime = null;
|
|
|
+ startTime = this.searchForm.times[0] === null ? null : (this.searchForm.times[0] + ' 00:00:00')
|
|
|
+ endTime = this.searchForm.times[1] === null ? null : (this.searchForm.times[1] + ' 23:59:59')
|
|
|
+ // let startTime = "";
|
|
|
+ // let endTime = "";
|
|
|
+ // if (!this.searchForm.times) {
|
|
|
+ // startTime = "";
|
|
|
+ // endTime = "";
|
|
|
+ // } else {
|
|
|
+ // startTime = this.searchForm.times[0];
|
|
|
+ // endTime = this.searchForm.times[1];
|
|
|
+ // }
|
|
|
let obj = {
|
|
|
object: {
|
|
|
matName: this.searchForm.matName,
|
|
|
@@ -1354,7 +1378,7 @@ export default {
|
|
|
pageIndex: this.pageIndex4,
|
|
|
startTime: startTime,
|
|
|
endTime: endTime,
|
|
|
- deptName:this.searchForm.type
|
|
|
+ deptName: this.searchForm.type
|
|
|
};
|
|
|
this.tableLoading4 = true;
|
|
|
this.axios
|
|
|
@@ -1395,15 +1419,19 @@ export default {
|
|
|
this.glDialog.totalPage = this.glDialog.totalPage - 1;
|
|
|
},
|
|
|
Data5() {
|
|
|
- let startTime = "";
|
|
|
- let endTime = "";
|
|
|
- if (!this.searchForm.times) {
|
|
|
- startTime = "";
|
|
|
- endTime = "";
|
|
|
- } else {
|
|
|
- startTime = this.searchForm.times[0];
|
|
|
- endTime = this.searchForm.times[1];
|
|
|
- }
|
|
|
+ let startTime = null;
|
|
|
+ let endTime = null;
|
|
|
+ startTime = this.searchForm.times[0] === null ? null : (this.searchForm.times[0] + ' 00:00:00')
|
|
|
+ endTime = this.searchForm.times[1] === null ? null : (this.searchForm.times[1] + ' 23:59:59')
|
|
|
+ // let startTime = "";
|
|
|
+ // let endTime = "";
|
|
|
+ // if (!this.searchForm.times) {
|
|
|
+ // startTime = "";
|
|
|
+ // endTime = "";
|
|
|
+ // } else {
|
|
|
+ // startTime = this.searchForm.times[0];
|
|
|
+ // endTime = this.searchForm.times[1];
|
|
|
+ // }
|
|
|
let obj = {
|
|
|
object: {
|
|
|
matName: this.searchForm.matName,
|
|
|
@@ -1417,7 +1445,7 @@ export default {
|
|
|
pageIndex: this.pageIndex42,
|
|
|
startTime: startTime,
|
|
|
endTime: endTime,
|
|
|
- deptName:this.searchForm.type
|
|
|
+ deptName: this.searchForm.type
|
|
|
};
|
|
|
this.tableLoading42 = true;
|
|
|
this.axios
|