创建新物料报错
This commit is contained in:
@@ -44,6 +44,10 @@ export default {
|
|||||||
newResult: {
|
newResult: {
|
||||||
type: Array,
|
type: Array,
|
||||||
required: true
|
required: true
|
||||||
|
},
|
||||||
|
info: {
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -80,7 +84,8 @@ export default {
|
|||||||
if (this.uploadQualityCertificateForm.qualityCertificateType === 1) {
|
if (this.uploadQualityCertificateForm.qualityCertificateType === 1) {
|
||||||
// 什么都不需要做,直接完成就可以
|
// 什么都不需要做,直接完成就可以
|
||||||
console.log('使用旧的质保单');
|
console.log('使用旧的质保单');
|
||||||
} else if (this.uploadQualityCertificateForm.qualityCertificateType === 2) {
|
}
|
||||||
|
else if (this.uploadQualityCertificateForm.qualityCertificateType === 2) {
|
||||||
// 创建一个新的BOM
|
// 创建一个新的BOM
|
||||||
const bom = await addBom({
|
const bom = await addBom({
|
||||||
bomName: 'N' + new Date().getTime(),
|
bomName: 'N' + new Date().getTime(),
|
||||||
@@ -99,7 +104,7 @@ export default {
|
|||||||
attrValue: this.newResult[i].attrValue,
|
attrValue: this.newResult[i].attrValue,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log('使用新的质保单');
|
|
||||||
} else if (this.uploadQualityCertificateForm.qualityCertificateType === 3) {
|
} else if (this.uploadQualityCertificateForm.qualityCertificateType === 3) {
|
||||||
console.log('创建新物料');
|
console.log('创建新物料');
|
||||||
// 创建一个新的BOM
|
// 创建一个新的BOM
|
||||||
|
|||||||
@@ -23,9 +23,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div style="height: 300px; border: 1px solid #ccc; border-radius: 10px; padding: 20px; cursor: pointer;" @click="handleModel">
|
<div style="height: 300px; border: 1px solid #ccc; border-radius: 10px; padding: 20px; cursor: pointer; display: flex; justify-content: center; align-items: center;" @click="handleModel">
|
||||||
大模型识别
|
<img :src="modelImage" alt="model" style="height: 100%;" />
|
||||||
<img :src="modelImage" alt="model" style="width: 100%; height: 100%;" />
|
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -33,7 +32,7 @@
|
|||||||
|
|
||||||
<div v-if="active === 2">
|
<div v-if="active === 2">
|
||||||
<div v-if="resultDiff">
|
<div v-if="resultDiff">
|
||||||
<merger :old-result="oldResult" :new-result="newResult" @confirm="handleMergerConfirm" />
|
<merger :info="info" :old-result="oldResult" :new-result="newResult" @confirm="handleMergerConfirm" />
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<el-row>
|
<el-row>
|
||||||
@@ -131,7 +130,8 @@ const atoms = {
|
|||||||
export default {
|
export default {
|
||||||
name: 'QualityCerticate',
|
name: 'QualityCerticate',
|
||||||
components: {
|
components: {
|
||||||
FileUpload
|
FileUpload,
|
||||||
|
Merger
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
info: {
|
info: {
|
||||||
|
|||||||
Reference in New Issue
Block a user