2
3
lining 6 سال پیش
والد
کامیت
235caa8888

+ 2 - 1
src/dashoo.cn/backend/api/business/oilrtx/RtxService.go

@@ -3,6 +3,7 @@ package oilrtx
 import (
 	"encoding/json"
 	"fmt"
+	"golang.org/x/text/encoding/simplifiedchinese"
 	"io/ioutil"
 	"log"
 	"net/http"
@@ -162,7 +163,7 @@ func (s *RtxService) HandleSendMsg(username string, tomobile string, message str
 	msg.Msg = message
 
 	json, err := json.Marshal(msg)
-	params := string(json)
+	params, err := simplifiedchinese.GBK.NewEncoder().String(string(json))
     fmt.Sprintf(params, "短信=====")
 	params1 := "{\"UserName\":\"" + msg.UserName + "\",\"ToMobile\":\"" + msg.ToMobile + "\",\"MSG\":\"" + msg.Msg  +"\"}"
 	fmt.Println(params1)

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

@@ -4,9 +4,6 @@ import (
 	"dashoo.cn/backend/api/business/oilsupplier/tableheader"
 	"reflect"
 
-	//"fmt"
-	"strconv"
-
 	"dashoo.cn/backend/api/business/oilsupplier/basisbuild"
 	"dashoo.cn/backend/api/business/oilsupplier/goodsaptitude"
 	"dashoo.cn/backend/api/business/oilsupplier/technologyservice"
@@ -33,7 +30,7 @@ func GetSupplierfileService(xormEngine *xorm.Engine) *SupplierfileService {
 
 func (s *SupplierfileService) GetGoodsNeedFileList(classid string) (needList []FileList) {
 	var entity goodsaptitude.OilGoodsAptitude
-	sql := "select * from OilGoodsAptitude where ClassId = '" + classid + "'"
+	sql := "select * from OilGoodsAptitude where ClassId in (" + classid + ")"
 	s.DBE.Sql(sql).Get(&entity)
 
 	tbHeaderSvc := tableheader.GetTableHeaderService(s.DBE)
@@ -50,9 +47,9 @@ func (s *SupplierfileService) GetGoodsNeedFileList(classid string) (needList []F
 	return needList
 }
 
-func (s *SupplierfileService) GetBasicNeedFileList(classid int) (needList []FileList) {
+func (s *SupplierfileService) GetBasicNeedFileList(classid string) (needList []FileList) {
 	var entity basisbuild.OilBasisBuild
-	sql := "select * from OilBasisBuild where Id = '" + strconv.Itoa(classid) + "'"
+	sql := "select * from OilBasisBuild where Id in (" + classid + ")"
 	s.DBE.Sql(sql).Get(&entity)
 
 	tbHeaderSvc := tableheader.GetTableHeaderService(s.DBE)
@@ -69,9 +66,9 @@ func (s *SupplierfileService) GetBasicNeedFileList(classid int) (needList []File
 	return needList
 }
 
-func (s *SupplierfileService) GetTechNeedFileList(classid int) (needList []FileList) {
+func (s *SupplierfileService) GetTechNeedFileList(classid string) (needList []FileList) {
 	var entity technologyservice.OilTechnologyService
-	sql := "select * from OilTechnologyService where ClassId = '" + strconv.Itoa(classid) + "'"
+	sql := "select * from OilTechnologyService where ClassId in (" + classid + ")"
 	s.DBE.Sql(sql).Get(&entity)
 
 	tbHeaderSvc := tableheader.GetTableHeaderService(s.DBE)

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

@@ -765,6 +765,19 @@ func (this *OilSupplierCertController) AuditEntity() {
 	ActiComplete.CallbackUrl = ""
 	receiveVal := svcActiviti.TaskComplete(ActiComplete)
 
+	var audithistoryentity audithistory.Base_AuditHistory
+	audithistoryentity.EntityId = supplierCertEntity.Id
+	audithistoryentity.WorkflowId = supplierCertEntity.WorkflowId
+	audithistoryentity.Process = ActiComplete.ProcessKey
+	audithistoryentity.BusinessKey = ActiComplete.BusinessKey
+	audithistoryentity.Type = supplierCertEntity.SupplierTypeCode
+	audithistoryentity.BackStep = supplierCertEntity.Status
+	audithistoryentity.Index = supplierCertEntity.AuditIndex
+	audithistoryentity.CreateOn = time.Now()
+	audithistoryentity.CreateBy = this.User.Realname
+	audithistoryentity.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
+	certSrv.InsertEntity(audithistoryentity)
+
 	if receiveVal == "true" {
 		errinfo.Message = "提交成功!"
 		errinfo.Code = 0
@@ -1369,18 +1382,18 @@ func (this *OilSupplierCertController) AuditEntityFir() {
 
 		if receiveVal == "true" {
 			// 审批历史
-			var audithistoryentity audithistory.Base_AuditHistory
-			audithistoryentity.EntityId = supplierCertEntity.Id
-			audithistoryentity.WorkflowId = supplierCertEntity.WorkflowId
-			audithistoryentity.Process = ActiComplete.ProcessKey
-			audithistoryentity.BusinessKey = ActiComplete.BusinessKey
-			audithistoryentity.Type = supplierCertEntity.SupplierTypeCode
-			audithistoryentity.BackStep = supplierCertEntity.Status
-			audithistoryentity.Index = supplierCertEntity.AuditIndex
-			audithistoryentity.CreateOn = time.Now()
-			audithistoryentity.CreateBy = this.User.Realname
-			audithistoryentity.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
-			certSrv.InsertEntity(audithistoryentity)
+			//var audithistoryentity audithistory.Base_AuditHistory
+			//audithistoryentity.EntityId = supplierCertEntity.Id
+			//audithistoryentity.WorkflowId = supplierCertEntity.WorkflowId
+			//audithistoryentity.Process = ActiComplete.ProcessKey
+			//audithistoryentity.BusinessKey = ActiComplete.BusinessKey
+			//audithistoryentity.Type = supplierCertEntity.SupplierTypeCode
+			//audithistoryentity.BackStep = supplierCertEntity.Status
+			//audithistoryentity.Index = supplierCertEntity.AuditIndex
+			//audithistoryentity.CreateOn = time.Now()
+			//audithistoryentity.CreateBy = this.User.Realname
+			//audithistoryentity.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
+			//certSrv.InsertEntity(audithistoryentity)
 			if supplierCertEntity.Status == suppliercert.CENT_AUDIT_STATUS {
 				supplierCertEntity.Status = suppliercert.NO_CENT_AUDIT_STATUS
 				supplierCertEntity.BackReason = dataother.AuditorRemark
@@ -1392,11 +1405,11 @@ func (this *OilSupplierCertController) AuditEntityFir() {
 				supplierCertEntity.Status = backstatus
 			}
 			supplierCertEntity.Step = 1
-			supplierCertEntity.WorkflowId = ""
+			//supplierCertEntity.WorkflowId = ""
 			cols := []string{
 				"Status",
 				"Step",
-				"WorkflowId",
+				//"WorkflowId",
 			}
 			certSrv.UpdateEntityByIdCols(certId, supplierCertEntity, cols)
 

+ 2 - 2
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertappendsub.go

@@ -152,7 +152,7 @@ func (this *OilSupplierCertAppendSubController) AddAppendSub() {
 	if model.SupplierTypeCode == "01" {
 		//		needList = filesvc.GetGoodsNeedFileList(model.SubClassId)
 	} else if model.SupplierTypeCode == "02" {
-		needList = filesvc.GetBasicNeedFileList(model.SubClassId)
+		needList = filesvc.GetBasicNeedFileList(strconv.Itoa(model.SubClassId))
 	} else {
 		//		needList = filesvc.GetTechNeedFileList(model.SubClassId)
 	}
@@ -271,7 +271,7 @@ func (this *OilSupplierCertAppendSubController) AddTechBus() {
 
 			paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
 			filesvc := supplierfile.GetSupplierfileService(utils.DBE)
-			needList := filesvc.GetTechNeedFileList(dataother.CheckList[n].Id)
+			needList := filesvc.GetTechNeedFileList(strconv.Itoa(dataother.CheckList[n].Id))
 
 			if supplierCertModel.InStyle == "4" {
 				var needFile supplierfile.FileList

+ 116 - 89
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertsub.go

@@ -8,6 +8,7 @@ import (
 	"dashoo.cn/backend/api/business/organize"
 	"dashoo.cn/business2/parameter"
 	"encoding/json"
+	"fmt"
 
 	//"fmt"
 	"strconv"
@@ -154,7 +155,6 @@ func (this *OilSupplierCertSubController) ListCert2019() {
 	}
 	Name := this.GetString("Name")
 
-
 	if Name != "" {
 		where = where + " and (Name like '%" + Name + "%' or Code like '%" + Name + "%')"
 	}
@@ -172,7 +172,6 @@ func (this *OilSupplierCertSubController) ListCert2019() {
 	this.ServeJSON()
 }
 
-
 // @Title 获取字典列表
 // @Description get user by token
 // @Success 200 {object} map[string]interface{}
@@ -440,7 +439,7 @@ func (this *OilSupplierCertSubController) AddGoodsBus() {
 
 				isRepeat := false
 				for j := 0; j < len(list); j++ {
-					if list[j].NeedFileType == needList[i].FileName{
+					if list[j].NeedFileType == needList[i].FileName {
 						isRepeat = true
 						break
 					}
@@ -505,7 +504,7 @@ func (this *OilSupplierCertSubController) AddTechBus() {
 
 			paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
 			filesvc := supplierfile.GetSupplierfileService(utils.DBE)
-			needList := filesvc.GetTechNeedFileList(dataother.CheckList[n].Id)
+			needList := filesvc.GetTechNeedFileList(strconv.Itoa(dataother.CheckList[n].Id))
 
 			if supplierCertModel.InStyle == "4" {
 				var needFile supplierfile.FileList
@@ -534,7 +533,7 @@ func (this *OilSupplierCertSubController) AddTechBus() {
 				cert2File.SupplierId = dataother.SupplierId
 				cert2File.SupplierCertId = dataother.SupplierCertId
 				cert2File.SupplierTypeCode = dataother.SupplierTypeCode
-				cert2File.SubClassId= dataother.CheckList[n].Id
+				cert2File.SubClassId = dataother.CheckList[n].Id
 				cert2File.Code = dataother.CheckList[n].Code
 				cert2File.Name = dataother.CheckList[n].Name
 				cert2File.NeedFileType = needList[i].FileName
@@ -553,7 +552,7 @@ func (this *OilSupplierCertSubController) AddTechBus() {
 
 				isRepeat := false
 				for j := 0; j < len(list); j++ {
-					if list[j].NeedFileType == needList[i].FileName{
+					if list[j].NeedFileType == needList[i].FileName {
 						isRepeat = true
 						break
 					}
@@ -588,13 +587,13 @@ func (this *OilSupplierCertSubController) AddBusiness() {
 	model.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
 	svc := suppliercertsub.GetOilSupplierCertSubService(utils.DBE)
 	var submodel suppliercertsub.OilSupplierCertSub
-	where_certsub := " SupplierCertId = "+ utils.ToStr(model.SupplierCertId) + " and SupplierTypeCode = 02"
+	where_certsub := " SupplierCertId = " + utils.ToStr(model.SupplierCertId) + " and SupplierTypeCode = 02"
 	where_certsub += " and SubClassId = '" + utils.ToStr(model.SubClassId) + "'"
 	has := svc.GetEntityByWhere(OilSupplierCertSubName, where_certsub, &submodel)
-	if !has{
+	if !has {
 		//添加到准入分类表中
 		_, err = svc.InsertEntityBytbl(OilSupplierCertSubName, &model)
-	}else{
+	} else {
 		model.Id = submodel.Id
 	}
 
@@ -613,7 +612,7 @@ func (this *OilSupplierCertSubController) AddBusiness() {
 	if model.SupplierTypeCode == "01" {
 		//		needList = filesvc.GetGoodsNeedFileList(model.SubClassId)
 	} else if model.SupplierTypeCode == "02" {
-		needList = filesvc.GetBasicNeedFileList(model.SubClassId)
+		needList = filesvc.GetBasicNeedFileList(strconv.Itoa(model.SubClassId))
 	} else {
 		//		needList = filesvc.GetTechNeedFileList(model.SubClassId)
 	}
@@ -643,7 +642,7 @@ func (this *OilSupplierCertSubController) AddBusiness() {
 			cert2File.SupplierId = model.SupplierId
 			cert2File.SupplierCertId = model.SupplierCertId
 			cert2File.SupplierTypeCode = model.SupplierTypeCode
-			cert2File.SubClassId= model.SubClassId
+			cert2File.SubClassId = model.SubClassId
 			cert2File.Code = model.Code
 			cert2File.Name = model.Name
 			cert2File.NeedFileType = needList[i].FileName
@@ -666,7 +665,7 @@ func (this *OilSupplierCertSubController) AddBusiness() {
 
 			isRepeat := false
 			for j := 0; j < len(list); j++ {
-				if list[j].NeedFileType == needList[i].FileName{
+				if list[j].NeedFileType == needList[i].FileName {
 					isRepeat = true
 					break
 				}
@@ -700,6 +699,9 @@ func (this *OilSupplierCertSubController) AddBusiness() {
 // @router /businessdelete/:Id [delete]
 func (this *OilSupplierCertSubController) BusinessDelete() {
 	Id := this.Ctx.Input.Param(":Id")
+	//SupplierCertId := this.GetString("SupplierCertId")
+	SupplierId := this.GetString("SupplierId")
+	SupplierTypeCode := this.GetString("SupplierTypeCode")
 	var errinfo ErrorInfo
 	if Id == "" {
 		errinfo.Message = "操作失败!请求信息不完整"
@@ -714,81 +716,109 @@ func (this *OilSupplierCertSubController) BusinessDelete() {
 	filesvc := supplierfile.GetSupplierfileService(utils.DBE)
 	paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
 
-	for i:=0;i<len(Ids);i++{
-	var datamain suppliercertsub.OilSupplierCertSub    //创建OilSupplierCertSub结构体(映射用)
-	var datamain2 []suppliercertsub.OilSupplierCertSub //空的查询用
-
-	where := " Id= " + Ids[i]
-	svc.GetEntity(&datamain, where) //根据Id查找,映射结构体
-
-	//再根据企业id查找这个企业有几个准入范围(如果只有一个准入范围了,基本资质也删除)
-
-	supplierId := datamain.SupplierId
-	where = "SupplierId=" + strconv.Itoa(supplierId)
-	svc.GetEntities(&datamain2, where)
-	flag := 0
-	if len(datamain2) == 1 {
-		flag = 1
-	}
-	subClassId := datamain.SubClassId //4.拿到结构体中的准入范围SubClassId
-	//根据SubClassId查出此准入范围所拥有的资质名称
-	var needList []supplierfile.FileList                              //定义存储所拥有资质名称的数组
-	if datamain.SupplierTypeCode == "01" {
-		needList = filesvc.GetGoodsNeedFileList(strconv.Itoa(subClassId)) //通过准入范围Id获得资质名称并填充数组
-	} else if datamain.SupplierTypeCode == "02" {
-		needList = filesvc.GetBasicNeedFileList(subClassId)
-	} else {
-		needList = filesvc.GetTechNeedFileList(subClassId)
+	//
+	var CertSublList []suppliercertsub.OilSupplierCertSub
+	where := "SupplierId=" + SupplierId + " and Id not in (" + Id + ")" // 没有删除的准入范围
+	svc.GetEntities(&CertSublList, where)
+	SubClassIds := ""
+	for _, CertSub := range CertSublList {
+
+		SubClassIds += strconv.Itoa(CertSub.SubClassId) + ","
+	}
+	var SurplusList []supplierfile.FileList
+	SubClassIds = strings.Trim(SubClassIds, ",")
+	if SubClassIds != "" {
+		if SupplierTypeCode == "01" {
+			SurplusList = filesvc.GetGoodsNeedFileList(SubClassIds)
+		} else if SupplierTypeCode == "02" {
+			SurplusList = filesvc.GetBasicNeedFileList(SubClassIds)
+		} else if SupplierTypeCode== "03" {
+			SurplusList = filesvc.GetTechNeedFileList(SubClassIds)
+		}
 	}
+	fileNames := ""
+	for _, CertSub := range SurplusList {
+		fileNames += CertSub.FileName + ","
+	}
+	fmt.Println(fileNames)
+	for i := 0; i < len(Ids); i++ {
+		var datamain suppliercertsub.OilSupplierCertSub    //创建OilSupplierCertSub结构体(映射用)
+		var datamain2 []suppliercertsub.OilSupplierCertSub //空的查询用
+
+		where := " Id= " + Ids[i]
+		svc.GetEntity(&datamain, where) //根据Id查找,映射结构体
+
+		//再根据企业id查找这个企业有几个准入范围(如果只有一个准入范围了,基本资质也删除)
+
+		supplierId := datamain.SupplierId
+		where = "SupplierId=" + strconv.Itoa(supplierId)
+		svc.GetEntities(&datamain2, where)
+		flag := 0
+		if len(datamain2) == 1 {
+			flag = 1
+		}
+		subClassId := datamain.SubClassId //4.拿到结构体中的准入范围SubClassId
+		//根据SubClassId查出此准入范围所拥有的资质名称
+		var needList []supplierfile.FileList //定义存储所拥有资质名称的数组
+		if datamain.SupplierTypeCode == "01" {
+			needList = filesvc.GetGoodsNeedFileList(strconv.Itoa(subClassId)) //通过准入范围Id获得资质名称并填充数组
+		} else if datamain.SupplierTypeCode == "02" {
+			needList = filesvc.GetBasicNeedFileList(strconv.Itoa(subClassId))
+		} else {
+			needList = filesvc.GetTechNeedFileList(strconv.Itoa(subClassId))
+		}
 
-	var mustField string
-	mustField = paramSvc.GetBaseparameterMessage("GFGL", "paramset", "MustFieldName") //必需的资质
+		var mustField string
+		mustField = paramSvc.GetBaseparameterMessage("GFGL", "paramset", "MustFieldName") //必需的资质
 
-	//根据企业ID(SupplierId)和此准入范围所拥有的资质名称删除OilSupplierFile表中对应的资质
-	for j := 0; j < len(needList); j++ { //循环遍历资质名称数组,逐条删除
+		//根据企业ID(SupplierId)和此准入范围所拥有的资质名称删除OilSupplierFile表中对应的资质
+		for j := 0; j < len(needList); j++ { //循环遍历资质名称数组,逐条删除
 
-		if flag == 0 && strings.Contains(mustField, needList[j].FileName+",") {
-			continue
+			if flag == 0 && strings.Contains(mustField, needList[j].FileName+",") {
+				continue
+			}
+			if flag == 0 && strings.Contains(fileNames, needList[j].FileName+",") {
+				continue
+			}
+			where := " SupplierId= '" + strconv.Itoa(datamain.SupplierId) + "' and NeedFileType='" + needList[j].FileName + "'" //拼接删除sql
+			err := svc.DeleteEntityBytbl(OilSupplierFileName, where)                                                            //删除第j条资质数据
+			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()
+			}
 		}
-		where := " SupplierId= '" + strconv.Itoa(datamain.SupplierId) + "' and NeedFileType='" + needList[j].FileName + "'" //拼接删除sql
-		err := svc.DeleteEntityBytbl(OilSupplierFileName, where)                                                            //删除第j条资质数据
-		if err == nil {
+		where = " SupplierId=" + strconv.Itoa(datamain.SupplierId) + " and SubClassId=" + strconv.Itoa(subClassId)
+		err1 := svc.DeleteEntityBytbl(OilSupplierCert2FileName, where)
+		if err1 == nil {
 			errinfo.Message = "删除成功"
 			errinfo.Code = 0
 			this.Data["json"] = &errinfo
 			this.ServeJSON()
 		} else {
-			errinfo.Message = "删除失败!" + utils.AlertProcess(err.Error())
+			errinfo.Message = "删除失败!" + utils.AlertProcess(err1.Error())
 			errinfo.Code = -1
 			this.Data["json"] = &errinfo
 			this.ServeJSON()
 		}
-	}
-	where = " SupplierId=" + strconv.Itoa(datamain.SupplierId) + " and SubClassId=" + strconv.Itoa(subClassId)
-	err1 := svc.DeleteEntityBytbl(OilSupplierCert2FileName, where) 
-	if err1 == nil {
-		errinfo.Message = "删除成功"
-		errinfo.Code = 0
-		this.Data["json"] = &errinfo
-		this.ServeJSON()
-	} else {
-		errinfo.Message = "删除失败!" + utils.AlertProcess(err1.Error())
-		errinfo.Code = -1
-		this.Data["json"] = &errinfo
-		this.ServeJSON()
-	}
-	where = " Id= " + Ids[i]
-	err2 := svc.DeleteEntityBytbl(OilSupplierCertSubName, where) //删除OilSupplierCertSub单条准入范围
-	if err2 == nil {
-		errinfo.Message = "删除成功"
-		errinfo.Code = 0
-		this.Data["json"] = &errinfo
-		this.ServeJSON()
-	} else {
-		errinfo.Message = "删除失败!" + utils.AlertProcess(err2.Error())
-		errinfo.Code = -1
-		this.Data["json"] = &errinfo
-		this.ServeJSON()
+		where = " Id= " + Ids[i]
+		err2 := svc.DeleteEntityBytbl(OilSupplierCertSubName, where) //删除OilSupplierCertSub单条准入范围
+		if err2 == nil {
+			errinfo.Message = "删除成功"
+			errinfo.Code = 0
+			this.Data["json"] = &errinfo
+			this.ServeJSON()
+		} else {
+			errinfo.Message = "删除失败!" + utils.AlertProcess(err2.Error())
+			errinfo.Code = -1
+			this.Data["json"] = &errinfo
+			this.ServeJSON()
 		}
 	}
 }
@@ -876,9 +906,6 @@ func (this *OilSupplierCertSubController) AddOpinion() {
 	}
 }
 
-
-
-
 // @Title 更新准入项状态
 // @Description
 // @router /updatestatus/:Id/:Status [get]
@@ -887,10 +914,10 @@ func (this *OilSupplierCertSubController) UpdateStatus() {
 	Status := this.Ctx.Input.Param(":Status")
 	svc := suppliercertsub.GetOilSupplierCertSubService(utils.DBE)
 	var error error
-	if Status =="1"{
-		_,error=svc.DBE.Exec("update "+ OilSupplierCertSubName+" set CertSubStatus='2' where Id="+Id+"")
-	}else{
-		_,error=svc.DBE.Exec("update "+ OilSupplierCertSubName+" set CertSubStatus='1' where Id="+Id+"")
+	if Status == "1" {
+		_, error = svc.DBE.Exec("update " + OilSupplierCertSubName + " set CertSubStatus='2' where Id=" + Id + "")
+	} else {
+		_, error = svc.DBE.Exec("update " + OilSupplierCertSubName + " set CertSubStatus='1' where Id=" + Id + "")
 	}
 
 	var errinfo ErrorDataInfo
@@ -908,10 +935,10 @@ func (this *OilSupplierCertSubController) UpdateStatus() {
 }
 
 type OilSupplierCert2File struct {
-	Id              int       `json:"not null pk autoincr INT(10)"`
-	certSubId       int       `json:"not null default 0 comment('供方基本信息表主键') INT(10)"`
-	certSubStatus   int       `json:"not null default 0 comment('供方准入证书信息表主键') INT(10)"`
-	stopReason 		string    `json:"not null default '0' comment('准入类别代码(1 物资类,2 基建类,3 技术服务类)') VARCHAR(5)"`
+	Id            int    `json:"not null pk autoincr INT(10)"`
+	certSubId     int    `json:"not null default 0 comment('供方基本信息表主键') INT(10)"`
+	certSubStatus int    `json:"not null default 0 comment('供方准入证书信息表主键') INT(10)"`
+	stopReason    string `json:"not null default '0' comment('准入类别代码(1 物资类,2 基建类,3 技术服务类)') VARCHAR(5)"`
 }
 
 // @Title 记录准入项状态更改日志
@@ -928,11 +955,11 @@ func (this *OilSupplierCertSubController) UpdateStatusWithLog() {
 
 	svc := suppliercertsub.GetOilSupplierCertSubService(utils.DBE)
 	var error error
-	if Status =="1"{
-		_,error=svc.DBE.Exec("update "+ OilSupplierCertSubName+" set CertSubStatus='2' where Id="+Id+"")
+	if Status == "1" {
+		_, error = svc.DBE.Exec("update " + OilSupplierCertSubName + " set CertSubStatus='2' where Id=" + Id + "")
 		pauseModel.CertSubStatus = "2"
-	}else{
-		_,error=svc.DBE.Exec("update "+ OilSupplierCertSubName+" set CertSubStatus='1' where Id="+Id+"")
+	} else {
+		_, error = svc.DBE.Exec("update " + OilSupplierCertSubName + " set CertSubStatus='1' where Id=" + Id + "")
 		pauseModel.CertSubStatus = "1"
 	}
 
@@ -953,4 +980,4 @@ func (this *OilSupplierCertSubController) UpdateStatusWithLog() {
 		this.Data["json"] = &errinfo
 		this.ServeJSON()
 	}
-}
+}

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

@@ -407,7 +407,7 @@ func (this *OilCorporateInfoController) ComAudit() {
 					if err3 == nil {
 						//编辑短信内容
 						toMobile := model.UserTelephone
-						msg := "恭喜您!市场管理信息系统账号注册成功,系统登录用户名为: " + model.UserName
+						msg := "恭喜您!市场管理信息系统账号注册成功,系统登录用户名为: " + model.UserName //
 						msgService := msg2.GetMsgService(utils.DBE)
 						err := msgService.HandleMsg(toMobile, msg, "1-1", model.UserName, model.UserRealName, strconv.Itoa(model.UserId))
 						if err == nil {

+ 0 - 648
src/dashoo.cn/frontend_web/src/components/oilsupplier/businesslist.vue

@@ -1,648 +0,0 @@
-<template>
-  <div>
-    <el-card class="box-card">
-      <div slot="header" class="clearfix">
-        <span style="font-weight: bold">准入范围</span>
-        <span style="float: right;">
-           <el-button style="float: right; padding: 3px 0px" type="text" @click="deletedata()" v-if="candelete">删除</el-button>
-          <el-button style="float: right; padding: 3px 25px" type="text" @click="showDialog" v-if="canadd || newcanadd">添加
-          </el-button>
-        </span>
-      </div>
-      <el-table :data="businessList" border size="mini" height="calc(100vh - 435px)"  @selection-change="handleSelectionChange">
-        <el-table-column type="selection"  width="55"></el-table-column>
-        <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-        <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-         <el-table-column prop="CertSubStatus" label="状态" show-overflow-tooltip>
-            <template slot-scope="scope">
-            <span v-if="scope.row.CertSubStatus=='1'"
-                  style="color:#67C23A">准入</span>
-            <span v-else-if="scope.row.CertSubStatus>'1'"
-                  style="color:#E6A23C">暂停</span>
-            <span v-else>——</span>
-          </template>
-        </el-table-column>
-        <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-
-        <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="删除" style="margin-left:3px"
-                       @click="deletedata(scope.row)" :disabled="!candelete">删除</el-button>
-          </template>
-        </el-table-column>
-      </el-table>
-      <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
-        :page-sizes="[10, 20, 100, 200, 400]" :page-size="size" layout="total, sizes, prev, pager, next, jumper"
-        :total="currentItemCount">
-      </el-pagination>
-    </el-card>
-
-    <el-dialog v-loading="loading" element-loading-text="正在添加请稍后..." :title="Title" :visible.sync="visible" top="5vh">
-      <el-form ref="BusinessForm" :model="BusinessForm" label-width="100px">
-        <el-row>
-          <!-- <el-col :span="12" v-if="SupplierTypeCode == '01' && Title == '新增准入范围'">
-            <el-form-item label="名称" prop="checkName">
-              <el-cascader ref="cascader" :options="optionsList" style="width:100%" :props="goodsProps"
-                :show-all-levels="false" v-model="selectedOptList" @active-item-change="getChildrens"
-                @change="getGoodsCode" placeholder="请选择分类">
-              </el-cascader>
-            </el-form-item>
-          </el-col> -->
-          <el-col :span="12" v-if="SupplierTypeCode == '02' && Title == '新增准入范围'">
-            <el-form-item label="名称" required>
-              <el-input placeholder="请选择名称" v-model="BusinessForm.Name" style="width:100%">
-                <el-button type="primary" style="width:30%" @click="basicDialog = true" slot="append">选择
-                </el-button>
-              </el-input>
-            </el-form-item>
-          </el-col>
-          <!-- <el-col :span="12" v-if="SupplierTypeCode == '03' && Title == '新增准入范围'">
-            <el-form-item label="名称" required>
-              <el-cascader :options="techTreeList" :props="orgtreeprops" change-on-select :show-all-levels="false"
-                v-model="selectedorg" placeholder="请选择菜单" @change="getCode()" style="width:100%"></el-cascader>
-            </el-form-item>
-          </el-col> -->
-          <el-col :span="12" v-if="Title == '编辑准入范围'">
-            <el-form-item label="名称">
-              <el-input v-model="BusinessForm.Name" placeholder="请输入名称" disabled></el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="编码" required>
-              <el-input v-model="BusinessForm.Code" placeholder="请输入编码" :disabled="Title == '编辑准入范围'"></el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="备注信息">
-              <el-input v-model="BusinessForm.Remark" 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="addBasicBus()">确 定</el-button>
-      </div>
-    </el-dialog>
-
-    <el-dialog  title="基建类业务列表" :visible.sync="basicDialog" top="5vh">
-      <span style="float: right;">
-        <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="seachdata()">查询
-        </el-button>
-        <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="basicDialog = false">
-          取消</el-button>
-      </span>
-      <el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
-        <el-form-item label="业务名称">
-          <el-input size="mini" style="width: 165px;" v-model="keyword" placeholder="请输入业务名称"></el-input>
-        </el-form-item>
-      </el-form>
-      <el-table :data="techList" border>
-        <el-table-column label="操作" width="70" align="center" fixed>
-          <template slot-scope="scope">
-            <el-button type="text" size="small" @click="getChooseCode(scope.row)">选择</el-button>
-          </template>
-        </el-table-column>
-        <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-        <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-        <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-      </el-table>
-      <el-pagination @size-change="HandleSizeChange" @current-change="HandleCurrentChange" :current-page="CurrentPage"
-        :page-sizes="[10, 15, 20, 25]" :page-size="Size" layout="total, sizes, prev, pager, next, jumper"
-        :total="CurrentItemCount">
-      </el-pagination>
-
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-  import {
-    mapGetters
-  } from 'vuex'
-
-  export default {
-    name: 'EquipmentList',
-    components: {},
-    props: {
-      canadd: {
-        type: Boolean,
-        default: false
-      },
-      newcanadd: {
-        type: Boolean,
-        default: false
-      },
-      candelete: {
-        type: Boolean,
-        default: false
-      }
-    },
-    /* created() {
-      this.initData()
-    },
-    computed: {
-      ...mapGetters({
-        session: 'session'
-      })
-    }, */
-    data () {
-      var CheckSelectedOption = (rule, value, callback) => {
-        if (this.selectedOptList && this.selectedOptList.length < 1) {
-          callback(new Error('请选择分类'))
-        } else {
-          callback()
-        }
-      }
-      return {
-        loading: false,
-        Ids: [],
-        SupplierId: 0,
-        SupplierTypeCode: '',
-        SupplierCertId: 0,
-
-        businessList: [],
-        techList: [],
-        // techTreeList: [],
-        // orgtreeprops: {
-        //   value: 'id',
-        //   label: 'Name',
-        //   children: 'children'
-        // },
-        // selectedorg: [],
-        ClassId: '',
-
-        // 物资类懒加载
-        // optionsList: [], //物资类层级列表
-        // selectedOptList: [], //已选择的物资类列表
-        // goodsProps: {
-        //   value: 'id',
-        //   label: 'Name',
-        //   children: 'children'
-        // },
-        // 物资类表单规则
-        // formRules: {
-        //   checkName: [{
-        //     required: true,
-        //     validator: CheckSelectedOption,
-        //     trigger: 'blur'
-        //   }],
-        // },
-
-        Title: '',
-        BusinessForm: {
-          Id: '',
-          SupplierId: '',
-          SupplierCertId: '',
-          SupplierTypeCode: '',
-          SubClassId: '',
-          CertSubStatus: '-1',
-          Code: '',
-          Name: '',
-          Remark: '',
-          IsDelete: 0,
-          Type: '1'
-        },
-        visible: false,
-        selfVisible: this.visible, // 避免vue双向绑定警告
-        currentPage: 1, // 分页
-        size: 10,
-        currentItemCount: 0,
-        basicDialog: false,
-        keyword: '',
-        CurrentPage: 1, // 分页
-        Size: 10,
-        CurrentItemCount: 0,
-        flagId: 0 // 标记是否第一次点击
-      }
-    },
-    methods: {
-      changeCertSubStatus (row, column, cell, event) {
-        if (this.newcanadd && column.property === 'CertSubStatus') {
-          this.$confirm('确定更改此准入范围状态吗?', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          }).then((res) => {
-            this.$axios.get('suppliercertsub/updatestatus/' + row.Id + '/' + row.CertSubStatus + '', {}).then(res => {
-              if (res.data.code === 0) {
-                this.$message({
-                  type: 'success',
-                  message: '更改成功'
-                })
-                this.initData()
-              }
-            }).catch(err => {
-              console.error(err)
-            })
-          }).catch(() => {
-          })
-        } else {
-        }
-      },
-      handleSelectionChange (val) {
-        this.Ids = []
-        for (var i = 0; i < val.length; i++) {
-          this.Ids.push(val[i].Id)
-        }
-      },
-      getvalue (SupplierId, SupplierTypeCode, certId) {
-        this.SupplierId = SupplierId
-        this.SupplierTypeCode = SupplierTypeCode
-        this.SupplierCertId = certId
-        this.initData()
-      },
-      initData () {
-        let _this = this
-        const params = {
-          SupplierCertId: this.SupplierCertId,
-          SupplierTypeCode: this.SupplierTypeCode,
-          _currentPage: this.currentPage,
-          _size: this.size
-        }
-        this.$axios.get('suppliercertsub/list', {
-          params
-        })
-          .then(res => {
-            _this.businessList = res.data.items
-            _this.currentItemCount = res.data.currentItemCount
-            _this.$emit('close')
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      // savedata() {
-      // if (this.Title === '新增准入范围') {
-      //   if (this.BusinessForm.SupplierTypeCode == '01') {
-      //     this.addGoodsBus()
-      //   } else if (this.BusinessForm.SupplierTypeCode == '02') {
-      // this.addBasicBus()
-      //   } else {
-      //     this.addBusiness()
-      //   }
-      // } else if (this.Title === '编辑准入范围') {
-      //   this.editBusiness()
-      // }
-      // },
-      // addGoodsBus() {
-      //   let _this = this
-      //   let arr = []
-      //   arr = _this.$refs['cascader'].currentLabels
-      //   _this.BusinessForm.Name = arr[arr.length - 1]
-      //   _this.BusinessForm.SupplierId = parseInt(_this.BusinessForm.SupplierId)
-      //   _this.BusinessForm.SupplierCertId = parseInt(_this.BusinessForm.SupplierCertId)
-      //   _this.BusinessForm.SubClassId = parseInt(_this.BusinessForm.SubClassId)
-      //   //因为表单验证不能用,所以采用提示验证
-      //   if (_this.selectedOptList.length < 1) {
-      //     _this.$message({
-      //       type: 'warning',
-      //       message: '名称不能为空,请选择分类!'
-      //     })
-      //   } else {
-      //     _this.$axios.post('/suppliercertsub/addbusiness/', _this.BusinessForm)
-      //       .then(res => {
-      //         if (res.data.code === 0) {
-      //           _this.$message({
-      //             type: 'success',
-      //             message: res.data.message
-      //           })
-      //           _this.BusinessForm.Id = res.data.item + ''
-      //           _this.visible = false
-      //           _this.initData()
-      //         } else {
-      //           _this.$message({
-      //             type: 'warning',
-      //             message: res.data.message
-      //           })
-      //         }
-      //       })
-      //       .catch(err => {
-      //         console.error(err)
-      //       })
-      //   }
-      // },
-      addBasicBus () {
-        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.loading = true
-        _this.$axios.post('/suppliercertsub/addbusiness/', _this.BusinessForm)
-          .then(res => {
-            if (res.data.code === 0) {
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              _this.BusinessForm.Id = res.data.item + ''
-              _this.visible = false
-              _this.loading = false
-              _this.initData()
-            } else {
-              _this.loading = false
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      // addBusiness() {
-      //   let _this = this
-      //   _this.BusinessForm.SupplierId = parseInt(_this.BusinessForm.SupplierId)
-      //   _this.BusinessForm.SupplierCertId = parseInt(_this.BusinessForm.SupplierCertId)
-      //   _this.BusinessForm.SubClassId = parseInt(_this.BusinessForm.SubClassId)
-      //   //因为表单验证不能用,所以采用提示验证
-      //   if (_this.selectedorg.length < 1) {
-      //     _this.$message({
-      //       type: 'warning',
-      //       message: '名称不能为空,请选择分类!'
-      //     })
-      //   } else {
-      //     _this.$axios.post('/suppliercertsub/addbusiness/', _this.BusinessForm)
-      //       .then(res => {
-      //         if (res.data.code === 0) {
-      //           _this.$message({
-      //             type: 'success',
-      //             message: res.data.message
-      //           })
-      //           _this.BusinessForm.Id = res.data.item + ''
-      //           _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) {
-        if (val != null && val != '') {
-          this.Ids = []
-          this.Ids.push(val.Id)
-        }
-        if (this.Ids.length == 0) {
-          this.$message({
-            type: 'warning',
-            message: '请先选择删除条目'
-          })
-          return
-        }
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            const delload = this.$loading({
-              lock: true,
-              text: '正在删除请稍后...'
-            })
-            _this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
-              .then(function (response) {
-                if (response.data.code === 0) {
-                  _this.$message({
-                    type: 'success',
-                    message: response.data.message
-                  })
-                  _this.Ids = []
-                  delload.close()
-                  _this.initData()
-                } else {
-                  _this.Ids = []
-                  delload.close()
-                  _this.$message({
-                    type: 'warning',
-                    message: response.data.message
-                  })
-                }
-              })
-              .catch(function (error) {
-                console.log(error)
-              })
-          })
-          .catch(() => {
-            _this.Ids = []
-          })
-      },
-      showDialog () {
-        this.selectedorg = []
-        this.keyword = ''
-        this.seachdata()
-        this.Title = '新增准入范围'
-        this.selectedOptList = [] // 置空,防止先修改再添加时的已选分类信息保留
-        this.BusinessForm.Id = ''
-        this.BusinessForm.SupplierId = this.SupplierId
-        this.BusinessForm.SupplierCertId = this.SupplierCertId
-        this.BusinessForm.SupplierTypeCode = this.SupplierTypeCode
-        this.BusinessForm.SubClassId = ''
-        this.BusinessForm.Code = ''
-        this.BusinessForm.Name = ''
-        this.BusinessForm.Remark = ''
-        this.BusinessForm.IsDelete = 0
-        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') { // 获取物资类第一级分类
-        //   this.$axios.get('goodsaptitude/goodsparentlist', {})
-        //     .then(res => {
-        //       _this.optionsList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
-        //       _this.optionsList.forEach((item, index) => {
-        //         _this.$set(this.optionsList[index], 'children', [])
-        //       })
-        //     })
-        //     .catch(err => {
-        //       console.error(err)
-        //     })
-        // } else if (_this.SupplierTypeCode === '02') { // 获取基建类业务列表
-        const params = {
-          keyword: this.keyword,
-          _currentPage: this.CurrentPage,
-          _size: this.Size
-        }
-        this.$axios.get('basisbuild/basiclist', {
-          params
-        })
-          .then(res => {
-            _this.techList = res.data.items
-            _this.CurrentItemCount = res.data.currentItemCount
-          })
-          .catch(err => {
-            console.error(err)
-          })
-        // } else if (_this.SupplierTypeCode === '03') { // 获取技术服务类业务列表
-        //   this.$axios.get('technologyservice/businesslist', {})
-        //     .then(res => {
-        //       _this.techList = res.data.items
-        //       _this.techTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
-        //     })
-        //     .catch(err => {
-        //       console.error(err)
-        //     })
-        // }
-      },
-      // 获取下一级所有分类
-      getChildrens (val) {
-        let _this = this
-        let Id = val[0]
-        if (Id != _this.flagId) { // 判断是否是第一次,若不相等则为第一次
-          this.$axios.get('goodsaptitudeclass/getchildlist/' + Id, {})
-            .then(res => {
-              // 获取下一级所有级联数据
-              if (res.data.items) { // 判断是否有数据
-                let tempList = []
-                tempList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
-                // 添加到上一级对应的选项中
-                for (let i = 0; i < _this.optionsList.length; i++) {
-                  if (_this.optionsList[i].id === Id) {
-                    _this.$set(_this.optionsList[i], 'children', tempList)
-                    break
-                  }
-                }
-              } else {
-                // 修改上一级的children属性
-                for (let i = 0; i < _this.optionsList.length; i++) {
-                  if (_this.optionsList[i].id === Id) {
-                    _this.$set(_this.optionsList[i], 'children', '')
-                    break
-                  }
-                }
-              }
-              // 做标记
-              _this.flagId = Id
-            })
-            .catch(err => {
-              console.error(err)
-            })
-        }
-      },
-      // 获取分类级联Id
-      getGoodsCode (item) {
-        this.getCodeById(item[item.length - 1]) // 根据分类Id获取Code
-      },
-      // 根据分类Id获取Code
-      getCodeById (Id) {
-        let _this = this
-        this.$axios.get('goodsaptitudeclass/getcode/' + Id, {})
-          .then(res => {
-            _this.BusinessForm.SubClassId = Id
-            _this.BusinessForm.Code = res.data.items[0].Code
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // getCode() {
-      //   this.ClassId = this.selectedorg[this.selectedorg.length - 1]
-      //   for (var i = 0; i < this.techList.length; i++) {
-      //     if (this.selectedorg[this.selectedorg.length - 1] === this.techList[i].Id) {
-      //       this.BusinessForm.SubClassId = this.techList[i].Id
-      //       this.BusinessForm.Name = this.techList[i].Name
-      //       this.BusinessForm.Code = this.techList[i].Code
-      //     }
-      //   }
-      // },
-      getChooseCode (val) {
-        this.ClassId = val.Id
-        this.BusinessForm.SubClassId = val.Id
-        this.BusinessForm.Code = val.Code
-        this.BusinessForm.Name = val.Name
-        this.basicDialog = false
-      },
-
-      handleSizeChange (value) {
-        this.size = value
-        this.currentPage = 1
-        this.initData()
-      },
-      handleCurrentChange (value) {
-        this.currentPage = value
-        this.initData()
-      },
-      HandleSizeChange (value) {
-        this.Size = value
-        this.CurrentPage = 1
-        this.getbusiness()
-      },
-      HandleCurrentChange (value) {
-        this.CurrentPage = value
-        this.getbusiness()
-      },
-      seachdata () {
-        this.CurrentPage = -1
-        this.getbusiness()
-      },
-      jstimehandle (val) {
-        if (val === '') {
-          return '----'
-        } else if (val === '0001-01-01T08:00:00+08:00') {
-          return '----'
-        } else if (val === '5000-01-01T23:59:59+08:00') {
-          return '永久'
-        } else {
-          val = val.replace('T', ' ')
-          return val.substring(0, 10)
-        }
-      }
-    }
-  }
-</script>
-
-<style>
-
-
-</style>

+ 0 - 606
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodslist.vue

@@ -1,606 +0,0 @@
-<template>
-  <div>
-    <el-card class="box-card">
-      <div slot="header"
-           class="clearfix">
-        <span style="font-weight: bold">准入范围</span>
-        <span style="float: right;">
-          <el-button style="float: right; padding: 3px 0px"
-                     type="text"
-                     @click="deletedata()"
-                     v-if="candelete">删除</el-button>
-          <el-button style="float: right; padding: 3px 25px"
-                     type="text"
-                     @click="showDialog"
-                     v-if="canadd || newcanadd">添加</el-button>
-        </span>
-      </div>
-      <el-table :data="goodsList"
-                border
-                size="mini"
-                height="calc(100vh - 435px)"
-                @selection-change="handleSelectionChange">
-        <el-table-column type="selection"
-                         width="55">
-        </el-table-column>
-
-        <el-table-column prop="Code"
-                         label="分类编码"
-                         show-overflow-tooltip></el-table-column>
-        <el-table-column prop="Name"
-                         label="分类名称"
-                         show-overflow-tooltip></el-table-column>
-        <el-table-column prop="CertSubStatus"
-                         label="状态"
-                         show-overflow-tooltip>
-          <template slot-scope="scope">
-            <span v-if="scope.row.CertSubStatus=='1'"
-                  style="color:#67C23A">准入</span>
-            <span v-else-if="scope.row.CertSubStatus>'1'"
-                  style="color:#E6A23C">暂停</span>
-            <span v-else>——</span>
-          </template>
-        </el-table-column>
-        <el-table-column prop="Remark"
-                         label="备注"
-                         show-overflow-tooltip></el-table-column>
-
-        <el-table-column label="操作"
-                         width="90"
-                         align="center"
-                         fixed>
-          <template slot-scope="scope">
-            <el-button type="primary"
-                       plain
-                       size="mini"
-                       title="删除"
-                       style="margin-left:3px"
-                       @click="deletedata(scope.row)"
-                       :disabled="!candelete">删除</el-button>
-          </template>
-        </el-table-column>
-      </el-table>
-      <el-pagination @size-change="handleSizeChange"
-                     @current-change="handleCurrentChange"
-                     :current-page="currentPage"
-                     :page-sizes="[10, 50, 100, 200, 400]"
-                     :page-size="size"
-                     layout="total, sizes, prev, pager, next, jumper"
-                     :total="currentItemCount">
-      </el-pagination>
-    </el-card>
-
-    <el-dialog v-loading="loading"
-               element-loading-text="正在添加请稍后..."
-               title="物资类业务列表"
-               :visible.sync="goodsDialog"
-               top="5vh">
-      <el-tabs v-model="tabIdx"
-               style="margin-top: -30px;">
-        <el-tab-pane label="准入编码"
-                     name="1">
-          <el-row>
-            <el-col :span="12">
-              <el-input v-if="!switchstatus"
-                        v-model="filterText"
-                        placeholder="请输入名称或代码"
-                        size="mini"
-                        style="width: 250px;"></el-input>
-              <el-input v-if="switchstatus"
-                        v-model="searchText"
-                        placeholder="请输入名称或代码"
-                        size="mini"
-                        style="width: 250px;"></el-input>
-              <el-button style="float: right;"
-                         type="primary"
-                         size="mini"
-                         @click="getsectreelist()"
-                         :disabled="!switchstatus">查询</el-button>
-              <el-switch v-model="switchstatus"
-                         size="mini"></el-switch>
-            </el-col>
-          </el-row>
-          <el-row :gutter="20"
-                  style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">
-            <el-col :span="20">
-              <el-tree v-show="!switchstatus"
-                       highlight-current
-                       :expand-on-click-node="true"
-                       node-key="CodeName"
-                       :data="orgtreelist"
-                       :props="orgtreeprops"
-                       ref="orgmanagetree"
-                       check-on-click-node
-                       show-checkbox
-                       lazy
-                       :load="getChildrens"
-                       :filter-node-method="filterNode">
-              </el-tree>
-              <el-tree v-show="switchstatus"
-                       ref="secmanagetree"
-                       :data="sectreelist"
-                       show-checkbox
-                       check-on-click-node
-                       node-key="CodeName"
-                       :props="sectreeprops">
-              </el-tree>
-            </el-col>
-          </el-row>
-          <el-row style="margin-top: 30px">
-            备注信息:
-            <el-col :span="24">
-              <el-input v-model="Remark"
-                        type="textarea"
-                        :rows=3
-                        placeholder="请输入备注信息"></el-input>
-            </el-col>
-          </el-row>
-        </el-tab-pane>
-
-        <el-tab-pane label="顶级编码"
-                     name="2">
-          <el-form ref="form"
-                   :inline="true"
-                   style="float: left;margin-top:-7px">
-            <el-form-item label="">
-              <el-input size="mini"
-                        style="width: 245px;"
-                        v-model="keyword"
-                        placeholder="请输入名称或代码"></el-input>
-            </el-form-item>
-          </el-form>
-          <span style="float: left">
-            <el-button type="primary"
-                       size="mini"
-                       style="margin-left:10px;"
-                       @click="initData2019()">查询
-            </el-button>
-            <el-button type="primary"
-                       size="mini"
-                       style="margin-left:10px;"
-                       @click="goodsDialog = false">
-              取消</el-button>
-          </span>
-
-          <el-table :data="goodsList2019"
-                    border
-                    size="mini"
-                    @selection-change="handleSelectionChangeCert">
-            <el-table-column type="selection"
-                             width="55">
-            </el-table-column>
-            <el-table-column prop="Code"
-                             label="编码"
-                             show-overflow-tooltip></el-table-column>
-            <el-table-column prop="Name"
-                             label="名称"
-                             show-overflow-tooltip></el-table-column>
-          </el-table>
-          <el-pagination @size-change="handleSizeChangeCert"
-                         @current-change="handleCurrentChangeCert"
-                         :current-page="currentPageCert"
-                         :page-sizes="[10, 15, 20, 25]"
-                         :page-size="sizeCert"
-                         layout="total, sizes, prev, pager, next, jumper"
-                         :total="currentItemCountCert">
-          </el-pagination>
-          <el-form label-width="80px"
-                   label-position="top">
-            <el-form-item label="备注信息">
-              <el-input size="mini"
-                        type="textarea"
-                        style="width:100%"
-                        v-model="Remark1"></el-input>
-            </el-form-item>
-
-          </el-form>
-
-        </el-tab-pane>
-      </el-tabs>
-      <div slot="footer"
-           class="dialog-footer"
-           v-if="tabIdx==1">
-        <!--<el-button size="mini" @click="visible = false">取 消</el-button>-->
-        <el-button type="primary"
-                   size="mini"
-                   @click="getChecklist()">确 定</el-button>
-      </div>
-       <div slot="footer"
-           class="dialog-footer"
-           v-if="tabIdx==2">
-        <el-button type="primary"
-                   size="mini"
-                   @click="addBusiness1()">确 定</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-import {
-  mapGetters
-} from 'vuex'
-
-export default {
-  name: 'GoodsList',
-  components: {},
-  props: {
-    canadd: {
-      type: Boolean,
-      default: false
-    },
-    newcanadd: {
-      type: Boolean,
-      default: false
-    },
-    candelete: {
-      type: Boolean,
-      default: false
-    }
-  },
-  created () {
-    this.initData2019()
-  },
-  /*
-  computed: {
-    ...mapGetters({
-      session: 'session'
-    })
-  }, */
-  watch: {
-    filterText (val) {
-      this.$refs.orgmanagetree.filter(val)
-    }
-  },
-  data () {
-    return {
-      loading: false,
-      keyword: '',
-      Ids: [],
-      SupplierId: 0,
-      SupplierTypeCode: '',
-      SupplierCertId: 0,
-      tabIdx: '1',
-      sectionCert: [],
-      goodsList2019: [],
-      goodsList: [],
-      goodsDialog: false,
-      switchstatus: false,
-      orgtreelist: [],
-      sectreelist: [],
-      orgtreeprops: {
-        value: 'Id',
-        label: 'CodeName',
-        children: 'children',
-        isLeaf: 'Leaf',
-        disabled: 'disabled'
-      },
-      sectreeprops: {
-        children: 'children',
-        label: 'CodeName',
-        disabled: 'disabled'
-      },
-      checkList: [],
-      Remark: '',
-      Remark1: '',
-
-      filterText: '',
-      searchText: '',
-      visible: false,
-      selfVisible: this.visible, // 避免vue双向绑定警告
-      currentPage: 1, // 分页
-      size: 10,
-      currentItemCount: 0,
-      currentPageCert: 1, // 分页
-      sizeCert: 10,
-      currentItemCountCert: 0,
-      flagId: 0 // 标记是否第一次点击
-    }
-  },
-  methods: {
-    initData2019 () {
-      let params = {
-        _currentPage: this.currentPageCert,
-        _size: this.sizeCert,
-        Name: this.keyword
-      }
-      this.$axios.get('suppliercertsub/listCert2019', { params })
-        .then(res => {
-          this.goodsList2019 = res.data.items
-          this.currentItemCountCert = res.data.currentItemCount
-        })
-        .catch(err => {
-          console.error(err)
-        })
-    },
-    changeCertSubStatus (row, column, cell, event) {
-      if (this.newcanadd && column.property === 'CertSubStatus') {
-        this.$confirm('确定更改此准入范围状态吗?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        }).then((res) => {
-          this.$axios.get('suppliercertsub/updatestatus/' + row.Id + '/' + row.CertSubStatus + '', {}).then(res => {
-            if (res.data.code === 0) {
-              this.$message({
-                type: 'success',
-                message: '更改成功'
-              })
-              this.initData()
-            }
-          }).catch(err => {
-            console.error(err)
-          })
-        }).catch(() => {
-        })
-      } else {
-      }
-    },
-    handleSelectionChange (val) {
-      this.Ids = []
-      for (var i = 0; i < val.length; i++) {
-        this.Ids.push(val[i].Id)
-      }
-    },
-    handleSelectionChangeCert (val) {
-      this.sectionCert = val
-    },
-    getvalue (SupplierId, SupplierTypeCode, certId) {
-      this.SupplierId = SupplierId
-      this.SupplierTypeCode = SupplierTypeCode
-      this.SupplierCertId = certId
-      this.initData()
-    },
-    initData () {
-      let _this = this
-      const params = {
-        SupplierCertId: this.SupplierCertId,
-        SupplierTypeCode: this.SupplierTypeCode,
-        _currentPage: this.currentPage,
-        _size: this.size
-      }
-      this.$axios.get('suppliercertsub/list', {
-        params
-      })
-        .then(res => {
-          _this.goodsList = res.data.items
-          _this.currentItemCount = res.data.currentItemCount
-          _this.$emit('close')
-        })
-        .catch(err => {
-          console.error(err)
-        })
-    },
-    getChecklist () {
-      let val1 = this.$refs.orgmanagetree.getCheckedNodes()
-      let val2 = this.$refs.secmanagetree.getCheckedNodes()
-      this.checkList = []
-      for (var i = 0; i < val1.length; i++) {
-        if (val1[i].Code.length == 8) {
-          this.checkList.push(val1[i])
-        }
-      }
-      for (var i = 0; i < val2.length; i++) {
-        if (val2[i].Code.length == 8) {
-          this.checkList.push(val2[i])
-        }
-      }
-      this.addBusiness()
-      this.switchstatus = false
-    },
-    addBusiness1 () {
-      if (this.sectionCert.length <= 0) {
-        this.$message({
-          type: 'warning',
-          message: '请选择准入类别'
-        })
-        return
-      }
-      let params = {
-        SupplierId: parseInt(this.SupplierId),
-        SupplierCertId: parseInt(this.SupplierCertId),
-        SupplierTypeCode: '01',
-        Type: '1',
-        CertSubStatus: '-1',
-        Remark: this.Remark1,
-        CheckList: this.sectionCert
-      }
-      for (var i = 0; i < this.sectionCert.length; i++) {
-        this.sectionCert[i].Id = this.sectionCert[i].Id + ''
-      }
-      this.loading = true
-      this.$axios.post('/suppliercertsub/addgoodsbus', params)
-        .then(res => {
-          if (res.data.code === 0) {
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-            this.goodsDialog = false
-            this.loading = false
-            this.sectionCert = []
-            this.Remark1 = ''
-            this.initData()
-            this.initData2019()
-          } else {
-            this.loading = false
-            this.$message({
-              type: 'warning',
-              message: '操作失败!'
-            })
-          }
-        })
-        .catch(err => {
-          console.error(err)
-        })
-    },
-    addBusiness () {
-      let _this = this
-      let params = {
-        SupplierId: parseInt(_this.SupplierId),
-        SupplierCertId: parseInt(_this.SupplierCertId),
-        SupplierTypeCode: '01',
-        Type: '1',
-        CertSubStatus: '-1',
-        Remark: _this.Remark
-      }
-      if (_this.checkList.length > 0) {
-        params = Object.assign(params, {
-          CheckList: _this.checkList
-        })
-      } else {
-        _this.$message({
-          type: 'warning',
-          message: '名称不能为空,请选择分类!'
-        })
-        return
-      }
-      _this.loading = true
-      _this.$axios.post('/suppliercertsub/addgoodsbus', params)
-        .then(res => {
-          if (res.data.code === 0) {
-            _this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-            _this.goodsDialog = false
-            _this.loading = false
-            _this.initData()
-          } else {
-            _this.loading = false
-            _this.$message({
-              type: 'warning',
-              message: '操作失败!'
-            })
-          }
-        })
-        .catch(err => {
-          console.error(err)
-        })
-      this.$refs.orgmanagetree.setCheckedKeys([])
-      this.$refs.secmanagetree.setCheckedKeys([])
-      this.filterText = ''
-      this.searchText = ''
-    },
-    deletedata (val) {
-      if (val != null && val != '') {
-        this.Ids = []
-        this.Ids.push(val.Id)
-      }
-
-      if (this.Ids.length == 0) {
-        this.$message({
-          type: 'warning',
-          message: '请先选择删除条目'
-        })
-        return
-      }
-
-      let _this = this
-      _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      })
-        .then(() => {
-          const delload = this.$loading({
-            lock: true,
-            text: '正在删除请稍后...'
-          })
-          _this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
-            .then(function (response) {
-              if (response.data.code === 0) {
-                _this.$message({
-                  type: 'success',
-                  message: response.data.message
-                })
-                delload.close()
-                _this.Ids = []
-                _this.initData()
-              } else {
-                delload.close()
-                _this.Ids = []
-                _this.$message({
-                  type: 'warning',
-                  message: response.data.message
-                })
-              }
-            })
-            .catch(function (error) {
-              console.log(error)
-            })
-        })
-        .catch(() => {
-          _this.Ids = []
-        })
-    },
-    showDialog () {
-      // this.getorgtreelist()
-      this.goodsDialog = true
-    },
-    getsectreelist () {
-      let _this = this
-      let name = _this.searchText
-      this.$axios.get('goodsaptitude/goodsparentlist/' + name)
-        .then(res => {
-          _this.sectreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
-        })
-        .catch(err => {
-          console.error(err)
-        })
-    },
-    // 获取下一级所有分类
-    getChildrens (val, resolve) {
-      let Id = 0
-      if (val.level === 0) {
-        Id = 0
-      } else {
-        Id = val.data.Id
-      }
-      this.$axios.get('goodsaptitude/goodschildlistbypid/' + Id, {})
-        .then(res => {
-          if (!res.data.items || res.data.items.length <= 0) {
-            val.isLeaf = true
-            return resolve([])
-          }
-          for (let idx in res.data.items) {
-            if (res.data.items[idx].Code.length <= 4) {
-              res.data.items[idx].disabled = true
-            }
-            res.data.items[idx].Leaf = res.data.items[idx].Leaf === '1'
-          }
-          return resolve(res.data.items)
-        })
-        .catch(err => {
-          console.error(err)
-        })
-    },
-    filterNode (value, data) {
-      if (!value) return true
-      return data.CodeName.indexOf(value) !== -1
-    },
-
-    handleSizeChange (value) {
-      this.size = value
-      this.currentPage = 1
-      this.initData()
-    },
-    handleCurrentChange (value) {
-      this.currentPage = value
-      this.initData()
-    },
-    handleSizeChangeCert (value) {
-      this.sizeCert = value
-      this.currentPageCert = 1
-      this.initData2019()
-    },
-    handleCurrentChangeCert (value) {
-      this.currentPageCert = value
-      this.initData2019()
-    }
-  }
-}
-</script>
-
-<style>
-</style>

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

@@ -1,667 +0,0 @@
-<template>
-  <div>
-    <el-card class="box-card" style="margin-top: 10px;">
-      <div slot="header" class="clearfix">
-        <span style="font-weight: bold">准入范围</span>
-        <el-button type="primary" size="mini" style="float: right;margin-right: 3px" @click="nextStep()"
-          v-if="canadd && IsCompanyUser == 0">
-          提交审批
-        </el-button>
-        <!-- <el-button type="primary" size="mini" style="float: right;margin-right: 3px" @click="nextStep()"
-          v-if="canadd && IsCompanyUser == 1">
-          提交
-        </el-button> -->
-      </div>
-      <el-table :data="businessList" size="mini" border bordertooltip-effect="dark" height="calc(100vh - 435px)" @selection-change="handleSelectionChange"> 
-        <el-table-column type="selection" width="55"></el-table-column>
-        <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-        <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-        <el-table-column prop="CertSubStatus" label="状态" show-overflow-tooltip>
-            <template slot-scope="scope">
-            <span v-if="scope.row.CertSubStatus=='1'"
-                  style="color:#67C23A">准入</span>
-            <span v-else-if="scope.row.CertSubStatus>'1'"
-                  style="color:#E6A23C">暂停</span>
-            <span v-else>——</span>
-          </template>
-        </el-table-column>
-        <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-      </el-table>
-       <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
-        :page-sizes="[10, 50, 100, 200, 400]" :page-size="size" layout="total, sizes, prev, pager, next, jumper"
-        :total="currentItem_Count">
-      </el-pagination>
-    </el-card>
-
-    <el-card class="box-card" style="margin-top: 10px;">
-      <div slot="header" class="clearfix">
-        <span style="font-weight: bold"> 企业资质</span>
-        <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog" v-if="canadd || newcanadd">添加</el-button>
-      </div>
-      <el-table :data="subfileList" border size="mini">
-        <el-table-column label="操作" width="150" align="center" fixed>
-          <template slot-scope="scope">
-            <el-button type="primary" plain size="mini" title="上传" @click="openDialog(scope.row)" :disabled="!canadd && !newcanadd">上传
-            </el-button>
-            <el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
-              :disabled="(scope.row.FileType == '1' || !canadd) && !newcanadd" @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="FileUrlList" label="资质文件" show-overflow-tooltip>
-          <template slot-scope="scope">
-            <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
-              <el-link :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary">
-                {{scope.row.FileName.split('$')[index]}}</el-link>
-            </div>
-          </template>
-        </el-table-column>
-        <el-table-column prop="EffectDate" label="有效日期" show-overflow-tooltip>
-          <template slot-scope="scope">
-            {{ jstimehandle(scope.row.EffectDate+'') }}
-          </template>
-        </el-table-column>
-        <el-table-column prop="OtherRemark" label="描述" show-overflow-tooltip></el-table-column>
-      </el-table>
-    </el-card>
-
-    <el-dialog :title="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="资质名称" required>
-              <el-select ref="refSupplierCertSub" v-model="SubfileForm.SupplierCertSubId" style="width:100%"
-                placeholder="请选择资质名称" @change="getCode()">
-                <el-option v-for="item in businessList" :label="item.Name" :value="item.Id" :key="item.Id">
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col> -->
-          <el-col :span="12">
-            <el-form-item label="资质名称" required>
-              <!-- <el-input v-model="SubfileForm.NeedFileType" placeholder="请输文件类型"></el-input> -->
-              <el-select v-model="SubfileForm.NeedFileType" placeholder="请输文件类型" size="medium" :disabled="IsMust">
-                <el-option v-for="item in dynamicTableColumns" :key="item.prop" :label="item.label" :value="item.label">
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="有效日期" required>
-              <el-date-picker style="width: 100%" v-model="SubfileForm.EffectDate" type="date" placeholder="请选择有效日期">
-              </el-date-picker>
-            </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-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>
-                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">请上传图片(大小为512KB-5MB),可上传多张图片
-                </div>
-                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType ==yasuoname">请上传压缩文件
-                </div>
-              </el-upload>
-            </el-form-item>
-          </el-col>
-          <!--<el-col :span="24">
-            <el-form-item class="maintainlog" label="" label-width="120px">
-              <div style="overflow: auto;">
-                <template>
-                  <el-row>
-                    <el-col :span="24" v-for="(v,K) in doclist" :key="v">
-                      <span>
-                        <el-button size="small" type="text" icon="el-icon-delete" title="删除" @click="deletefile(K)">
-                        </el-button>
-                      </span>
-                      <a style="margin-left:10px" @click="clickachment(v.url)">{{ v.name }}</a>
-                    </el-col>
-                  </el-row>
-                </template>
-              </div>
-            </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 {
-    mapGetters
-  } from 'vuex'
-  import axios from 'axios'
-  import uploadajax from '../../assets/js/uploadajax.js'
-  import BusinessList from '../../components/oilsupplier/businesslist'
-  import setapi from '@/api/oilsupplier/oilclassorgset'
-  import api from '@/api/oilsupplier/supplierfile'
-
-  export default {
-    name: 'SubfileList',
-    components: {
-      BusinessList // 准入范围
-    },
-    props: {
-      canadd: {
-        type: Boolean,
-        default: false
-      },
-      newcanadd: {
-        type: Boolean,
-        default: false
-      },
-      flag: {
-        type: String
-      }
-    },
-    computed: {
-      ...mapGetters({
-        session: 'session',
-        authUser: 'authUser'
-      })
-    },
-    data () {
-      return {
-        size: 10,
-        currentPage: 1,
-        currentItem_Count: 0,
-        yasuoname: '',
-        SupplierId: 0,
-        SupplierTypeCode: '',
-        SubClassIds: [],
-        SupplierCertId: 0,
-        InStyle: '1',
-        IsMust:false,
-        businessList: [],
-        subfileList: [],
-        techList: [],
-        techTreeList: [],
-        orgtreeprops: {
-          value: 'id',
-          label: 'Name',
-          children: 'children'
-        },
-        selectedorg: [],
-
-        Title: '',
-        SubfileForm: {
-          Id: '',
-          SupplierId: '',
-          SupplierTypeCode: '',
-          SupplierCertSubId: '',
-          CertSubName: '',
-          NeedFileType: '',
-          NeedFileCode: '',
-          FileType: '',
-          FileExt: '',
-          FileName: '',
-          EffectDate: new Date(),
-          FileUrl: '',
-          OtherRemark: '',
-          Remark: '',
-          IsDelete: 0,
-          FileUrlList: []
-        },
-        visible: false,
-        selfVisible: this.visible, // 避免vue双向绑定警告
-
-        waituploads: [], // 等待上传的附件列表
-        doclist: [],
-        dynamicTableColumns: [],
-        IsCompanyUser: ''
-      }
-    },
-    created () {
-      this.getDictOptions()
-      this.initTableHeader()
-      this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
-    },
-    methods: {
-      handleSelectionChange (val) {
-        this.SubClassIds = []
-        for (var i = 0; i < val.length; i++) {
-          this.SubClassIds.push(val[i].SubClassId)
-        }
-        this.initData()
-      },
-      initTableHeader () {
-        if (this.flag == '01') {
-          setapi.initGoodTableHeader(this.$axios).then(res => {
-            this.dynamicTableColumns = res.data.items
-          })
-        } else if (this.flag == '02') {
-          setapi.initBbTableHeader(this.$axios).then(res => {
-            this.dynamicTableColumns = res.data.items
-          })
-        } else {
-          setapi.initTsTableHeader(this.$axios).then(res => {
-            this.dynamicTableColumns = res.data.items
-          })
-        }
-      },
-      getvalue (SupplierId, SupplierTypeCode, certId, inStyle) {
-        this.SupplierId = SupplierId
-        this.SupplierTypeCode = SupplierTypeCode
-        this.SupplierCertId = certId
-        this.InStyle = inStyle
-        this.initData()
-        this.getbusList()
-      },
-      initData () {
-        let _this = this
-        const params = {
-          InStyle: this.InStyle,
-          SupplierId: this.SupplierId,
-          SupplierTypeCode: this.SupplierTypeCode,
-          SubClassIds: this.SubClassIds.join(),
-          _currentPage: 1,
-          _size: 10000
-        }
-        _this.$axios.get('supplierfile/filelist', {
-          params
-        })
-          .then(res => {
-            _this.subfileList = res.data.items
-            _this.currentItemCount = res.data.currentItemCount
-            for (let idx in _this.subfileList) {
-              _this.subfileList[idx].FileUrlList = _this.subfileList[idx].FileUrl.split('$')
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      getbusList () {
-        let _this = this
-        const params = {
-          SupplierCertId: this.SupplierCertId,
-          SupplierTypeCode: this.SupplierTypeCode,
-          _currentPage: this.currentPage,
-          _size: this.size
-        }
-        this.$axios.get('suppliercertsub/list', {
-          params
-        })
-          .then(res => {
-            console.log(res)
-            _this.businessList = res.data.items
-            _this.currentItem_Count = res.data.currentItemCount
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      makesure () {
-        if (this.Title == '新增文件') {
-          if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
-            // 上传附件是否完成判断
-            if (!this.attachissuccess()) {
-              this.$message.error('有附件未成功上传!不能保存数据')
-              return
-            }
-            this.getattachissuccess()
-            this.addSubfile()
-          } else {
-            this.$message({
-              type: 'warning',
-              message: '请上传文件!'
-            })
-          }
-        } else if (this.Title == '上传文件') {
-          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: '请上传文件!'
-            })
-          }
-        }
-      },
-      addSubfile () {
-        let _this = this
-        _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
-        _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
-        _this.$axios.post('/supplierfile/addsubfile/', _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)
-          })
-      },
-      editSubfile () {
-        let _this = this
-        _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
-        _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
-        _this.$axios.put('/supplierfile/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)
-          })
-      },
-      deletedata (val) {
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            _this.$axios.delete('supplierfile/subfiledelete/' + val.Id, {})
-              .then(function (response) {
-                if (response.data.code === 0) {
-                  _this.$message({
-                    type: 'success',
-                    message: response.data.message
-                  })
-                  _this.initData()
-                } else {
-                  _this.$message({
-                    type: 'warning',
-                    message: response.data.message
-                  })
-                }
-              })
-              .catch(function (error) {
-                console.log(error)
-              })
-          })
-          .catch(() => {})
-      },
-      nextStep () {
-        if (this.businessList && this.businessList.length > 0) {
-          if (this.subfileList && this.subfileList.length > 0) {
-            for (var i = 0; i < this.subfileList.length; i++) {
-              if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-                this.$message({
-                  type: 'warning',
-                  message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-                })
-                return
-              }
-            }
-            this.$emit('close')
-          } else {
-            this.$emit('close')
-          }
-        } else {
-          this.$message({
-            type: 'warning',
-            message: '请选择准入范围!'
-          })
-        }
-      },
-      getDictOptions () {
-        api.getDictList(this.$axios).then(res => {
-          this.yasuoname = res.data.items['YaSuoName']
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      showDialog () {
-        // this.doclist = []
-        this.IsMust = false
-        this.Title = '新增文件'
-        this.SubfileForm.Id = ''
-        this.SubfileForm.SupplierId = this.SupplierId
-        this.SubfileForm.SupplierTypeCode = this.SupplierTypeCode
-        this.SubfileForm.SupplierCertSubId = ''
-        this.SubfileForm.CertSubName = ''
-        this.SubfileForm.NeedFileType = ''
-        this.SubfileForm.NeedFileCode = ''
-        this.SubfileForm.FileExt = ''
-        this.SubfileForm.FileType = ''
-        this.SubfileForm.FileName = ''
-        this.SubfileForm.EffectDate = new Date()
-        this.SubfileForm.FileUrl = ''
-        this.SubfileForm.OtherRemark = ''
-        this.SubfileForm.Remark = ''
-        this.SubfileForm.IsDelete = 0
-        this.visible = true
-      },
-      openDialog (val) {
-        this.IsMust = true
-        this.Title = '上传文件'
-        this.SubfileForm.Id = val.Id
-        this.SubfileForm.SupplierId = val.SupplierId
-        this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
-        if (val.SupplierCertSubId == 0) {
-          this.SubfileForm.SupplierCertSubId = ''
-        } else {
-          this.SubfileForm.SupplierCertSubId = val.SupplierCertSubId
-        }
-        this.SubfileForm.CertSubName = val.CertSubName
-        this.SubfileForm.NeedFileType = val.NeedFileType
-        this.SubfileForm.NeedFileCode = val.NeedFileCode
-        this.SubfileForm.FileExt = val.FileExt
-        this.SubfileForm.FileType = val.FileType
-        this.SubfileForm.FileName = val.FileName
-        this.SubfileForm.EffectDate = new Date(val.EffectDate)
-        this.SubfileForm.FileUrl = val.FileUrl
-        this.getwendanginfo(val.FileUrl)
-        this.SubfileForm.OtherRemark = val.OtherRemark
-        this.SubfileForm.Remark = val.Remark
-        this.SubfileForm.IsDelete = val.IsDelete
-        this.visible = true
-      },
-      // 文档列表
-      getwendanginfo (iUrl) {
-        let _this = this
-        _this.doclist = []
-        let exArr = iUrl.split('|')
-        let params = {
-          name: exArr[1],
-          url: exArr[0]
-        }
-        _this.doclist.push(params)
-      },
-
-      beforeAvatarUpload (file) {
-        /* let isLt512K = file.size / 1024 < 512
-        if (isLt512K) {
-          this.$message.error('上传文件大小不能小于 512KB!')
-          return false
-        } */
-        if (this.SubfileForm.NeedFileType != this.yasuoname) {
-          let isLt50m = file.size / 1024 / 1024 / 5 < 1
-          if (!isLt50m) {
-            this.$message.error('上传文件大小不能超过 5MB!')
-            return false
-          }
-          return true
-        }
-      },
-      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 (error) {
-              _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
-      },
-      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}$`
-                }
-              }
-            }
-          }
-        }
-      },
-      clickachment (url, uid) {
-        window.open(`http://${url}`)
-      },
-      deletefile () {
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            _this.doclist = []
-          })
-          .catch(() => {})
-      },
-
-      seachdata () {
-        this.initData()
-      },
-      fileurlcut (val, index) {
-        let fileurlall = val.split('$')[index]
-        let fileurl = fileurlall.split('|')
-        let retUrl = fileurl[0]
-        // 内网服务器专用
-        if (process.client && retUrl.indexOf('/upfile') === 0) {
-          const myDomain = window.location.host
-          retUrl = myDomain + '/' + retUrl
-        }
-        return retUrl
-      },
-      jstimehandle (val) {
-        if (val === '') {
-          return '----'
-        } else if (val === '0001-01-01T00:00:00Z') {
-          return '----'
-        } else if (val === '0001-01-01T08:00:00+08:00') {
-          return '----'
-        } else if (val === '5000-01-01T23:59:59+08:00') {
-          return '永久'
-        } else {
-          val = val.replace('T', ' ')
-          return val.substring(0, 10)
-        }
-      },
-      handleCurrentChange (value) {
-        this.currentPage = value
-        this.getbusList()
-      },
-      handleSizeChange (value) {
-        this.size = value
-        this.currentPage = 1
-        this.getbusList()
-      }
-    }
-  }
-</script>
-
-<style lang='scss'>
-  .attach-uploader .el-upload {
-    border: 1px dashed #63B8FF;
-    cursor: pointer;
-    position: relative;
-    overflow: hidden;
-    // margin-bottom: -17px;
-    margin-top: -15px;
-    margin-left: 20px
-  }
-
-  .attach-uploader .el-upload:hover {
-    border-color: #228B22;
-  }
-
-  .attach-uploader-icon {
-    font-size: 25px;
-    color: #63B8FF;
-    width: 50px;
-    height: 50px;
-    line-height: 50px;
-    text-align: center;
-  }
-
-  .attach-uploader-icon:hover {
-    color: #228B22;
-  }
-
-</style>

+ 0 - 328
src/dashoo.cn/frontend_web/src/components/oilsupplier/techlist.vue

@@ -1,328 +0,0 @@
-<template>
-  <div>
-    <el-card class="box-card">
-      <div slot="header" class="clearfix">
-        <span style="font-weight: bold">准入范围</span>
-        <span style="float: right;">
-           <el-button style="float: right; padding: 3px 0px" type="text" @click="deletedata()" v-if="candelete">删除</el-button>
-          <el-button style="float: right; padding: 3px 25px" type="text" @click="showDialog" v-if="canadd || newcanadd">添加
-         
-          </el-button>
-        </span>
-      </div>
-      <el-table :data="techList" border height="calc(100vh - 435px)" size="mini" @selection-change="handleSelectionChange">
-        <el-table-column
-          type="selection"
-          width="55">
-        </el-table-column>
-
-        <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column> 
-        <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-         <el-table-column prop="CertSubStatus" label="状态" show-overflow-tooltip>
-            <template slot-scope="scope">
-            <span v-if="scope.row.CertSubStatus=='1'"
-                  style="color:#67C23A">准入</span>
-            <span v-else-if="scope.row.CertSubStatus>'1'"
-                  style="color:#E6A23C">暂停</span>
-            <span v-else>——</span>
-          </template>
-        </el-table-column>
-        <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-
-        <el-table-column label="操作" width="90" align="center" fixed>
-          <template slot-scope="scope">
-            <el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
-                       @click="deletedata(scope.row)" :disabled="!candelete">删除</el-button>
-          </template>
-        </el-table-column>
-      </el-table>
-      <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
-        :page-sizes="[10, 50, 100, 200, 400]" :page-size="size" layout="total, sizes, prev, pager, next, jumper"
-        :total="currentItemCount">
-      </el-pagination>
-    </el-card>
-
-    <el-dialog v-loading="loading" element-loading-text="正在添加请稍后..." title="技术服务类业务列表" :visible.sync="techDialog" top="5vh">
-      <el-row style="margin-top: -10px">
-        <el-col :span="12">
-          <el-input v-model="keyword" placeholder="请输入名称或代码" size="mini" style="width: 250px;"></el-input>
-          <el-button style="float: right;" type="primary" size="mini" @click="getorgtreelist()">查询</el-button>
-        </el-col>
-      </el-row>
-      <el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">
-        <el-col :span="20">
-          <el-tree highlight-current :expand-on-click-node="true" node-key="CodeName" :data="orgtreelist"
-            :props="orgtreeprops" ref="orgmanagetree" show-checkbox>
-          </el-tree>
-        </el-col>
-      </el-row>
-      <el-row style="margin-top: 30px">
-        备注信息:
-        <el-col :span="24">
-          <el-input v-model="Remark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
-        </el-col>
-      </el-row>
-      <div slot="footer" class="dialog-footer">
-        <!--<el-button size="mini" @click="visible = false">取 消</el-button>-->
-        <el-button type="primary" size="mini" @click="getChecklist()">确 定</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-  import {
-    mapGetters
-  } from 'vuex'
-
-  export default {
-    name: 'GoodsList',
-    components: {},
-    props: {
-      canadd: {
-        type: Boolean,
-        default: false
-      },
-      newcanadd: {
-        type: Boolean,
-        default: false
-      },
-      candelete: {
-        type: Boolean,
-        default: false
-      }
-    },
-    /* created() {
-      this.initData()
-    },
-    computed: {
-      ...mapGetters({
-        session: 'session'
-      })
-    }, */
-    data () {
-      return {
-        loading: false,
-        Ids: [],
-        SupplierId: 0,
-        SupplierTypeCode: '',
-        SupplierCertId: 0,
-
-        techList: [],
-        techDialog: false,
-        orgtreelist: [],
-        orgtreeprops: {
-          value: 'Id',
-          label: 'CodeName',
-          children: 'children'
-        },
-        checkList: [],
-        Remark: '',
-
-        keyword: '',
-        visible: false,
-        selfVisible: this.visible, // 避免vue双向绑定警告
-        currentPage: 1, // 分页
-        size: 10,
-        currentItemCount: 0,
-        flagId: 0 // 标记是否第一次点击
-      }
-    },
-    methods: {
-      changeCertSubStatus (row, column, cell, event) {
-        if (this.newcanadd && column.property === 'CertSubStatus') {
-          this.$confirm('确定更改此准入范围状态吗?', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          }).then((res) => {
-            this.$axios.get('suppliercertsub/updatestatus/' + row.Id + '/' + row.CertSubStatus + '', {}).then(res => {
-              if (res.data.code === 0) {
-                this.$message({
-                  type: 'success',
-                  message: '更改成功'
-                })
-                this.initData()
-              }
-            }).catch(err => {
-              console.error(err)
-            })
-          }).catch(() => {
-          })
-        } else {
-        }
-      },
-      handleSelectionChange (val) {
-        this.Ids = []
-        for (var i = 0; i < val.length; i++) {
-          this.Ids.push(val[i].Id)
-        }
-      },
-      getvalue (SupplierId, SupplierTypeCode, certId) {
-        this.SupplierId = SupplierId
-        this.SupplierTypeCode = SupplierTypeCode
-        this.SupplierCertId = certId
-        this.initData()
-      },
-      initData () {
-        let _this = this
-        const params = {
-          SupplierCertId: this.SupplierCertId,
-          SupplierTypeCode: this.SupplierTypeCode,
-          _currentPage: this.currentPage,
-          _size: this.size
-        }
-        this.$axios.get('suppliercertsub/list', {
-          params
-        })
-          .then(res => {
-            _this.techList = res.data.items
-            _this.currentItemCount = res.data.currentItemCount
-            _this.$emit('close')
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      getChecklist () {
-        let val = this.$refs.orgmanagetree.getCheckedNodes()
-        this.checkList = []
-        for (var i = 0; i < val.length; i++) {
-          if (!val[i].children || val[i].children.length <= 0) {
-            this.checkList.push(val[i])
-          }
-        }
-        this.addBusiness()
-      },
-      addBusiness () {
-        let _this = this
-        let params = {
-          SupplierId: parseInt(_this.SupplierId),
-          SupplierCertId: parseInt(_this.SupplierCertId),
-          SupplierTypeCode: '03',
-          Type: '1',
-          CertSubStatus: '-1',
-          Remark: _this.Remark
-        }
-        if (_this.checkList.length > 0) {
-          params = Object.assign(params, {
-            CheckList: _this.checkList
-          })
-        } else {
-          _this.$message({
-            type: 'warning',
-            message: '名称不能为空,请选择分类!'
-          })
-          return
-        }
-        _this.loading = true
-        _this.$axios.post('/suppliercertsub/addtechbus', params)
-          .then(res => {
-            if (res.data.code === 0) {
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              _this.techDialog = false
-              _this.loading = false
-              _this.initData()
-            } else {
-              _this.loading = false
-              _this.$message({
-                type: 'warning',
-                message: '操作失败!'
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      deletedata (val) {
-        if (val != null && val != '') {
-          this.Ids = []
-          this.Ids.push(val.Id)
-        }
-
-        if (this.Ids.length == 0) {
-          this.$message({
-            type: 'warning',
-            message: '请先选择删除条目'
-          })
-          return
-        }
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            const delload = this.$loading({
-              lock: true,
-              text: '正在删除请稍后...'
-            })
-            _this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
-              .then(function (response) {
-                if (response.data.code === 0) {
-                  _this.$message({
-                    type: 'success',
-                    message: response.data.message
-                  })
-                  delload.close()
-                  _this.Ids = []
-                  _this.initData()
-                } else {
-                  delload.close()
-                  _this.Ids = []
-                  _this.$message({
-                    type: 'warning',
-                    message: response.data.message
-                  })
-                }
-              })
-              .catch(function (error) {
-                console.log(error)
-              })
-          })
-          .catch(() => {
-            _this.Ids = []
-          })
-      },
-      showDialog () {
-        this.getorgtreelist()
-        this.techDialog = true
-      },
-      getorgtreelist () {
-        let _this = this
-        let params = {
-          keyword: _this.keyword
-        }
-        this.$axios.get('technologyservice/techbuslist', {
-          params
-        })
-          .then(res => {
-            _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      handleSizeChange (value) {
-        this.size = value
-        this.currentPage = 1
-        this.initData()
-      },
-      handleCurrentChange (value) {
-        this.currentPage = value
-        this.initData()
-      }
-    }
-  }
-</script>
-
-<style>
-
-
-</style>

+ 0 - 208
src/dashoo.cn/frontend_web/src/components/workflow/wfmultihistory.vue

@@ -1,208 +0,0 @@
-<template>
-  <div style="overflow: auto">
-    <el-table :data="historyTask" border size="mini">
-      <el-table-column prop="taskName" sortable min-width="130" label="当前状态" align="center" show-overflow-tooltip></el-table-column>
-      <el-table-column prop="remarks" sortable min-width="130" label="审批意见" align="center" show-overflow-tooltip>
-        <template slot-scope="scope">
-          <span style="font-weight: bold" v-if="scope.row.assignee">
-            {{scope.row.remarks}}
-          </span>
-        </template>
-      </el-table-column>
-      <el-table-column prop="assignee" sortable min-width="100" label="审核人" align="center" show-overflow-tooltip>
-        <template slot-scope="scope">
-          <span style="font-weight: bold" v-if="scope.row.assignee">
-            {{ assigneeToAssignee(scope.row.assignee) }}
-          </span>
-          <el-tooltip class="item" v-if="!scope.row.assignee" content="当前步骤有审批权限的人员" placement="top-start">
-            <span style="font-style: italic; color:#00F">
-              {{ assigneeToUsers(scope.row.users) }}
-            </span>
-          </el-tooltip>
-        </template>
-      </el-table-column>
-      <el-table-column prop="startTime" sortable min-width="150" label="开始时间" align="center" show-overflow-tooltip>
-        <template slot-scope="scope">
-          {{ timestampToTime(scope.row.startTime) }}
-        </template>
-      </el-table-column>
-      <el-table-column prop="endTime" sortable min-width="150" label="结束时间" align="center" show-overflow-tooltip>
-        <template slot-scope="scope">
-          {{ jstimehandle(timestampToTime(scope.row.endTime)) }}
-        </template>
-      </el-table-column>
-    </el-table>
-    <div style="margin-top:-1px; text-align: center;">
-      <img :src="baseurl + 'workflow/historyimg/' + entryinfo.instance +'?t='+(new Date()).getTime() " v-if="entryinfo.instance">
-    </div>
-  </div>
-</template>
-
-<script>
-  import {
-    mapGetters
-  } from 'vuex'
-
-  export default {
-    name: 'wfmultihistory',
-    props: {
-      visible: {
-        type: Boolean,
-        default: false
-      },
-      entryinfo: {}
-    },
-    created () {
-      this.getHistoryTask()
-    },
-    computed: {
-      ...mapGetters({
-        session: 'session'
-      })
-    },
-    watch: {
-      entryinfo: {
-        handler: function (newVal, oldVal) {
-          this.getHistoryTask()
-        },
-        deep: true
-      }
-    },
-
-    data () {
-      return {
-        baseurl: process.env.baseURL,
-        process: '',
-        business: '',
-        instance: '',
-        selfVisible: this.visible, // 避免vue双向绑定警告
-        historyTask: [],
-        userlist: []
-      }
-    },
-    methods: {
-      getHistoryTask () {
-        let _this = this
-        this.$axios.get('/audithistory/list?id=' + this.entryinfo.business)
-          .then(res => {
-            let instanceIds = ''
-            for (let idx in res.data.item) {
-              instanceIds += res.data.item[idx].WorkflowId + ','
-            }
-            instanceIds += _this.entryinfo.instance + ','
-            _this.getHistoryMultiTask(instanceIds)
-          })
-          .catch(err => {
-            // handle error
-            console.error(err)
-          })
-      },
-      getHistoryMultiTask (instanceIds) {
-        let _this = this
-        const params = {
-          process: _this.entryinfo.process,
-          business: _this.entryinfo.business,
-          instance: instanceIds
-        }
-        this.$axios.get('/workflow/historymultitask', {
-          params
-        })
-          .then(res => {
-            // _this.historyTask = res.data.items
-            this.tmp_historyTask = res.data.items
-            let useridstr = ''
-            for (let i = 0; i < this.tmp_historyTask.length; i++) {
-              if (this.tmp_historyTask[i].assignee !== '') {
-                useridstr = useridstr + this.tmp_historyTask[i].assignee + ','
-              }
-              if (this.tmp_historyTask[i].users !== '') {
-                useridstr = useridstr + this.tmp_historyTask[i].users + ','
-              }
-            }
-            if (useridstr) {
-              useridstr = useridstr.substring(0, useridstr.length - 1)
-              this.getuserlist(useridstr)
-            }
-          })
-          .catch(err => {
-            // handle error
-            console.error(err)
-          })
-      },
-      assigneeToAssignee (val) {
-        for (let i = 0; i < this.userlist.length; i++) {
-          if (val == this.userlist[i].Id) {
-            return this.userlist[i].Realname
-          }
-        }
-      },
-      assigneeToUsers (users) {
-        let userNames = ''
-        let userArr = users.split(',')
-        for (let idx = 0; idx < userArr.length; idx++) {
-          let val = userArr[idx]
-          for (let i = 0; i < this.userlist.length; i++) {
-            if (parseInt(val) == parseInt(this.userlist[i].Id)) {
-              userNames += this.userlist[i].Realname + ', '
-            }
-          }
-        }
-        if (userNames.length > 0) {
-          userNames = userNames.substring(0, userNames.length - 2)
-        }
-        return userNames
-    },
-      getuserlist (val) {
-        this.$axios.post('workflow/userlist_post?userids=' + val)
-          .then(res => {
-            // response
-            this.userlist = res.data.items
-            this.historyTask = this.tmp_historyTask
-          })
-          .catch(err => {
-            // handle error
-            console.error(err)
-          })
-      },
-      timestampToTime (val) {
-        var date = new Date(val) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
-        var Y = date.getFullYear() + '-'
-        var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
-        var D = date.getDate() + ' '
-        var h = date.getHours() + ':'
-        var m = date.getMinutes() + ':'
-        var s = date.getSeconds()
-        return Y + M + D + h + m + s
-      },
-      jstimehandle (val) {
-        if (val === '') {
-          return '----'
-        } else if (val === '0001-01-01T08:00:00+08:00') {
-          return '----'
-        } else if (val === '5000-01-01T23:59:59+08:00') {
-          return '永久'
-        } else if (val === '1970-01-01 8:0:0') {
-          return '----'
-        } else if (val === '1970-01-1 8:0:0') {
-          return '----'
-        } else {
-          val = val.replace('T', ' ')
-          return val.substring(0, 19)
-        }
-      }
-    }
-  }
-</script>
-
-<style>
-  .samplerecoveope .el-radio {
-    padding: 8px 15px 0 0;
-    margin-left: -2px;
-  }
-  .dialog-footer img{
-    position: relative;
-    width: 100%;
-    height: 100%;
-  }
-
-</style>

+ 0 - 1568
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue

@@ -1,1568 +0,0 @@
-<template>
-  <div>
-    <el-breadcrumb class="heading">
-      <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
-      <el-breadcrumb-item :to="{ path: '/oilsupplier/supplierappend/basislist' }">基建类列表</el-breadcrumb-item>
-      <el-breadcrumb-item>编辑</el-breadcrumb-item>
-    </el-breadcrumb>
-    <el-card class="box-card">
-      <div slot="header">
-        <span>
-          <i class="icon icon-table2"></i> 编辑
-        </span>
-        <span style="float: right;">
-          <el-popover>
-            <el-steps :active="formData.Step" direction="vertical" align-center finish-status="success">
-              <el-step title="填信息"></el-step>
-              <el-step title="待审批"></el-step>
-              <el-step title="已审批"></el-step>
-              <el-step title="待交费"></el-step>
-              <el-step title="待入库"></el-step>
-              <el-step title="完成"></el-step>
-            </el-steps>
-            <!-- <el-button slot="reference" plain size="mini" style="margin-right: 8px">查看进度</el-button> -->
-          </el-popover>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
-          <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitaudit"
-            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交审批
-          </el-button>
-          <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitfenban"
-            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 1">提交分办
-          </el-button>
-          <router-link :to="'/oilsupplier/supplierappend/basislist'">
-            <el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
-          </router-link>
-        </span>
-      </div>
-      <div>
-        <el-card class="box-card">
-          <div slot="header">
-            <span><i class="icon icon-table2"></i> 增项信息</span>
-            <el-button style="float: right; padding: 3px 0" type="text"
-              v-if="formData.Status <= 0 && formData.Status != -5" @click="saveEntity()">保存信息</el-button>
-          </div>
-          <el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData">
-            <el-row>
-              <el-col :span="8">
-                <el-form-item label="供应商公司名称" prop="checkSelectedSupplier">
-                  <el-select ref="suppselect" :disabled="formData.Status>0||IsCompanyUser == 1"
-                    v-model="supplierOptions" filterable @change="getInfo" placeholder="请选择供应商公司" style="width: 100%">
-                    <el-option v-for="item in supplierList" :key="item.SupplierId" :label="item.SupplierName"
-                      :value="item.SupplierId">
-                    </el-option>
-                  </el-select>
-                </el-form-item>
-              </el-col>
-              <el-col :span="16">
-                <el-form-item label="备注" prop="Remark">
-                  <el-input :disabled="formData.Status>0" type="textarea" v-model="formData.Remark"
-                    placeholder="请输入">
-                  </el-input>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </el-card>
-        <!-- 增项分类列表 -->
-        <el-row :gutter="2">
-          <el-col :span="12">
-            <el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);">
-              <div slot="header">
-                <span><i class="icon icon-table2"></i> 全部准入范围</span>
-                <!-- <el-button style="float: right; padding: 3px 0" type="text"
-                  v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button> -->
-              </div>
-              <el-table :data="entityList" size="mini" border style="width: 100%" height="calc(100vh - 428px)" @sort-change="orderby">
-                <!-- <el-table-column label="操作" min-width="100" align="center" fixed>
-                  <template slot-scope="scope">
-                    <el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
-                      :disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
-                  </template>
-                </el-table-column> -->
-                <!-- <el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column> -->
-                <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-              </el-table>
-              <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
-            :current-page="currentPage" :page-sizes="[10, 15, 20, 25]" :page-size="size"
-            layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount">
-          </el-pagination> -->
-            </el-card>
-          </el-col>
-          <el-col :span="12">
-            <!-- <goods-list ref="goodsList" :data.sync="myentityList" :canadd="add_flat"
-            :candelete="delete_flat" height="360px" style="margin-top: 20px"></goods-list> -->
-            <el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);">
-              <div slot="header">
-                <span><i class="icon icon-table2"></i> 新增准入范围</span>
-                <el-button style="float: right; padding: 3px 0" type="text"
-                  v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button>
-              </div>
-              <el-table :data="myentityList" size="mini" border style="width: 100%" height="calc(100vh - 428px)" @sort-change="orderby">
-                <el-table-column label="操作" min-width="100" align="center" fixed>
-                  <template slot-scope="scope">
-                    <el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
-                      :disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
-                  </template>
-                </el-table-column>
-                <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-              </el-table>
-              <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
-            :current-page="currentPage" :page-sizes="[10, 15, 20, 25]" :page-size="size"
-            layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount">
-          </el-pagination> -->
-            </el-card>
-          </el-col>
-        </el-row>
-        <el-card class="box-card" style="margin-top: 10px;">
-          <div slot="header" class="clearfix">
-            <span><i class="icon icon-table2"></i> 企业资质</span>
-             <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog" >添加</el-button>
-          </div>
-          <el-table :data="subfileList" size="mini" border>
-            <el-table-column label="操作" width="150" align="center" fixed>
-              <template slot-scope="scope">
-                <el-button type="primary" plain size="mini" title="上传" @click="openDialog(scope.row)"
-                  :disabled="scope.row.SupType != 2||formData.Status > 0">上传
-                </el-button>
-                 <el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
-                  v-if="scope.row.FileType == '66'" @click="newdeletedata(scope.row)">删除</el-button>
-              </template>
-            </el-table-column>
-            <el-table-column prop="NeedFileType" label="资质名称" show-overflow-tooltip></el-table-column>
-            <el-table-column prop="FileUrlList" label="资质文件" show-overflow-tooltip>
-              <template slot-scope="scope">
-                <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
-                  <a :href="fileurlcut(scope.row.FileUrl, index)" target="_blank"
-                    class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
-                </div>
-              </template>
-            </el-table-column>
-            <el-table-column prop="EffectDate" label="有效日期" show-overflow-tooltip>
-              <template slot-scope="scope">
-                {{ jstimehandle(scope.row.EffectDate+'') }}
-              </template>
-            </el-table-column>
-            <el-table-column prop="OtherRemark" label="描述" show-overflow-tooltip></el-table-column>
-          </el-table>
-        </el-card>
-      </div>
-    </el-card>
-    <el-dialog title="上传文件" :visible.sync="visible" top="5vh">
-      <el-form :model="SubfileForm" label-width="100px">
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="资质名称" required>
-              <el-input v-model="SubfileForm.NeedFileType" placeholder="请输文件类型" :disabled="true"></el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="有效日期" required>
-              <el-date-picker style="width: 100%" v-model="SubfileForm.EffectDate" type="date" placeholder="请选择有效日期">
-              </el-date-picker>
-            </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-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>
-                <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">大小为512KB-5MB</div>
-              </el-upload>
-            </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>
-    <!-- 增项分类添加、修改 -->
-    <el-dialog title="添加" :visible.sync="dialogVisible">
-      <el-form label-width="150px" v-loading="dialogloading" ref="dialogFormData" :rules="sortEntityFormRules" :model="dialogFormData">
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="分类名称" prop="Name">
-              <el-input placeholder="请选择分类" v-model="dialogFormData.Name" style="width:100%">
-                <el-button type="primary" style="width:30%" @click="basisDialog = true" slot="append">选择</el-button>
-              </el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="分类编码" prop="Code">
-              <el-input v-model="dialogFormData.Code" placeholder="请输入分类编码" disabled></el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="备注" prop="Remark">
-              <el-input type="textarea" v-model="dialogFormData.Remark" placeholder="请输入备注" style="width: 100%">
-              </el-input>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="cancelOption()">取 消</el-button>
-        <el-button size="mini" type="primary" @click="ensureOption()">确 定</el-button>
-      </span>
-    </el-dialog>
-
-    <el-dialog title="基建类业务列表" :visible.sync="basisDialog" top="5vh" style="width:1000px">
-      <span style="float: right;">
-        <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="seachData()">查询
-        </el-button>
-        <el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="basisDialog = false">
-          取消</el-button>
-      </span>
-      <el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
-        <el-form-item label="分类名称">
-          <el-input size="mini" style="width: 165px;" v-model="keyword" placeholder="请输入分类名称"></el-input>
-        </el-form-item>
-      </el-form>
-      <el-table :data="basisList" size="mini" border>
-        <el-table-column label="操作" width="70" align="center" fixed>
-          <template slot-scope="scope">
-            <el-button type="text" size="small" @click="getChooseCode(scope.row)">选择</el-button>
-          </template>
-        </el-table-column>
-        <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-        <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-        <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-      </el-table>
-      <el-pagination @size-change="dialogHandleSizeChange" @current-change="dialogHandleCurrentChange"
-        :current-page="dialogCurrentPage" :page-sizes="[10, 15, 20, 25]" :page-size="dialogSize"
-        layout="total, sizes, prev, pager, next, jumper" :total="dialogCurrentItemCount">
-      </el-pagination>
-    </el-dialog>
-
-    <el-dialog title="审批流程" :visible.sync="audithistoryshow" width="1200px">
-      <wf-multi-history ref="WfHistory" :entryinfo="entrydetail"></wf-multi-history>
-    </el-dialog>
-
-    <el-dialog title="提交初审" :visible.sync="AuditdialogShow" width="520px">
-      <el-form ref="searchForm" label-width="110px">
-        <el-row>
-          <el-col :span="24">
-            <el-form-item label="初审人员">
-              <el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">
-                <el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>
-              </el-input>
-            </el-form-item>
-            <el-form-item label="复审人员">
-              <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
-                allow-create default-first-option>
-                <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
-                </el-option>
-              </el-select>
-            </el-form-item>
-            <el-form-item label="专业处室" v-if="allowpre">
-              <el-cascader :options="preorgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable
-                style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">
-              </el-cascader>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="备注">
-              <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入备注内容">
-              </el-input>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="AuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="AuditEntity">确定</el-button>
-      </span>
-    </el-dialog>
-
-    <el-dialog title="分办" :visible.sync="ComAuditdialogShow" width="520px">
-      <el-form ref="searchForm" label-width="100px">
-        <el-row>
-          <el-col :span="24">
-            <!--<el-form-item label="分办人员">-->
-              <!--<el-input ref="selectAuditerFen" readonly v-model="auditerName" placeholder="请选择分办人">-->
-                <!--<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShowFen"></el-button>-->
-              <!--</el-input>-->
-            <!--</el-form-item>-->
-            <el-form-item label="分办单位">
-              <el-select filterable
-                         v-model="UnitOrg"
-                         maxlength="255"
-                         clearable
-                         placeholder="请选择分办单位"
-                         style="width: 100%"
-                         @change="orgunitChange">
-                <el-option v-for="item in UnitOrgOptions"
-                           :key="item.Id"
-                           :label="item.Fullname"
-                           :value="item.Id">
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="备注">
-              <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入备注内容">
-              </el-input>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="SubpEntity">确定</el-button>
-      </span>
-    </el-dialog>
-
-    <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
-      :visible="chooseAuditorVisible"></choose-auditor>
-    <choose-auditor-fen ref="chooseAuditorFen" @close="setAuditerFen" @hideChooseAuditer="chooseAuditorVisibleFen=false"
-      :visible="chooseAuditorVisibleFen" typeCode="02"></choose-auditor-fen>
-
-
-         <el-dialog title="新增文件" :visible.sync="newVisible" top="5vh">
-      <el-form :model="newSubfileForm" label-width="100px">
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="资质名称" required>
-              <el-select v-model="newSubfileForm.NeedFileType" placeholder="请输文件类型" size="medium">
-                <el-option v-for="item in dynamicTableColumns" :key="item.prop" :label="item.label" :value="item.label">
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="有效日期" required>
-              <el-date-picker style="width: 100%" v-model="newSubfileForm.EffectDate" type="date" placeholder="请选择有效日期">
-              </el-date-picker>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="描述">
-              <el-input v-model="newSubfileForm.OtherRemark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="资质文件">
-              <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
-                :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
-                <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">大小为512KB-5MB
-                </div>
-              </el-upload>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <div slot="footer" class="dialog-footer" style="margin-top:-30px;">
-        <el-button @click="newVisible = false">取 消</el-button>
-        <el-button type="primary" @click="makeNewSure()">确 定</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-  import {
-    mapGetters
-  } from 'vuex'
-  import axios from 'axios'
-  import suppapi from '@/api/oilsupplier/supplier'
-  import api from '@/api/oilsupplier/supplierappendsub'
-  import api2 from '@/api/oilsupplier/supplierappend'
-  import uploadajax from '@/assets/js//uploadajax.js'
-  import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
-  import WfMultiHistory from '@/components/workflow/wfmultihistory.vue'
-import fileapi from '@/api/oilsupplier/supplierfile'
-  import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
-  import setapi from '@/api/oilsupplier/oilclassorgset'
-
-  export default {
-    components: {
-      WfMultiHistory,
-      ChooseAuditor,
-      ChooseAuditorFen
-    },
-    computed: {
-      ...mapGetters({
-        authUser: 'authUser'
-      })
-    },
-    name: 'basisdataOperation',
-
-    data () {
-      var CheckSelectedOption = (rule, value, callback) => {
-        if (this.selectedOrgList && this.selectedOrgList.length < 1) {
-          callback(new Error('请选择推荐单位'))
-        } else {
-          callback()
-        }
-      }
-      var CheckSelectedOption3 = (rule, value, callback) => {
-        if (this.supplierOptions === '') {
-          callback(new Error('请选择供应方公司'))
-        } else {
-          callback()
-        }
-      }
-      return {
-        UnitOrg: '',
-        allowpre: true,
-        newVisible: false,
-        filterText: '',
-        searchText: '',
-        switchstatus: false,
-        yasuoname: '',
-        auditbusList: [],
-        audithistoryshow: false,
-        chooseAuditorVisible: false,
-        chooseAuditorVisibleFen: false,
-        orgauditOptions: [],
-        UnitOrgOptions: [],
-        orgtreelist: [], // 二级单位
-        preorgtreelist: [],
-        secauditerOptions: [],
-        AuditdialogShow: false, // 提交审核弹框
-        ComAuditdialogShow: false,
-        organizeOption: [], // 审批部门
-        auditerOption: [], // 审批人
-        orgtreeprops: {
-          value: 'id',
-          label: 'name',
-          children: 'children'
-        },
-        entrydetail: {
-          process: '',
-          business: '',
-          instance: '',
-          Status: ''
-        },
-        SupplierId: 0,
-        SupplierTypeCode: '',
-        SupplierCertId: 0,
-        subfileList: [],
-        visible: false,
-        dynamicTableColumns: [],
-        flag: '',
-        editbtn: true,
-        // 资质文件
-        SubfileForm: {
-          Id: '',
-          SupplierId: '',
-          SupplierTypeCode: '',
-          SupplierCertSubId: '',
-          CertSubName: '',
-          NeedFileType: '',
-          NeedFileCode: '',
-          FileType: '',
-          FileExt: '',
-          FileName: '',
-          EffectDate: new Date(),
-          FileUrl: '',
-          OtherRemark: '',
-          Remark: '',
-          IsDelete: 0,
-          FileUrlList: []
-        },
-        newSubfileForm: {
-          Id: '',
-          SupplierId: '',
-          SupplierTypeCode: '02',
-          SupplierCertSubId: '',
-          CertSubName: '',
-          SupType: 2,
-          NeedFileType: '',
-          NeedFileCode: '',
-          FileType: 66,
-          FileExt: '',
-          FileName: '',
-          EffectDate: new Date(),
-          FileUrl: '',
-          OtherRemark: '',
-          Remark: '',
-          IsDelete: 0,
-          FileUrlList: []
-        },
-        auditform: {
-          FirstAuditName: '',
-          CertId: '',
-          AuditRemark: '',
-          SecondAudit: '',
-          ThirdAudit: '',
-          TypeCode: ''
-        },
-        auditer: '',
-        auditerName: '',
-        fushenauditer: '', // 复审人员
-        majorDept: [100000000, 100000128, 100000151],
-        FirstAudit: '',
-        supplierList: [], // 供应方公司列表
-        supplierOptions: '', // 已选择的供应方公司列表
-        // serviceType: '', //服务类型()
-        optionsList: [], // 增项分类层级列表
-        organizeTreeList: [], // 推荐单位层级列表
-        selectedOrgList: [], // 已选择的单位列表
-        organizeTreeProps: {
-          value: 'id',
-          label: 'Fullname',
-          children: 'children'
-        },
-        organizeform: {
-          IsInnerOrganize: 1,
-          parentid: 0,
-          fullname: '',
-          description: '',
-          id: 0
-        },
-        // 增项信息表
-        formData: {
-          Id: '',
-          Step: 1,
-          Type: '',
-          Status: '',
-          ProcessKey: '',
-          SupplierName: '',
-          SupplierId: 0,
-          SupplierCertId: 0,
-          RecUnitFlag: '', // 推荐单位的级联Id标记
-          RecUnitId: '', // 推荐单位编码
-          RecUnitName: '', // 推荐单位名称
-          AppendType: '02', // 增项类别(01 物资类,02 基建类,03 技术服务类)
-          Remark: '' // 备注
-        },
-        dialogloading: false,
-        dialogVisible: false, // 增项分类dialog
-        dialogFormData: {
-          Id: '',
-          SupplierId: 0, // 供方表ID
-          SupplierCertId: 0, // 供方证书表ID
-          SupplierCertAppendId: '', // 增项信息表ID
-          SupplierTypeCode: '',
-          SubClassId: '', // 分类表主键
-          // SortFlag: '', //分类标记
-          Code: '', // 分类编码
-          Name: '', // 分类名称
-          Remark: '', // 备注
-          Type: '2'
-        },
-        // 列表数据
-        entityList: [],
-        myentityList: [],
-        // 分页参数
-        size: 10,
-        currentPage: 1,
-        currentItemCount: 0,
-        // 列表排序
-        Column: {
-          Order: '',
-          Prop: ''
-        },
-        // 增项表单规则
-        appendRules: {
-          checkSelectedSupplier: [{
-            required: true,
-            validator: CheckSelectedOption3,
-            trigger: 'blur'
-          }]
-        },
-        // 增项分类表单规则
-        sortEntityFormRules: {
-          Name: [{
-            required: true,
-            message: '请选择增项分类',
-            trigger: 'blur'
-          }]
-        },
-        auditfileList: [], // 文档
-        Id: '', // 传的参数
-        editFlag: '', // 编辑操作标记
-        basisDialog: false,
-        keyword: '', // 查询关键字
-        basisList: [], // 基建类的增项分类列表
-        // 增项分类dialog分页参数
-        dialogSize: 10,
-        dialogCurrentPage: 1,
-        dialogCurrentItemCount: 0,
-        waituploads: [],
-        IsCompanyUser: ''
-      }
-    },
-    created () {
-      this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
-      // this.serviceType = this.$route.params.opera //获取服务类型
-      this.Id = this.$route.query.Id
-      this.editFlag = this.$route.query.editFlag
-      if (this.editFlag == '1' && this.Id !== '') {
-        this.getEntityById()
-        this.dialogFormData.SupplierCertAppendId = this.Id
-      }
-      this.getOrgTreeList() // 获取推荐单位层级列表
-      this.getBasisList() // 获取基建类层级列表
-      this.getSupplierList() // 获取供应方公司列表
-      this.getDictOptions()
-      this.getorgtreelist()
-      this.orgtreeChange(this.majorDept)
-      this.initTableHeader()
-    },
-    methods: {
-      newdeletedata (val) {
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            _this.$axios.delete('supplierfile/subfiledelete/' + val.Id, {})
-              .then(function (response) {
-                if (response.data.code === 0) {
-                  _this.$message({
-                    type: 'success',
-                    message: response.data.message
-                  })
-                  _this.getFileList()
-                } else {
-                  _this.$message({
-                    type: 'warning',
-                    message: response.data.message
-                  })
-                }
-              })
-              .catch(function (error) {
-                console.log(error)
-              })
-          })
-          .catch(() => {})
-      },
-      makeNewSure () {
-        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-          // 上传附件是否完成判断
-          if (!this.newattachissuccess()) {
-            this.$message.error('有附件未成功上传!不能保存数据')
-            return
-          }
-          this.newgetattachissuccess()
-          this.addSubfile()
-        } else {
-          this.$message({
-            type: 'warning',
-            message: '请上传文件!'
-          })
-        }
-      },
-      addSubfile () {
-        let _this = this
-        _this.newSubfileForm.SupplierId = parseInt(this.SupplierId)
-        _this.$axios.post('/supplierfile/addsubfile/', _this.newSubfileForm)
-          .then(res => {
-            if (res.data.code === 0) {
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              this.newVisible = false
-              this.getFileList()
-              this.$refs.newrefuploadattach.uploadFiles = []
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      initTableHeader () {
-        setapi.initBbTableHeader(this.$axios).then(res => {
-          this.dynamicTableColumns = res.data.items
-        })
-      },
-      showDialog () {
-        this.newVisible = true
-      },
-      newattachissuccess () {
-        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-          for (let i = 0; i < this.$refs.newrefuploadattach.uploadFiles.length; i++) {
-            if (this.$refs.newrefuploadattach.uploadFiles[i].status !== 'success') {
-              return false
-            }
-          }
-        }
-        return true
-      },
-      newgetattachissuccess () {
-        this.newSubfileForm.FileUrl = ''
-        this.newSubfileForm.FileName = ''
-        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-          for (let i = 0; i < this.$refs.newrefuploadattach.uploadFiles.length; i++) {
-            if (this.$refs.newrefuploadattach.uploadFiles[i].status === 'success') {
-              for (let j = 0; j < this.waituploads.length; j++) {
-                if (this.waituploads[j].uid === this.$refs.newrefuploadattach.uploadFiles[i].uid) {
-                  this.newSubfileForm.FileUrl +=
-                    `${this.waituploads[j].url}/${this.waituploads[j].fid}|${this.$refs.newrefuploadattach.uploadFiles[i].name}$`
-                  this.newSubfileForm.FileName += `${this.$refs.newrefuploadattach.uploadFiles[i].name}$`
-                }
-              }
-            }
-          }
-        }
-      },
-      orgtreeChange (val) {
-        this.userOptions = []
-        let deptid = val[val.length - 1]
-        let auditstepcode = 'PROF_RECE'
-        suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.userOptions = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      SubpEntity () {
-        if (this.UnitOrg === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择分办单位!'
-          })
-          return
-        }
-        if (this.orgauditOptions == null || this.orgauditOptions.length == 0) {
-          this.$message({
-            type: 'warning',
-            message: '该单位未配置分办人!'
-          })
-          return
-        }
-        this.applyLoading = true
-        this.auditform.FirstAuditName = this.UnitOrg
-        this.auditform.CertId = this.formData.Id
-        this.auditform.TypeCode = '02'
-        api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.ComAuditdialogShow = false
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-          this.applyLoading = false
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      // 获取推荐单位列表
-      getOrgTreeList () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: this.organizeform.IsInnerOrganize
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.organizeTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-            if (_this.authUser.Profile.IsCompanyUser === 0) {
-              this.selectedOrgList = _this.authUser.Profile.Superior.split(',').map((val) => {
-                return parseInt(val)
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      getDictOptions () {
-        let params = {
-          status: this.formData.Status,
-          majorAduit: this.formData.ThirdAudit
-        }
-        suppapi.getDictListByStatus(params, this.$axios).then(res => {
-          this.dictData = res.data.items
-          this.organizeOption = res.data.items['Organizes']
-          this.preorgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
-          this.UnitOrg = res.data.items['Register'].CheckUnitId
-          this.UnitOrgOptions = res.data.items['UnitOrgList']
-          this.orgunitChange(this.UnitOrg)
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      orgunitChange (val) {
-        let deptid = val
-        let auditstepcode = 'SUB_OFFICE_JS'
-        suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.orgauditOptions = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      // 获取资质文件
-      getFileList () {
-        this.SupplierId = this.formData.SupplierId
-        this.SupplierTypeCode = this.formData.AppendType
-        let _this = this
-        const params = {
-          AppendId: this.formData.Id,
-          SupplierId: this.SupplierId,
-          SupplierTypeCode: this.SupplierTypeCode,
-          _currentPage: 1,
-          _size: 1000
-        }
-        _this.$axios.get('supplierfile/filelistall', {
-          params
-        })
-          .then(res => {
-            _this.subfileList = res.data.items
-            _this.currentItemCount = res.data.currentItemCount
-            for (let idx in _this.subfileList) {
-              _this.subfileList[idx].FileUrlList = _this.subfileList[idx].FileUrl.split('$')
-            }
-          })
-          .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.editSubfile()
-        }
-      },
-      editSubfile () {
-        let _this = this
-        _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
-        _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
-        _this.$axios.put('/supplierfile/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.getFileList()
-              this.$refs.refuploadattach.uploadFiles = []
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      fileurlcut (val, index) {
-        let fileurlall = val.split('$')[index]
-        let fileurl = fileurlall.split('|')
-        let fullUrl = fileurl[0]
-        // 内网服务器专用
-        if (process.client && (fullUrl.indexOf('upfile') === 0 || fullUrl.indexOf('/upfile') === 0)) {
-          const myDomain = window.location.host
-          fullUrl = 'http://' + myDomain + '/' + fullUrl
-        } else {
-          fullUrl = 'http://' + fullUrl
-        }
-        return fullUrl
-      },
-      commitaudit () {
-        this.AuditdialogShow = true
-        // if (this.subfileList && this.subfileList.length > 0) {
-        //   for (var i = 0; i < this.subfileList.length; i++) {
-        //     if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-        //       this.$message({
-        //         type: 'warning',
-        //         message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-        //       })
-        //       return
-        //     }
-        //   }
-        // } else {
-        //   this.AuditdialogShow = true
-        // }
-      },
-      commitfenban () {
-        this.ComAuditdialogShow = true
-        // if (this.subfileList && this.subfileList.length > 0) {
-        //   for (var i = 0; i < this.subfileList.length; i++) {
-        //     if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-        //       this.$message({
-        //         type: 'warning',
-        //         message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-        //       })
-        //       return
-        //     }
-        //   }
-        // } else {
-        //   this.ComAuditdialogShow = true
-        // }
-      },
-      openDialog (val) {
-        this.SubfileForm.Id = val.Id
-        this.SubfileForm.SupplierId = val.SupplierId
-        this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
-        if (val.SupplierCertSubId == 0) {
-          this.SubfileForm.SupplierCertSubId = ''
-        } else {
-          this.SubfileForm.SupplierCertSubId = val.SupplierCertSubId
-        }
-        this.SubfileForm.CertSubName = val.CertSubName
-        this.SubfileForm.NeedFileType = val.NeedFileType
-        this.SubfileForm.NeedFileCode = val.NeedFileCode
-        this.SubfileForm.FileExt = val.FileExt
-        this.SubfileForm.FileType = val.FileType
-        this.SubfileForm.FileName = val.FileName
-        this.SubfileForm.EffectDate = new Date(val.EffectDate)
-        this.SubfileForm.FileUrl = val.FileUrl
-        this.getwendanginfo(val.FileUrl)
-        this.SubfileForm.OtherRemark = val.OtherRemark
-        this.SubfileForm.Remark = val.Remark
-        this.SubfileForm.IsDelete = val.IsDelete
-        this.visible = true
-      },
-      // 文档列表
-      getwendanginfo (iUrl) {
-        let _this = this
-        _this.doclist = []
-        let exArr = iUrl.split('|')
-        let params = {
-          name: exArr[1],
-          url: exArr[0]
-        }
-        _this.doclist.push(params)
-      },
-      beforeAvatarUpload (file) {
-        /* let isLt512K = file.size / 1024 < 512
-        if (isLt512K) {
-          this.$message.error('上传文件大小不能小于 512KB!')
-          return false
-        } */
-        if (this.SubfileForm.NeedFileType != this.yasuoname) {
-          let isLt50m = file.size / 1024 / 1024 / 5 < 1
-          if (!isLt50m) {
-            this.$message.error('上传文件大小不能超过 5MB!')
-            return false
-          }
-          return true
-        }
-      },
-      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
-                })
-                // axios.post(process.env.upfilehost, {})
-                //   .then(function (res) {
-                //     if (res.data && res.data.fid && res.data.fid !== '') {
-                //       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 (error) {
-              _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
-      },
-      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}$`
-                }
-              }
-            }
-          }
-        }
-      },
-      clickachment (url, uid) {
-        window.open(`http://${url}`)
-      },
-
-      // 获取供应方公司列表
-      getSupplierList () {
-        let _this = this
-        let params = {
-          SuppTypeCode: '02'
-        }
-        _this.$axios.get('/suppliercertappend/getsupplier', {
-          params
-        })
-          .then(res => {
-            _this.supplierList = res.data
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 获取基建类层级列表
-      getBasisList () {
-        let _this = this
-        const params = {
-          keyword: this.keyword,
-          _currentPage: this.dialogCurrentPage,
-          _size: this.dialogSize
-        }
-        this.$axios.get('basisbuild/basiclist', {
-          params
-        })
-          .then(res => {
-            _this.basisList = res.data.items
-            _this.dialogCurrentItemCount = res.data.currentItemCount
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 选择具体的分类
-      getChooseCode (val) {
-        this.dialogFormData.SubClassId = val.Id
-        this.dialogFormData.SortFlag = val.Id.toString() // 记录OilBasisBuild表的Id
-        this.dialogFormData.Code = val.Code
-        this.dialogFormData.Name = val.Name
-        this.basisDialog = false
-      },
-
-      // 根据条件查找基建类层级列表
-      seachData () {
-        this.dialogCurrentPage = -1
-        this.getBasisList()
-      },
-
-      // 获取SupplierId和SupplierCertId
-      getInfo (vId) { // 这个vId也就是value值
-        let obj = {}
-        obj = this.supplierList.find((item) => {
-          return item.SupplierId === vId // 筛选出匹配数据
-        })
-        this.formData.SupplierId = parseInt(obj.SupplierId)
-        this.formData.SupplierCertId = parseInt(obj.SupplierCertId)
-      },
-
-      // 获取推荐单位级联Id
-      getCode2 (item) {
-        let codeStr = item.toString()
-        this.formData.RecUnitFlag = codeStr
-      },
-
-      // 审批历史
-      auhistory () {
-        this.audithistoryshow = true
-      },
-
-      // 获取需要修改的增项信息
-      getEntityById () {
-        let _this = this
-        api2.getEntityById(_this.Id, _this.$axios).then(res => {
-          _this.formData = res.data
-          this.entrydetail.process = this.formData.ProcessKey
-          this.entrydetail.business = _this.Id
-          this.entrydetail.instance = this.formData.WorkFlowId
-          this.entrydetail.Status = this.formData.Status
-          if (this.formData.InStyle == '2' || this.formData.InStyle == '6' || this.formData.InStyle == '4') {
-            this.allowpre = false
-          }
-          this.getFileList()
-          // 显示公司名
-          _this.supplierOptions = _this.formData.SupplierId.toString()
-          _this.getSortList()
-          _this.getMySortList()
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 保存增项信息
-      saveEntity () {
-        let _this = this
-        this.$refs['EntityForm'].validate((valid) => {
-          if (valid) {
-            if (_this.editFlag == '1' && _this.Id !== '') {
-              _this.updateData()
-            } else {
-              _this.addAppend()
-            }
-          } else {
-            return false
-          }
-        })
-      },
-
-      // 更新增项信息
-      updateData () {
-        this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
-        let _this = this
-        api2.updateEntity(_this.Id, _this.formData, _this.$axios).then(res => {
-          if (res.data.code === 0) {
-            this.getEntityById()
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 获取增项分类表
-      getSortList () {
-        // 分页及列表条件
-        let params = {
-          // _currentPage: this.currentPage,
-          // _size: this.size,
-          // Order: this.Column.Order,
-          // Prop: this.Column.Prop,
-          SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
-          SupCertId: this.formData.SupplierCertId,
-          SupTypeCode: this.formData.AppendType
-        }
-
-        // 访问接口
-        api.getList(params, this.$axios).then(res => {
-          this.entityList = res.data.item
-          // this.currentItemCount = res.data.currentItemCount
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 获取增项分类表
-      getMySortList () {
-        // 分页及列表条件
-        let params = {
-          SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
-          SupCertId: this.formData.SupplierCertId,
-          SupTypeCode: this.formData.AppendType
-        }
-
-        // 访问接口
-        api.getMyList(params, this.$axios).then(res => {
-          this.myentityList = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 添加增项信息
-      addAppend () {
-        this.formData.AppendType = '02'
-        this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
-        this.$axios.post('/suppliercertappend/addappend/', this.formData)
-          .then(res => {
-            if (res.data.code === 0) {
-              this.entityList = res.data.item
-              this.dialogFormData.SupplierCertAppendId = res.data.info // 接收插入数据后返回的Id
-              this.Id = res.data.info
-              this.getEntityById()
-              this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-            } else {
-              this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 添加增项分类
-      addSortData () {
-        let _this = this
-        // 先判断是否保存了增项信息
-        if (this.checkAppendSave()) {
-          _this.dialogVisible = true
-          _this.dialogFormData.Id = ''
-          // _this.dialogFormData.SortFlag = ''
-          _this.dialogFormData.Code = ''
-          _this.dialogFormData.Name = ''
-          _this.dialogFormData.Remark = ''
-        }
-      },
-
-      // 取消
-      cancelOption () {
-        let _this = this
-        _this.dialogVisible = false
-      },
-
-      // 确定
-      ensureOption () {
-        this.$refs['dialogFormData'].validate((valid) => {
-          if (valid) {
-            let _this = this
-            _this.dialogFormData.SupplierId = _this.formData.SupplierId
-            _this.dialogFormData.SupplierCertId = _this.formData.SupplierCertId
-            _this.dialogFormData.SupplierCertAppendId = parseInt(_this.dialogFormData.SupplierCertAppendId)
-            _this.dialogloading = true
-            _this.addSortAppend()
-          } else {
-            return false
-          }
-        })
-      },
-
-      // 判断是否保存了增项信息
-      checkAppendSave () {
-        if (this.dialogFormData.SupplierCertAppendId == '' && this.editFlag == null) {
-          this.$message({
-            type: 'error',
-            message: '无法执行该命令,请先保存增项信息!'
-          })
-          return false
-        }
-        return true
-      },
-
-      // 添加增项分类信息
-      addSortAppend () {
-        this.dialogFormData.SupplierTypeCode = '02'
-        this.$axios.post('/suppliercertappendsub/addappendsub/', this.dialogFormData)
-          .then(res => {
-            this.dialogloading = false
-            if (res.data.code === 0) {
-              this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              // 关闭dialog
-              this.getEntityById()
-              this.dialogVisible = false
-            } else {
-              this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 删除增项分类信息
-      deleteData (Id) {
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            _this.$axios.delete('suppliercertsub/businessdelete/' + Id, {})
-              .then(function (response) {
-                if (response.data.code === 0) {
-                  _this.$message({
-                    type: 'success',
-                    message: response.data.message
-                  })
-                  _this.getEntityById()
-                } else {
-                  _this.$message({
-                    type: 'warning',
-                    message: response.data.message
-                  })
-                }
-              })
-              .catch(function (error) {
-                console.log(error)
-              })
-          })
-          .catch(() => {})
-      },
-
-      selectAuditOrg () {
-        this.dialogVisible = true
-      },
-      chooseAuditorShow () {
-        this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
-        this.chooseAuditorVisible = true
-      },
-      setAuditer (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisible = false
-        this.auditOrgChang(this.auditer)
-      },
-      auditOrgChang (val) {
-        let auditstepcode = 'SECOND_TRIAL'
-        suppapi
-          .getAuditerByFirst(val, auditstepcode, this.$axios)
-          .then(res => {
-            this.secauditerOptions = res.data.item
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      chooseAuditorShowFen () {
-        this.$refs['chooseAuditorFen'].getorgtreelist(this.formData.SupplierTypeCode)
-        this.chooseAuditorVisibleFen = true
-      },
-      setAuditerFen (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisibleFen = false
-      },
-
-      // 提交审批
-      AuditEntity () {
-        if (this.auditer === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择初审人!'
-          })
-          return
-        }
-        if (this.fushenauditer === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择复审人!'
-          })
-          return
-        }
-        if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
-          if (this.majorDept.length === 0) {
-            this.$message({
-              type: 'warning',
-              message: '请选择专业处室!'
-            })
-            return
-          }
-        }
-        if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
-          if (this.userOptions == null || this.userOptions.length === 0) {
-            this.$message({
-              type: 'warning',
-              message: '该专业科室未配置接收人!'
-            })
-            return
-          }
-        }
-        this.applyLoading = true
-        this.auditform.FirstAuditName = this.auditer
-        this.auditform.CertId = this.formData.Id
-        this.auditform.SecondAudit = this.fushenauditer
-        this.auditform.ThirdAudit = this.majorDept[this.majorDept.length - 1]
-        api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.AuditdialogShow = false
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-          this.applyLoading = false
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      SubpEntitySubpEntity () {
-        if (this.auditer === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择分办人!'
-          })
-          return
-        }
-        this.applyLoading = true
-        this.auditform.FirstAuditName = this.auditer
-        this.auditform.CertId = this.formData.Id
-        api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.ComAuditdialogShow = false
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-          this.applyLoading = false
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      getorgtreelist () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: 1
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 列表排序功能
-      orderby (column) {
-        if (column.order == 'ascending') {
-          this.Column.Order = 'asc'
-        } else if (column.order == 'descending') {
-          this.Column.Order = 'desc'
-        }
-        this.Column.Prop = column.prop
-      },
-      // 分页功能
-      handleCurrentChange (value) {
-        this.currentPage = value
-        this.getSortList()
-      },
-      handleSizeChange (value) {
-        this.size = value
-        this.currentPage = 1
-        this.getSortList()
-      },
-      // 增项分类dialog分页功能
-      dialogHandleSizeChange (value) {
-        this.dialogSize = value
-        this.dialogCurrentPage = 1
-        this.getBasisList()
-      },
-      dialogHandleCurrentChange (value) {
-        this.dialogCurrentPage = value
-        this.getBasisList()
-      },
-
-      jstimehandle (val) {
-        if (val === '') {
-          return '----'
-        } else if (val === '0001-01-01T08:00:00+08:00') {
-          return '----'
-        } else if (val === '5000-01-01T23:59:59+08:00') {
-          return '永久'
-        } else {
-          val = val.replace('T', ' ')
-          return val.substring(0, 10)
-        }
-      }
-    }
-  }
-</script>
-<style lang='scss'>
-  .attach-uploader .el-upload {
-    border: 1px dashed #63B8FF;
-    cursor: pointer;
-    position: relative;
-    overflow: hidden;
-    // margin-bottom: -17px;
-    margin-top: -15px;
-    margin-left: 20px
-  }
-
-  .attach-uploader .el-upload:hover {
-    border-color: #228B22;
-  }
-
-  .attach-uploader-icon {
-    font-size: 25px;
-    color: #63B8FF;
-    width: 50px;
-    height: 50px;
-    line-height: 50px;
-    text-align: center;
-  }
-
-  .attach-uploader-icon:hover {
-    color: #228B22;
-  }
-
-</style>

+ 0 - 1882
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -1,1882 +0,0 @@
-<template>
-  <div>
-    <el-breadcrumb class="heading">
-      <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
-      <el-breadcrumb-item :to="{ path: '/oilsupplier/supplierappend/goodslist' }">物资类列表</el-breadcrumb-item>
-      <el-breadcrumb-item>编辑</el-breadcrumb-item>
-    </el-breadcrumb>
-    <el-card class="box-card">
-      <div slot="header">
-        <span>
-          <i class="icon icon-table2"></i> 编辑
-        </span>
-        <span style="float: right;">
-          <el-popover>
-            <el-steps :active="formData.Step" direction="vertical" align-center finish-status="success">
-              <el-step title="填信息"></el-step>
-              <el-step title="待审批"></el-step>
-              <el-step title="已审批"></el-step>
-              <el-step title="待交费"></el-step>
-              <el-step title="待入库"></el-step>
-              <el-step title="完成"></el-step>
-            </el-steps>
-            <!-- <el-button slot="reference" plain size="mini" style="margin-right: 8px">查看进度</el-button> -->
-          </el-popover>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
-          <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitaudit"
-            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交审批
-          </el-button>
-          <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitfenban"
-            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 1">提交分办
-          </el-button>
-          <router-link :to="'/oilsupplier/supplierappend/goodslist'">
-            <el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
-          </router-link>
-        </span>
-      </div>
-      <div>
-        <el-card class="box-card" style="margin-top: 20px">
-          <div slot="header">
-            <span><i class="icon icon-table2"></i> 增项信息</span>
-            <el-button style="float: right; padding: 3px 0" type="text"
-              v-if="formData.Status <= 0 && formData.Status != -5" @click="saveEntity()">保存信息</el-button>
-          </div>
-          <el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData">
-            <el-row>
-              <!-- <el-col :span="12">
-                <el-form-item label="推荐单位名称" prop="checkSelectedRecUnitName">
-                  <el-cascader ref="tjdwCascader" :options="organizeTreeList" :props="organizeTreeProps"
-                    change-on-select :show-all-levels="false" v-model="selectedOrgList" @change="getCode2"
-                    placeholder="请选择推荐单位" style="width: 100%">
-                  </el-cascader>
-                </el-form-item>
-              </el-col> -->
-              <el-col :span="8">
-                <el-form-item label="供应商公司名称" prop="checkSelectedSupplier">
-                  <el-select ref="suppselect" :disabled="formData.Status>0||IsCompanyUser == 1" v-model="supplierOptions" filterable
-                    @change="getInfo" placeholder="请选择供应商公司" style="width: 100%">
-                    <el-option v-for="item in supplierList" :key="item.SupplierId" :label="item.SupplierName"
-                      :value="item.SupplierId">
-                    </el-option>
-                  </el-select>
-                </el-form-item>
-              </el-col>
-              <el-col :span="16">
-                <el-form-item label="备注" prop="Remark">
-                  <el-input :disabled="formData.Status>0" type="textarea" v-model="formData.Remark" placeholder="请输入">
-                  </el-input>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </el-card>
-        <!-- 增项分类列表 -->
-        <el-row :gutter="2">
-          <el-col :span="12">
-            <el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);">
-              <div slot="header">
-                <span><i class="icon icon-table2"></i> 全部准入范围</span>
-                <!-- <el-button style="float: right; padding: 3px 0" type="text"
-                  v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button> -->
-              </div>
-              <el-table :data="entityList" size="mini" border style="width: 100%;"  height="calc(100vh - 428px)" @sort-change="orderby">
-                <!-- <el-table-column label="操作" min-width="100" align="center" fixed>
-                  <template slot-scope="scope">
-                    <el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
-                      :disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
-                  </template>
-                </el-table-column> -->
-                <!-- <el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column> -->
-                <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-              </el-table>
-              <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
-            :current-page="currentPage" :page-sizes="[10, 15, 20, 25]" :page-size="size"
-            layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount">
-          </el-pagination> -->
-            </el-card>
-          </el-col>
-          <el-col :span="12">
-            <!-- <goods-list ref="goodsList" :data.sync="myentityList" :canadd="add_flat"
-            :candelete="delete_flat" height="360px" style="margin-top: 20px"></goods-list> -->
-            <el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);">
-              <div slot="header">
-                <span><i class="icon icon-table2"></i> 新增准入范围</span>
-                <!--<el-button style="float: right; padding: 3px 0" type="text"-->
-                  <!--v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button>-->
-                <el-button style="float: right; padding: 3px 0" type="text"
-                           v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData1()">添加</el-button>
-              </div>
-              <el-table :data="myentityList" size="mini" border style="width: 100%;"  height="calc(100vh - 428px)" @sort-change="orderby">
-                <el-table-column label="操作" min-width="100" align="center" fixed>
-                  <template slot-scope="scope">
-                    <el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
-                      :disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
-                  </template>
-                </el-table-column>
-                <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-              </el-table>
-              <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
-            :current-page="currentPage" :page-sizes="[10, 15, 20, 25]" :page-size="size"
-            layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount">
-          </el-pagination> -->
-            </el-card>
-          </el-col>
-        </el-row>
-        <el-card class="box-card" style="margin-top: 10px;">
-          <div slot="header" class="clearfix">
-            <span><i class="icon icon-table2"></i> 企业资质</span>
-            <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog" >添加</el-button>
-          </div>
-          <el-table :data="subfileList" size="mini" border>
-            <el-table-column label="操作" width="150" align="center" fixed>
-              <template slot-scope="scope">
-                <el-button type="primary" plain size="mini" title="上传" @click="openDialog(scope.row)"
-                  :disabled="scope.row.SupType != 2||formData.Status > 0">上传
-                </el-button>
-                <el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
-                  v-if="scope.row.FileType == '66'" @click="newdeletedata(scope.row)">删除</el-button>
-              </template>
-            </el-table-column>
-            <el-table-column prop="NeedFileType" label="资质名称" show-overflow-tooltip></el-table-column>
-            <el-table-column prop="FileUrlList" label="资质文件" show-overflow-tooltip>
-              <template slot-scope="scope">
-                <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
-                  <a :href="fileurlcut(scope.row.FileUrl, index)" target="_blank"
-                    class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
-                </div>
-              </template>
-            </el-table-column>
-            <el-table-column prop="EffectDate" label="有效日期" show-overflow-tooltip>
-              <template slot-scope="scope">
-                {{ jstimehandle(scope.row.EffectDate+'') }}
-              </template>
-            </el-table-column>
-            <el-table-column prop="OtherRemark" label="描述" show-overflow-tooltip></el-table-column>
-          </el-table>
-        </el-card>
-      </div>
-    </el-card>
-    <el-dialog title="上传文件" :visible.sync="visible" top="5vh">
-      <el-form :model="SubfileForm" size="mini" label-width="100px">
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="资质名称" required>
-              <el-input v-model="SubfileForm.NeedFileType" placeholder="请输文件类型" :disabled="true"></el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="有效日期" required>
-              <el-date-picker style="width: 100%" v-model="SubfileForm.EffectDate" type="date" placeholder="请选择有效日期">
-              </el-date-picker>
-            </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-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>-->
-              <!--<div slot="tip" class="el-upload__tip">大小为512KB-5MB</div>-->
-              <!--</el-upload>-->
-              <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>
-                <div slot="tip" class="el-upload__tip">大小为512KB-5MB</div>
-              </el-upload>
-            </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>
-    <!-- 增项分类添加、修改 -->
-    <!--<el-dialog :title="dialogTitle" :visible.sync="dialogVisible">-->
-
-      <!--<el-form label-width="150px" v-loading="dialogloading" ref="dialogFormData" :rules="sortEntityFormRules" :model="dialogFormData">-->
-        <!--<el-row style="margin-top: -10px">-->
-          <!--<el-col :span="12">-->
-            <!--<el-input v-if="!switchstatus" v-model="filterText" placeholder="请输入名称或代码" size="mini"-->
-              <!--style="width: 250px;"></el-input>-->
-            <!--<el-input v-if="switchstatus" v-model="searchText" placeholder="请输入名称或代码" size="mini" style="width: 250px;">-->
-            <!--</el-input>-->
-            <!--<el-button style="float: right;" type="primary" size="mini" @click="getsectreelist()"-->
-              <!--:disabled="!switchstatus">查询</el-button>-->
-            <!--<el-switch v-model="switchstatus" size="mini"></el-switch>-->
-          <!--</el-col>-->
-        <!--</el-row>-->
-        <!--<el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">-->
-          <!--<el-col :span="20">-->
-            <!--<el-tree v-show="!switchstatus" highlight-current :expand-on-click-node="true" node-key="CodeName"-->
-              <!--:data="orgtreelist" :props="orgtreeprops" ref="orgmanagetree" check-on-click-node show-checkbox lazy-->
-              <!--:load="getChildrens" :filter-node-method="filterNode">-->
-            <!--</el-tree>-->
-            <!--<el-tree v-show="switchstatus" ref="secmanagetree" :data="sectreelist" show-checkbox check-on-click-node-->
-              <!--node-key="CodeName" :props="sectreeprops">-->
-            <!--</el-tree>-->
-          <!--</el-col>-->
-        <!--</el-row>-->
-        <!--<el-row style="margin-top: 30px">-->
-          <!--备注信息:-->
-          <!--<el-col :span="24">-->
-            <!--<el-input type="textarea" :rows=3 v-model="dialogFormData.Remark" placeholder="请输入备注" style="width: 100%">-->
-            <!--</el-input>-->
-          <!--</el-col>-->
-        <!--</el-row>-->
-      <!--</el-form>-->
-      <!--<span slot="footer" class="dialog-footer">-->
-        <!--<el-button size="mini" @click="cancelOption()">取 消</el-button>-->
-        <!--<el-button size="mini" type="primary" @click="ensureOption()">确 定</el-button>-->
-      <!--</span>-->
-    <!--</el-dialog>-->
-
-
-    <el-dialog
-               element-loading-text="正在添加请稍后..."
-               title="物资类业务列表"
-               :visible.sync="goodsDialog"
-               top="5vh">
-      <el-tabs v-model="tabIdx"
-               style="margin-top: -30px;">
-        <el-tab-pane label="准入编码"
-                     name="1">
-          <el-form label-width="150px" v-loading="dialogloading" ref="dialogFormData" :rules="sortEntityFormRules" :model="dialogFormData" style="padding-top: 15px">
-            <el-row style="margin-top: -10px">
-              <el-col :span="12">
-                <el-input v-if="!switchstatus" v-model="filterText" placeholder="请输入名称或代码" size="mini"
-                          style="width: 250px;"></el-input>
-                <el-input v-if="switchstatus" v-model="searchText" placeholder="请输入名称或代码" size="mini" style="width: 250px;">
-                </el-input>
-                <el-button style="float: right;" type="primary" size="mini" @click="getsectreelist()"
-                           :disabled="!switchstatus">查询</el-button>
-                <el-switch v-model="switchstatus" size="mini"></el-switch>
-              </el-col>
-            </el-row>
-            <el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">
-              <el-col :span="20">
-                <el-tree v-show="!switchstatus" highlight-current :expand-on-click-node="true" node-key="CodeName"
-                         :data="orgtreelist" :props="orgtreeprops" ref="orgmanagetree" check-on-click-node show-checkbox lazy
-                         :load="getChildrens" :filter-node-method="filterNode">
-                </el-tree>
-                <el-tree v-show="switchstatus" ref="secmanagetree" :data="sectreelist" show-checkbox check-on-click-node
-                         node-key="CodeName" :props="sectreeprops">
-                </el-tree>
-              </el-col>
-            </el-row>
-            <el-row style="margin-top: 30px">
-              备注信息:
-              <el-col :span="24">
-                <el-input type="textarea" :rows=3 v-model="dialogFormData.Remark" placeholder="请输入备注" style="width: 100%">
-                </el-input>
-              </el-col>
-            </el-row>
-          </el-form>
-          <!--<span slot="footer" class="dialog-footer">-->
-            <!--<el-button size="mini" @click="cancelOption()">取 消</el-button>-->
-            <!--<el-button size="mini" type="primary" @click="ensureOption()">确 定</el-button>-->
-          <!--</span>-->
-        </el-tab-pane>
-
-        <el-tab-pane label="顶级编码" v-loading="loading"
-                     name="2">
-          <el-form ref="form"
-                   :inline="true"
-                   style="float: left;margin-top:-7px">
-            <el-form-item label="">
-              <el-input size="mini"
-                        style="width: 245px;"
-                        v-model="keyword"
-                        placeholder="请输入名称或代码"></el-input>
-            </el-form-item>
-          </el-form>
-          <span style="float: left">
-            <el-button type="primary"
-                       size="mini"
-                       style="margin-left:10px;"
-                       @click="initData2019()">查询
-            </el-button>
-            <el-button type="primary"
-                       size="mini"
-                       style="margin-left:10px;"
-                       @click="goodsDialog = false">
-              取消</el-button>
-          </span>
-
-          <el-table :data="goodsList2019"
-                    border
-                    size="mini"
-                    @selection-change="handleSelectionChangeCert">
-            <el-table-column type="selection"
-                             width="55">
-            </el-table-column>
-            <el-table-column prop="Code"
-                             label="编码"
-                             show-overflow-tooltip></el-table-column>
-            <el-table-column prop="Name"
-                             label="名称"
-                             show-overflow-tooltip></el-table-column>
-          </el-table>
-          <el-pagination @size-change="handleSizeChangeCert"
-                         @current-change="handleCurrentChangeCert"
-                         :current-page="currentPageCert"
-                         :page-sizes="[10, 15, 20, 25]"
-                         :page-size="sizeCert"
-                         layout="total, sizes, prev, pager, next, jumper"
-                         :total="currentItemCountCert">
-          </el-pagination>
-          <el-form label-width="80px"
-                   label-position="top">
-            <el-form-item label="备注信息">
-              <el-input size="mini"
-                        type="textarea"
-                        style="width:100%"
-                        v-model="Remark1"></el-input>
-            </el-form-item>
-
-          </el-form>
-
-        </el-tab-pane>
-      </el-tabs>
-      <div slot="footer"
-           class="dialog-footer"
-           v-if="tabIdx==1">
-        <!--<el-button size="mini" @click="visible = false">取 消</el-button>-->
-        <el-button type="primary"
-                   size="mini"
-                   @click="ensureOption()">确 定</el-button>
-      </div>
-      <div slot="footer"
-           class="dialog-footer"
-           v-if="tabIdx==2">
-        <el-button type="primary"
-                   size="mini"
-                   @click="addBusiness1()">确 定</el-button>
-      </div>
-    </el-dialog>
-
-    <el-dialog title="审批流程" :visible.sync="audithistoryshow" width="1200px">
-      <wf-multi-history ref="WfHistory" :entryinfo="entrydetail"></wf-multi-history>
-    </el-dialog>
-
-    <el-dialog title="提交初审" :visible.sync="AuditdialogShow" width="520px">
-      <el-form ref="searchForm" label-width="110px">
-        <el-row>
-          <el-col :span="24">
-            <el-form-item label="初审人员">
-              <el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">
-                <el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>
-              </el-input>
-            </el-form-item>
-            <el-form-item label="复审人员">
-              <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
-                allow-create default-first-option>
-                <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
-                </el-option>
-              </el-select>
-            </el-form-item>
-            <el-form-item label="专业处室" v-if="allowpre">
-              <el-cascader :options="preorgtreelist" :props="preorgtreeprops" :show-all-levels="false" filterable
-                style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">
-              </el-cascader>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="备注">
-              <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入备注内容">
-              </el-input>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="AuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="AuditEntity">确定</el-button>
-      </span>
-    </el-dialog>
-
-    <el-dialog title="分办" :visible.sync="ComAuditdialogShow" width="520px">
-      <el-form ref="searchForm" label-width="100px">
-        <el-row>
-          <el-col :span="24">
-            <!--<el-form-item label="分办人员">-->
-              <!--<el-input ref="selectAuditerFen" readonly v-model="auditerName" placeholder="请选择分办人">-->
-                <!--<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShowFen"></el-button>-->
-              <!--</el-input>-->
-            <!--</el-form-item>-->
-            <el-form-item label="分办单位">
-              <el-select filterable
-                         v-model="UnitOrg"
-                         maxlength="255"
-                         clearable
-                         placeholder="请选择分办单位"
-                         style="width: 100%"
-                         @change="orgunitChange">
-                <el-option v-for="item in UnitOrgOptions"
-                           :key="item.Id"
-                           :label="item.Fullname"
-                           :value="item.Id">
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="备注">
-              <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入备注内容">
-              </el-input>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="SubpEntity">确定</el-button>
-      </span>
-    </el-dialog>
-
-    <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
-      :visible="chooseAuditorVisible"></choose-auditor>
-      <choose-auditor-fen ref="chooseAuditorFen" @close="setAuditerFen" @hideChooseAuditer="chooseAuditorVisibleFen=false"
-      :visible="chooseAuditorVisibleFen" typeCode="01"></choose-auditor-fen>
-
-      <el-dialog title="新增文件" :visible.sync="newVisible" top="5vh">
-      <el-form :model="newSubfileForm" label-width="100px">
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="资质名称" required>
-              <el-select v-model="newSubfileForm.NeedFileType" placeholder="请输文件类型" size="medium">
-                <el-option v-for="item in dynamicTableColumns" :key="item.prop" :label="item.label" :value="item.label">
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="有效日期" required>
-              <el-date-picker style="width: 100%" v-model="newSubfileForm.EffectDate" type="date" placeholder="请选择有效日期">
-              </el-date-picker>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="描述">
-              <el-input v-model="newSubfileForm.OtherRemark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="资质文件">
-              <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
-                :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
-                <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">大小为512KB-5MB
-                </div>
-              </el-upload>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <div slot="footer" class="dialog-footer" style="margin-top:-30px;">
-        <el-button @click="newVisible = false">取 消</el-button>
-        <el-button type="primary" @click="makeNewSure()">确 定</el-button>
-      </div>
-    </el-dialog>
-    </div>
-</template>
-
-<script>
-  import {
-    mapGetters
-  } from 'vuex'
-  import axios from 'axios'
-  import WfMultiHistory from '@/components/workflow/wfmultihistory.vue'
-  import uploadajax from '@/assets/js//uploadajax.js'
-  import suppapi from '@/api/oilsupplier/supplier'
-  import api from '@/api/oilsupplier/supplierappendsub'
-  import api2 from '@/api/oilsupplier/supplierappend'
-  import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
-  import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
-  import setapi from '@/api/oilsupplier/oilclassorgset'
-
-  export default {
-    components: {
-      WfMultiHistory,
-      ChooseAuditor,
-      ChooseAuditorFen
-    },
-    computed: {
-      ...mapGetters({
-        authUser: 'authUser'
-      })
-    },
-    watch: {
-      filterText (val) {
-        this.$refs.orgmanagetree.filter(val)
-      }
-    },
-    name: 'oilsuppliercertappendsub',
-
-    data () {
-      var CheckSelectedOption = (rule, value, callback) => {
-        if (this.selectedOrgList && this.selectedOrgList.length < 1) {
-          callback(new Error('请选择推荐单位'))
-        } else {
-          callback()
-        }
-      }
-      var CheckSelectedOption2 = (rule, value, callback) => {
-        if (this.selectedOptList && this.selectedOptList.length < 1) {
-          callback(new Error('请选择增项'))
-        } else {
-          callback()
-        }
-      }
-      var CheckSelectedOption3 = (rule, value, callback) => {
-        if (this.supplierOptions === '') {
-          callback(new Error('请选择供应方公司'))
-        } else {
-          callback()
-        }
-      }
-      return {
-        // 456
-        Remark: '',
-        Remark1: '',
-        loading: false,
-        tabIdx: '1',
-        sizeCert: 10,
-        currentItemCountCert: 0,
-        currentPageCert: 1, // 分页
-        keyword: '',
-        goodsList2019: [],
-        sectionCert: [],
-        goodsDialog: false,
-
-
-
-
-        UnitOrg: '',
-        allowpre: true,
-        newVisible: false,
-        filterText: '',
-        searchText: '',
-        switchstatus: false,
-        audithistoryshow: false,
-        chooseAuditorVisible: false,
-        chooseAuditorVisibleFen: false,
-        orgauditOptions: [],
-        UnitOrgOptions: [],
-        sectreelist: [],
-        orgtreelist: [], // 二级单位
-        preorgtreelist: [],
-        secauditerOptions: [],
-        fushenauditer: '', // 复审人员
-        majorDept: [100000000, 100000001, 100000071], // 专业可是
-        AuditdialogShow: false, // 提交审核弹框
-        ComAuditdialogShow: false,
-        organizeOption: [], // 审批部门
-        auditerOption: [], // 审批人
-        orgtreeprops: {
-          value: 'Id',
-          label: 'CodeName',
-          children: 'children',
-          isLeaf: 'Leaf',
-          disabled: 'disabled'
-        },
-        sectreeprops: {
-          children: 'children',
-          label: 'CodeName',
-          disabled: 'disabled'
-        },
-        preorgtreeprops: {
-          value: 'id',
-          label: 'name',
-          children: 'children'
-        },
-        entrydetail: {
-          process: '',
-          business: '',
-          instance: '',
-          Status: ''
-        },
-        auditform: {
-          FirstAuditName: '',
-          CertId: '',
-          AuditRemark: '',
-          SecondAudit: '',
-          ThirdAudit: '',
-          TypeCode: ''
-        },
-        auditbusList: [],
-        SupplierId: 0,
-        SupplierTypeCode: '',
-        SupplierCertId: 0,
-        subfileList: [],
-        visible: false,
-        dynamicTableColumns: [],
-        flag: '',
-        editbtn: true,
-        // 资质文件
-        SubfileForm: {
-          Id: '',
-          SupplierId: '',
-          SupplierTypeCode: '',
-          SupplierCertSubId: '',
-          CertSubName: '',
-          NeedFileType: '',
-          NeedFileCode: '',
-          FileType: '',
-          FileExt: '',
-          FileName: '',
-          EffectDate: new Date(),
-          FileUrl: '',
-          OtherRemark: '',
-          Remark: '',
-          IsDelete: 0,
-          FileUrlList: []
-        },
-        newSubfileForm: {
-          Id: '',
-          SupplierId: '',
-          SupplierTypeCode: '01',
-          SupplierCertSubId: '',
-          CertSubName: '',
-          SupType: 2,
-          NeedFileType: '',
-          NeedFileCode: '',
-          FileType: 66,
-          FileExt: '',
-          FileName: '',
-          EffectDate: new Date(),
-          FileUrl: '',
-          OtherRemark: '',
-          Remark: '',
-          IsDelete: 0,
-          FileUrlList: []
-        },
-        checkList: [],
-        auditer: '',
-        auditerName: '',
-        FirstAudit: '',
-        supplierList: [], // 供应方公司列表
-        supplierOptions: '', // 已选择的供应方公司列表
-        // serviceType: '', //服务类型()
-        optionsList: [], // 增项分类层级列表
-        selectedOptList: [], // 已选择的增项分类列表
-        goodsProps: {
-          value: 'id',
-          label: 'Name',
-          children: 'children'
-        },
-        ParentId: 0, // 物资类初始父类Id值:0
-        flagId: 0, // 标记是否第一次点击
-        organizeTreeList: [], // 推荐单位层级列表
-        selectedOrgList: [], // 已选择的单位列表
-        organizeTreeProps: {
-          value: 'id',
-          label: 'Fullname',
-          children: 'children'
-        },
-        organizeform: {
-          IsInnerOrganize: 1,
-          parentid: 0,
-          fullname: '',
-          description: '',
-          id: 0
-        },
-        // 增项信息表
-        formData: {
-          Id: '',
-          Step: 1,
-          Status: '',
-          ProcessKey: '',
-          SupplierId: 0,
-          SupplierCertId: 0,
-          RecUnitFlag: '', // 推荐单位的级联Id标记
-          RecUnitId: '', // 推荐单位编码
-          RecUnitName: '', // 推荐单位名称
-          AppendType: '', // 增项类别(01 物资类,02 基建类,03 技术服务类)
-          Remark: '' // 备注
-        },
-        dialogloading: false,
-        dialogVisible: false, // 增项分类dialog
-        dialogTitle: '',
-        dialogFormData: {
-          Id: '',
-          SupplierId: 0, // 供方表ID
-          SupplierCertId: 0, // 供方证书表ID
-          SupplierCertAppendId: '', // 增项信息表ID
-          SubClassId: 1, // 分类表主键(物资类或基建类或技术服务类)
-          SortFlag: '', // 分类标记
-          Code: '', // 分类编码
-          Name: '', // 分类名称
-          Remark: '' // 备注
-        },
-        // 列表数据
-        entityList: [],
-        myentityList: [],
-        // 分页参数
-        size: 10,
-        currentPage: 1,
-        currentItemCount: 0,
-        // 列表排序
-        Column: {
-          Order: '',
-          Prop: ''
-        },
-        // 增项表单规则
-        appendRules: {
-          checkSelectedRecUnitName: [{
-            required: true,
-            validator: CheckSelectedOption,
-            trigger: 'blur'
-          }],
-          checkSelectedSupplier: [{
-            required: true,
-            validator: CheckSelectedOption3,
-            trigger: 'blur'
-          }]
-        },
-        // 增项分类表单规则
-        sortEntityFormRules: {
-          checkSelectedOptList: [{
-            required: true,
-            validator: CheckSelectedOption2,
-            trigger: 'blur'
-          }]
-        },
-        Id: '', // 传的参数
-        editFlag: '', // 编辑操作标记
-        waituploads: [], // 等待上传的附件列表
-        IsCompanyUser: ''
-      }
-    },
-    created () {
-      this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
-      // this.serviceType = this.$route.params.opera //获取服务类型
-      this.Id = this.$route.query.Id
-      this.editFlag = this.$route.query.editFlag
-      if (this.editFlag == '1' && this.Id !== '') {
-        this.getEntityById()
-        this.dialogFormData.SupplierCertAppendId = this.Id
-      }
-      this.getSupplierList() // 获取供应方公司列表
-      this.getDictOptions()
-      this.getorgtreelist()
-      this.orgtreeChange(this.majorDept)
-      this.initTableHeader()
-      this.initData2019()
-    },
-    methods: {
-      addSortData1 () {
-        this.goodsDialog = true
-      },
-      newdeletedata (val) {
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            _this.$axios.delete('supplierfile/subfiledelete/' + val.Id, {})
-              .then(function (response) {
-                if (response.data.code === 0) {
-                  _this.$message({
-                    type: 'success',
-                    message: response.data.message
-                  })
-                  _this.getFileList()
-                } else {
-                  _this.$message({
-                    type: 'warning',
-                    message: response.data.message
-                  })
-                }
-              })
-              .catch(function (error) {
-                console.log(error)
-              })
-          })
-          .catch(() => {})
-      },
-      makeNewSure () {
-        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-          // 上传附件是否完成判断
-          if (!this.newattachissuccess()) {
-            this.$message.error('有附件未成功上传!不能保存数据')
-            return
-          }
-          this.newgetattachissuccess()
-          this.addSubfile()
-        } else {
-          this.$message({
-            type: 'warning',
-            message: '请上传文件!'
-          })
-        }
-      },
-      addSubfile () {
-        let _this = this
-        _this.newSubfileForm.SupplierId = parseInt(this.SupplierId)
-        _this.$axios.post('/supplierfile/addsubfile/', _this.newSubfileForm)
-          .then(res => {
-            if (res.data.code === 0) {
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              this.newVisible = false
-              this.getFileList()
-              this.$refs.newrefuploadattach.uploadFiles = []
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      initTableHeader () {
-        setapi.initGoodTableHeader(this.$axios).then(res => {
-          this.dynamicTableColumns = res.data.items
-        })
-      },
-      orgtreeChange (val) {
-        this.userOptions = []
-        let deptid = val[val.length - 1]
-        let auditstepcode = 'PROF_RECE'
-        suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.userOptions = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 获取推荐单位列表
-      getOrgTreeList () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: this.organizeform.IsInnerOrganize
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.organizeTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-            if (_this.authUser.Profile.IsCompanyUser === 0) {
-              this.selectedOrgList = _this.authUser.Profile.Superior.split(',').map((val) => {
-                return parseInt(val)
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 获取供应方公司列表
-      getSupplierList () {
-        let _this = this
-        let params = {
-          SuppTypeCode: '01'
-        }
-        _this.$axios.get('/suppliercertappend/getsupplier', {params})
-          .then(res => {
-            _this.supplierList = res.data
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 获取物资类第一级分类
-      // getGoodsTreeList(Id) {
-      //   let _this = this
-      //   this.$axios.get('goodsaptitudeclass/getgoodsclasslist/' + Id, {})
-      //     .then(res => {
-      //       _this.optionsList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
-      //       _this.optionsList.forEach((item, index) => {
-      //         _this.$set(this.optionsList[index], 'children', [])
-      //       })
-      //     })
-      //     .catch(err => {
-      //       console.error(err)
-      //     })
-      // },
-
-      // 获取下一级所有分类
-      getChildrens (val, resolve) {
-        let Id = 0
-        if (val.level === 0) {
-          Id = 0
-        } else {
-          Id = val.data.Id
-        }
-        this.$axios.get('goodsaptitude/goodschildlistbypid/' + Id, {})
-          .then(res => {
-            if (!res.data.items || res.data.items.length <= 0) {
-              val.isLeaf = true
-              return resolve([])
-            }
-            for (let idx in res.data.items) {
-              if (res.data.items[idx].Code.length <= 4) {
-                res.data.items[idx].disabled = true
-              }
-              res.data.items[idx].Leaf = res.data.items[idx].Leaf === '1'
-            }
-            return resolve(res.data.items)
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      filterNode (value, data) {
-        if (!value) return true
-        return data.CodeName.indexOf(value) !== -1
-      },
-      // 获取分类级联Id
-      getCode (item) {
-        let sortFlagStr = item.toString()
-        this.dialogFormData.SortFlag = sortFlagStr
-        this.getCodeById(item[item.length - 1]) // 根据分类Id获取Code
-      },
-
-      commitaudit () {
-        this.AuditdialogShow = true
-        // if (this.subfileList && this.subfileList.length > 0) {
-        //   for (var i = 0; i < this.subfileList.length; i++) {
-        //     if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-        //       this.$message({
-        //         type: 'warning',
-        //         message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-        //       })
-        //       return
-        //     }
-        //   }
-        // } else {
-        //   this.AuditdialogShow = true
-        // }
-      },
-      commitfenban () {
-        this.ComAuditdialogShow = true
-        // if (this.subfileList && this.subfileList.length > 0) {
-        //   for (var i = 0; i < this.subfileList.length; i++) {
-        //     if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-        //       this.$message({
-        //         type: 'warning',
-        //         message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-        //       })
-        //       return
-        //     }
-        //   }
-        // } else {
-        //   this.ComAuditdialogShow = true
-        // }
-      },
-
-      // 根据分类Id获取Code
-      getCodeById (Id) {
-        let _this = this
-        this.$axios.get('goodsaptitudeclass/getcode/' + Id, {})
-          .then(res => {
-            _this.dialogFormData.Code = res.data.items[0].Code
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 获取SupplierId和SupplierCertId
-      getInfo (vId) { // 这个vId也就是value值
-        let obj = {}
-        obj = this.supplierList.find((item) => {
-          return item.SupplierId === vId // 筛选出匹配数据
-        })
-        this.formData.SupplierId = parseInt(obj.SupplierId)
-        this.formData.SupplierCertId = parseInt(obj.SupplierCertId)
-      },
-
-      // 获取推荐单位级联Id
-      getCode2 (item) {
-        let codeStr = item.toString()
-        this.formData.RecUnitFlag = codeStr
-      },
-
-      // 审批历史
-      auhistory () {
-        this.audithistoryshow = true
-      },
-
-      // 获取需要修改的增项信息
-      getEntityById () {
-        let _this = this
-        api2.getEntityById(_this.Id, _this.$axios).then(res => {
-          _this.formData = res.data
-          this.entrydetail.process = this.formData.ProcessKey
-          this.entrydetail.business = _this.Id
-          this.entrydetail.instance = this.formData.WorkFlowId
-          this.entrydetail.Status = this.formData.Status
-          if (this.formData.InStyle == '2' || this.formData.InStyle == '6' || this.formData.InStyle == '4') {
-            this.allowpre = false
-          }
-          this.getFileList()
-          // 显示公司名
-          _this.supplierOptions = _this.formData.SupplierId.toString()
-          _this.getSortList()
-          _this.getMySortList()
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      // 获取资质文件
-      getFileList () {
-        this.SupplierId = this.formData.SupplierId
-        this.SupplierTypeCode = this.formData.AppendType
-        let _this = this
-        const params = {
-          AppendId: this.formData.Id,
-          SupplierId: this.SupplierId,
-          SupplierTypeCode: this.SupplierTypeCode,
-          _currentPage: 1,
-          _size: 1000
-        }
-        _this.$axios.get('supplierfile/filelistall', {
-          params
-        })
-          .then(res => {
-            _this.subfileList = res.data.items
-            _this.currentItemCount = res.data.currentItemCount
-            for (let idx in _this.subfileList) {
-              _this.subfileList[idx].FileUrlList = _this.subfileList[idx].FileUrl.split('$')
-            }
-          })
-          .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.editSubfile()
-        }
-      },
-      editSubfile () {
-        let _this = this
-        _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
-        _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
-        _this.$axios.put('/supplierfile/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.getFileList()
-              this.$refs.refuploadattach.uploadFiles = []
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      fileurlcut (val, index) {
-        let fileurlall = val.split('$')[index]
-        let fileurl = fileurlall.split('|')
-        let fullUrl = fileurl[0]
-        // 内网服务器专用
-        if (process.client && (fullUrl.indexOf('upfile') === 0 || fullUrl.indexOf('/upfile') === 0)) {
-          const myDomain = window.location.host
-          fullUrl = 'http://' + myDomain + '/' + fullUrl
-        } else {
-          fullUrl = 'http://' + fullUrl
-        }
-        return fullUrl
-      },
-      openDialog (val) {
-        this.SubfileForm.Id = val.Id
-        this.SubfileForm.SupplierId = val.SupplierId
-        this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
-        if (val.SupplierCertSubId == 0) {
-          this.SubfileForm.SupplierCertSubId = ''
-        } else {
-          this.SubfileForm.SupplierCertSubId = val.SupplierCertSubId
-        }
-        this.SubfileForm.CertSubName = val.CertSubName
-        this.SubfileForm.NeedFileType = val.NeedFileType
-        this.SubfileForm.NeedFileCode = val.NeedFileCode
-        this.SubfileForm.FileExt = val.FileExt
-        this.SubfileForm.FileType = val.FileType
-        this.SubfileForm.FileName = val.FileName
-        this.SubfileForm.EffectDate = new Date(val.EffectDate)
-        this.SubfileForm.FileUrl = val.FileUrl
-        this.getwendanginfo(val.FileUrl)
-        this.SubfileForm.OtherRemark = val.OtherRemark
-        this.SubfileForm.Remark = val.Remark
-        this.SubfileForm.IsDelete = val.IsDelete
-        this.visible = true
-      },
-      showDialog () {
-        this.newVisible = true
-      },
-      // 文档列表
-      getwendanginfo (iUrl) {
-        let _this = this
-        _this.doclist = []
-        let exArr = iUrl.split('|')
-        let params = {
-          name: exArr[1],
-          url: exArr[0]
-        }
-        _this.doclist.push(params)
-      },
-      beforeAvatarUpload (file) {
-        /* let isLt512K = file.size / 1024 < 512
-        if (isLt512K) {
-          this.$message.error('上传文件大小不能小于 512KB!')
-          return false
-        } */
-        let isLt50m = file.size / 1024 / 1024 / 5 < 1
-        if (!isLt50m) {
-          this.$message.error('上传文件大小不能超过 5MB!')
-          return false
-        }
-        return true
-      },
-      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
-                })
-                // axios.post(process.env.upfilehost, {})
-                //   .then(function (res) {
-                //     if (res.data && res.data.fid && res.data.fid !== '') {
-                //       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 (error) {
-              _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
-      },
-      newattachissuccess () {
-        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-          for (let i = 0; i < this.$refs.newrefuploadattach.uploadFiles.length; i++) {
-            if (this.$refs.newrefuploadattach.uploadFiles[i].status !== 'success') {
-              return false
-            }
-          }
-        }
-        return 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}$`
-                }
-              }
-            }
-          }
-        }
-      },
-      newgetattachissuccess () {
-        this.newSubfileForm.FileUrl = ''
-        this.newSubfileForm.FileName = ''
-        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-          for (let i = 0; i < this.$refs.newrefuploadattach.uploadFiles.length; i++) {
-            if (this.$refs.newrefuploadattach.uploadFiles[i].status === 'success') {
-              for (let j = 0; j < this.waituploads.length; j++) {
-                if (this.waituploads[j].uid === this.$refs.newrefuploadattach.uploadFiles[i].uid) {
-                  this.newSubfileForm.FileUrl +=
-                    `${this.waituploads[j].url}/${this.waituploads[j].fid}|${this.$refs.newrefuploadattach.uploadFiles[i].name}$`
-                  this.newSubfileForm.FileName += `${this.$refs.newrefuploadattach.uploadFiles[i].name}$`
-                }
-              }
-            }
-          }
-        }
-      },
-      clickachment (url, uid) {
-        window.open(`http://${url}`)
-      },
-
-      // 保存增项信息
-      saveEntity () {
-        let _this = this
-        this.$refs['EntityForm'].validate((valid) => {
-          if (valid) {
-            if (_this.editFlag == '1' && _this.Id !== '') {
-              _this.updateData()
-            } else {
-              _this.addAppend()
-            }
-          } else {
-            return false
-          }
-        })
-      },
-
-      // 更新增项信息
-      updateData () {
-        this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
-        let _this = this
-        api2.updateEntity(_this.Id, _this.formData, _this.$axios).then(res => {
-          if (res.data.code === 0) {
-            this.getEntityById()
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 获取增项分类表
-      getSortList () {
-        // 分页及列表条件
-        let params = {
-          // _currentPage: this.currentPage,
-          // _size: this.size,
-          // Order: this.Column.Order,
-          // Prop: this.Column.Prop,
-          SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
-          SupCertId: this.formData.SupplierCertId,
-          SupTypeCode: this.formData.AppendType
-        }
-
-        // 访问接口
-        api.getList(params, this.$axios).then(res => {
-          this.entityList = res.data.item
-          // this.currentItemCount = res.data.currentItemCount
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      // 获取增项分类表
-      getMySortList () {
-        // 分页及列表条件
-        let params = {
-          // _currentPage: this.currentPage,
-          // _size: this.size,
-          // Order: this.Column.Order,
-          // Prop: this.Column.Prop,
-          SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
-          SupCertId: this.formData.SupplierCertId,
-          SupTypeCode: this.formData.AppendType
-        }
-
-        // 访问接口
-        api.getMyList(params, this.$axios).then(res => {
-          this.myentityList = res.data.item
-          // this.currentItemCount = res.data.currentItemCount
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 添加增项信息
-      addAppend () {
-        this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
-        let _this = this
-        _this.formData.AppendType = '01'
-        _this.$axios.post('/suppliercertappend/addappend/', _this.formData)
-          .then(res => {
-            if (res.data.code === 0) {
-              this.entityList = res.data.item
-              this.dialogFormData.SupplierCertAppendId = res.data.info // 接收插入数据后返回的Id
-              this.Id = res.data.info
-              this.getEntityById()
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 添加增项分类
-      addSortData () {
-        let _this = this
-        // 先判断是否保存了增项信息
-        if (this.checkAppendSave()) {
-          _this.dialogTitle = '添加'
-          _this.dialogVisible = true
-          _this.selectedOptList = [] // 置空,防止先修改再添加时的已选分类信息保留
-          _this.dialogFormData.Id = ''
-          _this.dialogFormData.SortFlag = ''
-          _this.dialogFormData.Code = ''
-          _this.dialogFormData.Remark = ''
-        }
-      },
-
-      // 编辑增项分类
-      editSortData (row) {
-        let _this = this
-        _this.dialogTitle = '编辑'
-        _this.dialogVisible = true
-        _this.dialogFormData = row
-        // 显示原增项结构
-        if (_this.dialogFormData.SortFlag != null) {
-          let arr = _this.dialogFormData.SortFlag.split(',')
-          let arr2 = []
-          for (let i = 0; i < arr.length; i++) {
-            arr2.push(parseInt(arr[i]))
-          }
-          _this.selectedOptList = arr2
-        }
-        let Id = _this.selectedOptList[0]
-        this.$axios.get('goodsaptitudeclass/getchildlist/' + Id, {})
-          .then(res => {
-            if (res.data.items) { // 判断是否有数据
-              let tempList = []
-              tempList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
-              // 添加到上一级对应的选项中
-              for (let i = 0; i < _this.optionsList.length; i++) {
-                if (_this.optionsList[i].id === Id) {
-                  _this.$set(_this.optionsList[i], 'children', tempList)
-                  break
-                }
-              }
-            } else {
-              // 修改上一级的children属性
-              for (let i = 0; i < _this.optionsList.length; i++) {
-                if (_this.optionsList[i].id === Id) {
-                  _this.$set(_this.optionsList[i], 'children', '')
-                  break
-                }
-              }
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 取消
-      cancelOption () {
-        let _this = this
-        _this.dialogVisible = false
-      },
-
-      // 确定
-      ensureOption () {
-        this.dialogloading = true
-        let _this = this
-        let arr = []
-        let val1 = this.$refs.orgmanagetree.getCheckedNodes()
-        let val2 = this.$refs.secmanagetree.getCheckedNodes()
-        this.checkList = []
-        for (var i = 0; i < val1.length; i++) {
-          if (val1[i].Code.length == 8) {
-            this.checkList.push(val1[i])
-          }
-        }
-        for (var i = 0; i < val2.length; i++) {
-          if (val2[i].Code.length == 8) {
-            this.checkList.push(val2[i])
-          }
-        }
-        _this.dialogFormData.SupplierId = _this.formData.SupplierId
-        _this.dialogFormData.SupplierCertId = _this.formData.SupplierCertId
-        _this.dialogFormData.SupplierCertAppendId = parseInt(_this.dialogFormData.SupplierCertAppendId)
-        _this.addSortAppend()
-        _this.switchstatus = false
-        this.dialogloading = false
-      },
-
-      getsectreelist () {
-        let _this = this
-        let name = _this.searchText
-        this.$axios.get('goodsaptitude/goodsparentlist/' + name)
-          .then(res => {
-            _this.sectreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 判断是否保存了增项信息
-      checkAppendSave () {
-        if (this.dialogFormData.SupplierCertAppendId == '' && this.editFlag == null) {
-          this.$message({
-            type: 'error',
-            message: '无法执行该命令,请先保存增项信息!'
-          })
-          return false
-        }
-        return true
-      },
-
-      // 添加增项分类信息
-      addSortAppend () {
-        let _this = this
-        let params = {
-          SupplierId: parseInt(this.formData.SupplierId),
-          SupplierCertId: parseInt(this.formData.SupplierCertId),
-          SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
-          SupplierTypeCode: '01',
-          Remark: this.dialogFormData.Remark,
-          Type: '2'
-        }
-        if (_this.checkList.length > 0) {
-          params = Object.assign(params, {
-            CheckList: _this.checkList
-          })
-        } else {
-          _this.$message({
-            type: 'warning',
-            message: '名称不能为空,请选择分类!'
-          })
-          return
-        }
-        _this.$axios.post('/suppliercertappendsub/addgoodsbus/', params)
-          .then(res => {
-            _this.dialogloading = false
-            if (res.data.code === 0) {
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              // 关闭dialog
-              _this.dialogVisible = false
-              // 更新增项分类表
-              _this.getSortList()
-              _this.getMySortList()
-              _this.getFileList()
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-        this.$refs.orgmanagetree.setCheckedKeys([])
-        this.$refs.secmanagetree.setCheckedKeys([])
-        this.filterText = ''
-        this.searchText = ''
-      },
-
-      // 删除增项分类信息
-      deleteData (Id) {
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            _this.$axios.delete('suppliercertsub/businessdelete/' + Id, {})
-              .then(function (response) {
-                if (response.data.code === 0) {
-                  _this.$message({
-                    type: 'success',
-                    message: response.data.message
-                  })
-                  _this.getEntityById()
-                } else {
-                  _this.$message({
-                    type: 'warning',
-                    message: response.data.message
-                  })
-                }
-              })
-              .catch(function (error) {
-                console.log(error)
-              })
-          })
-          .catch(() => {})
-      },
-      selectAuditOrg () {
-        this.dialogVisible = true
-      },
-      chooseAuditorShow () {
-        this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
-        this.chooseAuditorVisible = true
-      },
-      setAuditer (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisible = false
-        this.auditOrgChang(this.auditer)
-      },
-      auditOrgChang (val) {
-        let auditstepcode = 'SECOND_TRIAL'
-        suppapi
-          .getAuditerByFirst(val, auditstepcode, this.$axios)
-          .then(res => {
-            this.secauditerOptions = res.data.item
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      chooseAuditorShowFen () {
-        this.$refs['chooseAuditorFen'].getorgtreelist(this.formData.SupplierTypeCode)
-        this.chooseAuditorVisibleFen = true
-      },
-      setAuditerFen (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisibleFen = false
-      },
-      // 提交审批
-      AuditEntity () {
-
-        if (this.auditer === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择初审人!'
-          })
-          return
-        }
-        if (this.fushenauditer === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择复审人!'
-          })
-          return
-        }
-        if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
-          if (this.majorDept.length === 0) {
-            this.$message({
-              type: 'warning',
-              message: '请选择专业处室!'
-            })
-            return
-          }
-        }
-        if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
-          if (this.userOptions == null || this.userOptions.length === 0) {
-            this.$message({
-              type: 'warning',
-              message: '该专业科室未配置接收人!'
-            })
-            return
-          }
-        }
-        this.applyLoading = true
-        this.auditform.FirstAuditName = this.auditer
-        this.auditform.CertId = this.formData.Id
-        this.auditform.SecondAudit = this.fushenauditer
-        this.auditform.ThirdAudit = this.majorDept[this.majorDept.length - 1]
-        api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.AuditdialogShow = false
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      SubpEntity () {
-        if (this.UnitOrg === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择分办单位!'
-          })
-          return
-        }
-        if (this.orgauditOptions == null || this.orgauditOptions.length == 0) {
-          this.$message({
-            type: 'warning',
-            message: '该单位未配置分办人!'
-          })
-          return
-        }
-        this.applyLoading = true
-        this.auditform.FirstAuditName = this.UnitOrg
-        this.auditform.CertId = this.formData.Id
-        this.auditform.TypeCode = '01'
-        api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.ComAuditdialogShow = false
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-          this.applyLoading = false
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      getorgtreelist () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: 1
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      getDictOptions () {
-        let params = {
-          status: this.formData.Status,
-          majorAduit: this.formData.ThirdAudit
-        }
-        suppapi.getDictListByStatus(params, this.$axios).then(res => {
-          this.dictData = res.data.items
-          this.organizeOption = res.data.items['Organizes']
-          this.preorgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
-          this.UnitOrg = res.data.items['Register'].CheckUnitId
-          this.UnitOrgOptions = res.data.items['UnitOrgList']
-          this.orgunitChange(this.UnitOrg)
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      orgunitChange (val) {
-        let deptid = val
-        let auditstepcode = 'SUB_OFFICE_WZ'
-        suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.orgauditOptions = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 列表排序功能
-      orderby (column) {
-        if (column.order === 'ascending') {
-          this.Column.Order = 'asc'
-        } else if (column.order === 'descending') {
-          this.Column.Order = 'desc'
-        }
-        this.Column.Prop = column.prop
-      },
-
-      jstimehandle (val) {
-        if (val === '') {
-          return '----'
-        } else if (val === '0001-01-01T08:00:00+08:00') {
-          return '----'
-        } else if (val === '5000-01-01T23:59:59+08:00') {
-          return '永久'
-        } else {
-          val = val.replace('T', ' ')
-          return val.substring(0, 10)
-        }
-      },
-
-      //  123
-      addBusiness1 () {
-        if (this.sectionCert.length <= 0) {
-          this.$message({
-            type: 'warning',
-            message: '请选择准入类别'
-          })
-          return
-        }
-        let params = {
-          SupplierId: parseInt(this.formData.SupplierId),
-          SupplierCertId: parseInt(this.formData.SupplierCertId),
-          SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
-          SupplierTypeCode: '01',
-          Type: '2',
-          Remark: this.Remark1,
-          CheckList: this.sectionCert
-        }
-        for (var i = 0; i < this.sectionCert.length; i++) {
-          this.sectionCert[i].Id = this.sectionCert[i].Id + ''
-        }
-        this.loading = true
-        this.$axios.post('/suppliercertappendsub/addgoodsbus', params)
-          .then(res => {
-            if (res.data.code === 0) {
-              this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              this.goodsDialog = false
-              this.loading = false
-              this.sectionCert = []
-              this.Remark1 = ''
-              this.getSortList()
-              this.getMySortList()
-              this.getFileList()
-              this.initData2019()
-            } else {
-              this.loading = false
-              this.$message({
-                type: 'warning',
-                message: '操作失败!'
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      initData2019 () {
-        let params = {
-          _currentPage: this.currentPageCert,
-          _size: this.sizeCert,
-          Name: this.keyword
-        }
-        this.$axios.get('suppliercertsub/listCert2019', { params })
-          .then(res => {
-            this.goodsList2019 = res.data.items
-            this.currentItemCountCert = res.data.currentItemCount
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      handleSizeChangeCert (value) {
-        this.sizeCert = value
-        this.currentPageCert = 1
-        this.initData2019()
-      },
-      handleCurrentChangeCert (value) {
-        this.currentPageCert = value
-        this.initData2019()
-      },
-      handleSelectionChangeCert (val) {
-        this.sectionCert = val
-      }
-
-    }
-  }
-</script>
-<style lang='scss'>
-  .attach-uploader .el-upload {
-    border: 1px dashed #63B8FF;
-    cursor: pointer;
-    position: relative;
-    overflow: hidden;
-    // margin-bottom: -17px;
-    margin-top: -15px;
-    margin-left: 20px
-  }
-
-  .attach-uploader .el-upload:hover {
-    border-color: #228B22;
-  }
-
-  .attach-uploader-icon {
-    font-size: 25px;
-    color: #63B8FF;
-    width: 50px;
-    height: 50px;
-    line-height: 50px;
-    text-align: center;
-  }
-
-  .attach-uploader-icon:hover {
-    color: #228B22;
-  }
-
-</style>

+ 0 - 1527
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/techdataopera.vue

@@ -1,1527 +0,0 @@
-<template>
-  <div>
-    <el-breadcrumb class="heading">
-      <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
-      <el-breadcrumb-item :to="{ path: '/oilsupplier/supplierappend/techlist' }">技术服务类列表</el-breadcrumb-item>
-      <el-breadcrumb-item>编辑</el-breadcrumb-item>
-    </el-breadcrumb>
-    <el-card class="box-card">
-      <div slot="header">
-        <span>
-          <i class="icon icon-table2"></i> 编辑
-        </span>
-        <span style="float: right;">
-          <el-popover>
-            <el-steps :active="formData.Step" direction="vertical" align-center finish-status="success">
-              <el-step title="填信息"></el-step>
-              <el-step title="待审批"></el-step>
-              <el-step title="已审批"></el-step>
-              <el-step title="待交费"></el-step>
-              <el-step title="待入库"></el-step>
-              <el-step title="完成"></el-step>
-            </el-steps>
-            <!-- <el-button slot="reference" plain size="mini" style="margin-right: 8px">查看进度</el-button> -->
-          </el-popover>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
-          <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitaudit"
-            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交审批
-          </el-button>
-          <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitfenban"
-            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 1">提交分办
-          </el-button>
-          <router-link :to="'/oilsupplier/supplierappend/techlist'">
-            <el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
-          </router-link>
-        </span>
-      </div>
-      <div>
-        <el-card class="box-card">
-          <div slot="header">
-            <span><i class="icon icon-table2"></i> 增项信息</span>
-            <el-button style="float: right; padding: 3px 0" type="text" v-if="formData.Status <= 0 && formData.Status != -5" @click="saveEntity()">保存信息</el-button>
-          </div>
-          <el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData">
-            <el-row>
-              <!-- <el-col :span="12">
-                <el-form-item label="推荐单位名称" prop="checkSelectedRecUnitName">
-                  <el-cascader ref="tjdwCascader" :options="organizeTreeList" :props="organizeTreeProps"
-                    change-on-select :show-all-levels="false" v-model="selectedOrgList" @change="getCode2"
-                    placeholder="请选择推荐单位" style="width: 100%">
-                  </el-cascader>
-                </el-form-item>
-              </el-col> -->
-              <el-col :span="8">
-                <el-form-item label="供应商公司名称" prop="checkSelectedSupplier">
-                  <el-select ref="suppselect" :disabled="formData.Status>0||IsCompanyUser == 1" v-model="supplierOptions" filterable @change="getInfo" placeholder="请选择供应商公司"
-                    style="width: 100%">
-                    <el-option v-for="item in supplierList" :key="item.SupplierId" :label="item.SupplierName"
-                      :value="item.SupplierId">
-                    </el-option>
-                  </el-select>
-                </el-form-item>
-              </el-col>
-              <!-- <el-col :span="12">
-                <el-form-item label="推荐单位编码" prop="RecUnitId">
-                  <el-input v-model="formData.RecUnitId" placeholder="请输入推荐单位编码"></el-input>
-                </el-form-item>
-              </el-col> -->
-              <el-col :span="16">
-                <el-form-item label="备注" prop="Remark">
-                  <el-input :disabled="formData.Status>0" type="textarea" v-model="formData.Remark" placeholder="请输入"></el-input>
-                </el-form-item>
-              </el-col>
-            </el-row>
-          </el-form>
-        </el-card>
-         <!-- 增项分类列表 -->
-        <el-row :gutter="2">
-          <el-col :span="12">
-            <el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);">
-              <div slot="header">
-                <span><i class="icon icon-table2"></i> 全部准入范围</span>
-              </div>
-              <el-table :data="entityList" size="mini" border style="width: 100%;" height="calc(100vh - 428px)" @sort-change="orderby">
-                <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-              </el-table>
-            </el-card>
-          </el-col>
-          <el-col :span="12">
-            <el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);">
-              <div slot="header">
-                <span><i class="icon icon-table2"></i> 新增准入范围</span>
-                <el-button style="float: right; padding: 3px 0" type="text"
-                  v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button>
-              </div>
-              <el-table :data="myentityList" size="mini" border style="width: 100%;" height="calc(100vh - 428px)" @sort-change="orderby">
-                <el-table-column label="操作" min-width="100" align="center" fixed>
-                  <template slot-scope="scope">
-                    <el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
-                      :disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
-                  </template>
-                </el-table-column>
-                <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
-                <el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
-              </el-table>
-            </el-card>
-          </el-col>
-        </el-row>
-        <el-card class="box-card" style="margin-top: 10px;">
-          <div slot="header" class="clearfix">
-            <span><i class="icon icon-table2"></i> 企业资质</span>
-            <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog1">添加</el-button>
-          </div>
-          <el-table :data="subfileList" size="mini" border>
-            <el-table-column label="操作" width="150" align="center" fixed>
-              <template slot-scope="scope">
-                <el-button type="primary" plain size="mini" title="上传" @click="openDialog(scope.row)"
-                  :disabled="scope.row.SupType != 2||formData.Status > 0">上传
-                </el-button>
-                 <el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
-                  v-if="scope.row.FileType == '66'" @click="newdeletedata(scope.row)">删除</el-button>
-              </template>
-            </el-table-column>
-            <el-table-column prop="NeedFileType" label="资质名称" show-overflow-tooltip></el-table-column>
-            <el-table-column prop="FileUrlList" label="资质文件" show-overflow-tooltip>
-              <template slot-scope="scope">
-                <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
-                  <a :href="fileurlcut(scope.row.FileUrl, index)" target="_blank"
-                    class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
-                </div>
-              </template>
-            </el-table-column>
-            <el-table-column prop="EffectDate" label="有效日期" show-overflow-tooltip>
-              <template slot-scope="scope">
-                {{ jstimehandle(scope.row.EffectDate+'') }}
-              </template>
-            </el-table-column>
-            <el-table-column prop="OtherRemark" label="描述" show-overflow-tooltip></el-table-column>
-          </el-table>
-        </el-card>
-      </div>
-    </el-card>
-    <el-dialog title="编辑文件" :visible.sync="visible" top="5vh">
-      <el-form :model="SubfileForm" label-width="100px">
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="资质名称" required>
-              <el-input v-model="SubfileForm.NeedFileType" placeholder="请输文件类型" :disabled="true"></el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="有效日期" required>
-              <el-date-picker style="width: 100%" v-model="SubfileForm.EffectDate" type="date" placeholder="请选择有效日期">
-              </el-date-picker>
-            </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-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>-->
-                <!--<div slot="tip" class="el-upload__tip">大小为512KB-5MB</div>-->
-              <!--</el-upload>-->
-              <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>
-                <div slot="tip" class="el-upload__tip">大小为512KB-5MB</div>
-              </el-upload>
-            </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>
-    <!-- 增项分类添加、修改 -->
-    <el-dialog title="添加" :visible.sync="dialogVisible">
-      <el-form label-width="150px" ref="dialogFormData" v-loading="dialogloading" :rules="sortEntityFormRules" :model="dialogFormData">
-        <el-row style="margin-top: -10px">
-          <el-col :span="12">
-            <el-input v-model="keyword" placeholder="请输入名称或代码" size="mini" style="width: 250px;"></el-input>
-            <el-button style="float: right;" type="primary" size="mini" @click="getorgtreelist()">查询</el-button>
-          </el-col>
-        </el-row>
-        <el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">
-          <el-col :span="20">
-            <el-tree highlight-current :expand-on-click-node="true" node-key="CodeName" :data="orgtreelist"
-              :props="orgtreeprops" ref="orgmanagetree" show-checkbox>
-            </el-tree>
-          </el-col>
-        </el-row>
-        <el-row style="margin-top: 30px">
-          备注信息:
-          <el-col :span="24">
-            <el-input type="textarea" :rows=3 v-model="dialogFormData.Remark" placeholder="请输入备注" style="width: 100%">
-            </el-input>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="cancelOption()">取 消</el-button>
-        <el-button size="mini" type="primary" @click="ensureOption()">确 定</el-button>
-      </span>
-    </el-dialog>
-
-    <el-dialog title="审批流程" :visible.sync="audithistoryshow" width="1200px">
-       <wf-multi-history ref="WfHistory" :entryinfo="entrydetail"></wf-multi-history>
-    </el-dialog>
-
-    <el-dialog title="提交初审" :visible.sync="AuditdialogShow" width="520px">
-      <el-form ref="searchForm" label-width="110px">
-        <el-row>
-          <el-col :span="24">
-            <el-form-item label="初审人员">
-              <el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">
-                <el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>
-              </el-input>
-            </el-form-item>
-            <el-form-item label="复审人员">
-              <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
-                allow-create default-first-option>
-                <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
-                </el-option>
-              </el-select>
-            </el-form-item>
-            <el-form-item label="专业处室" v-if="allowpre">
-              <el-cascader :options="preorgtreelist" :props="preorgtreeprops" :show-all-levels="false" filterable
-                style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">
-              </el-cascader>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="备注">
-              <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入备注内容">
-              </el-input>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="AuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="AuditEntity">确定</el-button>
-      </span>
-    </el-dialog>
-
-    <el-dialog title="分办" :visible.sync="ComAuditdialogShow" width="520px">
-      <el-form ref="searchForm" label-width="100px">
-        <el-row>
-          <el-col :span="24">
-            <!--<el-form-item label="分办人员">-->
-              <!--<el-input ref="selectAuditerFen" readonly v-model="auditerName" placeholder="请选择分办人">-->
-                <!--<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShowFen"></el-button>-->
-              <!--</el-input>-->
-            <!--</el-form-item>-->
-            <el-form-item label="分办单位">
-              <el-select filterable
-                         v-model="UnitOrg"
-                         maxlength="255"
-                         clearable
-                         placeholder="请选择分办单位"
-                         style="width: 100%"
-                         @change="orgunitChange">
-                <el-option v-for="item in UnitOrgOptions"
-                           :key="item.Id"
-                           :label="item.Fullname"
-                           :value="item.Id">
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="备注">
-              <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入备注内容">
-              </el-input>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="SubpEntity">确定</el-button>
-      </span>
-    </el-dialog>
-
-    <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
-      :visible="chooseAuditorVisible"></choose-auditor>
-      <choose-auditor-fen ref="chooseAuditorFen" @close="setAuditerFen" @hideChooseAuditer="chooseAuditorVisibleFen=false"
-      :visible="chooseAuditorVisibleFen" typeCode="03"></choose-auditor-fen>
-
-
-
-  <el-dialog title="新增文件" :visible.sync="newVisible" top="5vh">
-      <el-form :model="newSubfileForm" label-width="100px">
-        <el-row>
-          <el-col :span="12">
-            <el-form-item label="资质名称" required>
-              <el-select v-model="newSubfileForm.NeedFileType" placeholder="请输文件类型" size="medium">
-                <el-option v-for="item in dynamicTableColumns" :key="item.prop" :label="item.label" :value="item.label">
-                </el-option>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="有效日期" required>
-              <el-date-picker style="width: 100%" v-model="newSubfileForm.EffectDate" type="date" placeholder="请选择有效日期">
-              </el-date-picker>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="描述">
-              <el-input v-model="newSubfileForm.OtherRemark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="资质文件">
-              <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
-                :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
-                <i class="el-icon-plus attach-uploader-icon"></i>
-                <div slot="tip" class="el-upload__tip">大小为512KB-5MB
-                </div>
-              </el-upload>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <div slot="footer" class="dialog-footer" style="margin-top:-30px;">
-        <el-button @click="newVisible = false">取 消</el-button>
-        <el-button type="primary" @click="makeNewSure()">确 定</el-button>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-  import {
-    mapGetters
-  } from 'vuex'
-  import axios from 'axios'
-  import suppapi from '@/api/oilsupplier/supplier'
-  import uploadajax from '@/assets/js//uploadajax.js'
-  import api from '@/api/oilsupplier/supplierappendsub'
-  import api2 from '@/api/oilsupplier/supplierappend'
-  import apiCert from '@/api/oilsupplier/suppliercert'
-  import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
-  import WfMultiHistory from '@/components/workflow/wfmultihistory.vue'
-  import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
-  import setapi from '@/api/oilsupplier/oilclassorgset'
-
-  export default {
-    components: {
-      WfMultiHistory,
-      ChooseAuditor,
-      ChooseAuditorFen
-    },
-    computed: {
-      ...mapGetters({
-        authUser: 'authUser'
-      })
-    },
-    name: 'oilsuppliercertappendsub',
-
-    data () {
-      var CheckSelectedOption = (rule, value, callback) => {
-        if (this.selectedOrgList && this.selectedOrgList.length < 1) {
-          callback(new Error('请选择推荐单位'))
-        } else {
-          callback()
-        }
-      }
-      var CheckSelectedOption2 = (rule, value, callback) => {
-        if (this.selectedOptList && this.selectedOptList.length < 1) {
-          callback(new Error('请选择增项'))
-        } else {
-          callback()
-        }
-      }
-      var CheckSelectedOption3 = (rule, value, callback) => {
-        if (this.supplierOptions === '') {
-          callback(new Error('请选择供应方公司'))
-        } else {
-          callback()
-        }
-      }
-      return {
-        UnitOrg: '',
-        allowpre: true,
-        newVisible: false,
-        audithistoryshow: false,
-        chooseAuditorVisible: false,
-        chooseAuditorVisibleFen: false,
-        orgauditOptions: [],
-        UnitOrgOptions: [],
-        orgtreelist: [], // 二级单位
-        preorgtreelist: [],
-        secauditerOptions: [],
-        fushenauditer: '', // 复审人员
-        majorDept: [], // 专业可是
-        AuditdialogShow: false, // 提交审核弹框
-        ComAuditdialogShow: false,
-        organizeOption: [], // 审批部门
-        auditerOption: [], // 审批人
-        orgtreeprops: {
-          value: 'Id',
-          label: 'CodeName',
-          children: 'children'
-        },
-        preorgtreeprops: {
-          value: 'id',
-          label: 'name',
-          children: 'children'
-        },
-        entrydetail: {
-          process: '',
-          business: '',
-          instance: '',
-          Status: ''
-        },
-        auditform: {
-          FirstAuditName: '',
-          CertId: '',
-          AuditRemark: '',
-          SecondAudit: '',
-          ThirdAudit: '',
-          TypeCode: ''
-        },
-        auditbusList: [],
-        SupplierId: 0,
-        SupplierTypeCode: '',
-        SupplierCertId: 0,
-        subfileList: [],
-        visible: false,
-        dynamicTableColumns: [],
-        flag: '',
-        editbtn: true,
-        // 资质文件
-        SubfileForm: {
-          Id: '',
-          SupplierId: '',
-          SupplierTypeCode: '',
-          SupplierCertSubId: '',
-          CertSubName: '',
-          NeedFileType: '',
-          NeedFileCode: '',
-          FileType: '',
-          FileExt: '',
-          FileName: '',
-          EffectDate: new Date(),
-          FileUrl: '',
-          OtherRemark: '',
-          Remark: '',
-          IsDelete: 0,
-          FileUrlList: []
-        },
-        newSubfileForm: {
-          Id: '',
-          SupplierId: '',
-          SupplierTypeCode: '03',
-          SupplierCertSubId: '',
-          CertSubName: '',
-          SupType: 2,
-          NeedFileType: '',
-          NeedFileCode: '',
-          FileType: 66,
-          FileExt: '',
-          FileName: '',
-          EffectDate: new Date(),
-          FileUrl: '',
-          OtherRemark: '',
-          Remark: '',
-          IsDelete: 0,
-          FileUrlList: []
-        },
-        checkList: [],
-        auditer: '',
-        auditerName: '',
-        FirstAudit: '',
-        keyword: '', // 查询关键字
-        supplierList: [], // 供应方公司列表
-        supplierOptions: '', // 已选择的供应方公司列表
-        // serviceType: '', //服务类型()
-        optionsList: [], // 增项分类层级列表
-        selectedOptList: [], // 已选择的增项分类列表
-        tytreeprops: {
-          value: 'id',
-          label: 'Name',
-          children: 'children'
-        },
-        organizeTreeList: [], // 推荐单位层级列表
-        selectedOrgList: [], // 已选择的单位列表
-        organizeTreeProps: {
-          value: 'id',
-          label: 'Fullname',
-          children: 'children'
-        },
-        organizeform: {
-          IsInnerOrganize: 1,
-          parentid: 0,
-          fullname: '',
-          description: '',
-          id: 0
-        },
-        // 增项信息表
-        formData: {
-          Id: '',
-          Step: 1,
-          Status: '',
-          SupplierId: 0,
-          SupplierCertId: 0,
-          RecUnitFlag: '', // 推荐单位的级联Id标记
-          RecUnitId: '', // 推荐单位编码
-          RecUnitName: '', // 推荐单位名称
-          AppendType: '', // 增项类别(01 物资类,02 基建类,03 技术服务类)
-          Remark: '' // 备注
-        },
-        dialogloading: false,
-        dialogVisible: false, // 增项分类dialog
-        dialogFormData: {
-          Id: '',
-          SupplierId: 0, // 供方表ID
-          SupplierCertId: 0, // 供方证书表ID
-          SupplierCertAppendId: '', // 增项信息表ID
-          SubClassId: 3, // 分类表主键(物资类或基建类或技术服务类)
-          SortFlag: '', // 分类标记
-          Code: '', // 分类编码
-          Name: '', // 分类名称
-          Remark: '' // 备注
-        },
-        // 列表数据
-        entityList: [],
-        myentityList: [],
-        // 分页参数
-        size: 10,
-        currentPage: 1,
-        currentItemCount: 0,
-        // 列表排序
-        Column: {
-          Order: '',
-          Prop: ''
-        },
-        // 增项表单规则
-        appendRules: {
-          checkSelectedRecUnitName: [{
-            required: true,
-            validator: CheckSelectedOption,
-            trigger: 'blur'
-          }],
-          checkSelectedSupplier: [{
-            required: true,
-            validator: CheckSelectedOption3,
-            trigger: 'blur'
-          }]
-        },
-        // 增项分类表单规则
-        sortEntityFormRules: {
-          checkSelectedOptList: [{
-            required: true,
-            validator: CheckSelectedOption2,
-            trigger: 'blur'
-          }]
-        },
-        Id: '', // 传的参数
-        editFlag: '', // 编辑操作标记
-        waituploads: [],
-        IsCompanyUser: ''
-      }
-    },
-    created () {
-      this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
-      // this.serviceType = this.$route.params.opera //获取服务类型
-      this.Id = this.$route.query.Id
-      this.editFlag = this.$route.query.editFlag
-      if (this.editFlag == '1' && this.Id !== '') {
-        this.getEntityById()
-        this.dialogFormData.SupplierCertAppendId = this.Id
-      }
-      this.getOrgTreeList() // 获取推荐单位层级列表
-      // this.getTechTreeList() //获取技术服务类层级列表
-      this.getSupplierList() // 获取供应方公司列表
-      this.getDictOptions()
-      this.orgtreeChange(this.majorDept)
-      this.initTableHeader()
-    },
-    methods: {
-      newdeletedata (val) {
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            _this.$axios.delete('supplierfile/subfiledelete/' + val.Id, {})
-              .then(function (response) {
-                if (response.data.code === 0) {
-                  _this.$message({
-                    type: 'success',
-                    message: response.data.message
-                  })
-                  _this.getFileList()
-                } else {
-                  _this.$message({
-                    type: 'warning',
-                    message: response.data.message
-                  })
-                }
-              })
-              .catch(function (error) {
-                console.log(error)
-              })
-          })
-          .catch(() => {})
-      },
-      makeNewSure () {
-        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-          // 上传附件是否完成判断
-          if (!this.newattachissuccess()) {
-            this.$message.error('有附件未成功上传!不能保存数据')
-            return
-          }
-          this.newgetattachissuccess()
-          this.addSubfile()
-        } else {
-          this.$message({
-            type: 'warning',
-            message: '请上传文件!'
-          })
-        }
-      },
-      addSubfile () {
-        let _this = this
-        _this.newSubfileForm.SupplierId = parseInt(this.SupplierId)
-        _this.$axios.post('/supplierfile/addsubfile/', _this.newSubfileForm)
-          .then(res => {
-            if (res.data.code === 0) {
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              this.newVisible = false
-              this.getFileList()
-              this.$refs.newrefuploadattach.uploadFiles = []
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      initTableHeader () {
-        setapi.initTsTableHeader(this.$axios).then(res => {
-          this.dynamicTableColumns = res.data.items
-        })
-      },
-      showDialog1 () {
-        this.newVisible = true
-      },
-      newattachissuccess () {
-        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-          for (let i = 0; i < this.$refs.newrefuploadattach.uploadFiles.length; i++) {
-            if (this.$refs.newrefuploadattach.uploadFiles[i].status !== 'success') {
-              return false
-            }
-          }
-        }
-        return true
-      },
-      newgetattachissuccess () {
-        this.newSubfileForm.FileUrl = ''
-        this.newSubfileForm.FileName = ''
-        if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
-          for (let i = 0; i < this.$refs.newrefuploadattach.uploadFiles.length; i++) {
-            if (this.$refs.newrefuploadattach.uploadFiles[i].status === 'success') {
-              for (let j = 0; j < this.waituploads.length; j++) {
-                if (this.waituploads[j].uid === this.$refs.newrefuploadattach.uploadFiles[i].uid) {
-                  this.newSubfileForm.FileUrl +=
-                    `${this.waituploads[j].url}/${this.waituploads[j].fid}|${this.$refs.newrefuploadattach.uploadFiles[i].name}$`
-                  this.newSubfileForm.FileName += `${this.$refs.newrefuploadattach.uploadFiles[i].name}$`
-                }
-              }
-            }
-          }
-        }
-      },
-      orgtreeChange (val) {
-        this.userOptions = []
-        let deptid = val[val.length - 1]
-        let auditstepcode = 'PROF_RECE'
-        suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.userOptions = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      // 获取推荐单位列表
-      getOrgTreeList () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: this.organizeform.IsInnerOrganize
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.organizeTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-            if (_this.authUser.Profile.IsCompanyUser === 0) {
-              this.selectedOrgList = _this.authUser.Profile.Superior.split(',').map((val) => {
-                return parseInt(val)
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 获取供应方公司列表
-      getSupplierList () {
-        let _this = this
-        let params = {
-          SuppTypeCode: '03'
-        }
-        _this.$axios.get('/suppliercertappend/getsupplier', {params})
-          .then(res => {
-            _this.supplierList = res.data
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      chooseAuditorShow () {
-        this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
-        this.chooseAuditorVisible = true
-      },
-
-      // 获取技术服务类层级列表
-      // getTechTreeList() {
-      //   let _this = this
-      //   this.$axios.get('technologyservice/businesslist', {})
-      //     .then(res => {
-      //       _this.optionsList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
-      //       console.log("----this.optionsList--", this.optionsList)
-      //     })
-      //     .catch(err => {
-      //       console.error(err)
-      //     })
-      // },
-
-      // 获取SupplierId和SupplierCertId
-      getInfo (vId) { // 这个vId也就是value值
-        let obj = {}
-        obj = this.supplierList.find((item) => {
-          return item.SupplierId === vId // 筛选出匹配数据
-        })
-        this.formData.SupplierId = parseInt(obj.SupplierId)
-        this.formData.SupplierCertId = parseInt(obj.SupplierCertId)
-      },
-
-      // 获取分类级联Id
-      getCode (item) {
-        let sortFlagStr = item.toString()
-        this.dialogFormData.SortFlag = sortFlagStr
-        this.getCodeById(item[item.length - 1]) // 根据分类Id获取Code
-      },
-
-      // 根据分类Id获取Code
-      getCodeById (Id) {
-        let _this = this
-        this.$axios.get('technologyservice/getcode/' + Id, {})
-          .then(res => {
-            _this.dialogFormData.Code = res.data.items[0].Code
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 获取推荐单位级联Id
-      getCode2 (item) {
-        let codeStr = item.toString()
-        this.formData.RecUnitFlag = codeStr
-      },
-
-      // 审批历史
-      auhistory () {
-        this.audithistoryshow = true
-      },
-
-      // 获取需要修改的增项信息
-      getEntityById () {
-        let _this = this
-        api2.getEntityById(_this.Id, _this.$axios).then(res => {
-          _this.formData = res.data
-          this.entrydetail.process = this.formData.ProcessKey
-          this.entrydetail.business = _this.Id
-          this.entrydetail.instance = this.formData.WorkFlowId
-          this.entrydetail.Status = this.formData.Status
-          if (this.formData.InStyle == '2' || this.formData.InStyle == '6' || this.formData.InStyle == '4') {
-            this.allowpre = false
-          }
-          this.getFileList()
-          // 显示公司名
-          _this.supplierOptions = _this.formData.SupplierId.toString()
-          _this.getSortList()
-          _this.getMySortList()
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      // 获取资质文件
-      getFileList () {
-        this.SupplierId = this.formData.SupplierId
-        this.SupplierTypeCode = this.formData.AppendType
-        let _this = this
-        const params = {
-          AppendId: this.formData.Id,
-          SupplierId: this.SupplierId,
-          SupplierTypeCode: this.SupplierTypeCode,
-          _currentPage: 1,
-          _size: 1000
-        }
-        _this.$axios.get('supplierfile/filelistall', {
-          params
-        })
-          .then(res => {
-            _this.subfileList = res.data.items
-            _this.currentItemCount = res.data.currentItemCount
-            for (let idx in _this.subfileList) {
-              _this.subfileList[idx].FileUrlList = _this.subfileList[idx].FileUrl.split('$')
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      commitaudit () {
-        this.AuditdialogShow = true
-        // if (this.subfileList && this.subfileList.length > 0) {
-        //   for (var i = 0; i < this.subfileList.length; i++) {
-        //     if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-        //       this.$message({
-        //         type: 'warning',
-        //         message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-        //       })
-        //       return
-        //     }
-        //   }
-        // } else {
-        //   this.AuditdialogShow = true
-        // }
-      },
-      commitfenban () {
-        this.ComAuditdialogShow = true
-        // if (this.subfileList && this.subfileList.length > 0) {
-        //   for (var i = 0; i < this.subfileList.length; i++) {
-        //     if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-        //       this.$message({
-        //         type: 'warning',
-        //         message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-        //       })
-        //       return
-        //     }
-        //   }
-        // } else {
-        //   this.ComAuditdialogShow = true
-        // }
-      },
-      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.editSubfile()
-        }
-      },
-      editSubfile () {
-        let _this = this
-        _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
-        _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
-        _this.$axios.put('/supplierfile/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.getFileList()
-              this.$refs.refuploadattach.uploadFiles = []
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      fileurlcut (val, index) {
-        let fileurlall = val.split('$')[index]
-        let fileurl = fileurlall.split('|')
-        let fullUrl = fileurl[0]
-        // 内网服务器专用
-        if (process.client && (fullUrl.indexOf('upfile') === 0 || fullUrl.indexOf('/upfile') === 0)) {
-          const myDomain = window.location.host
-          fullUrl = 'http://' + myDomain + '/' + fullUrl
-        } else {
-          fullUrl = 'http://' + fullUrl
-        }
-        return fullUrl
-      },
-      openDialog (val) {
-        this.SubfileForm.Id = val.Id
-        this.SubfileForm.SupplierId = val.SupplierId
-        this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
-        if (val.SupplierCertSubId == 0) {
-          this.SubfileForm.SupplierCertSubId = ''
-        } else {
-          this.SubfileForm.SupplierCertSubId = val.SupplierCertSubId
-        }
-        this.SubfileForm.CertSubName = val.CertSubName
-        this.SubfileForm.NeedFileType = val.NeedFileType
-        this.SubfileForm.NeedFileCode = val.NeedFileCode
-        this.SubfileForm.FileExt = val.FileExt
-        this.SubfileForm.FileType = val.FileType
-        this.SubfileForm.FileName = val.FileName
-        this.SubfileForm.EffectDate = new Date(val.EffectDate)
-        this.SubfileForm.FileUrl = val.FileUrl
-        this.getwendanginfo(val.FileUrl)
-        this.SubfileForm.OtherRemark = val.OtherRemark
-        this.SubfileForm.Remark = val.Remark
-        this.SubfileForm.IsDelete = val.IsDelete
-        this.visible = true
-      },
-      // 文档列表
-      getwendanginfo (iUrl) {
-        let _this = this
-        _this.doclist = []
-        let exArr = iUrl.split('|')
-        let params = {
-          name: exArr[1],
-          url: exArr[0]
-        }
-        _this.doclist.push(params)
-      },
-      beforeAvatarUpload (file) {
-        /* let isLt512K = file.size / 1024 < 512
-        if (isLt512K) {
-          this.$message.error('上传文件大小不能小于 512KB!')
-          return false
-        } */
-        let isLt50m = file.size / 1024 / 1024 / 5 < 1
-        if (!isLt50m) {
-          this.$message.error('上传文件大小不能超过 5MB!')
-          return false
-        }
-        return true
-      },
-      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
-                })
-                // axios.post(process.env.upfilehost, {})
-                //   .then(function (res) {
-                //     if (res.data && res.data.fid && res.data.fid !== '') {
-                //       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 (error) {
-              _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
-      },
-      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}$`
-                }
-              }
-            }
-          }
-        }
-      },
-      clickachment (url, uid) {
-        window.open(`http://${url}`)
-      },
-      // 保存增项信息
-      saveEntity () {
-        let _this = this
-        this.$refs['EntityForm'].validate((valid) => {
-          if (valid) {
-            if (_this.editFlag == '1' && _this.Id !== '') {
-              _this.updateData()
-            } else {
-              _this.addAppend()
-            }
-          } else {
-            return false
-          }
-        })
-      },
-
-      // 更新增项信息
-      updateData () {
-        this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
-        let _this = this
-        api2.updateEntity(_this.Id, _this.formData, _this.$axios).then(res => {
-          if (res.data.code === 0) {
-            this.getEntityById()
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 获取增项分类表
-      getSortList () {
-        // 分页及列表条件
-        let params = {
-          // _currentPage: this.currentPage,
-          // _size: this.size,
-          // Order: this.Column.Order,
-          // Prop: this.Column.Prop,
-          SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
-          SupCertId: this.formData.SupplierCertId,
-          SupTypeCode: this.formData.AppendType
-        }
-
-        // 访问接口
-        api.getList(params, this.$axios).then(res => {
-          this.entityList = res.data.item
-          // this.currentItemCount = res.data.currentItemCount
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      // 获取增项分类表
-      getMySortList () {
-        // 分页及列表条件
-        let params = {
-          // _currentPage: this.currentPage,
-          // _size: this.size,
-          // Order: this.Column.Order,
-          // Prop: this.Column.Prop,
-          SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
-          SupCertId: this.formData.SupplierCertId,
-          SupTypeCode: this.formData.AppendType
-        }
-
-        // 访问接口
-        api.getMyList(params, this.$axios).then(res => {
-          this.myentityList = res.data.item
-          // this.currentItemCount = res.data.currentItemCount
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 添加增项信息
-      addAppend () {
-        this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
-        let _this = this
-        _this.formData.AppendType = '03'
-        _this.$axios.post('/suppliercertappend/addappend/', _this.formData)
-          .then(res => {
-            if (res.data.code === 0) {
-              this.entityList = res.data.item
-              this.dialogFormData.SupplierCertAppendId = res.data.info // 接收插入数据后返回的Id
-              this.Id = res.data.info
-              this.getEntityById()
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 添加增项分类
-      addSortData () {
-        let _this = this
-        // 先判断是否保存了增项信息
-        if (this.checkAppendSave()) {
-          _this.dialogVisible = true
-          _this.selectedOptList = [] // 置空,防止先修改再添加时的已选分类信息保留
-          _this.dialogFormData.Id = ''
-          _this.dialogFormData.SortFlag = ''
-          _this.dialogFormData.Code = ''
-          _this.dialogFormData.Remark = ''
-        }
-        this.getorgtreelist()
-      },
-
-      // 取消
-      cancelOption () {
-        this.dialogVisible = false
-      },
-
-      // 确定
-      ensureOption () {
-        this.dialogloading = true
-        let arr = []
-        let val = this.$refs.orgmanagetree.getCheckedNodes()
-        this.checkList = []
-        for (var i = 0; i < val.length; i++) {
-          if (!val[i].children || val[i].children.length <= 0) {
-            this.checkList.push(val[i])
-          }
-        }
-        this.dialogFormData.SupplierId = this.formData.SupplierId
-        this.dialogFormData.SupplierCertId = this.formData.SupplierCertId
-        this.dialogFormData.SupplierCertAppendId = parseInt(this.dialogFormData.SupplierCertAppendId)
-        this.addSortAppend()
-      },
-
-      // 判断是否保存了增项信息
-      checkAppendSave () {
-        if (this.dialogFormData.SupplierCertAppendId == '' && this.editFlag == null) {
-          this.$message({
-            type: 'error',
-            message: '无法执行该命令,请先保存增项信息!'
-          })
-          return false
-        }
-        return true
-      },
-
-      // 添加增项分类信息
-      addSortAppend () {
-        let _this = this
-        let params = {
-          SupplierId: parseInt(this.formData.SupplierId),
-          SupplierCertId: parseInt(this.formData.SupplierCertId),
-          SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
-          SupplierTypeCode: '03',
-          Remark: this.dialogFormData.Remark,
-          Type: '2'
-        }
-        if (_this.checkList.length > 0) {
-          params = Object.assign(params, {
-            CheckList: _this.checkList
-          })
-        } else {
-          _this.$message({
-            type: 'warning',
-            message: '名称不能为空,请选择分类!'
-          })
-          _this.dialogloading = false
-          return
-        }
-        _this.$axios.post('/suppliercertappendsub/addtechbus/', params)
-          .then(res => {
-            _this.dialogloading = false
-            if (res.data.code === 0) {
-              _this.$message({
-                type: 'success',
-                message: res.data.message
-              })
-              // 关闭dialog
-              _this.dialogVisible = false
-              // 更新增项分类表
-              _this.getEntityById()
-            } else {
-              _this.$message({
-                type: 'warning',
-                message: res.data.message
-              })
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 删除增项分类信息
-      deleteData (Id) {
-        let _this = this
-        _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-        })
-          .then(() => {
-            _this.$axios.delete('suppliercertsub/businessdelete/' + Id, {})
-              .then(function (response) {
-                if (response.data.code === 0) {
-                  _this.$message({
-                    type: 'success',
-                    message: response.data.message
-                  })
-                  _this.getEntityById()
-                } else {
-                  _this.$message({
-                    type: 'warning',
-                    message: response.data.message
-                  })
-                }
-              })
-              .catch(function (error) {
-                console.log(error)
-              })
-          })
-          .catch(() => {})
-      },
-
-      selectAuditOrg () {
-        this.dialogVisible = true
-      },
-      setAuditer (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisible = false
-        this.auditOrgChang(this.auditer)
-      },
-      auditOrgChang (val) {
-        let auditstepcode = 'SECOND_TRIAL'
-        suppapi
-          .getAuditerByFirst(val, auditstepcode, this.$axios)
-          .then(res => {
-            this.secauditerOptions = res.data.item
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      chooseAuditorShowFen () {
-        console.log('--this.formData.SupplierTypeCode----', this.formData.SupplierTypeCode)
-        this.$refs['chooseAuditorFen'].getorgtreelist(this.formData.SupplierTypeCode)
-        this.chooseAuditorVisibleFen = true
-      },
-      setAuditerFen (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisibleFen = false
-      },
-
-      // 提交审批
-      AuditEntity () {
-        if (this.auditer === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择初审人!'
-          })
-          return
-        }
-        if (this.fushenauditer === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择复审人!'
-          })
-          return
-        }
-        if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
-          if (this.majorDept.length === 0) {
-            this.$message({
-              type: 'warning',
-              message: '请选择专业处室!'
-            })
-            return
-          }
-        }
-        if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
-          if (this.userOptions == null || this.userOptions.length === 0) {
-            this.$message({
-              type: 'warning',
-              message: '该专业科室未配置接收人!'
-            })
-            return
-          }
-        }
-        this.applyLoading = true
-        this.auditform.FirstAuditName = this.auditer
-        this.auditform.CertId = this.formData.Id
-        this.auditform.SecondAudit = this.fushenauditer
-        this.auditform.ThirdAudit = this.majorDept[this.majorDept.length - 1]
-        api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.AuditdialogShow = false
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-          this.applyLoading = false
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      SubpEntity () {
-        if (this.UnitOrg === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择分办单位!'
-          })
-          return
-        }
-        if (this.orgauditOptions == null || this.orgauditOptions.length == 0) {
-          this.$message({
-            type: 'warning',
-            message: '该单位未配置分办人!'
-          })
-          return
-        }
-        this.applyLoading = true
-        this.auditform.FirstAuditName = this.UnitOrg
-        this.auditform.CertId = this.formData.Id
-        this.auditform.TypeCode = '03'
-        api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.getEntityById()
-            this.ComAuditdialogShow = false
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-          this.applyLoading = false
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      showDialog () {
-        this.getorgtreelist()
-        this.techDialog = true
-      },
-      getorgtreelist () {
-        let _this = this
-        let params = {
-          keyword: _this.keyword
-        }
-        this.$axios.get('technologyservice/techbuslist', {
-          params
-        })
-          .then(res => {
-            _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      getDictOptions () {
-        let params = {
-          status: this.formData.Status,
-          majorAduit: this.formData.ThirdAudit
-        }
-        suppapi.getDictListByStatus(params, this.$axios).then(res => {
-          this.dictData = res.data.items
-          this.organizeOption = res.data.items['Organizes']
-          this.preorgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
-          this.UnitOrg = res.data.items['Register'].CheckUnitId
-          this.UnitOrgOptions = res.data.items['UnitOrgList']
-          this.orgunitChange(this.UnitOrg)
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      orgunitChange (val) {
-        let deptid = val
-        let auditstepcode = 'SUB_OFFICE_JF'
-        suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.orgauditOptions = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-      // 列表排序功能
-      orderby (column) {
-        if (column.order == 'ascending') {
-          this.Column.Order = 'asc'
-        } else if (column.order == 'descending') {
-          this.Column.Order = 'desc'
-        }
-        this.Column.Prop = column.prop
-      },
-      // 分页功能
-      handleCurrentChange (value) {
-        this.currentPage = value
-        this.getSortList()
-      },
-      handleSizeChange (value) {
-        this.size = value
-        this.currentPage = 1
-        this.getSortList()
-      },
-
-      jstimehandle (val) {
-        if (val === '') {
-          return '----'
-        } else if (val === '0001-01-01T08:00:00+08:00') {
-          return '----'
-        } else if (val === '5000-01-01T23:59:59+08:00') {
-          return '永久'
-        } else {
-          val = val.replace('T', ' ')
-          return val.substring(0, 10)
-        }
-      }
-    }
-  }
-</script>
-<style lang='scss'>
-  .attach-uploader .el-upload {
-    border: 1px dashed #63B8FF;
-    cursor: pointer;
-    position: relative;
-    overflow: hidden;
-    // margin-bottom: -17px;
-    margin-top: -15px;
-    margin-left: 20px
-  }
-
-  .attach-uploader .el-upload:hover {
-    border-color: #228B22;
-  }
-
-  .attach-uploader-icon {
-    font-size: 25px;
-    color: #63B8FF;
-    width: 50px;
-    height: 50px;
-    line-height: 50px;
-    text-align: center;
-  }
-
-  .attach-uploader-icon:hover {
-    color: #228B22;
-  }
-
-</style>