浏览代码

物资类、基建类获取必传文件列表

shihang 6 年之前
父节点
当前提交
58105c4fad

+ 1 - 1
src/dashoo.cn/backend/api/business/oilsupplier/supplierfile/supplierfileService.go

@@ -175,7 +175,7 @@ func (s *SupplierfileService) GetGoodsNeedFileList(classid int) (needList []File
 
 func (s *SupplierfileService) GetBasicNeedFileList(classid int) (needList []FileList) {
 	var entity basisbuild.OilBasisBuild
-	sql := "select * from OilBasisBuild where ClassId = '" + strconv.Itoa(classid) + "'"
+	sql := "select * from OilBasisBuild where Id = '" + strconv.Itoa(classid) + "'"
 	s.DBE.Sql(sql).Get(&entity)
 	if entity.F01 == "1" {
 		needList = append(needList, FileList{FileName: "营业执照"})

+ 5 - 6
src/dashoo.cn/frontend_web/src/components/oilsupplier/businesslist.vue

@@ -294,7 +294,6 @@
           .then(() => {
             _this.$axios.delete('suppliercertsub/businessdelete/' + val.Id, {})
               .then(function (response) {
-                // response
                 if (response.data.code === 0) {
                   _this.$message({
                     type: "success",
@@ -315,13 +314,15 @@
           .catch(() => {});
       },
       showDialog() {
+        this.OneCode = ''
+        this.selectedorg = []
+        this.keyword = ''
+        this.seachdata()
         this.Title = '新增准入范围'
         this.BusinessForm.Id = ''
         this.BusinessForm.SupplierId = this.SupplierId
         this.BusinessForm.SupplierCertId = this.SupplierCertId
         this.BusinessForm.SupplierTypeCode = this.SupplierTypeCode
-        this.OneCode = ''
-        this.selectedorg = []
         this.BusinessForm.SubClassId = ''
         this.BusinessForm.Code = ''
         this.BusinessForm.Name = ''
@@ -375,7 +376,6 @@
               _this.CurrentItemCount = res.data.currentItemCount
             })
             .catch(err => {
-              // handle error
               console.error(err)
             })
         } else if (_this.SupplierTypeCode == '03') { //获取技术服务类业务列表
@@ -385,7 +385,6 @@
               _this.techTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
             })
             .catch(err => {
-              // handle error
               console.error(err)
             })
         }
@@ -416,7 +415,6 @@
             }
           })
           .catch(err => {
-            // handle error
             console.error(err)
           })
       },
@@ -432,6 +430,7 @@
       },
       getChooseCode(val) {
         this.ClassId = val.Id
+        this.BusinessForm.SubClassId = val.Id
         this.BusinessForm.Code = val.Code
         this.BusinessForm.Name = val.Name
         this.basicDialog = false

+ 3 - 3
src/dashoo.cn/frontend_web/src/components/oilsupplier/subfilelist.vue

@@ -9,7 +9,7 @@
             :disabled="scope.row.FileType == '1' || !canadd" @click="deletedata(scope.row)">删除</el-button>
         </template>
       </el-table-column>
-      <!-- <el-table-column prop="NeedFileType" label="资质名称" show-overflow-tooltip></el-table-column> -->
+      <el-table-column prop="NeedFileType" label="资质名称" show-overflow-tooltip></el-table-column>
       <!--<el-table-column prop="NeedFileCode" label="分类编码" show-overflow-tooltip></el-table-column>-->
       <el-table-column prop="FileName" label="资质文件" show-overflow-tooltip></el-table-column>
       <el-table-column prop="EffectDate" label="有效日期" show-overflow-tooltip>
@@ -34,7 +34,7 @@
             </el-form-item>
           </el-col> -->
           <el-col :span="12">
-            <el-form-item label="资质文件" required>
+            <el-form-item label="资质名称" required>
               <el-input v-model="SubfileForm.NeedFileType" placeholder="请输文件类型"></el-input>
             </el-form-item>
           </el-col>
@@ -55,7 +55,7 @@
             </el-form-item>
           </el-col>
           <el-col :span="12">
-            <el-form-item label="文档上传">
+            <el-form-item label="资质文件">
               <el-upload style="margin-top: 10px;" multiple action="" :limit="1" ref="refuploadattach"
                 :http-request="uploadrequest" class="attach-uploader" :show-file-list="true"
                 :before-upload="beforeAvatarUpload">