2
3
lining 6 rokov pred
rodič
commit
36c6c3ae25

+ 3 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/goodsaptitude/index.vue

@@ -535,6 +535,7 @@
 
     data () {
       return {
+        classid: '',
         deptsetVisible: false,
         dialogVisible: false,
         // 列表数据
@@ -1037,7 +1038,7 @@
         })
         this.setForm.AuditStepName = this.$refs.selectAuditStep.selectedLabel + ''
 
-        setapi.addOrganize(this.selecteclassid, organizeids, this.setForm, this.$axios).then(res => {
+        setapi.addOrganize(this.classid, organizeids, this.setForm, this.$axios).then(res => {
           if (res.data.code === 0) {
             this.$message({
               type: 'success',
@@ -1059,6 +1060,7 @@
         let stcode = this.setForm.SupplierTypeCode
         this.deptsetVisible = true
         this.selecteclassid = val.Id
+        this.classid = val.ClassId
         // request
         this.$axios.get('classorgsetting/getdepartment?id=' + this.selecteclassid + '&stcode=' + stcode, {})
           .then(res => {

+ 6 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -354,6 +354,12 @@
         },
       }
     },
+    mounted () {
+      this.serviceId = this.$route.params.opera + ''
+      if (this.$route.query.certid) {
+        this.certId = this.$route.query.certid + ''
+      }
+    },
     created() {
       this.serviceId = this.$route.params.opera + ''
       if (this.$route.query.certid) {

+ 11 - 8
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -136,7 +136,7 @@
               <el-button style="float: right; padding: 3px 0" type="text" @click="equipmentdialog"
                 v-if="formDataCert.Status == 0">添加</el-button>
             </div>
-            <equipment-list ref="equipmentList" :data.sync="equipmentList" :SupplierCertId="certId"
+            <equipment-list ref="equipmentList" :data.sync="equipmentList" :SupplierCertId="certId+''"
               :SupplierTypeCode="classId" :canadd="add_flat" height="360px" style="margin-top: 20px"></equipment-list>
           </el-card>
 
@@ -146,7 +146,7 @@
               <el-button style="float: right; padding: 3px 0" type="text" @click="performancedialog"
                 v-if="formDataCert.Status == 0">添加</el-button>
             </div>
-            <performance-list ref="performanceList" :data.sync="performanceList" :SupplierCertId="certId"
+            <performance-list ref="performanceList" :data.sync="performanceList" :SupplierCertId="certId+''"
               :SupplierTypeCode="classId" :canadd="add_flat" style="margin-top: 20px"></performance-list>
           </el-card>
 
@@ -156,7 +156,7 @@
               <el-button style="float: right; padding: 3px 0" type="text" @click="patentdialog"
                 v-if="formDataCert.Status == 0">添加</el-button>
             </div>
-            <patent-list ref="patentList" :data.sync="patentList" :SupplierCertId="certId" :SupplierTypeCode="classId"
+            <patent-list ref="patentList" :data.sync="patentList" :SupplierCertId="certId+''" :SupplierTypeCode="classId"
               :canadd="add_flat" height="360px" style="margin-top: 20px">
             </patent-list>
           </el-card>
@@ -167,14 +167,13 @@
               <el-button style="float: right; padding: 3px 0" type="text" @click="winningdialog"
                 v-if="formDataCert.Status == 0">添加</el-button>
             </div>
-            <winning-list ref="winningList" :data.sync="winningList" :SupplierCertId="certId"
+            <winning-list ref="winningList" :data.sync="winningList" :SupplierCertId="certId+''"
               :SupplierTypeCode="classId" :canadd="add_flat" height="360px" style="margin-top: 20px">
             </winning-list>
           </el-card>
         </el-tab-pane>
-
         <el-tab-pane label="企业资质" :disabled="!certId">
-          <business-list ref="businessList" :data.sync="businessList" :SupplierCertId="certId" :SupplierId="serviceId"
+          <business-list ref="businessList" :data.sync="businessList" :SupplierCertId="certId+''" :SupplierId="serviceId"
             :SupplierTypeCode="classId" :canadd="add_flat" @close="AuditEntity" height="360px" style="margin-top: 20px">
           </business-list>
         </el-tab-pane>
@@ -355,11 +354,15 @@
         },
       }
     },
+    mounted () {
+      this.serviceId = this.$route.params.opera + ''
+      if (this.$route.query.certid) {
+        this.certId = this.$route.query.certid
+      }
+    },
     created() {
       this.serviceId = this.$route.params.opera + ''
-      console.log(this.$route.query, 'this.$route.query')
       if (this.$route.query.certid) {
-        console.log('1')
         this.certId = this.$route.query.certid + ''
       }
       if (this.serviceId !== 'add' && this.serviceId > 0) {

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

@@ -353,6 +353,12 @@
         },
       }
     },
+    mounted () {
+      this.serviceId = this.$route.params.opera + ''
+      if (this.$route.query.certid) {
+        this.certId = this.$route.query.certid + ''
+      }
+    },
     created() {
       this.serviceId = this.$route.params.opera + ''
       if (this.$route.query.certid) {