|
@@ -44,7 +44,7 @@
|
|
}}</el-descriptions-item>
|
|
}}</el-descriptions-item>
|
|
<el-descriptions-item label="铭牌号">-</el-descriptions-item>
|
|
<el-descriptions-item label="铭牌号">-</el-descriptions-item>
|
|
<el-descriptions-item label="是否返工">
|
|
<el-descriptions-item label="是否返工">
|
|
- <el-tag size="small">否</el-tag>
|
|
|
|
|
|
+ <el-tag size="small">{{productReviewInfo.rework}}</el-tag>
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
<el-descriptions-item label="工单出站">{{
|
|
<el-descriptions-item label="工单出站">{{
|
|
productReviewInfo.outNum
|
|
productReviewInfo.outNum
|
|
@@ -52,6 +52,7 @@
|
|
<el-descriptions-item label="交付日期">{{
|
|
<el-descriptions-item label="交付日期">{{
|
|
productReviewInfo.planStartEnd
|
|
productReviewInfo.planStartEnd
|
|
}}</el-descriptions-item>
|
|
}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="工单报故"><el-tag size="small">{{productReviewInfo.bug}}</el-tag></el-descriptions-item>
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
</el-header>
|
|
</el-header>
|
|
<el-main>
|
|
<el-main>
|
|
@@ -247,6 +248,8 @@ let productReviewInfo = reactive({
|
|
planStartEnd: "",
|
|
planStartEnd: "",
|
|
workOrderCode: "",
|
|
workOrderCode: "",
|
|
outNum: "",
|
|
outNum: "",
|
|
|
|
+ rework: '-',
|
|
|
|
+ bug: '-'
|
|
});
|
|
});
|
|
|
|
|
|
let tabCount = reactive({
|
|
let tabCount = reactive({
|
|
@@ -261,12 +264,20 @@ let tabCount = reactive({
|
|
});
|
|
});
|
|
|
|
|
|
const handleCellClick = (row, column, event) => {
|
|
const handleCellClick = (row, column, event) => {
|
|
|
|
+ if(row.level === 'order'){
|
|
|
|
+ productReviewInfo.bug = '-'
|
|
|
|
+ }
|
|
|
|
+ if(row.orderType){
|
|
|
|
+ productReviewInfo.rework = row.orderType === '2' ? '是' : '否'
|
|
|
|
+ }
|
|
//获取出单的数量
|
|
//获取出单的数量
|
|
if (data.value) {
|
|
if (data.value) {
|
|
for (let topTree of data.value) {
|
|
for (let topTree of data.value) {
|
|
if (topTree) {
|
|
if (topTree) {
|
|
for (let secondTree of topTree.children) {
|
|
for (let secondTree of topTree.children) {
|
|
if (row.workOrderCode == secondTree.workOrderCode) {
|
|
if (row.workOrderCode == secondTree.workOrderCode) {
|
|
|
|
+ productReviewInfo.rework = topTree.orderType === '2' ? '是' : '否'
|
|
|
|
+ productReviewInfo.bug = secondTree.bugNum === 0 ? '否' : '是'
|
|
productReviewInfo.outNum = secondTree.children.length;
|
|
productReviewInfo.outNum = secondTree.children.length;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -282,7 +293,7 @@ const handleCellClick = (row, column, event) => {
|
|
tabNameComRef.get(defaultTabName.value)?.value.refreshTra(temRow.value);
|
|
tabNameComRef.get(defaultTabName.value)?.value.refreshTra(temRow.value);
|
|
}
|
|
}
|
|
//每次点击都要获取tab页面的数量
|
|
//每次点击都要获取tab页面的数量
|
|
- traceabilityTabCount({ seqNo: row.seqNo }).then(({ data }) => {
|
|
|
|
|
|
+ traceabilityTabCount({ seqNo: row.seqNo,workOrderCode: row.workOrderCode }).then(({ data }) => {
|
|
tabCount = Object.assign(tabCount, data);
|
|
tabCount = Object.assign(tabCount, data);
|
|
});
|
|
});
|
|
if (row.workOrderCode == productReviewInfo.workOrderCode) {
|
|
if (row.workOrderCode == productReviewInfo.workOrderCode) {
|
|
@@ -290,7 +301,7 @@ const handleCellClick = (row, column, event) => {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//产品信息
|
|
//产品信息
|
|
- getMaterialDetailsByseqNo(row.seqNo).then(({ data }) => {
|
|
|
|
|
|
+ getMaterialDetailsByseqNo(row.workOrderCode,row.seqNo).then(({ data }) => {
|
|
productReviewInfo = Object.assign(productReviewInfo, data);
|
|
productReviewInfo = Object.assign(productReviewInfo, data);
|
|
productReviewInfo.workOrderCode = row.workOrderCode;
|
|
productReviewInfo.workOrderCode = row.workOrderCode;
|
|
// productReviewInfo.outNum =
|
|
// productReviewInfo.outNum =
|