Browse Source

齐套率报表列表

jbb 2 years ago
parent
commit
1dbb629e57
2 changed files with 61 additions and 87 deletions
  1. 9 0
      src/api/reportForms/full-rate-table.js
  2. 52 87
      src/views/reportForms/full-rate-table.vue

+ 9 - 0
src/api/reportForms/full-rate-table.js

@@ -1 +1,10 @@
 /** 报表 -- 齐套率报表 **/
+/** 报表 -- 订单数据统计报表 **/
+import { getAction, postAction, deleteAction } from '@/api/manage'
+
+// 分页查询(内部、外部)
+const fullRateList = params => getAction('/report/fullSetRate/queryListInfo', params)
+
+
+
+export { fullRateList }

+ 52 - 87
src/views/reportForms/full-rate-table.vue

@@ -151,6 +151,7 @@ import emailMsgModal from '@views/reportForms/full-rate-table/emailMsgModal.vue'
 import monthChartModal from '@views/reportForms/full-rate-table/monthChartModal.vue'
 import departmentChartModal from '@views/reportForms/full-rate-table/departmentChartModal.vue'
 import Detail from '@views/reportForms/full-rate-table/detail.vue'
+import { fullRateList } from '@api/reportForms/full-rate-table'
 export default {
   name: 'Fullratetable', // 齐套率报表
   mixins: [JeecgListMixin],
@@ -164,7 +165,7 @@ export default {
       fullrateColumns: [
         {
           title: '出库齐套',
-          dataIndex: 'outboundSet',
+          dataIndex: 'fullSetOfDelivery',
           width: 120,
           fixed: 'left',
           className: 'replacecolor'
@@ -176,6 +177,12 @@ export default {
           fixed: 'left',
           customRender: t => ellipsis(t),
           className: 'replacecolor'
+        }, 
+        {
+          title: '款号',
+          dataIndex: 'styleNumber',
+          width: 120,
+          className: 'replacecolor'
         },
 
         {
@@ -186,39 +193,16 @@ export default {
         },
         {
           title: '订单编号',
-          dataIndex: 'orderNum',
+          dataIndex: 'subcontractOrderNo',
           width: 120,
           className: 'replacecolor'
         },
         {
           title: '订单数量',
-          dataIndex: 'orderQuantity',
-          width: 120,
-          className: 'replacecolor'
-        },
-
-        {
-          title: '颜色',
-          dataIndex: 'color',
-          width: 120,
-          customRender: t => ellipsis(t),
-          className: 'replacecolor'
-        },
-        {
-          title: '门幅',
-          dataIndex: 'larghezza',
+          dataIndex: 'subcontractOrderQuantity',
           width: 120,
           className: 'replacecolor'
         },
-        //  {
-        //   title: '创建时间',
-        //   dataIndex: 'createTime',
-        //   align: 'center',
-        //   sorter: true,
-        //   customRender: text => {
-        //     return moment(text).format('YYYY-MM-DD')
-        //   }
-        // },
         {
           title: '交期',
           dataIndex: 'deliveryDate',
@@ -238,102 +222,77 @@ export default {
 
           className: 'replacecolor'
         },
-        {
-          title: '存货名称',
-          dataIndex: 'inventoryName',
-          width: 120,
-          customRender: t => ellipsis(t),
-          className: 'replacecolor'
-        },
-
-        {
-          title: '存货编码',
-          dataIndex: 'cinvcode',
-          width: 120,
-          className: 'replacecolor'
-        },
-        {
-          title: '子件用量',
-          dataIndex: 'dosageSon',
-          width: 120,
-          className: 'replacecolor'
-        },
         {
           title: '存货上游订单数量',
-          dataIndex: 'upstreamOrdersInventoryNum',
-          width: 120,
+          dataIndex: 'salesOrderQuantity1',
+          width: 170,
+          customRender: t => ellipsis(t),
           className: 'replacecolor'
         },
         {
           title: '累计出库数量',
-          dataIndex: 'outQuantityTotal',
+          dataIndex: 'cumulativeIssueQuantity',
           width: 120,
+          customRender: t => ellipsis(t),
           className: 'replacecolor'
         },
         {
           title: '累计准时出库数量',
-          dataIndex: 'outQuantityOnTime',
-          width: 120,
+          dataIndex: 'cumulativeOnTimeDeliveryQuantity',
+          width: 170,
+          customRender: t => ellipsis(t),
           className: 'replacecolor'
         },
         {
           title: '累计延迟出库数量',
-          dataIndex: 'outQuantityLate',
-          width: 120,
+          dataIndex: 'cumulativeDelayedDeliveryQty',
+          width: 170,
+          customRender: t => ellipsis(t),
           className: 'replacecolor'
         },
         {
           title: '未出库数量',
-          dataIndex: 'notOutQuantity',
+          dataIndex: 'quantityNotIssued',
           width: 120,
+          customRender: t => ellipsis(t),
           className: 'replacecolor'
         },
-        //  {
-        //   title: '创建时间',
-        //   dataIndex: 'createTime',
-        //   align: 'center',
-        //   sorter: true,
-        //   customRender: text => {
-        //     return moment(text).format('YYYY-MM-DD')
-        //   }
-        // },
         {
           title: '预计发货日期',
-          dataIndex: 'estimatedShipDate',
+          dataIndex: 'estimatedDeliveryDate',
           width: 120,
+          customRender: t => ellipsis(t),
           className: 'replacecolor'
         },
+
         {
           title: '最早出库日期',
-          dataIndex: 'earliestOutdate',
+          dataIndex: 'earliestIssueDate',
           width: 120,
           className: 'replacecolor'
         },
         {
           title: '最晚出库日期',
-          dataIndex: 'latestOutDate',
+          dataIndex: 'latestIssueDate',
           width: 120,
           className: 'replacecolor'
         },
         {
           title: '出库率',
-          dataIndex: 'outRate',
-          width: 90,
-          fixed: 'right',
+          dataIndex: 'deliveryRate',
+          width: 120,
           className: 'replacecolor'
         },
         {
           title: '区间出库率',
-          dataIndex: 'sectionOutRate',
+          dataIndex: 'intervalDeliveryRate',
           width: 120,
-          fixed: 'right',
           className: 'replacecolor'
         },
         {
           title: '齐套率',
-          dataIndex: 'fullRate',
-          width: 90,
-          fixed: 'right',
+          dataIndex: 'fullSetRate',
+          width: 120,
           className: 'replacecolor'
         },
         {
@@ -366,18 +325,6 @@ export default {
 
       // 查询条件
       queryParam: {
-        startYearMonth: '',
-        endYearMonth: '',
-        sectionData: '', // 区间
-        department: '',
-        outboundSet: '', // 出库齐套
-        sourceOrderNo: '', // 来源订单号
-        salesOrderQuantity: '', // 销售订单数量
-        orderNum: '', // 订单编号
-        orderQuantity: '', // 订单数量
-        color: '',
-        deliveryDate: '', // 交期
-        salesman: '' // 业务员
       },
 
       url: {
@@ -391,13 +338,31 @@ export default {
     }
   },
   created() {
-    // this.getAdPaListClothes()
+    this.getfullrateData()
   },
   // html渲染出来后,操作dom
   mounted() {
     this.loadingChart()
   },
   methods: {
+    getfullrateData(){
+      this.$nextTick(() => {
+        fullRateList(this.queryParam).then(res => {
+          if (res.success) {
+            debugger
+            // that.orderListData = res.result.records;
+            // that.pagination = {
+            //   total: res.result.total,
+            //   current: res.result.current,
+            //   pageSize: res.result.size
+            // }
+          }else{
+              that.$message.error(res.message);
+          }
+          
+        })
+      })
+    },
     loadingChart() {
       setTimeout(() => {
         this.loading = false