lilei vor 2 Wochen
Ursprung
Commit
c08e0abfcb

+ 0 - 2
src/views/financialManagement/companyReceivablePayable/list.vue

@@ -172,8 +172,6 @@ export default {
             const no = (data.pageNo - 1) * data.pageSize
             for (var i = 0; i < data.list.length; i++) {
               data.list[i].no = no + i + 1
-              // 应付金额  值为负,应显示为正 余额
-              data.list[i].receiveSettleAmountPay = Math.abs(data.list[i].receiveSettleAmountPay) || 0
             }
             this.disabled = false
             this.total = data.count || 0

+ 12 - 5
src/views/financialManagement/companyReceivablePayableNew/chooseBillModal.vue

@@ -40,7 +40,7 @@
               </a-form-item>
             </a-col>
             <a-col :md="8" :sm="24">
-              <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chooseBillModal-refresh">查询</a-button>
+              <a-button style="margin-bottom: 18px;" type="primary" @click="searchForm" :disabled="disabled" id="chooseBillModal-refresh">查询</a-button>
               <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="chooseBillModal-reset">重置</a-button>
             </a-col>
           </a-row>
@@ -193,6 +193,15 @@ export default {
         this.$message.info('请选择单据')
       }
     },
+    searchForm () {
+      this.clearTable()
+      this.$refs.table.refresh(true)
+    },
+    clearTable () {
+      this.$refs.table.clearSelected() // 清空表格选中项
+      this.selectedRowKeys = []
+      this.selectedRows = []
+    },
     // 重置
     resetSearchForm () {
       this.$refs.rangeDate.resetDate()
@@ -204,7 +213,7 @@ export default {
       this.queryParam.bizNo = ''
       this.queryParam.bizType = undefined
       this.$refs.table.refresh(true)
-      this.$refs.table.clearSelected()
+      this.clearTable()
     }
   },
   watch: {
@@ -218,9 +227,7 @@ export default {
       if (!newValue) {
         _this.$emit('close')
         // 重置
-        _this.$refs.table.clearSelected() // 清空表格选中项
-        _this.selectedRowKeys = []
-        _this.selectedRows = []
+        _this.clearTable()
         _this.resetSearchForm()
       } else {
         setTimeout(() => {

+ 0 - 2
src/views/financialManagement/companyReceivablePayableNew/list.vue

@@ -176,8 +176,6 @@ export default {
             const no = (data.pageNo - 1) * data.pageSize
             for (var i = 0; i < data.list.length; i++) {
               data.list[i].no = no + i + 1
-              // 应付金额  值为负,应显示为正
-              data.list[i].receiveSettleAmountPay = Math.abs(data.list[i].receiveSettleAmountPay) || 0
             }
             this.disabled = false
             this.total = data.count || 0