|
@@ -28,7 +28,7 @@
|
|
|
<el-table :data="subfileList" border>
|
|
<el-table :data="subfileList" border>
|
|
|
<el-table-column label="操作" width="150" align="center" fixed>
|
|
<el-table-column label="操作" width="150" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="primary" plain size="mini" title="编辑" @click="openDialog(scope.row)" :disabled="!canadd">编辑
|
|
|
|
|
|
|
+ <el-button type="primary" plain size="mini" title="上传" @click="openDialog(scope.row)" :disabled="!canadd">上传
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
|
|
<el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
|
|
|
:disabled="scope.row.FileType == '1' || !canadd" @click="deletedata(scope.row)">删除</el-button>
|
|
:disabled="scope.row.FileType == '1' || !canadd" @click="deletedata(scope.row)">删除</el-button>
|
|
@@ -297,7 +297,7 @@
|
|
|
message: '请上传文件!'
|
|
message: '请上传文件!'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- } else if (this.Title == '编辑文件') {
|
|
|
|
|
|
|
+ } else if (this.Title == '上传文件') {
|
|
|
if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
// 上传附件是否完成判断
|
|
// 上传附件是否完成判断
|
|
|
if (!this.attachissuccess()) {
|
|
if (!this.attachissuccess()) {
|
|
@@ -307,7 +307,10 @@
|
|
|
this.getattachissuccess()
|
|
this.getattachissuccess()
|
|
|
this.editSubfile()
|
|
this.editSubfile()
|
|
|
} else {
|
|
} else {
|
|
|
- this.editSubfile()
|
|
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: '请上传文件!'
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -441,7 +444,7 @@
|
|
|
this.visible = true
|
|
this.visible = true
|
|
|
},
|
|
},
|
|
|
openDialog(val) {
|
|
openDialog(val) {
|
|
|
- this.Title = '编辑文件'
|
|
|
|
|
|
|
+ this.Title = '上传文件'
|
|
|
this.SubfileForm.Id = val.Id
|
|
this.SubfileForm.Id = val.Id
|
|
|
this.SubfileForm.SupplierId = val.SupplierId
|
|
this.SubfileForm.SupplierId = val.SupplierId
|
|
|
this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
|
|
this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
|