lining 6 年 前
コミット
57b0174556

+ 24 - 0
src/dashoo.cn/backend/api/business/oilsupplier/supplierscenefile/supplierscenefile.go

@@ -0,0 +1,24 @@
+package supplierscenefile
+
+import (
+	"time"
+)
+
+type OilSupplierSceneFile struct {
+	Id                int       `xorm:"not null pk autoincr INT(10)"`
+	SupplierId        int       `xorm:"INT(10)"`
+	NeedFileType      string    `xorm:"VARCHAR(50)"`
+	NeedFileCode      string    `xorm:"VARCHAR(20)"`
+	FileExt           string    `xorm:"VARCHAR(10)"`
+	FileName          string    `xorm:"VARCHAR(2000)"`
+	EffectDate        time.Time `xorm:"DATETIME"`
+	FileUrl           string    `xorm:"VARCHAR(2000)"`
+	Remark            string    `xorm:"VARCHAR(500)"`
+	IsDelete          int       `xorm:"INT(10)"`
+	CreateOn          time.Time `xorm:"DATETIME created"`
+	CreateUserId      int       `xorm:"INT(10)"`
+	CreateBy          string    `xorm:"VARCHAR(50)"`
+	ModifiedOn        time.Time `xorm:"DATETIME"`
+	ModifiedUserId    int       `xorm:"INT(10)"`
+	ModifiedBy        string    `xorm:"VARCHAR(50)"`
+}

+ 16 - 0
src/dashoo.cn/backend/api/business/oilsupplier/supplierscenefile/supplierscenefileService.go

@@ -0,0 +1,16 @@
+package supplierscenefile
+
+import (
+	. "dashoo.cn/backend/api/mydb"
+	"github.com/go-xorm/xorm"
+)
+
+type SupplierScenefileService struct {
+	MyServiceBase
+}
+
+func GetSupplierScenefileService(xormEngine *xorm.Engine) *SupplierScenefileService {
+	s := new(SupplierScenefileService)
+	s.DBE = xormEngine
+	return s
+}

+ 19 - 0
src/dashoo.cn/backend/api/business/tmpzcgf/tmpzcgfSession.go

@@ -353,3 +353,22 @@ func (s *TmpzcgtSession) UpdateCertSubIsType2 (where string) error {
 	_, err := s.Session.Query(sql)
 	return err
 }
+
+// 导入资质名称
+func (s *TmpzcgtSession) InsertFileName () error {
+	sql := "INSERT INTO `OilSupplierFile` (Remark, NeedFileType, OtherRemark, SupplierTypeCode,CreateBy) " +
+		"SELECT z.企业名称 AS Remark ,f.类别 AS NeedFileType, f.说明 AS OtherRemark, " +
+		"( CASE 准入类别 WHEN '物资类' THEN '01' WHEN '基建类' THEN '02' WHEN '技术服务类' THEN '03' END ) SupplierTypeCode, " +
+		"'导入' AS CreateBy " +
+		"FROM `tmp_file` f " +
+		"LEFT JOIN `tmp_zcgf` z ON (f.ID_GF = z.ID) " +
+		"WHERE z.企业名称 IS NOT NULL "
+	_, err := s.Session.Query(sql)
+	return err
+}
+
+func (s *TmpzcgtSession) UpdateSupplierFileSId () error {
+	sql := "UPDATE `OilSupplierFile` b SET b.SupplierId = (SELECT a.Id FROM `OilSupplier` a WHERE a.SupplierName = b.Remark ) "
+	_, err := s.Session.Query(sql)
+	return err
+}

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

@@ -995,7 +995,7 @@ func (this *AnnualAuditController) AnnualAudit() {
 		oldaplydate := list.ApplyTime
 		if list.Status == suppliercert.CENT_AUDIT_STATUS {
 
-			if certEntity.InStyle == suppliercert.PINGSHEN {
+			if certEntity.InStyle == suppliercert.PINGSHEN || certEntity.InStyle == suppliercert.ERJIWUZI {
 				var certmodel suppliercert.OilSupplierCert
 				certmodel.AuditDate = time.Now()
 				certcols := []string{

+ 40 - 0
src/dashoo.cn/backend/api/controllers/oilsupplier/supplier.go

@@ -2,6 +2,7 @@ package oilsupplier
 
 import (
 	"dashoo.cn/backend/api/business/oilsupplier/suppliercertsub"
+	"dashoo.cn/backend/api/business/oilsupplier/supplierscenefile"
 	"dashoo.cn/backend/api/business/register"
 	"encoding/json"
 	"fmt"
@@ -2136,7 +2137,46 @@ func (this *OilSupplierController) GetEntityByCommercialNo() {
 }
 
 
+// @Title 更新文件上传
+// @Description 更新文件上传
+// @Param	id	path	string	true
+// @Success	200	{object}
+// @router /editsubfile/:id [put]
+func (this *OilSupplierController) EditSubfile() {
+	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 supplierscenefile.OilSupplierSceneFile
+	var jsonblob = this.Ctx.Input.RequestBody
+	json.Unmarshal(jsonblob, &model)
+	svc := supplierscenefile.GetSupplierScenefileService(utils.DBE)
+
+	model.FileUrl = strings.Trim(model.FileUrl, "$")
+	model.FileName = strings.Trim(model.FileName, "$")
+	model.CreateOn = time.Now()
+	model.CreateBy = this.User.Realname
+	model.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
+
+	_,err := svc.InsertEntity(&model)
 
+	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()
+	}
+}
 
 
 

+ 28 - 0
src/dashoo.cn/backend/api/controllers/tmpzcgf/tmpzcgf.go

@@ -689,4 +689,32 @@ func (this *TmpzcgfController) CapacityExpansion() {
 	elapsed := time.Since(t)
 	fmt.Println(elapsed)
 
+}
+
+// @Title 导入资质名称
+// @Description get user by token
+// @Success 200 {object}
+// @router /insertFileName [get]
+func (this *TmpzcgfController) InsertFileName() {
+	fmt.Println("==========导入资质名称开始=========")
+	t := time.Now()
+	session := utils.DBE.NewSession()
+	defer func() {
+		fmt.Println("==========导入资质名称结束=========")
+		session.Close()
+	}()
+	err := session.Begin()
+	svc := tmpzcgf.GetTmpzcgtService(session)
+	err = svc.InsertFileName()
+	if err != nil {
+		session.Rollback()
+	}
+	err = svc.UpdateSupplierFileSId()
+	if err != nil {
+		session.Rollback()
+	}
+	err = session.Commit()
+	fmt.Println(err)
+	elapsed := time.Since(t)
+	fmt.Println(elapsed)
 }

+ 2 - 2
src/dashoo.cn/frontend_web/nuxt.config.ignore.js

@@ -161,7 +161,7 @@ module.exports = {
   },
   ignore: [
     'pages/oilsupplier/addtionaudit/*.*',
-    // 'pages/oilsupplier/annualaudit/*.*',
+    'pages/oilsupplier/annualaudit/*.*',
     'pages/oilsupplier/badrecord/*.*',
     // 'pages/oilsupplier/basisbuild/*.*',
     'pages/oilsupplier/compayaudit/*.*',
@@ -169,7 +169,7 @@ module.exports = {
     'pages/oilsupplier/infochange/*.*',
     'pages/oilsupplier/infochangech/*.*',
     // 'pages/oilsupplier/supplier/*.*',
-    // 'pages/oilsupplier/supplierappend/*.*',
+    'pages/oilsupplier/supplierappend/*.*',
     'pages/oilsupplier/supplieraudit/*.*',
     'pages/oilsupplier/suppliercert/*.*',
     'pages/oilsupplier/supplierfile/*.*',

+ 176 - 2
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodsinfo.vue

@@ -692,14 +692,57 @@
           </el-form-item>
         </el-col>
       </el-row>
-
+    </el-form>
+    <el-form :model="SubfileForm" label-width="100px">
+      <el-row>
+        <el-col :span="12">
+          <el-form-item label="现场考察报告">
+            <el-button type="primary" plain size="mini" title="上传" @click="openDialog()" >上传
+            </el-button>
+            <!--<el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"-->
+            <!--:http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">-->
+            <!--<i class="el-icon-plus attach-uploader-icon"></i>-->
+            <!--&lt;!&ndash;<div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">请上传图片(大小为512KB-5MB),可上传多张图片&ndash;&gt;-->
+            <!--&lt;!&ndash;</div>&ndash;&gt;-->
+            <!--&lt;!&ndash;<div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType ==yasuoname">请上传压缩文件&ndash;&gt;-->
+            <!--&lt;!&ndash;</div>&ndash;&gt;-->
+            <!--</el-upload>-->
+          </el-form-item>
+        </el-col>
+      </el-row>
     </el-form>
     <!--打印内容结束-->
     <!--endprint1-->
+    <el-dialog title="现场考察报告" :visible.sync="visible" top="5vh" width="900px">
+      <el-form :model="SubfileForm" label-width="100px">
+        <el-row>
+          <el-col :span="12">
+            <el-form-item label="现场考察报告">
+              <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
+                         :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
+                <i class="el-icon-plus attach-uploader-icon"></i>
+              </el-upload>
+            </el-form-item>
+          </el-col>
+          <el-col :span="24">
+            <el-form-item label="描述">
+              <el-input v-model="SubfileForm.OtherRemark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </el-form>
+      <div slot="footer" class="dialog-footer" style="margin-top:-30px;">
+        <el-button @click="visible = false">取 消</el-button>
+        <el-button type="primary" @click="makesure()">确 定</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
 <script>
+import axios from 'axios'
+import uploadajax from '../../assets/js/uploadajax.js'
+
 export default {
   name: 'goodsinfo',
   props: {
@@ -841,6 +884,7 @@ export default {
     }
 
     return {
+      visible: false,
       address: [],
       linkaddress: [],
       showorhidflag: 'hid',
@@ -872,6 +916,7 @@ export default {
       UnitRelationAry: [],
       countryoptions: [],
       countryListOptions: [],
+      waituploads: [], // 等待上传的附件列表
       countryprops: {
         value: 'adcode',
         label: 'name',
@@ -886,7 +931,21 @@ export default {
       //   value: '0',
       //   label: '否'
       // }],
-
+      SubfileForm: {
+        Id: '',
+        SupplierId: '',
+        NeedFileType: '',
+        NeedFileCode: '',
+        FileType: '',
+        FileExt: '',
+        FileName: '',
+        EffectDate: new Date(),
+        FileUrl: '',
+        OtherRemark: '',
+        Remark: '',
+        IsDelete: 0,
+        FileUrlList: []
+      },
       rulesform: {
         Mobile: [{
           required: true,
@@ -1031,6 +1090,121 @@ export default {
     }
   },
   methods: {
+    openDialog () {
+      this.visible = true
+    },
+
+    getattachissuccess () {
+      this.SubfileForm.FileUrl = ''
+      this.SubfileForm.FileName = ''
+      if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
+        for (let i = 0; i < this.$refs.refuploadattach.uploadFiles.length; i++) {
+          if (this.$refs.refuploadattach.uploadFiles[i].status === 'success') {
+            for (let j = 0; j < this.waituploads.length; j++) {
+              if (this.waituploads[j].uid === this.$refs.refuploadattach.uploadFiles[i].uid) {
+                this.SubfileForm.FileUrl +=
+                  `${this.waituploads[j].url}/${this.waituploads[j].fid}|${this.$refs.refuploadattach.uploadFiles[i].name}$`
+                this.SubfileForm.FileName += `${this.$refs.refuploadattach.uploadFiles[i].name}$`
+              }
+            }
+          }
+        }
+      }
+    },
+    editSubfile () {
+      let _this = this
+      _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
+      console.log(_this.SubfileForm, '_this.SubfileForms')
+      _this.$axios.put('/supplier/editsubfile/' + _this.SubfileForm.Id, _this.SubfileForm)
+        .then(res => {
+          if (res.data.code === 0) {
+            _this.$message({
+              type: 'success',
+              message: res.data.message
+            })
+            this.visible = false
+            this.initData()
+            this.$refs.refuploadattach.uploadFiles = []
+          } else {
+            _this.$message({
+              type: 'warning',
+              message: res.data.message
+            })
+          }
+        })
+        .catch(err => {
+          console.error(err)
+        })
+    },
+    makesure () {
+      if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
+        // 上传附件是否完成判断
+        if (!this.attachissuccess()) {
+          this.$message.error('有附件未成功上传!不能保存数据')
+          return
+        }
+        this.getattachissuccess()
+        this.editSubfile()
+      } else {
+        this.$message({
+          type: 'warning',
+          message: '请上传文件!'
+        })
+      }
+    },
+    // 判断附件是否上传成功
+    attachissuccess () {
+      if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
+        for (let i = 0; i < this.$refs.refuploadattach.uploadFiles.length; i++) {
+          if (this.$refs.refuploadattach.uploadFiles[i].status !== 'success') {
+            return false
+          }
+        }
+      }
+      return true
+    },
+    beforeAvatarUpload (file) {
+      /* let isLt512K = file.size / 1024 < 512
+      if (isLt512K) {
+        this.$message.error('上传文件大小不能小于 512KB!')
+        return false
+      } */
+    },
+    uploadrequest (option) {
+      let _this = this
+      if (process.client) {
+        const myDomain = window.location.host
+        axios.post(process.env.upfilehost, {})
+          .then(function (res) {
+            if (res.data && res.data.fid && res.data.fid !== '') {
+              if (res.data.publicUrl.indexOf('/upfile') === 0) {
+                option.action = `http://${myDomain}/${res.data.publicUrl}/${res.data.fid}`
+              } else {
+                option.action = `http://${res.data.publicUrl}/${res.data.fid}`
+              }
+
+              _this.waituploads.push({
+                uid: option.file.uid,
+                url: res.data.publicUrl,
+                fid: res.data.fid
+              })
+              uploadajax(option)
+            } else {
+              _this.$message({
+                type: 'warning',
+                message: '未上传成功!请刷新界面重新上传!'
+              })
+            }
+          })
+          .catch(function () {
+            _this.$message({
+              type: 'warning',
+              message: '未上传成功!请重新上传!'
+            })
+          })
+      }
+    },
+
     GradeChange (val) {
       if (val === '1') {
         this.formData.MgrUnit = '中油集团公司'

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/login.vue

@@ -155,7 +155,7 @@
     </div>
     <div >
       <footer class="login-footer" style="color:#A9A9A9;padding-bottom: 30px">
-        <span></span>
+        <span>运维人员:李宁 15288965998<br></span>
         <span>推荐使用谷歌浏览器、360浏览器(极速模式)等,Chrome内核浏览器打开本系统</span>
       </footer>
     </div>

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/select/components/subfilelist.vue

@@ -215,7 +215,7 @@
       },
       SupplierTypeCode(val){
         if (val === '000') {
-          return '用文件'
+          return '用文件'
         } else if (val === '01') {
           return '物资类'
         } else if (val === '02') {

+ 77 - 27
src/dashoo.cn/frontend_web/src/pages/system/tmpzcgf.vue

@@ -13,48 +13,85 @@
           <!--<el-button size="mini" type="primary" style="margin-left:10px; margin-top: -4px;" @click="opendatadialog(1,null,-1);resetForm('organizeform')">新增用户</el-button>-->
         </span>
       </div>
-       <el-row style ="margin-bottom: 20px;">
+       <el-row :gutter="20" style ="margin-bottom: 20px;">
          <el-col :span="24">
-           <el-button size="mini" type="primary" @click="insertsuppler" v-loading.fullscreen.lock="fullscreenLoading">导入OilSuppler</el-button>
-           <el-button size="mini" type="primary" @click="insertSupplerCert" v-loading.fullscreen.lock="fullscreenLoading">导入OilSupplerCert</el-button>
-           <el-button size="mini" type="primary" @click="updateSupplerCert" v-loading.fullscreen.lock="fullscreenLoading">更新SupplierTypeCodeAndInFlag</el-button>
-           <el-button size="mini" type="primary" @click="updateSupplerId" v-loading.fullscreen.lock="fullscreenLoading">更新Cert表的SupplierID</el-button>
+           <el-badge :value="1" class="item">
+            <el-button  size="mini" type="primary" @click="insertsuppler" v-loading.fullscreen.lock="fullscreenLoading">导入OilSuppler</el-button>
+           </el-badge>
+           <el-badge :value="2" class="item">
+            <el-button size="mini" type="primary" @click="insertSupplerCert" v-loading.fullscreen.lock="fullscreenLoading">导入OilSupplerCert</el-button>
+           </el-badge>
+           <el-badge :value="3" class="item">
+             <el-button size="mini" type="primary" @click="updateSupplerCert" v-loading.fullscreen.lock="fullscreenLoading">更新SupplierTypeCodeAndInFlag</el-button>
+           </el-badge>
+           <el-badge :value="4" class="item">
+             <el-button size="mini" type="primary" @click="updateSupplerId" v-loading.fullscreen.lock="fullscreenLoading">更新Cert表的SupplierID</el-button>
+           </el-badge>
+           <el-badge :value="5" class="item">
+             <el-button size="mini" type="primary" @click="insertfilename" v-loading.fullscreen.lock="fullscreenLoading">导入资质名称</el-button>
+           </el-badge>
          </el-col>
        </el-row>
 
-       <el-row style ="margin-bottom: 20px;">
+       <el-row :gutter="20" style ="margin-bottom: 20px;">
          <el-col :span="24">
-           <el-button size="mini" type="primary" @click="insertCertSub" v-loading.fullscreen.lock="fullscreenLoading">导入CertSub表</el-button>
-           <el-button size="mini" type="primary" @click="updateCertSub" v-loading.fullscreen.lock="fullscreenLoading">更新CertSub表</el-button>
-           <el-button size="mini" type="primary" @click="capacityexpansion" v-loading.fullscreen.lock="fullscreenLoading">更新CertSub表的编码</el-button>
+           <el-badge :value="6" class="item">
+            <el-button size="mini" type="primary" @click="insertCertSub" v-loading.fullscreen.lock="fullscreenLoading">导入CertSub表</el-button>
+           </el-badge>
+           <el-badge :value="7" class="item">
+             <el-button size="mini" type="primary" @click="updateCertSub" v-loading.fullscreen.lock="fullscreenLoading">更新CertSub表</el-button>
+           </el-badge>
+           <el-button size="mini" type="primary" @click="capacityexpansion" v-loading.fullscreen.lock="fullscreenLoading">更新CertSub表的编码(6=>8)</el-button>
          </el-col>
        </el-row>
 
-       <el-row style ="margin-bottom: 20px;">
+       <el-row :gutter="20" style ="margin-bottom: 20px;">
          <el-col :span="24">
-           <el-button size="mini" type="primary" @click="insertOilSupplierCertAppend" v-loading.fullscreen.lock="fullscreenLoading">导入增项申请</el-button>
-           <el-button size="mini" type="primary" @click="updateOilSupplierCertAppend" v-loading.fullscreen.lock="fullscreenLoading">跟新OilSupplierCertAppend表的SupplierId和CerId</el-button>
-           <el-button size="mini" type="primary" @click="insertOilSupplierCertSub" v-loading.fullscreen.lock="fullscreenLoading">导入增项的准入范围</el-button>
-           <el-button size="mini" type="primary" @click="updateCertAppendIsType2" v-loading.fullscreen.lock="fullscreenLoading">更新增项准入范围</el-button>
-           <el-button size="mini" type="primary" @click="updateCertAppendIsType3" v-loading.fullscreen.lock="fullscreenLoading">更新增项准入范围2</el-button>
+           <el-badge :value="8" class="item">
+            <el-button size="mini" type="primary" @click="insertOilSupplierCertAppend" v-loading.fullscreen.lock="fullscreenLoading">导入增项申请</el-button>
+           </el-badge>
+           <el-badge :value="9" class="item">
+             <el-button size="mini" type="primary" @click="updateOilSupplierCertAppend" v-loading.fullscreen.lock="fullscreenLoading">跟新OilSupplierCertAppend表的SupplierId和CerId</el-button>
+           </el-badge>
+           <el-badge :value="10" class="item">
+            <el-button size="mini" type="primary" @click="insertOilSupplierCertSub" v-loading.fullscreen.lock="fullscreenLoading">导入增项的准入范围</el-button>
+           </el-badge>
+           <el-badge :value="11" class="item">
+            <el-button size="mini" type="primary" @click="updateCertAppendIsType2" v-loading.fullscreen.lock="fullscreenLoading">更新增项准入范围</el-button>
+           </el-badge>
+            <el-button size="mini" type="primary" @click="updateCertAppendIsType3" v-loading.fullscreen.lock="fullscreenLoading">更新增项准入范围2</el-button>
          </el-col>
        </el-row>
 
-       <el-row style ="margin-bottom: 20px;">
+       <el-row :gutter="20" style ="margin-bottom: 20px;">
          <el-col :span="6">
-           <el-button size="mini" type="primary" @click="insterAnnualAudit" v-loading.fullscreen.lock="fullscreenLoading">导入年审表</el-button>
-           <el-button size="mini" type="primary" @click="updateAnnualAudit" v-loading.fullscreen.lock="fullscreenLoading">跟新年审表的SupplierId和CerId</el-button>
+           <el-badge :value="12" class="item">
+            <el-button size="mini" type="primary" @click="insterAnnualAudit" v-loading.fullscreen.lock="fullscreenLoading">导入年审表</el-button>
+           </el-badge>
+           <el-badge :value="13" class="item">
+            <el-button size="mini" type="primary" @click="updateAnnualAudit" v-loading.fullscreen.lock="fullscreenLoading">跟新年审表的SupplierId和CerId</el-button>
+           </el-badge>
          </el-col>
        </el-row>
 
 
-       <el-row style ="margin-bottom: 20px;">
+       <el-row :gutter="20" style ="margin-bottom: 20px;">
          <el-col :span="24">
-           <el-button size="mini" type="primary" @click="insterOilPaymentInfo" v-loading.fullscreen.lock="fullscreenLoading">导入交费记录并更新</el-button>
-           <el-button size="mini" type="primary" @click="insterBadRecord" v-loading.fullscreen.lock="fullscreenLoading">导入不良记录并更新</el-button>
-           <el-button size="mini" type="primary" @click="delBadRecord" v-loading.fullscreen.lock="fullscreenLoading">删除多余的不良记录</el-button>
-           <el-button size="mini" type="primary" @click="insertOilInfoChange" v-loading.fullscreen.lock="fullscreenLoading">导入信息变更</el-button>
-           <el-button size="mini" type="primary" @click="updateOilInfoChange" v-loading.fullscreen.lock="fullscreenLoading">更新新信息变更</el-button>
+           <el-badge :value="14" class="item">
+            <el-button size="mini" type="primary" @click="insterOilPaymentInfo" v-loading.fullscreen.lock="fullscreenLoading">导入交费记录并更新</el-button>
+           </el-badge>
+           <el-badge :value="15" class="item">
+             <el-button size="mini" type="primary" @click="insterBadRecord" v-loading.fullscreen.lock="fullscreenLoading">导入不良记录并更新</el-button>
+           </el-badge>
+           <el-badge :value="16" class="item">
+             <el-button size="mini" type="primary" @click="delBadRecord" v-loading.fullscreen.lock="fullscreenLoading">删除多余的不良记录</el-button>
+           </el-badge>
+           <el-badge :value="17" class="item">
+             <el-button size="mini" type="primary" @click="insertOilInfoChange" v-loading.fullscreen.lock="fullscreenLoading">导入信息变更</el-button>
+           </el-badge>
+           <el-badge :value="18" class="item">
+            <el-button size="mini" type="primary" @click="updateOilInfoChange" v-loading.fullscreen.lock="fullscreenLoading">更新新信息变更</el-button>
+           </el-badge>
          </el-col>
        </el-row>
 
@@ -224,6 +261,15 @@
         //       })
         //   })
       },
+      insertfilename () {
+        this.dialogtitle = '导入资质名称'
+        this.start()
+        this.$axios.get('tmpzcgf/insertFileName')
+          .then(res => {
+            this.reset()
+            this.insertCertSub()
+          })
+      },
       updateSupplerId () {
         this.dialogtitle = '更新Cert表的SupplierID'
         this.start()
@@ -231,7 +277,7 @@
           .then(res => {
             // this.fullscreenLoading = false
             this.reset()
-            this.insertCertSub()
+            this.insertFileName()
           })
         // this.$confirm('是否继续?', '提示', {
         //   confirmButtonText: '确定',
@@ -372,6 +418,7 @@
           .then(res => {
             // this.fullscreenLoading = false
             this.reset()
+            this.updateCertSub()
           })
         // this.$confirm('是否继续?', '提示', {
         //   confirmButtonText: '确定',
@@ -562,7 +609,7 @@
         this.$axios.get('tmpzcgf/updateCertSubIsType1')
           .then(res => {
             this.reset()
-            this.insterAnnualAudit()
+            // this.insterAnnualAudit()
           })
         // this.$confirm('是否继续?', '提示', {
         //   confirmButtonText: '确定',
@@ -590,7 +637,7 @@
               .then(res => {
                 // this.fullscreenLoading = false
                 this.reset()
-                this.insterAnnualAudit()
+                // this.insterAnnualAudit()
               })
           })
       },
@@ -618,4 +665,7 @@
     color: #ff3223;
     display: block;
   }
+  .item{
+    margin-right: 22px;
+  }
 </style>