Parcourir la source

财务核对表-字段

jbb il y a 2 ans
Parent
commit
eddf69cae7
1 fichiers modifiés avec 29 ajouts et 17 suppressions
  1. 29 17
      src/views/cost-allocation-total/inancialReconciliation.vue

+ 29 - 17
src/views/cost-allocation-total/inancialReconciliation.vue

@@ -8,13 +8,13 @@
           <a-row :gutter="24">
             <a-col :md="6" :sm="8">
               <a-form-item label="计划号">
-                <a-input placeholder="请输入计划号" v-model="queryParam.index"></a-input>
+                <a-input placeholder="请输入计划号" v-model="queryParam.planNo"></a-input>
               </a-form-item>
             </a-col>
 
             <a-col :md="6" :sm="8">
               <a-form-item label="日期" has-feedback>
-                <a-input placeholder="请输入日期" v-model="queryParam.planNum"></a-input>
+                <a-input placeholder="请输入日期" v-model="queryParam.dverifyDate"></a-input>
               </a-form-item>
             </a-col>
 
@@ -31,17 +31,17 @@
             </a-col>
             <a-col :md="6" :sm="8">
               <a-form-item label="部门">
-                <a-input placeholder="请输入部门" v-model="queryParam.customerShortame"></a-input>
+                <a-input placeholder="请输入部门" v-model="queryParam.department"></a-input>
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="8">
               <a-form-item label="业务员">
-                <a-input placeholder="请输入业务员" v-model="queryParam.customerShortame"></a-input>
+                <a-input placeholder="请输入业务员" v-model="queryParam.salesman"></a-input>
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="8">
               <a-form-item label="计划师傅/制单人">
-                <a-input placeholder="请输入" v-model="queryParam.customerShortame"></a-input>
+                <a-input placeholder="请输入" v-model="queryParam.maker"></a-input>
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="8">
@@ -109,11 +109,11 @@ export default {
     let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
     return {
       costAllocationColumns: [
-        { title: '计划单号', width: 120, dataIndex: 'planNum', fixed: 'left', className: 'replacecolor' },
-        { title: '日期', width: 120, dataIndex: 'poStyleNum', className: 'replacecolor' },
+        { title: '计划单号', width: 120, dataIndex: 'planNo', fixed: 'left', className: 'replacecolor' },
+        { title: '日期', width: 120, dataIndex: 'dverifyDate', className: 'replacecolor' },
         { title: '部门', width: 120, dataIndex: 'department', className: 'replacecolor'},
-        { title: '业务员', width: 120, dataIndex: 'exportSales', className: 'replacecolor' },
-        { title: '计划师傅/制单人', width: 150, dataIndex: 'customerShortame', className: 'replacecolor' },
+        { title: '业务员', width: 120, dataIndex: 'salesman', className: 'replacecolor' },
+        { title: '计划师傅/制单人', width: 150, dataIndex: 'maker', className: 'replacecolor' },
         { title: '对单人(手输人)', width: 220, dataIndex: 'processUnit', align: 'left', className: 'replacecolor' },
         //  {
         //   title: '创建时间',
@@ -205,7 +205,7 @@ export default {
         // index: '',
         // planNum: '',
         // customerShortame: '',
-        // pageNo: '' // 点击的页数
+        pageNo: '' // 点击的页数
       },
       // 分页
       pagination: {
@@ -223,17 +223,29 @@ export default {
       this.$nextTick(() => {
         checkList(this.queryParam).then(res => {
           if (res.success) {
-            // this.costAllocationData = res.result.records
-            // console.log('成本分配汇总数据', this.costAllocationData)
-            // this.pagination = {
-            //   total: res.result.total,
-            //   current: res.result.current,
-            //   pageSize: res.result.size
-            // }
+            this.costAllocationData = res.result.records
+            this.pagination = {
+              total: res.result.total,
+              current: res.result.current,
+              pageSize: res.result.size
+            }
           }
         })
       })
     },
+    searchQuery() {
+      this.getCostList()
+    },
+    searchReset() {
+      this.queryParam.pageNo = ''
+      this.queryParam = {}
+      this.getCostList()
+    },
+
+    handleTableChange(pagination, filters, sorter) {
+      this.queryParam.pageNo = pagination.current
+      this.getCostList()
+    },
   },
   computed: {},
   mounted() {}