|
@@ -44,7 +44,7 @@
|
|
|
}}</el-descriptions-item>
|
|
|
<el-descriptions-item label="铭牌号">-</el-descriptions-item>
|
|
|
<el-descriptions-item label="是否返工">
|
|
|
- <el-tag size="small">{{productReviewInfo.rework}}</el-tag>
|
|
|
+ <el-tag size="small">{{ productReviewInfo.rework }}</el-tag>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="工单出站">{{
|
|
|
productReviewInfo.outNum
|
|
@@ -52,7 +52,11 @@
|
|
|
<el-descriptions-item label="交付日期">{{
|
|
|
productReviewInfo.planStartEnd
|
|
|
}}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="工单报故"><el-tag size="small">{{productReviewInfo.bug}}</el-tag></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="工单报故"
|
|
|
+ ><el-tag size="small">{{
|
|
|
+ productReviewInfo.bug
|
|
|
+ }}</el-tag></el-descriptions-item
|
|
|
+ >
|
|
|
</el-descriptions>
|
|
|
</el-header>
|
|
|
<el-main>
|
|
@@ -166,6 +170,19 @@
|
|
|
</template>
|
|
|
<ExcelCom ref="excelComRef"
|
|
|
/></el-tab-pane>
|
|
|
+ <el-tab-pane name="cssjComRef" label="测试数据"
|
|
|
+ ><template #label>
|
|
|
+ <span
|
|
|
+ >测试数据
|
|
|
+ <el-badge
|
|
|
+ :value="tabCount.testData"
|
|
|
+ class="item"
|
|
|
+ type="primary"
|
|
|
+ />
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ <TestData ref="cssjComRef"
|
|
|
+ /></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
@@ -185,6 +202,7 @@ import EquitCom from "@/views/pro/traceability/components/equitCom.vue";
|
|
|
import FaultCom from "@/views/pro/traceability/components/faultCom.vue";
|
|
|
import MediaCom from "./components/mediaCom.vue";
|
|
|
import ExcelCom from "./components/excelCom.vue";
|
|
|
+import TestData from "./components/testData.vue";
|
|
|
|
|
|
// 传入一个url,后面不带/
|
|
|
const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
|
|
@@ -207,6 +225,7 @@ const equitComRef = ref(null);
|
|
|
const faultComRef = ref(null);
|
|
|
const mediaComRef = ref(null);
|
|
|
const excelComRef = ref(null);
|
|
|
+const cssjComRef = ref(null);
|
|
|
let defaultTabName = ref("traceabilityComRef");
|
|
|
//tab页组件
|
|
|
const tabNameComRef = new Map([
|
|
@@ -218,6 +237,7 @@ const tabNameComRef = new Map([
|
|
|
["faultComRef", faultComRef],
|
|
|
["mediaComRef", mediaComRef],
|
|
|
["excelComRef", excelComRef],
|
|
|
+ ["cssjComRef", cssjComRef],
|
|
|
]);
|
|
|
let temRow = ref({});
|
|
|
const tabsEvent = (pane, ev) => {
|
|
@@ -248,8 +268,8 @@ let productReviewInfo = reactive({
|
|
|
planStartEnd: "",
|
|
|
workOrderCode: "",
|
|
|
outNum: "",
|
|
|
- rework: '-',
|
|
|
- bug: '-'
|
|
|
+ rework: "-",
|
|
|
+ bug: "-",
|
|
|
});
|
|
|
|
|
|
let tabCount = reactive({
|
|
@@ -261,14 +281,15 @@ let tabCount = reactive({
|
|
|
fault: "",
|
|
|
medias: "",
|
|
|
excel: "",
|
|
|
+ testData: "",
|
|
|
});
|
|
|
|
|
|
const handleCellClick = (row, column, event) => {
|
|
|
- if(row.level === 'order'){
|
|
|
- productReviewInfo.bug = '-'
|
|
|
+ if (row.level === "order") {
|
|
|
+ productReviewInfo.bug = "-";
|
|
|
}
|
|
|
- if(row.orderType){
|
|
|
- productReviewInfo.rework = row.orderType === '2' ? '是' : '否'
|
|
|
+ if (row.orderType) {
|
|
|
+ productReviewInfo.rework = row.orderType === "2" ? "是" : "否";
|
|
|
}
|
|
|
//获取出单的数量
|
|
|
if (data.value) {
|
|
@@ -276,8 +297,8 @@ const handleCellClick = (row, column, event) => {
|
|
|
if (topTree) {
|
|
|
for (let secondTree of topTree.children) {
|
|
|
if (row.workOrderCode == secondTree.workOrderCode) {
|
|
|
- productReviewInfo.rework = topTree.orderType === '2' ? '是' : '否'
|
|
|
- productReviewInfo.bug = secondTree.bugNum === 0 ? '否' : '是'
|
|
|
+ productReviewInfo.rework = topTree.orderType === "2" ? "是" : "否";
|
|
|
+ productReviewInfo.bug = secondTree.bugNum === 0 ? "否" : "是";
|
|
|
productReviewInfo.outNum = secondTree.children.length;
|
|
|
}
|
|
|
}
|
|
@@ -293,7 +314,10 @@ const handleCellClick = (row, column, event) => {
|
|
|
tabNameComRef.get(defaultTabName.value)?.value.refreshTra(temRow.value);
|
|
|
}
|
|
|
//每次点击都要获取tab页面的数量
|
|
|
- traceabilityTabCount({ seqNo: row.seqNo,workOrderCode: row.workOrderCode }).then(({ data }) => {
|
|
|
+ traceabilityTabCount({
|
|
|
+ seqNo: row.seqNo,
|
|
|
+ workOrderCode: row.workOrderCode,
|
|
|
+ }).then(({ data }) => {
|
|
|
tabCount = Object.assign(tabCount, data);
|
|
|
});
|
|
|
if (row.workOrderCode == productReviewInfo.workOrderCode) {
|
|
@@ -301,7 +325,7 @@ const handleCellClick = (row, column, event) => {
|
|
|
return;
|
|
|
}
|
|
|
//产品信息
|
|
|
- getMaterialDetailsByseqNo(row.workOrderCode,row.seqNo).then(({ data }) => {
|
|
|
+ getMaterialDetailsByseqNo(row.workOrderCode, row.seqNo).then(({ data }) => {
|
|
|
productReviewInfo = Object.assign(productReviewInfo, data);
|
|
|
productReviewInfo.workOrderCode = row.workOrderCode;
|
|
|
// productReviewInfo.outNum =
|