|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
<div class="container2" id="shijian">
|
|
|
<el-tabs v-model="activeName" type="card">
|
|
|
- <el-tab-pane label="待处理" name="no" />
|
|
|
- <el-tab-pane label="审核完成" name="ok" />
|
|
|
+ <el-tab-pane label="待处理" name="no"/>
|
|
|
+ <el-tab-pane label="审核完成" name="ok"/>
|
|
|
</el-tabs>
|
|
|
<div class="header">
|
|
|
<Search
|
|
@@ -19,23 +19,24 @@
|
|
|
class="btn"
|
|
|
style="margin-bottom: 10px"
|
|
|
@click="toAdd"
|
|
|
- >新增</el-button
|
|
|
+ >新增
|
|
|
+ </el-button
|
|
|
>
|
|
|
<el-table :data="tableData" border>
|
|
|
<el-table-column prop="formNo" label="编号"/>
|
|
|
- <el-table-column prop="materialModel" label="产品型号" />
|
|
|
- <el-table-column prop="type" label="产品分类" />
|
|
|
- <el-table-column prop="workOrderCode" label="生产批号" />
|
|
|
+ <el-table-column prop="materialModel" label="产品型号"/>
|
|
|
+ <el-table-column prop="type" label="产品分类"/>
|
|
|
+ <el-table-column prop="workOrderCode" label="生产批号"/>
|
|
|
<el-table-column
|
|
|
prop="seqs"
|
|
|
label="管号"
|
|
|
width="200"
|
|
|
overhidden="true"
|
|
|
/>
|
|
|
- <el-table-column prop="seqNum" label="数量" />
|
|
|
- <el-table-column prop="componentName" label="器件名称及型号" />
|
|
|
- <el-table-column prop="num" label="数量" />
|
|
|
- <el-table-column prop="company" label="供方单位" overhidden="true" />
|
|
|
+ <el-table-column prop="seqNum" label="数量"/>
|
|
|
+ <el-table-column prop="componentName" label="器件名称及型号"/>
|
|
|
+ <el-table-column prop="num" label="数量"/>
|
|
|
+ <el-table-column prop="company" label="供方单位" overhidden="true"/>
|
|
|
<el-table-column
|
|
|
prop="currentUserName"
|
|
|
label="审核人"
|
|
@@ -53,7 +54,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="created" label="创建时间" />
|
|
|
+ <el-table-column prop="created" label="创建时间"/>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
width="160"
|
|
@@ -67,20 +68,23 @@
|
|
|
link
|
|
|
type="danger"
|
|
|
@click="toDelete(row)"
|
|
|
- >删除</el-button
|
|
|
+ >删除
|
|
|
+ </el-button
|
|
|
>
|
|
|
<el-button
|
|
|
link
|
|
|
v-if="
|
|
|
(row.state === 0 || row.state === 1) &&
|
|
|
- userStore.user.username == row.currentUserName
|
|
|
+ row.currentUserName?.split(',').includes(userStore.user.username)
|
|
|
"
|
|
|
@click="handle(row)"
|
|
|
type="primary"
|
|
|
- >处理</el-button
|
|
|
+ >处理
|
|
|
+ </el-button
|
|
|
>
|
|
|
<el-button link @click="toDetail(row)" type="primary"
|
|
|
- >详情</el-button
|
|
|
+ >详情
|
|
|
+ </el-button
|
|
|
>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -98,6 +102,7 @@
|
|
|
<Detail ref="detailRef"></Detail>
|
|
|
<Handle20 ref="handle20Ref" @finish="getData"></Handle20>
|
|
|
<Handle21 ref="handle21Ref" @finish="getData"></Handle21>
|
|
|
+ <Handle2 ref="handle2Ref" @finish="getData"></Handle2>
|
|
|
<Handle3 ref="handle3Ref" @finish="getData"></Handle3>
|
|
|
<Handle4 ref="handle4Ref" @finish="getData"></Handle4>
|
|
|
<Handle5 ref="handle5Ref" @finish="getData"></Handle5>
|
|
@@ -109,13 +114,15 @@
|
|
|
|
|
|
<script setup>
|
|
|
import Search from "@/components/Search/index.vue";
|
|
|
-import { useSpcStore, useUserStore, useDictionaryStore } from "@/store";
|
|
|
-const { dicts } = useDictionaryStore();
|
|
|
-import { deleteFeedback, getUnqualifiedData } from "@/api/unqualified/index";
|
|
|
+import {useSpcStore, useUserStore, useDictionaryStore} from "@/store";
|
|
|
+
|
|
|
+const {dicts} = useDictionaryStore();
|
|
|
+import {deleteFeedback, getUnqualifiedData} from "@/api/unqualified/index";
|
|
|
import Add from "@/views/unqualified/add.vue";
|
|
|
import Detail from "@/views/unqualified/detail.vue";
|
|
|
import Handle20 from "@/views/unqualified/handle20.vue";
|
|
|
import Handle21 from "@/views/unqualified/handle21.vue";
|
|
|
+import Handle2 from "@/views/unqualified/handle2.vue";
|
|
|
import Handle3 from "@/views/unqualified/handle3.vue";
|
|
|
import Handle4 from "@/views/unqualified/handle4.vue";
|
|
|
import Handle5 from "@/views/unqualified/handle5.vue";
|
|
@@ -164,7 +171,7 @@ const searchForm = [
|
|
|
];
|
|
|
|
|
|
const getData = async (obj) => {
|
|
|
- const { data, code } = await getUnqualifiedData({
|
|
|
+ const {data, code} = await getUnqualifiedData({
|
|
|
...searchRef.value.searchForm,
|
|
|
pageNo: currentOption.page,
|
|
|
pageSize: currentOption.limit,
|
|
@@ -193,6 +200,7 @@ const toDelete = async (row) => {
|
|
|
// 处理相关
|
|
|
const handle20Ref = ref(null);
|
|
|
const handle21Ref = ref(null);
|
|
|
+const handle2Ref = ref(null);
|
|
|
const handle3Ref = ref(null);
|
|
|
const handle4Ref = ref(null);
|
|
|
const handle5Ref = ref(null);
|
|
@@ -203,7 +211,12 @@ const handle = (row) => {
|
|
|
if (row.auditType == "1") {
|
|
|
handle20Ref.value && handle20Ref.value.showDrawer(row); // 处理
|
|
|
} else {
|
|
|
- handle21Ref.value && handle21Ref.value.showDrawer(row); // 处理
|
|
|
+ if (row.remark1 && !JSON.parse(row.remark1).user1) {
|
|
|
+ console.log(row.remark1, "ddddpp[[[[")
|
|
|
+ handle2Ref.value && handle2Ref.value.showDrawer(row);
|
|
|
+ } else {
|
|
|
+ handle21Ref.value && handle21Ref.value.showDrawer(row); // 处理
|
|
|
+ }
|
|
|
}
|
|
|
} else if (row.remark3 && !JSON.parse(row.remark3).content) {
|
|
|
handle3Ref.value && handle3Ref.value.showDrawer(row); // 处理
|
|
@@ -230,11 +243,11 @@ const getTextByAuditType = (state) => {
|
|
|
const item = auditTypes.filter((v) => {
|
|
|
console.log(
|
|
|
"dictValue:" +
|
|
|
- v.dictValue +
|
|
|
- ",state:" +
|
|
|
- state +
|
|
|
- "..." +
|
|
|
- (v.dictValue === state)
|
|
|
+ v.dictValue +
|
|
|
+ ",state:" +
|
|
|
+ state +
|
|
|
+ "..." +
|
|
|
+ (v.dictValue === state)
|
|
|
);
|
|
|
return v.dictValue === state;
|
|
|
});
|
|
@@ -299,25 +312,30 @@ watch(
|
|
|
padding: 20px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
+
|
|
|
.header {
|
|
|
width: 100%;
|
|
|
height: auto;
|
|
|
}
|
|
|
+
|
|
|
.table {
|
|
|
flex: 1;
|
|
|
padding-bottom: 20px;
|
|
|
}
|
|
|
+
|
|
|
.formView {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
+
|
|
|
.formTitle {
|
|
|
text-align: center;
|
|
|
font-size: 20px;
|
|
|
margin-bottom: 20px;
|
|
|
}
|
|
|
+
|
|
|
.formStyle {
|
|
|
width: 400px;
|
|
|
}
|