采购验收附件上传
This commit is contained in:
parent
d45660f128
commit
2778d82a8a
|
|
@ -282,7 +282,7 @@ export default {
|
|||
contractTitle:undefined,
|
||||
contractType:undefined,
|
||||
areaId:undefined,
|
||||
contractAttachmentList:[],
|
||||
inspectAttachmentList:[],
|
||||
},
|
||||
// 表单校验
|
||||
baseRules: {
|
||||
|
|
@ -319,7 +319,7 @@ export default {
|
|||
inspector: [
|
||||
{ required: true, message: "验货人不能为空", trigger: "blur" }
|
||||
],
|
||||
contractAttachmentList: [
|
||||
inspectAttachmentList: [
|
||||
{ required: true, message: "合同附件不能为空", trigger: "change" }
|
||||
],
|
||||
},
|
||||
|
|
@ -401,8 +401,8 @@ export default {
|
|||
this.materialList.forEach(item=>{
|
||||
this.$set(item,"unitPrice",Number(item.unitPrice)/100)
|
||||
})
|
||||
if(this.baseInfo.contractAttachmentList.length>0){
|
||||
this.baseInfo.contractAttachmentList.forEach(item=>{
|
||||
if(this.baseInfo.inspectAttachmentList.length>0){
|
||||
this.baseInfo.inspectAttachmentList.forEach(item=>{
|
||||
this.attachmentList.push({name:item,url:item})
|
||||
})
|
||||
}
|
||||
|
|
@ -554,10 +554,10 @@ export default {
|
|||
param.inspectQualifiedNum = 0;//验货合格总数量
|
||||
param.status=1
|
||||
param.inspectGoodsDetails = []
|
||||
param.inspectAttachmentList = ""
|
||||
param.inspectAttachment = ""
|
||||
if(this.attachmentList.length>0){
|
||||
let arr = this.attachmentList.map(item=>item.url)
|
||||
param.inspectAttachmentList = arr.join(',')
|
||||
param.inspectAttachment = arr.join(',')
|
||||
console.log(param)
|
||||
}
|
||||
this.noMaterial = false;
|
||||
|
|
@ -620,10 +620,10 @@ export default {
|
|||
param.inspectQualifiedNum = 0;//验货合格总数量
|
||||
param.status=2
|
||||
param.inspectGoodsDetails = []
|
||||
param.inspectAttachmentList = ""
|
||||
param.inspectAttachment = ""
|
||||
if(this.attachmentList.length>0){
|
||||
let arr = this.attachmentList.map(item=>item.url)
|
||||
param.inspectAttachmentList = arr.join(',')
|
||||
param.inspectAttachment = arr.join(',')
|
||||
console.log(param)
|
||||
}
|
||||
this.noMaterial = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue