Explorar o código

fix(contractReview): 防止提交按钮重复点击,销售对账单对账方式增加调拨单

liujt hai 3 meses
pai
achega
f8d010b464

+ 1 - 1
src/views/contractManage/contractReview/components/addDialog.vue

@@ -273,7 +273,7 @@
           </div>
         </el-form-item>
       </el-form>
-      <el-button type="primary" size="small" @click="submit">提交</el-button>
+      <el-button type="primary" size="small" v-click-once @click="submit">提交</el-button>
       <el-button size="small" @click="cancel">关闭</el-button>
       <staffSelection
         ref="staffSelection"

+ 16 - 6
src/views/saleManage/saleOrder/accountstatement/index.vue

@@ -249,7 +249,19 @@
         selection: [], //单选中集合
         delVisible: false, //批量删除弹框状态
         loading: false, // 加载状态
-        columns: [
+        dateTypeOp: [
+          { label: '按年度', value: 1 },
+          { label: '按季度', value: 2 },
+          { label: '按月度', value: 3 },
+          { label: '按时间段', value: 4 },
+          { label: '按调拨单', value: 5 }
+        ],
+        cacheKeyUrl:'eos-b5bbaa6e-saleManage-accountstatement',
+      };
+    },
+    computed: {
+      columns() {
+        return [
           {
             width: 45,
             type: 'selection',
@@ -288,7 +300,7 @@
             showOverflowTooltip: true,
             minWidth: 150,
             formatter: (_row, _column, cellValue) => {
-              return cellValue==1?'按年度':cellValue==2?'按季度':cellValue==3?'按月度':'按时间段'
+              return this.dateTypeOp.find(item => item.value == cellValue)?.label || ''
             }
           },
           {
@@ -384,11 +396,9 @@
             showOverflowTooltip: true,
             fixed: 'right'
           }
-        ],
-        cacheKeyUrl:'eos-b5bbaa6e-saleManage-accountstatement',
-      };
+        ]
+      }
     },
-    computed: {},
 
     methods: {
       /* 表格数据源 */