|
@@ -15,35 +15,6 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="原材料材质报告" prop="attachTextureList">
|
|
|
- <upload-component
|
|
|
- :display="false"
|
|
|
- v-model="dataForm.attachTextureList"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="原厂合格证" prop="attachCertificateList">
|
|
|
- <upload-component
|
|
|
- :display="false"
|
|
|
- :accept="'*'"
|
|
|
- v-model="dataForm.attachCertificateList"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="复验报告" prop="attachReviewList">
|
|
|
- <upload-component
|
|
|
- :display="false"
|
|
|
- :accept="'*'"
|
|
|
- v-model="dataForm.attachReviewList"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
-
|
|
|
<template v-for="(item, index) in dataList">
|
|
|
<div :key="index" class="my-line">
|
|
|
<el-row class="my-row">
|
|
@@ -143,6 +114,34 @@
|
|
|
<el-input type="textarea" v-model="item.notes" :disabled="display"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="原材料材质报告" prop="attachTextureList">
|
|
|
+ <upload-component
|
|
|
+ :display="false"
|
|
|
+ v-model.lazy="item.attachTextureList"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="原厂合格证" prop="attachCertificateList">
|
|
|
+ <upload-component
|
|
|
+ :display="false"
|
|
|
+ :accept="'*'"
|
|
|
+ v-model.lazy="item.attachCertificateList"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="复验报告" prop="attachReviewList">
|
|
|
+ <upload-component
|
|
|
+ :display="false"
|
|
|
+ :accept="'*'"
|
|
|
+ v-model.lazy="item.attachReviewList"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -259,9 +258,6 @@
|
|
|
this.dataList.forEach((item) => {
|
|
|
postData.push({...item,
|
|
|
applicant: this.dataForm.applicant,
|
|
|
- attachCertificateList: this.dataForm.attachCertificateList,
|
|
|
- attachReviewList: this.dataForm.attachReviewList,
|
|
|
- attachTextureList: this.dataForm.attachTextureList,
|
|
|
materialName: item.materialName ? item.materialName : item.materialId,
|
|
|
materialTypeId: item.materialTypeId ? item.materialTypeId : item.cateId,
|
|
|
orgId: this.$store.state.user.orgId,
|
|
@@ -270,6 +266,7 @@
|
|
|
userId: this.$store.state.user.id
|
|
|
})
|
|
|
});
|
|
|
+ // 调用后端接口
|
|
|
(!this.id ? inboundBatch(postData) : updateBatch(postData)).then(({data}) => {
|
|
|
if (data && data.code === '200') {
|
|
|
this.$message({
|