|
@@ -269,7 +269,7 @@
|
|
|
filterable
|
|
filterable
|
|
|
v-model="row.extInfo.appearance"
|
|
v-model="row.extInfo.appearance"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
- style="width: 240px"
|
|
|
|
|
|
|
+ style="width: 160px"
|
|
|
:disabled="isDetails"
|
|
:disabled="isDetails"
|
|
|
@change="qualityChange"
|
|
@change="qualityChange"
|
|
|
>
|
|
>
|
|
@@ -287,19 +287,62 @@
|
|
|
</span>
|
|
</span>
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="row.extInfo.reportWeight"
|
|
v-model="row.extInfo.reportWeight"
|
|
|
- style="width: 240px"
|
|
|
|
|
|
|
+ style="width: 160px"
|
|
|
|
|
+ @input="qualityChange"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
|
|
|
|
|
<span style="display: inline-block; margin-left: 26px">
|
|
<span style="display: inline-block; margin-left: 26px">
|
|
|
- 处置:
|
|
|
|
|
|
|
+ 不合格处置:
|
|
|
</span>
|
|
</span>
|
|
|
<el-select
|
|
<el-select
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ class="content_num"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ v-model="row.extInfo.notType"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ style="width: 160px"
|
|
|
|
|
+ :disabled="isDetails || row.extInfo.appearance != 2"
|
|
|
|
|
+ @change="qualityChange"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in notTypeList"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.code"
|
|
|
|
|
+ :key="item.code"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+
|
|
|
|
|
+ <span style="display: inline-block; margin-left: 26px">
|
|
|
|
|
+ 处置/原因:
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ row.extInfo.appearance != 1 &&
|
|
|
|
|
+ row.extInfo.notType &&
|
|
|
|
|
+ row.extInfo.notType != 5 &&
|
|
|
|
|
+ row.extInfo.notType != 8
|
|
|
|
|
+ "
|
|
|
|
|
+ >
|
|
|
|
|
+ <span v-if="isDetails">{{ row.extInfo.notReason }}</span>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-else
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ class="content_num"
|
|
|
|
|
+ v-model="row.extInfo.notReason"
|
|
|
|
|
+ placeholder="原因"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ ![1, 2, 3, 4, 6, 9, 7].includes(Number(row.extInfo.notType))
|
|
|
|
|
+ "
|
|
|
size="mini"
|
|
size="mini"
|
|
|
class="content_num"
|
|
class="content_num"
|
|
|
filterable
|
|
filterable
|
|
|
v-model="row.extInfo.taskId"
|
|
v-model="row.extInfo.taskId"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
- style="width: 240px"
|
|
|
|
|
|
|
+ style="width: 160px"
|
|
|
@change="(e) => selectName2(e, $index)"
|
|
@change="(e) => selectName2(e, $index)"
|
|
|
:disabled="isDetails"
|
|
:disabled="isDetails"
|
|
|
>
|
|
>
|
|
@@ -491,6 +534,44 @@
|
|
|
name: '让步接收',
|
|
name: '让步接收',
|
|
|
value: 3
|
|
value: 3
|
|
|
}
|
|
}
|
|
|
|
|
+ ],
|
|
|
|
|
+ notTypeList: [
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 1,
|
|
|
|
|
+ name: '返工'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 2,
|
|
|
|
|
+ name: '返修'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 3,
|
|
|
|
|
+ name: '报废'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 4,
|
|
|
|
|
+ name: '降级使用'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 5,
|
|
|
|
|
+ name: '让步接收'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 6,
|
|
|
|
|
+ name: '留样'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 7,
|
|
|
|
|
+ name: '消耗'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 8,
|
|
|
|
|
+ name: '回用'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ code: 9,
|
|
|
|
|
+ name: '转试销'
|
|
|
|
|
+ }
|
|
|
]
|
|
]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -516,26 +597,48 @@
|
|
|
if (this.item.sampleQuality && this.item.sampleQuality.length != 0) {
|
|
if (this.item.sampleQuality && this.item.sampleQuality.length != 0) {
|
|
|
let formedNum = 0;
|
|
let formedNum = 0;
|
|
|
let notFormedNum = 0;
|
|
let notFormedNum = 0;
|
|
|
|
|
+ let formedWeightCount = 0;
|
|
|
|
|
+ let notFormedWeightCount = 0;
|
|
|
this.item.sampleQuality.forEach((item) => {
|
|
this.item.sampleQuality.forEach((item) => {
|
|
|
if (item.extInfo.batchReportInfo.length == 0) {
|
|
if (item.extInfo.batchReportInfo.length == 0) {
|
|
|
const data = item.extInfo;
|
|
const data = item.extInfo;
|
|
|
- if (data.appearance == 1 || data.appearance == 3) {
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ data.appearance == 1 ||
|
|
|
|
|
+ data.appearance == 3 ||
|
|
|
|
|
+ !data.appearance
|
|
|
|
|
+ ) {
|
|
|
formedNum++;
|
|
formedNum++;
|
|
|
|
|
+ formedWeightCount += Number(data.reportWeight);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (data.appearance == 2) {
|
|
if (data.appearance == 2) {
|
|
|
notFormedNum++;
|
|
notFormedNum++;
|
|
|
|
|
+ notFormedWeightCount += Number(data.reportWeight);
|
|
|
}
|
|
}
|
|
|
} else if (item.extInfo.batchReportInfo.length != 0) {
|
|
} else if (item.extInfo.batchReportInfo.length != 0) {
|
|
|
const data = item.extInfo.batchReportInfo;
|
|
const data = item.extInfo.batchReportInfo;
|
|
|
data.forEach((it) => {
|
|
data.forEach((it) => {
|
|
|
formedNum += Number(it.allFeedQuantity);
|
|
formedNum += Number(it.allFeedQuantity);
|
|
|
|
|
+ formedWeightCount += Number(it.allReportWeight);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ console.log(formedWeightCount, '合格品重量');
|
|
|
|
|
+ console.log(notFormedWeightCount, '不合格品重量');
|
|
|
|
|
+
|
|
|
this.$set(this.item.workReportInfo, 'formedNum', formedNum);
|
|
this.$set(this.item.workReportInfo, 'formedNum', formedNum);
|
|
|
this.$set(this.item.workReportInfo, 'notFormedNum', notFormedNum);
|
|
this.$set(this.item.workReportInfo, 'notFormedNum', notFormedNum);
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.item.workReportInfo,
|
|
|
|
|
+ 'formedWeight',
|
|
|
|
|
+ formedWeightCount
|
|
|
|
|
+ );
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.item.workReportInfo,
|
|
|
|
|
+ 'notFormedWeight',
|
|
|
|
|
+ notFormedWeightCount
|
|
|
|
|
+ );
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|