|
|
|
@ -81,7 +81,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
// import { get_personback_data } from "@/api/applySupermarket/personBack";
|
|
|
|
|
import { getList } from "@/api/applySupermarket/personBack";
|
|
|
|
|
import PersonBackDialog from "../personBack/components/personBackDialog.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -92,62 +92,7 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
search_company: "",
|
|
|
|
|
item_data: [
|
|
|
|
|
{
|
|
|
|
|
id: "0",
|
|
|
|
|
companyName: "宁波安捷化工有限公司",
|
|
|
|
|
abnormal_num: "0",
|
|
|
|
|
examinationReason: "技术审查",
|
|
|
|
|
examinationUserNum: "17人",
|
|
|
|
|
applyTime: "2022-12-28 16:48:21",
|
|
|
|
|
examinationResultDetail: "15人正常,2人异常",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "1",
|
|
|
|
|
companyName: "宁波安捷化工有限公司",
|
|
|
|
|
abnormal_num: "1",
|
|
|
|
|
examinationReason: "技术审查",
|
|
|
|
|
examinationUserNum: "17人",
|
|
|
|
|
applyTime: "2022-12-28 16:48:21",
|
|
|
|
|
examinationResultDetail: "15人正常,2人异常",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "2",
|
|
|
|
|
companyName: "宁波安捷化工有限公司",
|
|
|
|
|
abnormal_num: "0",
|
|
|
|
|
examinationReason: "技术审查",
|
|
|
|
|
examinationUserNum: "17人",
|
|
|
|
|
applyTime: "2022-12-28 16:48:21",
|
|
|
|
|
examinationResultDetail: "15人正常,2人异常",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "3",
|
|
|
|
|
companyName: "宁波安捷化工有限公司",
|
|
|
|
|
abnormal_num: "0",
|
|
|
|
|
examinationReason: "技术审查",
|
|
|
|
|
examinationUserNum: "17人",
|
|
|
|
|
applyTime: "2022-12-28 16:48:21",
|
|
|
|
|
examinationResultDetail: "15人正常,2人异常",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "4",
|
|
|
|
|
companyName: "宁波安捷化工有限公司",
|
|
|
|
|
abnormal_num: "0",
|
|
|
|
|
examinationReason: "技术审查",
|
|
|
|
|
examinationUserNum: "17人",
|
|
|
|
|
applyTime: "2022-12-28 16:48:21",
|
|
|
|
|
examinationResultDetail: "15人正常,2人异常",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "5",
|
|
|
|
|
companyName: "宁波安捷化工有限公司",
|
|
|
|
|
abnormal_num: "0",
|
|
|
|
|
examinationReason: "技术审查",
|
|
|
|
|
examinationUserNum: "17人",
|
|
|
|
|
applyTime: "2022-12-28 16:48:21",
|
|
|
|
|
examinationResultDetail: "15人正常,2人异常",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
item_data: [],
|
|
|
|
|
pageSize: 8,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
total: 0,
|
|
|
|
@ -157,30 +102,31 @@ export default {
|
|
|
|
|
this.search();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// search() {
|
|
|
|
|
// let param = {
|
|
|
|
|
// companyName: this.search_company,
|
|
|
|
|
// pageSize: this.pageSize,
|
|
|
|
|
// pageNum: this.pageNum,
|
|
|
|
|
// };
|
|
|
|
|
// get_personback_data(param).then((res) => {
|
|
|
|
|
// console.log("res_person", res);
|
|
|
|
|
// // 诸如20人正常,0人异常截取到异常的人员数
|
|
|
|
|
// for (let i = 0; i < res.rows.length; i++) {
|
|
|
|
|
// console.log(res.rows[i].examinationResultDetail);
|
|
|
|
|
// res.rows[i].abnormal_num = res.rows[
|
|
|
|
|
// i
|
|
|
|
|
// ].examinationResultDetail.substring(
|
|
|
|
|
// res.rows[i].examinationResultDetail.indexOf("正常,") + 3,
|
|
|
|
|
// res.rows[i].examinationResultDetail.indexOf("人异常")
|
|
|
|
|
// );
|
|
|
|
|
// console.log(res.rows[i].abnormal_num);
|
|
|
|
|
// }
|
|
|
|
|
// console.log("res.rows", res.rows);
|
|
|
|
|
// this.item_data = res.rows;
|
|
|
|
|
// this.total = res.total;
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
search() {
|
|
|
|
|
let param = {
|
|
|
|
|
companyName: this.search_company,
|
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
|
pageNum: this.pageNum,
|
|
|
|
|
verificationType: 2,
|
|
|
|
|
};
|
|
|
|
|
getList(param).then((res) => {
|
|
|
|
|
console.log("res_person", res);
|
|
|
|
|
// 诸如20人正常,0人异常截取到异常的人员数
|
|
|
|
|
for (let i = 0; i < res.rows.length; i++) {
|
|
|
|
|
console.log(res.rows[i].examinationResultDetail);
|
|
|
|
|
res.rows[i].abnormal_num = res.rows[
|
|
|
|
|
i
|
|
|
|
|
].examinationResultDetail.substring(
|
|
|
|
|
res.rows[i].examinationResultDetail.indexOf("正常,") + 3,
|
|
|
|
|
res.rows[i].examinationResultDetail.indexOf("人异常")
|
|
|
|
|
);
|
|
|
|
|
console.log(res.rows[i].abnormal_num);
|
|
|
|
|
}
|
|
|
|
|
console.log("res.rows", res.rows);
|
|
|
|
|
this.item_data = res.rows;
|
|
|
|
|
this.total = res.total;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 点击查看详情
|
|
|
|
|
check_item(item) {
|
|
|
|
|
this.$refs.personBackDialog.open(item);
|
|
|
|
|