diff --git a/src/views/modules/qc/qc_upload.vue b/src/views/modules/qc/qc_upload.vue index 32f01a4..75c9213 100644 --- a/src/views/modules/qc/qc_upload.vue +++ b/src/views/modules/qc/qc_upload.vue @@ -3,6 +3,16 @@ 下载文件模板 + + + + + + { + if (data.code === 0) { + this.userBuList = data.rows + } + }) + }, //初始化组件的参数 init(currentRow) { // 获得类别 @@ -75,6 +102,10 @@ export default { }, /*保修当前的数据*/ saveUploadFile(){ + if (this.bu==''||this.bu == null){ + this.$message.warning("请选择BU!"); + return false; + } /*判断文件是否上传*/ if(null == this.fileList || 0 == this.fileList.length){ this.$message.error("请先上传文件!"); @@ -97,6 +128,7 @@ export default { } }) } else if (this.pageData.flag === 'template'){ + formData.set('site',this.bu) uploadTemplateExcel(formData).then(({data}) => { if (data.code === 0) { this.$message.success(data.msg); @@ -133,6 +165,7 @@ export default { } }) } + this.bu = ''; }, // 下载 async downloadFile(){