|
|
@@ -61,7 +61,7 @@
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="资质名称" prop="NeedFileType">
|
|
|
<!-- <el-input v-model="SubfileForm.NeedFileType" placeholder="请输文件类型"></el-input> -->
|
|
|
- <el-select style="width: 100%;" v-model="SubfileForm.NeedFileType" placeholder="请输文件类型" size="medium" filterable :disabled="IsMust">
|
|
|
+ <el-select style="width: 100%;" v-model="SubfileForm.NeedFileType" placeholder="请输文件类型" size="medium" filterable :disabled="IsMust" @change="changeFile">
|
|
|
<el-option v-for="item in dynamicTableColumns" :key="item.prop" :label="item.label" :value="item.label">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
@@ -69,7 +69,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="有效日期" prop="EffectDate">
|
|
|
- <el-date-picker style="width: 100%" v-model="SubfileForm.EffectDate" type="date" placeholder="请选择有效日期" @change="pickerchange">
|
|
|
+ <el-date-picker style="width: 100%" v-model="SubfileForm.EffectDate" type="date" :disabled="dateDisable" placeholder="请选择有效日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -251,6 +251,7 @@
|
|
|
FileExt: ''
|
|
|
},
|
|
|
visible: false,
|
|
|
+ dateDisable: false,
|
|
|
selfVisible: this.visible, // 避免vue双向绑定警告
|
|
|
|
|
|
waituploads: [], // 等待上传的附件列表
|
|
|
@@ -272,6 +273,28 @@
|
|
|
this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
},
|
|
|
methods: {
|
|
|
+ addDate () {
|
|
|
+ let date = new Date()
|
|
|
+ let year = date.getFullYear() + 50
|
|
|
+ let month = date.getMonth() + 1
|
|
|
+ let day = date.getDate()
|
|
|
+ if (month < 10) {
|
|
|
+ month = "0" + month
|
|
|
+ }
|
|
|
+ if (day < 10) {
|
|
|
+ day = "0" + day
|
|
|
+ }
|
|
|
+ return year + "-" + month + "-" + day
|
|
|
+ },
|
|
|
+ changeFile (fileName) {
|
|
|
+ if (fileName === "招标中标结果") {
|
|
|
+ this.SubfileForm.EffectDate = this.addDate() + "T08:00:00+08:00"
|
|
|
+ this.dateDisable = true
|
|
|
+ } else {
|
|
|
+ this.SubfileForm.EffectDate = ""
|
|
|
+ this.dateDisable = false
|
|
|
+ }
|
|
|
+ },
|
|
|
// 上传超过限制数
|
|
|
uploadExceed (files, fileList) {
|
|
|
if (fileList.length >= 5) {
|
|
|
@@ -303,9 +326,6 @@
|
|
|
this.dialogImageUrl = file.url
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
- pickerchange () {
|
|
|
- console.log(this.SubfileForm.EffectDate)
|
|
|
- },
|
|
|
getSupplierSceneFile () {
|
|
|
let params = {
|
|
|
SupplierId: this.SupplierId
|
|
|
@@ -560,6 +580,11 @@
|
|
|
},
|
|
|
openDialog (val) {
|
|
|
this.IsMust = true
|
|
|
+ if (val.NeedFileType === "招标中标结果") {
|
|
|
+ this.dateDisable = true
|
|
|
+ } else {
|
|
|
+ this.dateDisable = false
|
|
|
+ }
|
|
|
this.Title = '上传文件'
|
|
|
this.SubfileForm.Id = val.Id
|
|
|
this.SubfileForm.SupplierId = val.SupplierId
|