Переглянути джерело

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

周兴 2 роки тому
батько
коміт
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 : 周兴
      * @author : 周兴
      * @date   : 2023/1/6 13:04
      * @date   : 2023/1/6 13:04
      */
      */
-    getMaxDisplayNo(displayNoTable, formDataName = null) {
+    getMaxDisplayNo(displayNoTable,otherParams = null, formDataName = null) {
       let params = {
       let params = {
         table: displayNoTable.model + "." + displayNoTable.table,
         table: displayNoTable.model + "." + displayNoTable.table,
         ftyId: this.$store.state.user.ftyId
         ftyId: this.$store.state.user.ftyId
       }
       }
+      // 如果有其他条件,需要合并到查询条件中
+      if(otherParams){
+        this.objectMerge(params, otherParams)
+      }
       this.excute(this.$service.commonService, this.$service.commonService.getMaxDisplayNo, params).then(res => {
       this.excute(this.$service.commonService, this.$service.commonService.getMaxDisplayNo, params).then(res => {
         if (res.code === this.$config.SUCCESS_CODE) {
         if (res.code === this.$config.SUCCESS_CODE) {
           if (!formDataName) {
           if (!formDataName) {