Browse Source

企业资质 准入范围同步

shihang 6 năm trước cách đây
mục cha
commit
aa4f2b1e72

+ 1 - 1
src/dashoo.cn/backend/api/controllers/base.go

@@ -313,7 +313,7 @@ func (this *BaseController) Prepare() {
 		this.User.Description = usermodel.Description
 		this.User.DepartmentId = usermodel.Departmentid
 		this.User.IsCompanyUser = usermodel.IsCompanyUser
-		this.User.Superior = usermodel.Superior
+		//		this.User.Superior = usermodel.Superior
 		this.User.Roles = utils.ToStr(usermodel.Roleid)
 		beego.Debug("User:", this.User)
 	}

+ 14 - 14
src/dashoo.cn/backend/api/controllers/oilsupplier/goodsaptitude.go

@@ -345,17 +345,17 @@ func (this *OilGoodsAptitudeController) GoodsParentList() {
 // @Description get SampleType by token
 // @Success 200 {object} sampletype.SampleType
 // @router /goodschildlist [get]
-func (this *OilGoodsAptitudeController) GoodsChildList() {
-	ParentId := this.GetString("ParentId")
-	svc := goodsaptitude.GetOilGoodsAptitudeService(utils.DBE)
-	where := " 1 = 1 "
-	if ParentId != "" {
-		where = where + " and ParentId = '" + ParentId + "'"
-	}
-	var list []goodsaptitude.GoodsBusiness
-	svc.GetEntitysByWhere(OilGoodsAptitudeClassName, where, &list)
-	var datainfo DataInfo
-	datainfo.Items = list
-	this.Data["json"] = &datainfo
-	this.ServeJSON()
-}
+//func (this *OilGoodsAptitudeController) GoodsChildList() {
+//	ParentId := this.GetString("ParentId")
+//	svc := goodsaptitude.GetOilGoodsAptitudeService(utils.DBE)
+//	where := " 1 = 1 "
+//	if ParentId != "" {
+//		where = where + " and ParentId = '" + ParentId + "'"
+//	}
+//	var list []goodsaptitude.GoodsBusiness
+//	svc.GetEntitysByWhere(OilGoodsAptitudeClassName, where, &list)
+//	var datainfo DataInfo
+//	datainfo.Items = list
+//	this.Data["json"] = &datainfo
+//	this.ServeJSON()
+//}

+ 0 - 39
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertsub.go

@@ -376,45 +376,6 @@ func (this *OilSupplierCertSubController) AddBusiness() {
 	}
 }
 
-// @Title 更新准入范围
-// @Description 更新准入范围
-// @Param	id	path	string	true
-// @Success	200	{object}
-// @router /editbusiness/:id [put]
-func (this *OilSupplierCertSubController) EditBusiness() {
-	id := this.Ctx.Input.Param(":id")
-	var errinfo ErrorInfo
-	if id == "" {
-		errinfo.Message = "操作失败!请求信息不完整"
-		errinfo.Code = -2
-		this.Data["json"] = &errinfo
-		this.ServeJSON()
-		return
-	}
-	var model suppliercertsub.OilSupplierCertSub
-	var jsonblob = this.Ctx.Input.RequestBody
-	json.Unmarshal(jsonblob, &model)
-	var entity suppliercertsub.OilSupplierCertSub
-	model.ModifiedBy = this.User.Realname
-	model.ModifiedUserId, _ = utils.StrTo(this.User.Id).Int()
-	svc := suppliercertsub.GetOilSupplierCertSubService(utils.DBE)
-	opdesc := "编辑准入范围-" + model.Name
-	var cols []string = []string{"SubClassId", "Name", "Code", "Remark", "IsDelete", "ModifiedBy", "ModifiedUserId"}
-	err := svc.UpdateOperationAndWriteLogBytbl(OilSupplierCertSubName, BaseOperationLogName, id, &model, &entity, cols, utils.ToStr(this.User.Id), this.User.Username, opdesc, this.User.AccCode, "准入范围")
-
-	if err == nil {
-		errinfo.Message = "操作成功!"
-		errinfo.Code = 0
-		this.Data["json"] = &errinfo
-		this.ServeJSON()
-	} else {
-		errinfo.Message = "操作失败!" + utils.AlertProcess(err.Error())
-		errinfo.Code = -1
-		this.Data["json"] = &errinfo
-		this.ServeJSON()
-	}
-}
-
 // @Title 删除准入范围
 // @Description
 // @Success 200 {object} ErrorInfo

+ 42 - 43
src/dashoo.cn/frontend_web/src/components/oilsupplier/businesslist.vue

@@ -9,10 +9,10 @@
         </span>
       </div>
       <el-table :data="businessList" border style="height: calc(100vh - 435px);">
-        <el-table-column label="操作" width="150" align="center" fixed>
+        <el-table-column label="操作" width="90" align="center" fixed>
           <template slot-scope="scope">
-            <el-button type="primary" plain size="mini" title="编辑" @click="openDialog(scope.row)" :disabled="!canadd">编辑
-            </el-button>
+            <!-- <el-button type="primary" plain size="mini" title="编辑" @click="openDialog(scope.row)" :disabled="!canadd">编辑
+            </el-button> -->
             <el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
               @click="deletedata(scope.row)" :disabled="!canadd">删除</el-button>
           </template>
@@ -191,7 +191,6 @@
         CurrentPage: 1, // 分页
         Size: 10,
         CurrentItemCount: 0,
-        subfileList: [], // 文档
         flagId: 0 //标记是否第一次点击
       }
     },
@@ -332,31 +331,31 @@
             })
         }
       },
-      editBusiness() {
-        let _this = this
-        _this.BusinessForm.SupplierId = parseInt(_this.BusinessForm.SupplierId)
-        _this.BusinessForm.SupplierCertId = parseInt(_this.BusinessForm.SupplierCertId)
-        _this.BusinessForm.SubClassId = parseInt(_this.BusinessForm.SubClassId)
-        _this.$axios.put('/suppliercertsub/editbusiness/' + _this.BusinessForm.Id, _this.BusinessForm)
-          .then(res => {
-            if (res.data.code === 0) {
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              this.visible = false
-              this.initData()
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
+      // editBusiness() {
+      //   let _this = this
+      //   _this.BusinessForm.SupplierId = parseInt(_this.BusinessForm.SupplierId)
+      //   _this.BusinessForm.SupplierCertId = parseInt(_this.BusinessForm.SupplierCertId)
+      //   _this.BusinessForm.SubClassId = parseInt(_this.BusinessForm.SubClassId)
+      //   _this.$axios.put('/suppliercertsub/editbusiness/' + _this.BusinessForm.Id, _this.BusinessForm)
+      //     .then(res => {
+      //       if (res.data.code === 0) {
+      //         _this.$message({
+      //           type: 'success',
+      //           message: res.data.message
+      //         })
+      //         this.visible = false
+      //         this.initData()
+      //       } else {
+      //         _this.$message({
+      //           type: 'warning',
+      //           message: res.data.message
+      //         })
+      //       }
+      //     })
+      //     .catch(err => {
+      //       console.error(err)
+      //     })
+      // },
       deletedata(val) {
         let _this = this
         _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
@@ -404,20 +403,20 @@
         this.getbusiness()
         this.visible = true
       },
-      openDialog(val) {
-        this.Title = '编辑准入范围'
-        this.BusinessForm.Id = val.Id
-        this.BusinessForm.SupplierId = val.SupplierId
-        this.BusinessForm.SupplierCertId = val.SupplierCertId
-        this.BusinessForm.SupplierTypeCode = val.SupplierTypeCode
-        this.BusinessForm.SubClassId = val.SubClassId
-        this.BusinessForm.Code = val.Code
-        this.BusinessForm.Name = val.Name
-        this.BusinessForm.Remark = val.Remark
-        this.BusinessForm.IsDelete = val.IsDelete
-        this.getbusiness()
-        this.visible = true
-      },
+      // openDialog(val) {
+      //   this.Title = '编辑准入范围'
+      //   this.BusinessForm.Id = val.Id
+      //   this.BusinessForm.SupplierId = val.SupplierId
+      //   this.BusinessForm.SupplierCertId = val.SupplierCertId
+      //   this.BusinessForm.SupplierTypeCode = val.SupplierTypeCode
+      //   this.BusinessForm.SubClassId = val.SubClassId
+      //   this.BusinessForm.Code = val.Code
+      //   this.BusinessForm.Name = val.Name
+      //   this.BusinessForm.Remark = val.Remark
+      //   this.BusinessForm.IsDelete = val.IsDelete
+      //   this.getbusiness()
+      //   this.visible = true
+      // },
       getbusiness() {
         let _this = this
         if (_this.SupplierTypeCode === '01') { // 获取物资类第一级分类

+ 42 - 41
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -12,11 +12,12 @@
         </span>
         <span style="float: right;">
           <router-link :to="'/oilsupplier/annualaudit'">
-          <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">年审申请</el-button>
-           </router-link>
+            <el-button type="primary" plain size="mini" style="margin-right:3px" :disabled="formDataCert.Status == 0">
+              年审申请</el-button>
+          </router-link>
           <!--v-if="formData.Step>=5"-->
           <router-link :to="'/oilsupplier/supplierappend/basislist'">
-          <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">增项申请</el-button>
+            <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">增项申请</el-button>
           </router-link>
           <router-link :to="'/oilsupplier/supplier/basislist'">
             <el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回
@@ -178,8 +179,8 @@
         </el-tab-pane>
 
         <el-tab-pane label="准入范围" :disabled="!certId">
-          <business-list ref="businessList" :data.sync="businessList" :canadd="add_flat" height="360px"
-            style="margin-top: 20px"></business-list>
+          <business-list ref="businessList" :data.sync="businessList" @getlist="getbuslist" :canadd="add_flat"
+            height="360px" style="margin-top: 20px"></business-list>
         </el-tab-pane>
         <el-tab-pane label="企业资质" :disabled="!certId">
           <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="add_flat" @close="selectAuditOrg"
@@ -210,20 +211,15 @@
           <el-col :span="24">
             <el-form-item label="二级单位">
               <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
-                           filterable style="width: 100%" @change="auditOrgChang" v-model="secOrganize"
-                           placeholder="请选择组织">
+                filterable style="width: 100%" @change="auditOrgChang" v-model="secOrganize" placeholder="请选择组织">
               </el-cascader>
             </el-form-item>
           </el-col>
           <el-col :span="24">
             <el-form-item label="审批人">
-              <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择"
-                         style="width: 90%" filterable allow-create default-first-option>
-                <el-option
-                  v-for="item in auditerOption"
-                  :key="item.userid"
-                  :label="item.username"
-                  :value="item.userid">
+              <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 90%" filterable
+                allow-create default-first-option>
+                <el-option v-for="item in auditerOption" :key="item.userid" :label="item.username" :value="item.userid">
                 </el-option>
               </el-select>
             </el-form-item>
@@ -278,7 +274,7 @@
     },
     name: 'oilsupplierEdit',
 
-    data () {
+    data() {
       return {
         showReturn: 1,
         IsCompanyUser: 0,
@@ -291,6 +287,7 @@
         patentList: [], // 拥有专利、专有技术及工法
         winningList: [], // 近三年获得省部级及以上主要技术、管理成果、获奖项目
         businessList: [], // 准入业务
+        subfileList: [], // 资质
         organizeOption: [], // 审批部门
         auditerOption: [], // 审批人
         secOrganize: [],
@@ -410,7 +407,7 @@
       }
     },
 
-    mounted () {
+    mounted() {
       this.serviceId = this.$route.params.opera + ''
       if (this.$route.query.rtn) {
         this.showReturn = 0
@@ -440,7 +437,7 @@
       }
     },
     methods: {
-      inputCompany (val) {
+      inputCompany(val) {
         if (!this.certId) { // 已经关联到子表了,就不能再切换主表ID了
           api.getEntityByName(val, this.$axios).then(res => {
             if (res.data && res.data.Id) {
@@ -451,12 +448,12 @@
           })
         }
       },
-      changeFormData (fdata) {
+      changeFormData(fdata) {
         if (!this.certId) { // 已经关联到子表了,就不能再切换主表ID了
           this.SetFormData(fdata)
         }
       },
-      SetFormData (fdata) {
+      SetFormData(fdata) {
         this.isCanUpdateSupplier(fdata.Id)
         this.formData.Id = fdata.Id
         this.formData.SupplierName = fdata.SupplierName
@@ -518,27 +515,27 @@
         } */
       },
 
-      isCanUpdateSupplier (supplierId) {
+      isCanUpdateSupplier(supplierId) {
         api.isCanUpdateSupplier(supplierId, this.$axios).then(res => {
           this.canUpdateSupplier = (res.data.code === 0)
         }).catch(err => {
           console.error(err)
         })
       },
-      equipmentdialog () {
+      equipmentdialog() {
         this.$refs['equipmentList'].showDialog()
       },
-      performancedialog () {
+      performancedialog() {
         this.$refs['performanceList'].showDialog()
       },
-      patentdialog () {
+      patentdialog() {
         this.$refs['patentList'].showDialog()
       },
-      winningdialog () {
+      winningdialog() {
         this.$refs['winningList'].showDialog()
       },
 
-      initDatas () {
+      initDatas() {
         this.isCanUpdateSupplier(this.formData.Id)
         if (this.formData.Id) {
           api.getEntityAndCert(this.certId, this.$axios).then(res => {
@@ -587,8 +584,11 @@
           })
         }
       },
+      getbuslist() {
+        this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
+      },
 
-      getDictOptions () {
+      getDictOptions() {
         api.getDictList(this.$axios).then(res => {
           this.dictData = res.data.items
           this.organizeOption = res.data.items['Organizes']
@@ -599,14 +599,14 @@
           console.error(err)
         })
       },
-      getorgtreelist () {
+      getorgtreelist() {
         let _this = this
         let params = {
           IsInnerOrganize: 1
         }
         _this.$axios.get('organizes/orgalllist', {
-          params
-        })
+            params
+          })
           .then(res => {
             _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
             if (_this.authUser.Profile.IsCompanyUser === 0) {
@@ -620,7 +620,7 @@
             console.error(err)
           })
       },
-      auditOrgChang (val) {
+      auditOrgChang(val) {
         let deptid = val[val.length - 1]
         console.log(deptid)
         this.auditerOption = []
@@ -640,7 +640,7 @@
        }, */
 
       // 保存信息
-      saveEntity () {
+      saveEntity() {
         this.$refs['BasisInfo'].$refs['EntityForm'].validate((valid) => {
           if (valid) {
             if (!this.formData.SetupTime) {
@@ -661,11 +661,11 @@
       },
 
       // 保存信息
-      saveCertEntity () {
+      saveCertEntity() {
         this.$refs['SupplierCertEditCompoment'].saveEntity()
       },
 
-      addEntity () {
+      addEntity() {
         this.formData.SupplierTypeCode = '02'
         this.formData.SupplierTypeName = '基建类'
         api.addEntity(this.formData, this.$axios).then(res => {
@@ -689,7 +689,7 @@
         })
       },
 
-      updateEntity () {
+      updateEntity() {
         api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -709,7 +709,7 @@
         })
       },
 
-      CheckCompanyBase () {
+      CheckCompanyBase() {
         if (!this.formData.Id) {
           this.$message({
             type: 'error',
@@ -727,7 +727,7 @@
         return true
       },
       // 企业人员结构情况
-      updateNumberEntity () {
+      updateNumberEntity() {
         if (!this.CheckCompanyBase()) {
           return false
         }
@@ -750,10 +750,10 @@
         })
       },
 
-      selectAuditOrg () {
+      selectAuditOrg() {
         this.dialogVisible = true
       },
-      AuditEntity () {
+      AuditEntity() {
         if (this.auditer === '') {
           this.$message({
             type: 'warning',
@@ -784,11 +784,11 @@
         })
       },
 
-      nexStepCB () {
+      nexStepCB() {
         this.formData.Step += 1
       },
 
-      jstimehandle (val) {
+      jstimehandle(val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -801,7 +801,7 @@
         }
       },
 
-      formatDateTime (date) {
+      formatDateTime(date) {
         var y = date.getFullYear()
         var m = date.getMonth() + 1
         m = m < 10 ? ('0' + m) : m
@@ -814,6 +814,7 @@
       }
     }
   }
+
 </script>
 
 <style lang="scss">

+ 42 - 41
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -12,11 +12,12 @@
         </span>
         <span style="float: right;">
           <router-link :to="'/oilsupplier/annualaudit'">
-          <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">年审申请</el-button>
+            <el-button type="primary" plain size="mini" style="margin-right:3px" :disabled="formDataCert.Status == 0">
+              年审申请</el-button>
           </router-link>
           <!--v-if="formData.Step>=5"-->
           <router-link :to="'/oilsupplier/supplierappend/goodslist'">
-          <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">增项申请</el-button>
+            <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">增项申请</el-button>
           </router-link>
           <router-link :to="'/oilsupplier/supplier/goodslist'">
             <el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回
@@ -161,8 +162,8 @@
               <el-button style="float: right; padding: 3px 0" type="text" @click="patentdialog"
                 v-if="formDataCert.Status == 0">添加</el-button>
             </div>
-            <patent-list ref="patentList" :data.sync="patentList" :SupplierCertId="certId+''" :SupplierTypeCode="classId"
-              :canadd="add_flat" height="360px" style="margin-top: 20px">
+            <patent-list ref="patentList" :data.sync="patentList" :SupplierCertId="certId+''"
+              :SupplierTypeCode="classId" :canadd="add_flat" height="360px" style="margin-top: 20px">
             </patent-list>
           </el-card>
 
@@ -179,8 +180,8 @@
         </el-tab-pane>
 
         <el-tab-pane label="准入范围" :disabled="!certId">
-          <business-list ref="businessList" :data.sync="businessList" :canadd="add_flat" height="360px"
-            style="margin-top: 20px"></business-list>
+          <business-list ref="businessList" :data.sync="businessList" @getlist="getbuslist" :canadd="add_flat"
+            height="360px" style="margin-top: 20px"></business-list>
         </el-tab-pane>
         <el-tab-pane label="企业资质" :disabled="!certId">
           <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="add_flat" @close="selectAuditOrg"
@@ -211,20 +212,15 @@
           <el-col :span="24">
             <el-form-item label="二级单位">
               <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
-                           filterable style="width: 100%" @change="auditOrgChang" v-model="secOrganize"
-                           placeholder="请选择组织">
+                filterable style="width: 100%" @change="auditOrgChang" v-model="secOrganize" placeholder="请选择组织">
               </el-cascader>
             </el-form-item>
           </el-col>
           <el-col :span="24">
             <el-form-item label="审批人">
-              <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择"
-                         style="width: 90%" filterable allow-create default-first-option>
-                <el-option
-                  v-for="item in auditerOption"
-                  :key="item.userid"
-                  :label="item.username"
-                  :value="item.userid">
+              <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 90%" filterable
+                allow-create default-first-option>
+                <el-option v-for="item in auditerOption" :key="item.userid" :label="item.username" :value="item.userid">
                 </el-option>
               </el-select>
             </el-form-item>
@@ -279,7 +275,7 @@
     },
     name: 'goodsEdit',
 
-    data () {
+    data() {
       return {
         showReturn: 1,
         IsCompanyUser: 0,
@@ -292,6 +288,7 @@
         patentList: [], // 拥有专利、专有技术及工法
         winningList: [], // 近三年获得省部级及以上主要技术、管理成果、获奖项目
         businessList: [], // 准入业务
+        subfileList: [], // 资质
         organizeOption: [], // 审批部门
         auditerOption: [], // 审批人
         orgtreelist: [],
@@ -410,7 +407,7 @@
       }
     },
 
-    mounted () {
+    mounted() {
       this.serviceId = this.$route.params.opera + ''
       if (this.$route.query.rtn) {
         this.showReturn = 0
@@ -441,7 +438,7 @@
       }
     },
     methods: {
-      inputCompany (val) {
+      inputCompany(val) {
         if (!this.certId) {
           api.getEntityByName(val, this.$axios).then(res => {
             if (res.data && res.data.Id) {
@@ -452,12 +449,12 @@
           })
         }
       },
-      changeFormData (fdata) {
+      changeFormData(fdata) {
         if (!this.certId) {
           this.SetFormData(fdata)
         }
       },
-      SetFormData (fdata) {
+      SetFormData(fdata) {
         this.isCanUpdateSupplier(fdata.Id)
         this.formData.Id = fdata.Id
         this.formData.SupplierName = fdata.SupplierName
@@ -519,27 +516,27 @@
         } */
       },
 
-      isCanUpdateSupplier (supplierId) {
+      isCanUpdateSupplier(supplierId) {
         api.isCanUpdateSupplier(supplierId, this.$axios).then(res => {
           this.canUpdateSupplier = (res.data.code === 0)
         }).catch(err => {
           console.error(err)
         })
       },
-      equipmentdialog () {
+      equipmentdialog() {
         this.$refs['equipmentList'].showDialog()
       },
-      performancedialog () {
+      performancedialog() {
         this.$refs['performanceList'].showDialog()
       },
-      patentdialog () {
+      patentdialog() {
         this.$refs['patentList'].showDialog()
       },
-      winningdialog () {
+      winningdialog() {
         this.$refs['winningList'].showDialog()
       },
 
-      initDatas () {
+      initDatas() {
         this.isCanUpdateSupplier(this.formData.Id)
         if (this.formData.Id) {
           api.getEntityAndCert(this.certId, this.$axios).then(res => {
@@ -589,8 +586,11 @@
           })
         }
       },
+      getbuslist() {
+        this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
+      },
 
-      getDictOptions () {
+      getDictOptions() {
         api.getDictList(this.$axios).then(res => {
           this.dictData = res.data.items
           this.organizeOption = res.data.items['Organizes']
@@ -601,14 +601,14 @@
           console.error(err)
         })
       },
-      getorgtreelist () {
+      getorgtreelist() {
         let _this = this
         let params = {
           IsInnerOrganize: 1
         }
         _this.$axios.get('organizes/orgalllist', {
-          params
-        })
+            params
+          })
           .then(res => {
             _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
             if (_this.authUser.Profile.IsCompanyUser === 0) {
@@ -622,7 +622,7 @@
             console.error(err)
           })
       },
-      auditOrgChang (val) {
+      auditOrgChang(val) {
         let deptid = val[val.length - 1]
         console.log(deptid)
         this.auditerOption = []
@@ -642,7 +642,7 @@
        }, */
 
       // 保存信息
-      saveEntity () {
+      saveEntity() {
         this.$refs['GoodsInfo'].$refs['EntityForm'].validate((valid) => {
           if (valid) {
             if (!this.formData.SetupTime) {
@@ -663,11 +663,11 @@
       },
 
       // 保存信息
-      saveCertEntity () {
+      saveCertEntity() {
         this.$refs['SupplierCertEditCompoment'].saveEntity()
       },
 
-      addEntity () {
+      addEntity() {
         this.formData.SupplierTypeCode = '01'
         this.formData.SupplierTypeName = '物资类'
         api.addEntity(this.formData, this.$axios).then(res => {
@@ -691,7 +691,7 @@
         })
       },
 
-      updateEntity () {
+      updateEntity() {
         api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -711,7 +711,7 @@
         })
       },
 
-      CheckCompanyBase () {
+      CheckCompanyBase() {
         if (!this.formData.Id) {
           this.$message({
             type: 'error',
@@ -729,7 +729,7 @@
         return true
       },
       // 企业人员结构情况
-      updateNumberEntity () {
+      updateNumberEntity() {
         if (!this.CheckCompanyBase()) {
           return false
         }
@@ -751,10 +751,10 @@
           console.error(err)
         })
       },
-      selectAuditOrg () {
+      selectAuditOrg() {
         this.dialogVisible = true
       },
-      AuditEntity () {
+      AuditEntity() {
         if (this.auditer === '') {
           this.$message({
             type: 'warning',
@@ -785,7 +785,7 @@
         })
       },
 
-      jstimehandle (val) {
+      jstimehandle(val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -798,7 +798,7 @@
         }
       },
 
-      formatDateTime (date) {
+      formatDateTime(date) {
         var y = date.getFullYear()
         var m = date.getMonth() + 1
         m = m < 10 ? ('0' + m) : m
@@ -811,6 +811,7 @@
       }
     }
   }
+
 </script>
 
 <style lang="scss">

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/techedit.vue

@@ -285,7 +285,7 @@
         patentList: [], // 拥有专利、专有技术及工法
         winningList: [], // 近三年获得省部级及以上主要技术、管理成果、获奖项目
         businessList: [], // 准入业务
-        subfileList: [], // 准入业务
+        subfileList: [], // 资质
         organizeOption: [], // 审批部门
         auditerOption: [], // 审批人
         orgtreelist: [],