chenrui 6 miesięcy temu
rodzic
commit
142ee9a71e

+ 0 - 1
src/views/numsGoodsShelves/onlinePayInvoice/list.vue

@@ -55,7 +55,6 @@
 </template>
 
 <script>
-import moment from 'moment'
 import { commonMixin } from '@/utils/mixin'
 import { STable } from '@/components'
 import shelfList from '@/views/common/shelfList'

+ 29 - 14
src/views/numsGoodsShelves/withdrawalManagementNew/billFlowModal.vue

@@ -15,7 +15,7 @@
           <a-row :gutter="15">
             <a-col :md="7" :sm="24">
               <a-form-item label="创建时间">
-                <rangeDate id="billFlowModal-createDate" ref="createDate" @change="createDateChange" />
+                <rangeDate id="billFlowModal-createDate" ref="createDate" v-model="time" @change="createDateChange" />
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="24">
@@ -123,13 +123,16 @@ export default {
       spinning: false,
       isShow: this.openModal, //  是否打开弹框
       disabled: false,
+      time: [], // 创建时间
       queryParam: {
-        auditBeginDate: '', // 审核开始时间
-        auditEndDate: '', // 审核结束时间
-        bizNo: '', // 单据号
-        bizType: undefined, // 单据类型
-        bizCreateBeginDate: undefined, // 创建开始时间
-        bizCreateEndDate: undefined // 创建结束时间
+        beginDate: '', // 创建开始时间
+        endDate: '', // 创建结束时间
+        customerName: undefined, // 客户名称
+        customerSn: undefined, // 客户Sn
+        bizNo: '', // 关联财务单号
+        bizType: undefined, // 收支类型
+        tradeType: undefined, // 交易类型
+        dealState: undefined // 交易状态
       },
       // 表头
       columns: [
@@ -167,6 +170,16 @@ export default {
     }
   },
   methods: {
+    // 选择客户
+    custSatelliteChange (obj, row) {
+      if (row) {
+        this.queryParam.customerSn = row && row.customerSn || undefined
+        this.queryParam.customerName = undefined
+      } else {
+        this.queryParam.customerName = obj || undefined
+        this.queryParam.customerSn = undefined
+      }
+    },
     // 统计
     getCount (val) {
       bizTradeQueryGroupCount(val).then(res => {
@@ -205,16 +218,18 @@ export default {
     },
     // 重置
     resetSearchForm () {
-      this.$refs.rangeDate.resetDate()
-      this.$refs.createDate.resetDate()
-      this.queryParam.auditBeginDate = ''
-      this.queryParam.auditEndDate = ''
-      this.queryParam.bizCreateBeginDate = ''
-      this.queryParam.bizCreateEndDate = ''
+      this.time = []
+      this.$refs.rangeDate.resetDate([])
+      this.queryParam.beginDate = ''
+      this.queryParam.endDate = ''
+      this.queryParam.customerName = undefined
+      this.queryParam.customerSn = undefined
       this.queryParam.bizNo = ''
       this.queryParam.bizType = undefined
+      this.queryParam.tradeType = undefined
+      this.queryParam.dealState = undefined
+      this.$refs.custSatelliteList.resetForm()
       this.$refs.table.refresh(true)
-      this.$refs.table.clearSelected()
     }
   },
   watch: {