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