sangwenwei 1 рік тому
батько
коміт
601d1bdf80

+ 12 - 0
src/views/common/InscriptionUpLoadComponent.vue

@@ -167,6 +167,17 @@
         if (this.commonJS.isEmpty(fileList)) {
           this.fileLoading = true
         } else {
+			fileList.forEach((item)=>{
+				let suffix = item.name.substring(item.name.lastIndexOf('.') + 1)
+				if (suffix === 'pdf' || suffix === 'doc' || suffix === 'docx' || suffix === 'xls' || suffix === 'xlsx') {
+
+				} else {
+					this.$message.error('只有“pdf、doc、docx、xls、xlsx”格式文件的类型可以上传')
+					this.dataListNew = []
+					this.dataList=[]
+					this.clearUpload()
+				}
+			})
           this.dataListLength = fileList.length
         }
         if (this.commonJS.isEmpty(dividerName)) {
@@ -273,6 +284,7 @@
 				  } else {
 					  this.$message.error('只有“pdf、doc、docx、xls、xlsx”格式文件的类型可以上传')
 					  this.dataListNew = []
+					  this.dataList = []
 					  return
 				  }
 		  })

+ 2 - 1
src/views/flowable/task/NoticePageList.vue

@@ -159,7 +159,8 @@
 		if (row.taskName === '月报还未提交'){
 			this.visible = true
 			this.inputForm.title = row.title
-
+			noticeService.updateMonthly(row.id)
+			this.resetSearch()
 		}else if (row.taskName === '库存提醒') {
           // console.log('测试进来了')
           this.$refs.wareHouseHistoryPopup.init(row.defId)

+ 1 - 1
src/views/jy/reimbursement/PaymentByUserIdForm.vue

@@ -96,7 +96,7 @@
 		},
 		methods: {
 			init (deputy) {
-				this.title = '款信息选择'
+				this.title = '款信息选择'
 				this.visibleChoose = true
 				this.list()
 			},