Jelajahi Sumber

新增时传值获取分类及文件方法

shihang 6 tahun lalu
induk
melakukan
8613871a56

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

@@ -144,7 +144,7 @@
       }
     },
     created() {
-      this.initData()
+      // this.initData()
     },
     computed: {
       ...mapGetters({
@@ -193,6 +193,11 @@
       }
     },
     methods: {
+      getvalue(serviceId, SupplierTypeCode, certId) {
+        _this.SupplierId = serviceId
+        _this.SupplierTypeCode = SupplierTypeCode
+        _this.SupplierCertId = certId
+      },
       initData() {
         let _this = this
         const params = {
@@ -207,7 +212,7 @@
           .then(res => {
             _this.businessList = res.data.items
             _this.currentItemCount = res.data.currentItemCount
-            _this.$refs["subfileList"].initData()
+            _this.$refs["subfileList"].getvalue(this.SupplierId, this.SupplierTypeCode, this.SupplierCertId)
           })
           .catch(err => {
             // handle error

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

@@ -166,6 +166,11 @@
       }
     },
     methods: {
+      getvalue(serviceId,SupplierTypeCode,certId){
+        this.SupplierId = serviceId
+        this.SupplierTypeCode = SupplierTypeCode
+        this.initData()
+      },
       initData() {
         let _this = this
         const params = {

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

@@ -11,9 +11,9 @@
           <i class="icon icon-table2"></i> 信息
         </span>
         <span style="float: right;">
-          <el-button type="primary" plain size="mini" :disabled="!down_flag">年审申请</el-button>
+          <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">年审申请</el-button>
           <!--v-if="formData.Step>=5"-->
-          <el-button type="primary" plain size="mini" :disabled="!down_flag">增项申请</el-button>
+          <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">增项申请</el-button>
           <router-link :to="'/oilsupplier/supplier/techlist'">
             <el-button type="primary" size="mini" style="margin-left: 8px" v-if="authUser.Profile.IsCompanyUser != 1">返回
             </el-button>
@@ -235,7 +235,6 @@
         canUpdateSupplier: true,
         dictData: null,
         applyLoading: false,
-        down_flag: false,
         equipmentList: [], //企业主要装备情况
         performanceList: [], //近三年主要工程业绩
         patentList: [], //拥有专利、专有技术及工法
@@ -494,6 +493,7 @@
               this.$refs['WfHistory'].getHistoryTask() /*刷新工作流*/
             }
 
+            this.$refs["businessList"].getvalue(this.formData.Id,this.formData.SupplierTypeCode,this.certId)
           }).catch(err => {
             console.error(err)
           });
@@ -656,7 +656,7 @@
 
       nexStepCB() {
         this.formData.Step += 1
-        this.down_flag = true
+        this.formDataCert.Status = 1
       },
 
       jstimehandle(val) {