Browse Source

添加清空条件

Qukatie 8 months ago
parent
commit
d93123de49

+ 7 - 2
src/views/iosBasicData/ComputationCenter/settlementDetails.vue

@@ -203,10 +203,12 @@
                                     <!--</el-button>-->
                                     <el-checkbox v-model="appendType" :disabled="settlementdistar || editSave"
                                         false-label="检索" true-label="追加">追加</el-checkbox>
-                                    <el-button size="small" type="primary" style="margin-right: 8px"
+                                    <el-button size="small" type="primary"
                                         :disabled="settlementdistar || editSave || (tableData.length > 0 && appendType == '检索')"
                                         :loading="saveLoading" @click="retrievalfun">检 索
                                     </el-button>
+                                    <el-button  size="small" :disabled="tableData.length>0" @click="ResetFilter">重置条件
+                                    </el-button>
                                 </div>
                             </el-col>
                         </el-row>
@@ -920,7 +922,10 @@ export default {
         },
         // 重置条件
         ResetFilter() {
-            this.form = {}
+            this.form = {
+                dc: null,
+                billDate: dateFormat(new Date())
+            }
         },
         // 弹窗选择
         retrievePopupsSelect(row) {

+ 11 - 5
src/views/iosBasicData/PaymentApplication/finstlbillsDetails.vue

@@ -217,15 +217,16 @@
                         <el-row>
                             <el-col span="24">
                                 <div style="text-align: right">
-                                    <!--<el-button  size="small" type="" style="margin-right: 8px" :disabled="editSave"-->
-                                    <!--            :loading="saveLoading" @click="ResetFilter">重置条件-->
-                                    <!--</el-button>-->
+                           
                                     <el-checkbox v-model="appendType" :disabled="editSave" false-label="检索"
                                         true-label="追加">追加</el-checkbox>
-                                    <el-button size="small" type="primary" style="margin-right: 8px"
+                                     
+                                    <el-button size="small" type="primary"
                                         :disabled="editSave || (tableData.length > 0 && appendType == '检索')"
                                         :loading="saveLoading" @click="retrievalfun">检 索
                                     </el-button>
+                                    <el-button  size="small" :disabled="tableData.length>0" @click="ResetFilter">重置条件
+                                    </el-button>
                                 </div>
                             </el-col>
                         </el-row>
@@ -849,7 +850,12 @@ export default {
         },
         // 重置条件
         ResetFilter() {
-            this.form = {}
+            this.form ={
+                dc: 'C',
+                mblno: null,
+                corpCnName: null,
+                corpId: null
+            }
         },
         // 弹窗选择
         retrievePopupsSelect(row) {

+ 12 - 0
src/views/iosBasicData/fininvoices/fininvoicesDetails.vue

@@ -375,6 +375,8 @@
                                             :disabled="editSave || (tableData.length > 0 && appendType == '检索')" plain
                                             @click="finstlbillslistAccBillV1fun(appendType)">提取费用
                                         </el-button>
+                                        <el-button size="small" :disabled="tableData.length > 0" @click="ResetFilter">重置条件
+                                        </el-button>
                                     </el-col>
                                     <el-col :span="24">
                                         <el-form-item label="全电发票:" prop="elecRemarks">
@@ -592,6 +594,16 @@ export default {
         }
     },
     methods: {
+        ResetFilter(){
+            this.form={
+                invCurCode: 'CNY',
+                isRp: 1,
+                invType: '全电发票',
+                taxRate: 0,
+                isExchangeToCny: 0,
+                invoiceDate: getCurrentDate(),
+            }
+        },
         // 开票明细编辑完成保存
         invoiceSavefun(row) {
             row.amountRate = this.form.taxRate

+ 13 - 0
src/views/iosBasicData/fininvoicesApplyfor/fininvoicesDetails.vue

@@ -372,6 +372,8 @@
                                             :disabled="statusType || (tableData.length > 0 && appendType == '检索')" plain
                                             @click="finstlbillslistAccBillV1fun(appendType)">提取费用
                                         </el-button>
+                                        <el-button size="small" :disabled="tableData.length > 0" @click="ResetFilter">重置条件
+                                        </el-button>
                                     </el-col>
                                     <el-col :span="24">
                                         <el-form-item label="全电发票:" prop="elecRemarks">
@@ -627,6 +629,17 @@ export default {
         }
     },
     methods: {
+        ResetFilter() {
+            this.form = {
+                invCurCode: 'CNY',
+                isRp: 1,
+                invType: '全电发票',
+                taxRate: 0,
+                invoiceDate: getCurrentDate(),
+                isExchangeToCny: 0,
+                billDate: getCurrentDate(),
+            }
+        },
         //请核关闭
         choceScheduleFun() {
             this.checkScheduleDialog = false

+ 12 - 0
src/views/iosBasicData/fininvoicesOutput/fininvoicesDetails.vue

@@ -375,6 +375,8 @@
                                             :disabled="editSave || (tableData.length > 0 && appendType == '检索')" plain
                                             @click="finstlbillslistAccBillV1fun(appendType)">提取费用
                                         </el-button>
+                                        <el-button size="small" :disabled="tableData.length > 0" @click="ResetFilter">重置条件
+                                        </el-button>
                                     </el-col>
                                     <el-col :span="24">
                                         <el-form-item label="全电发票:" prop="elecRemarks">
@@ -590,6 +592,16 @@ export default {
         }
     },
     methods: {
+        ResetFilter(){
+            this.form={
+                invCurCode: 'CNY',
+                isRp: 1,
+                invType: '全电发票',
+                taxRate: 0,
+                isExchangeToCny: 0,
+                invoiceDate: getCurrentDate(),
+            }
+        },
         // 开票明细编辑完成保存
         invoiceSavefun(row) {
             row.amountRate = this.form.taxRate

+ 14 - 6
src/views/iosBasicData/finstlbills/finstlbillsDetails.vue

@@ -331,12 +331,12 @@
                         <el-row>
                             <el-col span="24">
                                 <div style="text-align: right">
-                                    <!--<el-button  size="small" type="" style="margin-right: 8px" :disabled="editSave"-->
-                                    <!--            :loading="saveLoading" @click="ResetFilter">重置条件-->
-                                    <!--</el-button>-->
-                                    <el-button size="small" type="primary" style="margin-right: 8px"
+                                    
+                                    <el-button size="small" type="primary"
                                         :disabled="editSave" :loading="saveLoading" @click="retrievalfun">检 索
                                     </el-button>
+                                    <el-button  size="small" :disabled="tableData.length>0" @click="ResetFilter">重置条件
+                                    </el-button>
                                 </div>
                             </el-col>
                         </el-row>
@@ -863,8 +863,16 @@ export default {
         },
         // 重置条件
         ResetFilter() {
-            this.form = {}
-
+            this.form = {
+                billDate: dateFormat(new Date(), "yyyy-MM-dd") + ' 00:00', // 对账日期 默认 当天
+                isApproved: '0',
+                isSignfor: '0',
+                isCleared: null, // 销账
+                isChecked: '0',
+                isInvoice: '0',
+                accountDate: [],
+                approvedDate: [],
+            }
         },
         // 弹窗选择
         retrievePopupsSelect(row) {