Explorar el Código

预览报表根据当前大标签列,未完成

wfg hace 2 meses
padre
commit
db0cead511

+ 27 - 9
src/views/iosBasicData/SeafreightExportF/bills/assembly/businessReports.vue

@@ -34,7 +34,11 @@ export default {
     disabled: {
       type: Boolean,
       default: false,
-    }
+    },
+      classifycode:{
+          type: String,
+          default: '',
+      },
   },
   data() {
     return {
@@ -49,6 +53,7 @@ export default {
         businessType: 'HYCK',
         classifyCode: '业务',
       },
+      classifyCodeReadonly: false,
       loading: true,
       page: {
         pageSize: 10,
@@ -137,14 +142,27 @@ export default {
     };
   },
   async created() {
-    this.option = await this.getColumnData(this.getColumnName(312.4), this.optionBack);
-    getUserApprovalList().then(res => {
-      this.findObject(this.option.column, "authorizedUsersId").dicData = res.data.data
-    })
-    // 获取业务类型
-    bbusinesstypeList(1, 20).then(res => {
-      this.findObject(this.option.column, "businessType").dicData = res.data.data.records
-    })
+      if(!!this.classifycode) {
+          this.query.classifyCode = this.classifycode;
+          this.classifyCodeReadonly = true;
+          let col = this.optionBack.column.find(c=>c.prop=="classifyCode")
+          if(col){
+              col.search = false;
+          }
+      }
+
+      this.option = await this.getColumnData(this.getColumnName(312.4), this.optionBack);
+      console.log('report.create', this.option)
+
+      getUserApprovalList().then(res => {
+          this.findObject(this.option.column, "authorizedUsersId").dicData = res.data.data
+      })
+      // 获取业务类型
+      bbusinesstypeList(1, 20).then(res => {
+          this.findObject(this.option.column, "businessType").dicData = res.data.data.records
+      })
+  },
+  async mounted () {
   },
   computed: {
     ...mapGetters(["permission"]),