1004749546@qq.com 4 tahun lalu
induk
melakukan
8b53dcf7b8

+ 101 - 1
src/config/router.config.js

@@ -1878,7 +1878,107 @@ export const asyncRouterMap = [
                 // permission: 'M_warehouseList'
               }
             }]
-          }
+          },
+          {
+            path: '/reportData/salesDetails',
+            redirect: '/reportData/salesDetails/list',
+            name: 'salesDetails',
+            component: RouteView,
+            meta: {
+			  title: '销售明细(开单统计)',
+			  icon: 'profile'
+			  // permission: 'M_warehouseList'
+            },
+            hideChildrenInMenu: true,
+            children: [
+			  {
+                path: 'list',
+                name: 'salesDetailsList',
+                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesDetails/list.vue'),
+                meta: {
+				  title: '销售明细列表',
+				  icon: 'profile',
+				  hidden: true
+				  // permission: 'M_warehouseList'
+                }
+			  }
+            ]
+		  },
+		  {
+            path: '/reportData/allocationOrderTotal',
+            redirect: '/reportData/allocationOrderTotal/list',
+            name: 'allocationOrderTotal',
+            component: RouteView,
+            meta: {
+			  title: '调拨开单统计',
+			  icon: 'profile'
+			  // permission: 'M_warehouseList'
+            },
+            hideChildrenInMenu: true,
+            children: [
+			  {
+                path: 'list',
+                name: 'allocationOrderTotalList',
+                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationOrderTotal/list.vue'),
+                meta: {
+				  title: '调拨开单列表',
+				  icon: 'profile',
+				  hidden: true
+				  // permission: 'M_warehouseList'
+                }
+			  }
+            ]
+		  },
+		  {
+            path: '/reportData/allocationDetails',
+            redirect: '/reportData/allocationDetails/list',
+            name: 'allocationDetails',
+            component: RouteView,
+            meta: {
+			  title: '调拨明细',
+			  icon: 'profile'
+			  // permission: 'M_warehouseList'
+            },
+            hideChildrenInMenu: true,
+            children: [
+			  {
+                path: 'list',
+                name: 'allocationDetailsList',
+                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationDetails/list.vue'),
+                meta: {
+				  title: '调拨明细列表',
+				  icon: 'profile',
+				  hidden: true
+				  // permission: 'M_warehouseList'
+                }
+			  }
+            ]
+		  },
+		  {
+            path: '/reportData/salesReturnsReport',
+            redirect: '/reportData/salesReturnsReport/list',
+            name: 'salesReturnsReport',
+            component: RouteView,
+            meta: {
+			  title: '销售退货单报表',
+			  icon: 'profile'
+			  // permission: 'M_warehouseList'
+            },
+            hideChildrenInMenu: true,
+            children: [
+			  {
+                path: 'list',
+                name: 'salesReturnsReportList',
+                component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnsReport/list.vue'),
+                meta: {
+				  title: '销售退货单报表列表',
+				  icon: 'profile',
+				  hidden: true
+				  // permission: 'M_warehouseList'
+                }
+			  }
+            ]
+		  }
         ]
       },
       // 权限管理

+ 25 - 0
src/libs/reportData.js

@@ -66,5 +66,30 @@ export default {
 	  { id: '1', area: '1区', province: '黑龙江省', returnNo: 'CGTK20210715666497351035', customerName: '箭冠汽配潮州潮安店', targetName: '配送品费用', dealerLevelDictValue: '市级经销商', directCustomName: '箭冠汽配哈尔滨南港店', IndirectCustomName: '', returnFinTime: '2020-08-12 10:20:36', type: '箭牌', totalCost: 100.00, totalPrice: 100.00, auditTime: 100.00, allocateTypeName: '雨刮片', stateDictValue: '箭牌A3系列有骨雨刮片', printStateDictValue: 'JW_A3018', productUnit: '支', printCount: undefined, printCounts: 1, printCsounts: 0, printdCounts: 1, prfintCounts: 9.00, printCogunts: 9.00, phrintCounts: 7.50, printCsountss: 7.50, prinftCounts: 9.00, prisntCogunts: 1.50, prinxtCounts: 0.00, printCocunts: '0', printCvounts: 0, printCgounts: '0.00', printCouhnts: '0.00', printCournts: '0.00' },
 	  { id: '2', area: '2区', province: '黑龙江省', returnNo: 'CGTK20210815666497311458', customerName: '箭冠汽配潮州潮安店', targetName: '促销费用', dealerLevelDictValue: '市级经销商', directCustomName: '箭冠汽配哈尔滨南港店', IndirectCustomName: '', returnFinTime: '2020-10-12 16:37:20', type: '箭牌', productUnit: '支', totalCost: 100.00, totalPrice: 100.00, auditTime: 100.00, allocateTypeName: '雨刮片', stateDictValue: '箭牌A3系列有骨雨刮片', printStateDictValue: 'JW_A3019', printCount: undefined, printCounts: 1, printCsounts: 0, printdCounts: 1, prfintCounts: 9.00, printCogunts: 9.00, phrintCounts: 7.50, printCsountss: 7.50, prinftCounts: 9.00, prisntCogunts: 1.50, prinxtCounts: 0.00, printCocunts: '0', printCvounts: 0, printCgounts: '0.00', printCouhnts: '0.00', printCournts: '0.00' },
 	  { id: '3', area: '1区', province: '黑龙江省', returnNo: 'CGTK20210815666497357845', customerName: '箭冠汽配潮州潮安店', targetName: '配送品费用', dealerLevelDictValue: '市级经销商', directCustomName: '箭冠汽配哈尔滨南港店', IndirectCustomName: '', returnFinTime: '2021-03-12 15:36:28', type: '冠牌', productUnit: '支', totalCost: 100.00, totalPrice: 100.00, auditTime: 100.00, allocateTypeName: '雨刮片', stateDictValue: '冠牌A3系列有骨雨刮片', printStateDictValue: 'GW_A3028', printCount: undefined, printCounts: 1, printCsounts: 0, printdCounts: 1, pprfintCounts: 9.00, printCogunts: 9.00, phrintCounts: 7.50, printCsountss: 7.50, prinftCounts: 9.00, prisntCogunts: 1.50, prinxtCounts: 0.00, printCocunts: '0', printCvounts: 0, printCgounts: '0.00', printCouhnts: '0.00', printCournts: '0.00' }
+  ],
+  salesDetailsList: [
+	    { id: 1, data1: 'A区', data2: 'XS210680000001', data3: '广东省', data4: '张先生', data5: '省级服务中心', data6: undefined, data7: undefined, data8: '2021-07-15 11:25:36', data9: '2021-07-15 11:45:12', data10: '箭牌', data11: '火花塞', data12: 'TBU刹车片感应线 A4旅行车(8K5)  [2007-]A4四门轿车 (8K2)  [2007-]Q5  前感应线', data13: 'TB-11048', data14: '件', data15: '2', data16: '2', data17: '30', data18: '31', data19: '31', data20: '37', data21: '0', data22: '0', data23: 'zhang-dan' },
+	    { id: 2, data1: 'C区', data2: 'XS210680000010', data3: '陕西省', data4: '李', data5: '省级服务中心', data6: undefined, data7: undefined, data8: '2021-07-15 18:05:36', data9: '2021-07-15 17:23:12', data10: '箭牌', data11: '火花塞', data12: 'TBU刹车片感应线 A4旅行车(8K5)  [2007-]A4四门轿车 (8K2)  [2007-]Q5  前感应线', data13: 'TB-11048', data14: '件', data15: '2', data16: '2', data17: '30', data18: '31', data19: '31', data20: '37', data21: '0', data22: '0', data23: 'lisa' },
+	    { id: 3, data1: 'A区', data2: 'XS210680500001', data3: '广东省', data4: '陈', data5: '省级服务中心', data6: undefined, data7: undefined, data8: '2021-07-15 11:25:36', data9: '2021-07-15 11:45:12', data10: '箭牌', data11: '火花塞', data12: 'TBU刹车片感应线 A4旅行车(8K5)  [2007-]A4四门轿车 (8K2)  [2007-]Q5  前感应线', data13: 'TB-11048', data14: '件', data15: '2', data16: '2', data17: '30', data18: '31', data19: '31', data20: '37', data21: '0', data22: '0', data23: 'jack' }
+	  ],
+	  allocationOrderTotalList: [
+	    { id: 1, data1: 'DB210680000061', data2: '2021-07-12 09:22:01', data3: '箭冠汽配郑州金水店', data4: '1', data5: '10.02', data6: '-10.02', data7: 'zhangx' },
+	    { id: 2, data1: 'DB210680000060', data2: '2021-07-11 08:55:26', data3: '箭冠汽配郑州立达店', data4: '156', data5: '1447.20', data6: '-1447.20', data7: 'zhangx' },
+	    { id: 3, data1: 'DB210680000059', data2: '2021-07-11 15:01:10', data3: '箭冠汽配安宁立达店', data4: '12', data5: '86.40', data6: '-86.40', data7: 'suffa' },
+	    { id: 4, data1: 'DB210680000058', data2: '2021-07-11 15:00:01', data3: '箭冠汽配安宁立达店', data4: '0', data5: '0', data6: '0', data7: 'zhangx' },
+	    { id: 5, data1: 'DB210680000057', data2: '2021-07-11 14:22:45', data3: '箭冠汽配吕梁离石店', data4: '2', data5: '30', data6: '-30', data7: 'suffa' },
+	    { id: 6, data1: 'DB210680000056', data2: '2021-07-11 14:18:36', data3: '箭冠汽配郑州金水店', data4: '1', data5: '10.02', data6: '-10.02', data7: 'zhangx' },
+	    { id: 7, data1: 'DB210680000055', data2: '2021-07-11 13:57:02', data3: '箭冠汽配义乌沈村店', data4: '1260', data5: '7080.00', data6: '-7080.00', data7: 'suffa' },
+	    { id: 8, data1: 'DB210680000054', data2: '2021-07-11 11:38:01', data3: '箭冠汽配郑州华南城店', data4: '150', data5: '831.00', data6: '-831.00', data7: 'kf02' },
+	    { id: 9, data1: 'DB210680000053', data2: '2021-07-10 18:36:54', data3: '箭冠汽配郑州金水店', data4: '240', data5: '1520.00', data6: '-1520.00', data7: 'kf01' },
+	    { id: 10, data1: 'DB210680000052', data2: '2021-07-10 17:45:25', data3: '箭冠汽配丽水龙泉店', data4: '1', data5: '70.23', data6: '-70.23', data7: 'suffa' },
+	    { id: 11, data1: 'DB210680000051', data2: '2021-07-10 16:52:36', data3: '箭冠汽配合肥三里街店', data4: '1', data5: '25.38', data6: '-25.38', data7: 'lily' }
+	  ],
+	  allocationDetailsList: [
+	    { id: 1, data1: 'A区/03区', data2: 'DB210680000061', data3: '2021-07-12 09:22:01', data4: '河南省', data5: '箭冠汽配丽水龙泉店', data6: '省级服务中心', data7: '箭牌', data8: '滤清器', data9: '箭牌空气滤清器 BMW X6 3.5 X5', data10: 'JA 23097U', data11: '1', data12: '个', data13: '10.00', data14: '15.00', data15: '20.00', data16: '5.00', data17: '仓库一', data18: '仓位一', data19: 'zhangx', data20: '客诉样品调拨' },
+	    { id: 2, data1: 'A区/03区', data2: 'DB210680000061', data3: '2021-07-12 09:22:01', data4: '甘肃省', data5: '箭冠汽配合肥三里街店', data6: '省级服务中心', data7: '箭牌', data8: '滤清器', data9: '箭牌空气滤清器 BMW X6 3.5 X5', data10: 'JA 23097U', data11: '1', data12: '个', data13: '12.00', data14: '33.00', data15: '10.00', data16: '23.00', data17: '仓库一', data18: '仓位一', data19: 'zhangx', data20: '客诉样品调拨' },
+	    { id: 3, data1: 'A区/03区', data2: 'DB210680000061', data3: '2021-07-12 09:22:01', data4: '甘肃省', data5: '箭冠汽配合肥三里街店', data6: '省级服务中心', data7: '箭牌', data8: '滤清器', data9: '箭牌空气滤清器 BMW X6 3.5 X5', data10: 'JA 23097U', data11: '1', data12: '个', data13: '12.00', data14: '18.00', data15: '12.00', data16: '6.00', data17: '仓库一', data18: '仓位一', data19: 'zhangx', data20: '客诉样品调拨' },
+	    { id: 4, data1: 'A区/03区', data2: 'DB210680000061', data3: '2021-07-12 09:22:01', data4: '甘肃省', data5: '箭冠汽配丽水龙泉店', data6: '省级服务中心', data7: '箭牌', data8: '滤清器', data9: '箭牌空气滤清器 BMW X6 3.5 X5', data10: 'JA 23097U', data11: '1', data12: '个', data13: '11.00', data14: '17.00', data15: '11.00', data16: '6.00', data17: '仓库一', data18: '仓位一', data19: 'zhangx', data20: '特殊申请促销调拨' },
+	    { id: 5, data1: 'A区/03区', data2: 'DB210680000061', data3: '2021-07-12 09:22:01', data4: '甘肃省', data5: '箭冠汽配郑州华南城店', data6: '省级服务中心', data7: '箭牌', data8: '滤清器', data9: '箭牌空气滤清器 BMW X6 3.5 X5', data10: 'JA 23097U', data11: '1', data12: '个', data13: '10.00', data14: '23.00', data15: '10.00', data16: '13.00', data17: '仓库一', data18: '仓位一', data19: 'zhangx', data20: '特殊申请促销调拨' }
   ]
 }

+ 277 - 0
src/views/reportData/allocationDetails/list.vue

@@ -0,0 +1,277 @@
+<template>
+  <a-card size="small" :bordered="false" class="provinceTypeSalesDetailsList-wrap">
+    <!-- 搜索条件 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+        <a-row :gutter="15">
+          <a-col :md="6" :sm="24">
+            <a-form-item label="调拨开单日期">
+              <rangeDate ref="rangeDate" @change="dateChange" />
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="调拨单号">
+              <a-input id="bulkWarehousingOrderList-productCode" v-model.trim="queryParam.productCode" allowClear placeholder="请输入销售单号"/>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="产品编码">
+              <a-input id="productPricingList-queryWord" v-model.trim="queryParam.queryWord" allowClear placeholder="请输入产品编码"/>
+            </a-form-item>
+          </a-col>
+          <template v-if="advanced">
+            <a-col :md="6" :sm="24">
+              <a-form-item label="所在区域">
+                <a-select id="provinceTypeSalesDetailsList-allocateTypeSn" v-model="queryParam.allocateTypeSn" placeholder="请选择区域" allowClear >
+                  <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="省份">
+                <a-select id="provinceTypeSalesDetailsList-state" v-model="queryParam.state" placeholder="请选择省份" allowClear >
+                  <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="排序">
+                <a-select id="provinceTypeSalesDetailsList-state" v-model="queryParam.state" placeholder="请选择排序" allowClear >
+                  <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="操作员">
+                <a-select id="provinceTypeSalesDetailsList-state" v-model="queryParam.state" placeholder="请选择操作员" allowClear >
+                  <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="产品名称">
+                <a-input id="productPricingList-name" v-model.trim="queryParam.name" allowClear placeholder="请输入产品名称"/>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="客户名称">
+                <a-input id="productPricingList-name" v-model.trim="queryParam.name" allowClear placeholder="请输入客户名称"/>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="产品品牌">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="客户级别">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="品牌类别">
+                <v-select code="BRAND_TYPE" id="productBrandList-brandType" v-model="queryParam.brandType" allowClear placeholder="请选择品牌分类"></v-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="二级分类">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="三级分类">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="盘点区间日期">
+                <a-checkbox @change="onChange"></a-checkbox>
+              </a-form-item>
+            </a-col>
+          </template>
+          <a-col :md="6" :sm="24">
+            <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productPricingList-refresh">查询</a-button>
+            <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="productPricingList-reset">重置</a-button>
+            <a @click="advanced=!advanced" style="margin-left: 8px">
+              {{ advanced ? '收起' : '展开' }}
+              <a-icon :type="advanced ? 'up' : 'down'"/>
+            </a>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 列表 -->
+    <s-table
+      class="sTable"
+      ref="table"
+      size="default"
+      :rowKey="(record) => record.id"
+      :columns="columns"
+      :data="loadData"
+      :scroll="{ x: 2960 }"
+      bordered>
+      <template slot="footer" slot-scope="currentPageData">
+        <a-row :gutter="15">
+          <a-col :md="4" :sm="24">
+            总数量:263320
+          </a-col>
+          <a-col :md="4" :sm="24">
+            总进价:1,827,311.38
+          </a-col>
+          <a-col :md="4" :sm="24">
+            总毛利:1187.11
+          </a-col>
+          <a-col :md="4" :sm="24">
+            总售价:2,233,739.75
+          </a-col>
+        </a-row>
+      </template>
+    </s-table>
+  </a-card>
+</template>
+
+<script>
+import { STable, VSelect } from '@/components'
+import reportData from '@/libs/reportData'
+import rangeDate from '@/views/common/rangeDate.vue'
+// import { allocateBillList, allocateBillDel, allocateBillAudit, allocateBillExport } from '@/api/allocateBill'
+// import { allocateTypeAllList } from '@/api/allocateType'
+export default {
+  components: { STable, VSelect, rangeDate },
+  data () {
+    return {
+      advanced: false, // 高级搜索 展开/关闭
+      tableHeight: 0,
+      queryParam: { //  查询条件
+        beginDate: '',
+        endDate: '',
+        targetName: '', //  调往对象
+        allocateTypeSn: undefined, //  调拨类型
+        state: undefined, //  业务状态
+        allocateNo: '' //  调拨单号
+      },
+      disabled: false, //  查询、重置按钮是否可操作
+      exportLoading: false,
+      checkVal: '',
+      reportData: reportData.reportDataList,
+      columns: [
+        { title: '区域', dataIndex: 'data1', width: 200, align: 'center', fixed: 'left', customRender: function (text) { return text || '--' } },
+        { title: '调拨单号', dataIndex: 'data2', width: 200, align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
+        { title: '调拨开单日期', dataIndex: 'data3', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '省份', dataIndex: 'data4', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '客户名称', dataIndex: 'data5', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '客户类型', dataIndex: 'data6', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '品牌', dataIndex: 'data7', width: 200, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '二级类别', dataIndex: 'data8', width: 200, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '产品名称', dataIndex: 'data9', width: 120, align: 'center', sorter: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '产品编码', dataIndex: 'data10', width: 120, align: 'center', sorter: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '调拨数量', dataIndex: 'data11', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '单位', dataIndex: 'data12', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '进价', dataIndex: 'data13', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '售价', dataIndex: 'data14', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '总进价', dataIndex: 'data15', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '毛利', dataIndex: 'data16', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '仓库', dataIndex: 'data17', width: 120, align: 'center', sorter: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '仓位', dataIndex: 'data18', width: 120, align: 'center', sorter: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '操作员', dataIndex: 'data19', width: 120, align: 'center', sorter: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '调拨类型', dataIndex: 'data20', width: 140, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
+      ],
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        this.disabled = true
+        // return allocateBillList(Object.assign(parameter, this.queryParam)).then(res => {
+        //   const data = res.data
+        //   const no = (data.pageNo - 1) * data.pageSize
+        //   for (var i = 0; i < data.list.length; i++) {
+        //     data.list[i].no = no + i + 1
+        //   }
+        //   this.disabled = false
+        //   return data
+        // })
+        const _this = this
+        return new Promise(function (resolve, reject) {
+          const data = {
+            pageNo: 1,
+            pageSize: 10,
+            list: reportData.allocationDetailsList,
+            count: 10
+          }
+          for (var i = 0; i < data.list.length; i++) {
+            data.list[i].no = i + 1
+          }
+          _this.disabled = false
+          resolve(data)
+        })
+      },
+      allocateTypeList: [], //  调拨类型
+      openModal: false //  新增编辑  弹框
+    }
+  },
+  methods: {
+    handleFooterShow (currentPageData) {
+      console.log(currentPageData, '[=currentPageData]')
+    },
+    //  创建时间  change
+    dateChange (date) {
+      this.queryParam.beginDate = date[0]
+      this.queryParam.endDate = date[1]
+    },
+    // 选择盘点日期
+    onChange (e) {
+      console.log(e)
+      // this.checkVal
+    },
+
+    //  重置
+    resetSearchForm () {
+      this.$refs.rangeDate.resetDate()
+      this.queryParam.beginDate = ''
+      this.queryParam.endDate = ''
+      this.queryParam.targetName = ''
+      this.queryParam.allocateTypeSn = undefined
+      this.queryParam.state = undefined
+      this.queryParam.allocateNo = ''
+      this.$refs.table.refresh(true)
+    }
+  },
+  beforeRouteEnter (to, from, next) {
+    next(vm => {})
+  }
+}
+</script>

+ 178 - 0
src/views/reportData/allocationOrderTotal/list.vue

@@ -0,0 +1,178 @@
+<template>
+  <a-card size="small" :bordered="false" class="provinceTypeSalesDetailsList-wrap">
+    <!-- 搜索条件 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+        <a-row :gutter="15">
+          <a-col :md="6" :sm="24">
+            <a-form-item label="调拨开单日期">
+              <rangeDate ref="rangeDate" @change="dateChange" />
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="调拨单号">
+              <a-input id="bulkWarehousingOrderList-productCode" v-model.trim="queryParam.productCode" allowClear placeholder="请输入销售单号"/>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="操作员">
+              <a-select id="provinceTypeSalesDetailsList-allocateTypeSn" v-model="queryParam.allocateTypeSn" placeholder="请选择区域" allowClear >
+                <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
+              </a-select>
+            </a-form-item>
+          </a-col>
+          <template v-if="advanced">
+            <a-col :md="6" :sm="24">
+              <a-form-item label="调拨类型">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="盘点区间日期">
+                <a-checkbox @change="onChange"></a-checkbox>
+              </a-form-item>
+            </a-col>
+          </template>
+          <a-col :md="6" :sm="24">
+            <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productPricingList-refresh">查询</a-button>
+            <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="productPricingList-reset">重置</a-button>
+            <a @click="advanced=!advanced" style="margin-left: 8px">
+              {{ advanced ? '收起' : '展开' }}
+              <a-icon :type="advanced ? 'up' : 'down'"/>
+            </a>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 列表 -->
+    <s-table
+      class="sTable"
+      ref="table"
+      size="default"
+      :rowKey="(record) => record.id"
+      :columns="columns"
+      :data="loadData"
+      bordered>
+      <template slot="footer" slot-scope="currentPageData">
+        <a-row :gutter="15">
+          <a-col :md="4" :sm="24">
+            总数量:752325
+          </a-col>
+          <a-col :md="4" :sm="24">
+            总进价:4,405,812.22
+          </a-col>
+          <a-col :md="4" :sm="24">
+            总毛利:-4,405,812.22
+          </a-col>
+        </a-row>
+      </template>
+    </s-table>
+  </a-card>
+</template>
+
+<script>
+import { STable, VSelect } from '@/components'
+import reportData from '@/libs/reportData'
+import rangeDate from '@/views/common/rangeDate.vue'
+// import { allocateBillList, allocateBillDel, allocateBillAudit, allocateBillExport } from '@/api/allocateBill'
+// import { allocateTypeAllList } from '@/api/allocateType'
+export default {
+  components: { STable, VSelect, rangeDate },
+  data () {
+    return {
+      advanced: false, // 高级搜索 展开/关闭
+      tableHeight: 0,
+      queryParam: { //  查询条件
+        beginDate: '',
+        endDate: '',
+        targetName: '', //  调往对象
+        allocateTypeSn: undefined, //  调拨类型
+        state: undefined, //  业务状态
+        allocateNo: '' //  调拨单号
+      },
+      disabled: false, //  查询、重置按钮是否可操作
+      exportLoading: false,
+      checkVal: '',
+      reportData: reportData.reportDataList,
+      columns: [
+        // { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
+        { title: '调拨单号', dataIndex: 'data1', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '调拨开单日期', dataIndex: 'data2', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户名称', dataIndex: 'data3', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '调拨数量', dataIndex: 'data4', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '进价', dataIndex: 'data5', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '毛利', dataIndex: 'data6', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '操作员', dataIndex: 'data7', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
+      ],
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        this.disabled = true
+        // return allocateBillList(Object.assign(parameter, this.queryParam)).then(res => {
+        //   const data = res.data
+        //   const no = (data.pageNo - 1) * data.pageSize
+        //   for (var i = 0; i < data.list.length; i++) {
+        //     data.list[i].no = no + i + 1
+        //   }
+        //   this.disabled = false
+        //   return data
+        // })
+        const _this = this
+        return new Promise(function (resolve, reject) {
+          const data = {
+            pageNo: 1,
+            pageSize: 10,
+            list: reportData.allocationOrderTotalList,
+            count: 10
+          }
+          for (var i = 0; i < data.list.length; i++) {
+            data.list[i].no = i + 1
+          }
+          _this.disabled = false
+          resolve(data)
+        })
+      },
+      allocateTypeList: [], //  调拨类型
+      openModal: false //  新增编辑  弹框
+    }
+  },
+  methods: {
+    handleFooterShow (currentPageData) {
+      console.log(currentPageData, '[=currentPageData]')
+    },
+    //  创建时间  change
+    dateChange (date) {
+      this.queryParam.beginDate = date[0]
+      this.queryParam.endDate = date[1]
+    },
+    // 选择盘点日期
+    onChange (e) {
+      console.log(e)
+      // this.checkVal
+    },
+
+    //  重置
+    resetSearchForm () {
+      this.$refs.rangeDate.resetDate()
+      this.queryParam.beginDate = ''
+      this.queryParam.endDate = ''
+      this.queryParam.targetName = ''
+      this.queryParam.allocateTypeSn = undefined
+      this.queryParam.state = undefined
+      this.queryParam.allocateNo = ''
+      this.$refs.table.refresh(true)
+    }
+  },
+  beforeRouteEnter (to, from, next) {
+    next(vm => {})
+  }
+}
+</script>

+ 269 - 0
src/views/reportData/salesDetails/list.vue

@@ -0,0 +1,269 @@
+<template>
+  <a-card size="small" :bordered="false" class="provinceTypeSalesDetailsList-wrap">
+    <!-- 搜索条件 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+        <a-row :gutter="15">
+          <a-col :md="6" :sm="24">
+            <a-form-item label="销售日期">
+              <rangeDate ref="rangeDate" @change="dateChange" />
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="销售单号">
+              <a-input id="bulkWarehousingOrderList-productCode" v-model.trim="queryParam.productCode" allowClear placeholder="请输入销售单号"/>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="产品编码">
+              <a-input id="productPricingList-queryWord" v-model.trim="queryParam.queryWord" allowClear placeholder="请输入产品编码"/>
+            </a-form-item>
+          </a-col>
+          <template v-if="advanced">
+            <a-col :md="6" :sm="24">
+              <a-form-item label="区域">
+                <a-select id="provinceTypeSalesDetailsList-allocateTypeSn" v-model="queryParam.allocateTypeSn" placeholder="请选择区域" allowClear >
+                  <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="省份">
+                <a-select id="provinceTypeSalesDetailsList-state" v-model="queryParam.state" placeholder="请选择省份" allowClear >
+                  <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="产品名称">
+                <a-input id="productPricingList-name" v-model.trim="queryParam.name" allowClear placeholder="请输入产品名称"/>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="客户名称">
+                <a-input id="productPricingList-name" v-model.trim="queryParam.name" allowClear placeholder="请输入客户名称"/>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="产品品牌">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="客户级别">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="品牌类别">
+                <v-select code="BRAND_TYPE" id="productBrandList-brandType" v-model="queryParam.brandType" allowClear placeholder="请选择品牌分类"></v-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="二级分类">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="三级分类">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="盘点区间日期">
+                <a-checkbox @change="onChange"></a-checkbox>
+              </a-form-item>
+            </a-col>
+          </template>
+          <a-col :md="6" :sm="24">
+            <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productPricingList-refresh">查询</a-button>
+            <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="productPricingList-reset">重置</a-button>
+            <a @click="advanced=!advanced" style="margin-left: 8px">
+              {{ advanced ? '收起' : '展开' }}
+              <a-icon :type="advanced ? 'up' : 'down'"/>
+            </a>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 列表 -->
+    <s-table
+      class="sTable"
+      ref="table"
+      size="default"
+      :rowKey="(record) => record.id"
+      :columns="columns"
+      :data="loadData"
+      :scroll="{ x: 3100 }"
+      bordered>
+      <template slot="footer" slot-scope="currentPageData">
+        <a-row :gutter="15">
+          <a-col :md="4" :sm="24">
+            数量:69
+          </a-col>
+          <a-col :md="4" :sm="24">
+            实售价:1130.36
+          </a-col>
+          <a-col :md="4" :sm="24">
+            开单价:1187.11
+          </a-col>
+          <a-col :md="4" :sm="24">
+            成本:1052.30
+          </a-col>
+          <a-col :md="4" :sm="24">
+            折后金额:1187.11
+          </a-col>
+        </a-row>
+      </template>
+    </s-table>
+  </a-card>
+</template>
+
+<script>
+import { STable, VSelect } from '@/components'
+import reportData from '@/libs/reportData'
+import rangeDate from '@/views/common/rangeDate.vue'
+// import { allocateBillList, allocateBillDel, allocateBillAudit, allocateBillExport } from '@/api/allocateBill'
+// import { allocateTypeAllList } from '@/api/allocateType'
+export default {
+  components: { STable, VSelect, rangeDate },
+  data () {
+    return {
+      advanced: false, // 高级搜索 展开/关闭
+      tableHeight: 0,
+      queryParam: { //  查询条件
+        beginDate: '',
+        endDate: '',
+        targetName: '', //  调往对象
+        allocateTypeSn: undefined, //  调拨类型
+        state: undefined, //  业务状态
+        allocateNo: '' //  调拨单号
+      },
+      disabled: false, //  查询、重置按钮是否可操作
+      exportLoading: false,
+      checkVal: '',
+      reportData: reportData.reportDataList,
+      columns: [
+        { title: '区域', dataIndex: 'data1', width: 200, align: 'center', fixed: 'left', customRender: function (text) { return text || '--' } },
+        { title: '销售单号', dataIndex: 'data2', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '省份', dataIndex: 'data3', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户名称', dataIndex: 'data4', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '客户类型', dataIndex: 'data5', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '直接绑定客户类型', dataIndex: 'data6', width: 200, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '间接绑定客户类型', dataIndex: 'data7', width: 200, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '开单日期', dataIndex: 'data8', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '销售日期', dataIndex: 'data9', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '品牌', dataIndex: 'data10', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '二级类别', dataIndex: 'data11', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '产品名称', dataIndex: 'data12', width: 120, align: 'center', ellipsis: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '产品编码', dataIndex: 'data13', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '单位', dataIndex: 'data14', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '产品批次', dataIndex: 'data15', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '销售数量', dataIndex: 'data16', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '成本价', dataIndex: 'data17', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '实售价', dataIndex: 'data18', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '开单价', dataIndex: 'data19', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '市级价', dataIndex: 'data20', width: 140, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '直接差价', dataIndex: 'data21', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '间接差价', dataIndex: 'data22', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '操作员', dataIndex: 'data23', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
+      ],
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        this.disabled = true
+        // return allocateBillList(Object.assign(parameter, this.queryParam)).then(res => {
+        //   const data = res.data
+        //   const no = (data.pageNo - 1) * data.pageSize
+        //   for (var i = 0; i < data.list.length; i++) {
+        //     data.list[i].no = no + i + 1
+        //   }
+        //   this.disabled = false
+        //   return data
+        // })
+        const _this = this
+        return new Promise(function (resolve, reject) {
+          const data = {
+            pageNo: 1,
+            pageSize: 10,
+            list: reportData.salesDetailsList,
+            count: 10
+          }
+          for (var i = 0; i < data.list.length; i++) {
+            data.list[i].no = i + 1
+          }
+          _this.disabled = false
+          resolve(data)
+        })
+      },
+      allocateTypeList: [], //  调拨类型
+      openModal: false //  新增编辑  弹框
+    }
+  },
+  methods: {
+    handleFooterShow (currentPageData) {
+      console.log(currentPageData, '[=currentPageData]')
+    },
+    //  创建时间  change
+    dateChange (date) {
+      this.queryParam.beginDate = date[0]
+      this.queryParam.endDate = date[1]
+    },
+    // 选择盘点日期
+    onChange (e) {
+      console.log(e)
+      // this.checkVal
+    },
+
+    //  重置
+    resetSearchForm () {
+      this.$refs.rangeDate.resetDate()
+      this.queryParam.beginDate = ''
+      this.queryParam.endDate = ''
+      this.queryParam.targetName = ''
+      this.queryParam.allocateTypeSn = undefined
+      this.queryParam.state = undefined
+      this.queryParam.allocateNo = ''
+      this.$refs.table.refresh(true)
+    }
+  },
+  beforeRouteEnter (to, from, next) {
+    next(vm => {})
+  }
+}
+</script>

+ 204 - 0
src/views/reportData/salesReturnsReport/list.vue

@@ -0,0 +1,204 @@
+<template>
+  <a-card size="small" :bordered="false" class="provinceTypeSalesDetailsList-wrap">
+    <!-- 搜索条件 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
+        <a-row :gutter="15">
+          <a-col :md="6" :sm="24">
+            <a-form-item label="退货完成日期">
+              <rangeDate ref="rangeDate" @change="dateChange" />
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="退货单号">
+              <a-input id="bulkWarehousingOrderList-productCode" v-model.trim="queryParam.productCode" allowClear placeholder="请输入销售单号"/>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="24">
+            <a-form-item label="产品编码">
+              <a-input id="productPricingList-queryWord" v-model.trim="queryParam.queryWord" allowClear placeholder="请输入产品编码"/>
+            </a-form-item>
+          </a-col>
+          <template v-if="advanced">
+            <a-col :md="6" :sm="24">
+              <a-form-item label="区域">
+                <a-select id="provinceTypeSalesDetailsList-allocateTypeSn" v-model="queryParam.allocateTypeSn" placeholder="请选择区域" allowClear >
+                  <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="省份">
+                <a-select id="provinceTypeSalesDetailsList-state" v-model="queryParam.state" placeholder="请选择省份" allowClear >
+                  <a-select-option v-for="item in allocateTypeList" :key="item.allocateTypeSn" :value="item.allocateTypeSn">{{ item.name }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="客户名称">
+                <a-input id="productPricingList-name" v-model.trim="queryParam.name" allowClear placeholder="请输入客户名称"/>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="客户级别">
+                <a-select
+                  placeholder="请选择"
+                  id="productPricingList-productBrandSn"
+                  allowClear
+                  v-model="queryParam.productBrandSn"
+                  :showSearch="true"
+                  option-filter-prop="children"
+                  :filter-option="filterOption">
+                  <a-select-option v-for="item in productBrandList" :key="item.brandSn" :value="item.brandSn">{{ item.brandName }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="盘点区间日期">
+                <a-checkbox @change="onChange"></a-checkbox>
+              </a-form-item>
+            </a-col>
+          </template>
+          <a-col :md="6" :sm="24">
+            <a-button style="margin-bottom: 18px;" type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="productPricingList-refresh">查询</a-button>
+            <a-button style="margin: 0 0 18px 8px" @click="resetSearchForm" :disabled="disabled" id="productPricingList-reset">重置</a-button>
+            <a @click="advanced=!advanced" style="margin-left: 8px">
+              {{ advanced ? '收起' : '展开' }}
+              <a-icon :type="advanced ? 'up' : 'down'"/>
+            </a>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 列表 -->
+    <s-table
+      class="sTable"
+      ref="table"
+      size="default"
+      :rowKey="(record) => record.id"
+      :columns="columns"
+      :data="loadData"
+      :scroll="{ x: 2300 }"
+      bordered>
+      <template slot="footer" slot-scope="currentPageData">
+        <a-row :gutter="15">
+          <a-col :md="4" :sm="24">
+            总数量:69
+          </a-col>
+          <a-col :md="4" :sm="24">
+            总进价:1130.36
+          </a-col>
+          <a-col :md="4" :sm="24">
+            总毛利:1187.11
+          </a-col>
+        </a-row>
+      </template>
+    </s-table>
+  </a-card>
+</template>
+
+<script>
+import { STable, VSelect } from '@/components'
+import reportData from '@/libs/reportData'
+import rangeDate from '@/views/common/rangeDate.vue'
+// import { allocateBillList, allocateBillDel, allocateBillAudit, allocateBillExport } from '@/api/allocateBill'
+// import { allocateTypeAllList } from '@/api/allocateType'
+export default {
+  components: { STable, VSelect, rangeDate },
+  data () {
+    return {
+      advanced: false, // 高级搜索 展开/关闭
+      tableHeight: 0,
+      queryParam: { //  查询条件
+        beginDate: '',
+        endDate: '',
+        targetName: '', //  调往对象
+        allocateTypeSn: undefined, //  调拨类型
+        state: undefined, //  业务状态
+        allocateNo: '' //  调拨单号
+      },
+      disabled: false, //  查询、重置按钮是否可操作
+      exportLoading: false,
+      checkVal: '',
+      reportData: reportData.reportDataList,
+      columns: [
+        { title: '退货单号', dataIndex: 'data1', width: 200, align: 'center', fixed: 'left', customRender: function (text) { return text || '--' } },
+        { title: '退货完成日期', dataIndex: 'data2', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户名称', dataIndex: 'data3', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '客户类型', dataIndex: 'data4', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '直接绑定客户类型', dataIndex: 'data5', width: 200, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '间接绑定客户类型', dataIndex: 'data6', width: 200, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '退货数量', dataIndex: 'data7', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '开单退货金额', dataIndex: 'data8', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '经销商价', dataIndex: 'data9', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '服务中心价', dataIndex: 'data10', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '特约加盟价', dataIndex: 'data11', width: 120, align: 'center', ellipsis: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '实售退货价', dataIndex: 'data12', width: 120, align: 'center', ellipsis: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '直接差价', dataIndex: 'data13', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '间接差价', dataIndex: 'data14', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '坏件数量', dataIndex: 'data15', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '操作员', dataIndex: 'data16', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
+      ],
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        this.disabled = true
+        // return allocateBillList(Object.assign(parameter, this.queryParam)).then(res => {
+        //   const data = res.data
+        //   const no = (data.pageNo - 1) * data.pageSize
+        //   for (var i = 0; i < data.list.length; i++) {
+        //     data.list[i].no = no + i + 1
+        //   }
+        //   this.disabled = false
+        //   return data
+        // })
+        const _this = this
+        return new Promise(function (resolve, reject) {
+          const data = {
+            pageNo: 1,
+            pageSize: 10,
+            list: reportData.salesReturnsReportList,
+            count: 10
+          }
+          for (var i = 0; i < data.list.length; i++) {
+            data.list[i].no = i + 1
+          }
+          _this.disabled = false
+          resolve(data)
+        })
+      },
+      allocateTypeList: [], //  调拨类型
+      openModal: false //  新增编辑  弹框
+    }
+  },
+  methods: {
+    handleFooterShow (currentPageData) {
+      console.log(currentPageData, '[=currentPageData]')
+    },
+    //  创建时间  change
+    dateChange (date) {
+      this.queryParam.beginDate = date[0]
+      this.queryParam.endDate = date[1]
+    },
+    // 选择盘点日期
+    onChange (e) {
+      console.log(e)
+      // this.checkVal
+    },
+
+    //  重置
+    resetSearchForm () {
+      this.$refs.rangeDate.resetDate()
+      this.queryParam.beginDate = ''
+      this.queryParam.endDate = ''
+      this.queryParam.targetName = ''
+      this.queryParam.allocateTypeSn = undefined
+      this.queryParam.state = undefined
+      this.queryParam.allocateNo = ''
+      this.$refs.table.refresh(true)
+    }
+  },
+  beforeRouteEnter (to, from, next) {
+    next(vm => {})
+  }
+}
+</script>