Просмотр исходного кода

修改通用页,查询最大显示顺序的问题

hongxudong 2 лет назад
Родитель
Сommit
d829104c98

+ 1 - 1
src/mixins/index.js

@@ -510,7 +510,7 @@ export const indexMixin = {
      * @author : 周兴
      * @date   : 2023/1/6 13:04
      */
-    getMaxDisplayNo(displayNoTable,otherParams = null, formDataName = null) {
+    getMaxDisplayNo(displayNoTable,otherParams, formDataName = null) {
       let params = {
         table: displayNoTable.model + "." + displayNoTable.table,
         ftyId: this.$store.state.user.ftyId

+ 1 - 0
src/view/mst/carr-kiln-car/index.vue

@@ -446,6 +446,7 @@ export default {
         if (res.code === this.$config.SUCCESS_CODE) {
           this.tableData = res.data
           //this.searchContent[1].valueFormat.data = res.data;
+          this.loading = false
         }
       })
     },

+ 2 - 2
src/view/mst/dictionary/index.vue

@@ -172,7 +172,7 @@ export default {
         remarks: ''
       }
       // 加载最大序号
-      this.getMaxDisplayNo(this.$config.displayNoTable.dictionaryData);
+      this.getMaxDisplayNo(this.$config.displayNoTable.dictionaryData, {otherCond: 'dict_code = \''+this.dictCodeType+'\''});
     },
     /**
      *   @desc   : 给参数赋值
@@ -213,7 +213,7 @@ export default {
     initData(type) {
       if (type === this.$config.formMode.add) {
         // 加载最大序号
-        this.getMaxDisplayNo(this.$config.displayNoTable.dictionaryData);
+        this.getMaxDisplayNo(this.$config.displayNoTable.dictionaryData, {otherCond: 'dict_code = \''+this.dictCodeType+'\''});
       }
     },
     /**

+ 2 - 2
src/view/mst/label-print-layout/index.vue

@@ -221,7 +221,7 @@ export default {
         remarks: ''
       }
       // 加载最大序号
-      this.getMaxDisplayNo(this.$config.displayNoTable.labelPrinterLayout);
+      this.getMaxDisplayNo(this.$config.displayNoTable.labelPrinterLayout, {otherCond: 'label_kind = \''+this.labelKind+'\''});
     },
     /**
      *   @desc   : 给参数赋值
@@ -278,7 +278,7 @@ export default {
     initData(type) {
       if (type === this.$config.formMode.add || type === this.$config.formMode.edit) {
         // 加载最大序号
-        this.getMaxDisplayNo(this.$config.displayNoTable.labelPrinterLayout);
+        this.getMaxDisplayNo(this.$config.displayNoTable.labelPrinterLayout, {otherCond: 'label_kind = \''+this.labelKind+'\''});
         // 获取打印模板分类
         this.getPrintTypeData();
       }

+ 2 - 2
src/view/mst/product-defect/index.vue

@@ -229,7 +229,7 @@ export default {
         remarks: ''
       }
       // 加载最大序号
-      this.getMaxDisplayNo(this.$config.displayNoTable.productDefect);
+      this.getMaxDisplayNo(this.$config.displayNoTable.productDefect, {otherCond: 'defect_kind = \''+this.defectKind+'\''});
     },
     /**
      *   @desc   : 给参数赋值
@@ -270,7 +270,7 @@ export default {
     initData(type) {
       if (type === this.$config.formMode.add) {
         // 加载最大序号
-        this.getMaxDisplayNo(this.$config.displayNoTable.productDefect);
+        this.getMaxDisplayNo(this.$config.displayNoTable.productDefect, {otherCond: 'defect_kind = \''+this.defectKind+'\''});
       }
       if (type === this.$config.formMode.add || type === this.$config.formMode.edit) {
         this.getDefectTypeList();   // 加载缺陷分类数据