Răsfoiți Sursa

添加流程

shihang 6 ani în urmă
părinte
comite
11bb4db6aa

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

@@ -4,7 +4,7 @@
       <div slot="header" class="clearfix">
         <span style="font-weight: bold">分类</span>
         <span style="float: right;">
-          <el-button type="primary" size="mini" style="margin-right: 3px" @click="nextStep">提交审批</el-button>
+          <el-button type="primary" size="mini" style="margin-right: 3px" @click="nextStep()">提交审批</el-button>
           <el-button type="primary" size="mini" style="margin-right: 3px" @click="showDialog">添加</el-button>
         </span>
         <!-- <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog">添加</el-button> -->
@@ -194,9 +194,9 @@
     },
     methods: {
       getvalue(serviceId, SupplierTypeCode, certId) {
-        _this.SupplierId = serviceId
-        _this.SupplierTypeCode = SupplierTypeCode
-        _this.SupplierCertId = certId
+        this.SupplierId = serviceId
+        this.SupplierTypeCode = SupplierTypeCode
+        this.SupplierCertId = certId
       },
       initData() {
         let _this = this

+ 9 - 1
src/dashoo.cn/frontend_web/src/components/oilsupplier/equipmentlist.vue

@@ -73,7 +73,7 @@
       },
     },
     created() {
-      this.initData()
+      //this.initData()
     },
     computed: {
       ...mapGetters({
@@ -87,6 +87,7 @@
         EquipmentForm: {
           Id: '',
           SupplierCertId: '',
+          SupplierTypeCode: '',
           MainEquipment: '',
           Specifications: '',
           Number: '',
@@ -99,6 +100,11 @@
       }
     },
     methods: {
+      getvalue(serviceId, SupplierTypeCode, certId) {
+        // this.SupplierId = serviceId
+        this.SupplierTypeCode = SupplierTypeCode
+        this.SupplierCertId = certId
+      },
       initData() {
         let _this = this
         const params = {
@@ -206,6 +212,7 @@
         this.Title = '新增企业主要装备情况'
         this.EquipmentForm.Id = 0
         this.EquipmentForm.SupplierCertId = this.SupplierCertId
+        this.EquipmentForm.SupplierTypeCode = this.SupplierTypeCode
         this.EquipmentForm.MainEquipment = ''
         this.EquipmentForm.Specifications = ''
         this.EquipmentForm.Number = ''
@@ -216,6 +223,7 @@
         this.Title = '编辑企业主要装备情况'
         this.EquipmentForm.Id = val.Id
         this.EquipmentForm.SupplierCertId = val.SupplierCertId
+        this.EquipmentForm.SupplierTypeCode = val.SupplierTypeCode
         this.EquipmentForm.MainEquipment = val.MainEquipment
         this.EquipmentForm.Specifications = val.Specifications
         this.EquipmentForm.Number = val.Number

+ 9 - 1
src/dashoo.cn/frontend_web/src/components/oilsupplier/patentlist.vue

@@ -86,7 +86,7 @@
       },
     },
     created() {
-      this.initData()
+      //this.initData()
     },
     computed: {
       ...mapGetters({
@@ -100,6 +100,7 @@
         PatentForm: {
           Id: '',
           SupplierCertId: '',
+          SupplierTypeCode: '',
           Name: '',
           Content: '',
           ApprovalAuthority: '',
@@ -113,6 +114,11 @@
       }
     },
     methods: {
+      getvalue(serviceId, SupplierTypeCode, certId) {
+        // this.SupplierId = serviceId
+        this.SupplierTypeCode = SupplierTypeCode
+        this.SupplierCertId = certId
+      },
       initData() {
         let _this = this
         // request
@@ -221,6 +227,7 @@
         this.Title = '新增拥有专利、专有技术及工法'
         this.PatentForm.Id = 0
         this.PatentForm.SupplierCertId = this.SupplierCertId
+        this.PatentForm.SupplierTypeCode = this.SupplierTypeCode
         this.PatentForm.Name = ''
         this.PatentForm.Content = ''
         this.PatentForm.ApprovalAuthority = ''
@@ -232,6 +239,7 @@
         this.Title = '编辑拥有专利、专有技术及工法'
         this.PatentForm.Id = val.Id
         this.PatentForm.SupplierCertId = val.SupplierCertId
+        this.PatentForm.SupplierTypeCode = val.SupplierTypeCode
         this.PatentForm.Name = val.Name
         this.PatentForm.Content = val.Content
         this.PatentForm.ApprovalAuthority = val.ApprovalAuthority

+ 9 - 1
src/dashoo.cn/frontend_web/src/components/oilsupplier/performancelist.vue

@@ -110,7 +110,7 @@
       },
     },
     created() {
-      this.initData()
+      //this.initData()
     },
     computed: {
       ...mapGetters({
@@ -124,6 +124,7 @@
         PerformanceForm: {
           Id: '',
           SupplierCertId: '',
+          SupplierTypeCode: '',
           ProjectName: '',
           BearContent: '',
           OwnerUnit: '',
@@ -139,6 +140,11 @@
       }
     },
     methods: {
+      getvalue(serviceId, SupplierTypeCode, certId) {
+        // this.SupplierId = serviceId
+        this.SupplierTypeCode = SupplierTypeCode
+        this.SupplierCertId = certId
+      },
       initData() {
         let _this = this
         const params = {
@@ -246,6 +252,7 @@
         this.Title = '新增近三年主要工程业绩'
         this.PerformanceForm.Id = 0
         this.PerformanceForm.SupplierCertId = this.SupplierCertId
+        this.PerformanceForm.SupplierTypeCode = this.SupplierTypeCode
         this.PerformanceForm.ProjectName = ''
         this.PerformanceForm.BearContent = ''
         this.PerformanceForm.OwnerUnit = ''
@@ -259,6 +266,7 @@
         this.Title = '编辑近三年主要工程业绩'
         this.PerformanceForm.Id = val.Id
         this.PerformanceForm.SupplierCertId = val.SupplierCertId
+        this.PerformanceForm.SupplierTypeCode = val.SupplierTypeCode
         this.PerformanceForm.ProjectName = val.ProjectName
         this.PerformanceForm.BearContent = val.BearContent
         this.PerformanceForm.OwnerUnit = val.OwnerUnit

+ 9 - 1
src/dashoo.cn/frontend_web/src/components/oilsupplier/winninglist.vue

@@ -77,7 +77,7 @@
       },
     },
     created() {
-      this.initData()
+      //this.initData()
     },
     computed: {
       ...mapGetters({
@@ -91,6 +91,7 @@
         WinningForm: {
           Id: '',
           SupplierCertId: '',
+          SupplierTypeCode: '',
           Authorities: '',
           OwnerUnit: '',
           WinningTime: new Date(),
@@ -103,6 +104,11 @@
       }
     },
     methods: {
+      getvalue(serviceId, SupplierTypeCode, certId) {
+        // this.SupplierId = serviceId
+        this.SupplierTypeCode = SupplierTypeCode
+        this.SupplierCertId = certId
+      },
       initData() {
         let _this = this
         // request
@@ -211,6 +217,7 @@
         this.Title = '新增近三年获得省部级及以上主要技术、管理成果、获奖项目'
         this.WinningForm.Id = 0
         this.WinningForm.SupplierCertId = this.SupplierCertId
+        this.WinningForm.SupplierTypeCode = this.SupplierTypeCode
         this.WinningForm.AwardName = ''
         this.WinningForm.Authorities = ''
         this.WinningForm.WinningTime = new Date()
@@ -221,6 +228,7 @@
         this.Title = '编辑近三年获得省部级及以上主要技术、管理成果、获奖项目'
         this.WinningForm.Id = val.Id
         this.WinningForm.SupplierCertId = val.SupplierCertId
+        this.WinningForm.SupplierTypeCode = val.SupplierTypeCode
         this.WinningForm.AwardName = val.AwardName
         this.WinningForm.Authorities = val.Authorities
         this.WinningForm.WinningTime = new Date(val.WinningTime)

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

@@ -169,7 +169,7 @@
 
         <el-tab-pane label="企业资质" :disabled="!certId">
           <business-list ref="businessList" :data="businessList" :SupplierCertId="certId" :SupplierId="serviceId"
-            :SupplierTypeCode="classId" @close="nexStepCB" height="360px" style="margin-top: 20px"></business-list>
+            :SupplierTypeCode="classId" @close="AuditEntity" height="360px" style="margin-top: 20px"></business-list>
         </el-tab-pane>
 
         <el-tab-pane label="审批流程">
@@ -492,7 +492,10 @@
             if (this.certId && this.formDataCert.WorkflowId) {
               this.$refs['WfHistory'].getHistoryTask() /*刷新工作流*/
             }
-
+            this.$refs["equipmentList"].getvalue(this.formData.Id,this.formData.SupplierTypeCode,this.certId)
+            this.$refs["performanceList"].getvalue(this.formData.Id,this.formData.SupplierTypeCode,this.certId)
+            this.$refs["patentList"].getvalue(this.formData.Id,this.formData.SupplierTypeCode,this.certId)
+            this.$refs["winningList"].getvalue(this.formData.Id,this.formData.SupplierTypeCode,this.certId)
             this.$refs["businessList"].getvalue(this.formData.Id,this.formData.SupplierTypeCode,this.certId)
           }).catch(err => {
             console.error(err)
@@ -654,11 +657,6 @@
         });
       },
 
-      nexStepCB() {
-        this.formData.Step += 1
-        this.formDataCert.Status = 1
-      },
-
       jstimehandle(val) {
         if (val === '') {
           return '----'