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

1、修改查询最大序号的方法

周兴 2 лет назад
Родитель
Сommit
11e715584a
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/mixins/index.js

+ 5 - 1
src/mixins/index.js

@@ -510,11 +510,15 @@ export const indexMixin = {
      * @author : 周兴
      * @date   : 2023/1/6 13:04
      */
-    getMaxDisplayNo(displayNoTable, formDataName = null) {
+    getMaxDisplayNo(displayNoTable,otherParams = null, formDataName = null) {
       let params = {
         table: displayNoTable.model + "." + displayNoTable.table,
         ftyId: this.$store.state.user.ftyId
       }
+      // 如果有其他条件,需要合并到查询条件中
+      if(otherParams){
+        this.objectMerge(params, otherParams)
+      }
       this.excute(this.$service.commonService, this.$service.commonService.getMaxDisplayNo, params).then(res => {
         if (res.code === this.$config.SUCCESS_CODE) {
           if (!formDataName) {