|
@@ -11,9 +11,9 @@
|
|
|
|
|
|
|
|
<quality-content-tabs ref="tabsRef" :type="type" :ids="this.$route.query.id" :sample-list="sampleList"
|
|
<quality-content-tabs ref="tabsRef" :type="type" :ids="this.$route.query.id" :sample-list="sampleList"
|
|
|
:scheme-list="schemeList" :loading="loading" :form="form" @selection-change="handleSelectionChange1"
|
|
:scheme-list="schemeList" :loading="loading" :form="form" @selection-change="handleSelectionChange1"
|
|
|
- @batch-quality="batchQuality" @handleDetail="handleDetail" @inputWeight="inputWeight"
|
|
|
|
|
- @handleDispose="handleDispose" @changeSamUnit="changeSamUnit" @handleSample1="handleSample1"
|
|
|
|
|
- @handleSampleSubmit="handleSampleSubmit" />
|
|
|
|
|
|
|
+ @batch-quality="batchQuality" @batch-dispose="batchDispose" @handleDetail="handleDetail"
|
|
|
|
|
+ @inputWeight="inputWeight" @handleDispose="handleDispose" @changeSamUnit="changeSamUnit"
|
|
|
|
|
+ @handleSample1="handleSample1" @handleSampleSubmit="handleSampleSubmit" />
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
|
|
<sampleListDialog ref="detailRef" @handleConfirm="handleConfirm" @handleDispose="handleDispose"></sampleListDialog>
|
|
<sampleListDialog ref="detailRef" @handleConfirm="handleConfirm" @handleDispose="handleDispose"></sampleListDialog>
|
|
@@ -583,12 +583,25 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 处理确认事件
|
|
// 处理确认事件
|
|
|
- handleDisposeConfirm(row, index) {
|
|
|
|
|
- if (index > -1) {
|
|
|
|
|
- this.$set(this.sampleList, index, row)
|
|
|
|
|
|
|
+ handleDisposeConfirm(data, index) {
|
|
|
|
|
+ console.log(data, index, '确认处置事件')
|
|
|
|
|
+
|
|
|
|
|
+ if (index != null) {
|
|
|
|
|
+ this.$set(this.sampleList, index, data)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.sampleList.forEach(obj => {
|
|
|
|
|
+ obj.disposalStatus = data.disposalStatus;
|
|
|
|
|
+ obj.sampleDate = data.sampleDate;
|
|
|
|
|
+ obj.disposeTime = data.disposeTime;
|
|
|
|
|
+ obj.sampleCondition = data.sampleCondition;
|
|
|
|
|
+ obj.producerManufacturer = data.producerManufacturer;
|
|
|
|
|
+ obj.samplePlace = data.samplePlace;
|
|
|
|
|
+ obj.sampleRemark = data.sampleRemark;
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- //确认报工
|
|
|
|
|
|
|
+ //确认质检
|
|
|
handleConfirm(list, index) {
|
|
handleConfirm(list, index) {
|
|
|
console.log(list)
|
|
console.log(list)
|
|
|
|
|
|
|
@@ -626,7 +639,11 @@ export default {
|
|
|
// 批量质检
|
|
// 批量质检
|
|
|
batchQuality(index, row, type) {
|
|
batchQuality(index, row, type) {
|
|
|
this.$refs.detailRef.openDia(null, null, 'report', this.sampleList, null)
|
|
this.$refs.detailRef.openDia(null, null, 'report', this.sampleList, null)
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ // 批量处置
|
|
|
|
|
+ batchDispose() {
|
|
|
|
|
+ this.$refs.disposeRef.openDispose(null, null, 'dispose', this.qualityType);
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|