Browse Source

齐套率明细

jbb 2 years ago
parent
commit
6fd0d083f5

+ 39 - 17
src/views/reportForms/full-rate-table/detail.vue

@@ -22,8 +22,8 @@
           :footer="showTotal"
         >
         <!-- 齐套率 -->
-        <span slot="fullSetRate" slot-scope="text">
-            <a @click="sonFullSetRate">{{ text }}</a>
+        <span slot="fullSetRate" slot-scope="text,record">
+            <a @click="sonFullSetRate(record)">{{ text }}</a>
           </span>
         </a-table>
 
@@ -45,6 +45,7 @@
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import JEllipsis from '@/components/jeecg/JEllipsis'
 import JsonExcel from 'vue-json-excel'
+import { fullRateClick } from '@api/reportForms/full-rate-table'
 import SubcomponentRate from '@views/reportForms/full-rate-table/subcomponent-rate.vue'
 export default {
   name: 'Detail', // 明细 弹框
@@ -56,56 +57,68 @@ export default {
       detailColumns: [
         {
           title: '计划到货日期',
-          dataIndex: 'data',
+          dataIndex: 'dArriveDate',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '小po',
-          dataIndex: 'po',
+          dataIndex: 'smallPo',
           width: 80,
           className: 'replacecolor',
         },
         {
-          title: '存货名称',
-          dataIndex: 'chun',
+          title: '物料编码',
+          dataIndex: 'cInvCode',
           width: 80,
           className: 'replacecolor',
         },
         {
-          title: '存货编码',
-          dataIndex: 'chunma',
+          title: '物料名称',
+          dataIndex: 'cInvName',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '颜色',
-          dataIndex: 'color',
+          dataIndex: 'clour',
+          width: 80,
+          className: 'replacecolor',
+        },
+        {
+          title: '分销点',
+          dataIndex: 'distributionPoint',
+          width: 80,
+          className: 'replacecolor',
+        },
+        {
+          title: 'packID',
+          dataIndex: 'packId',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '交期',
-          dataIndex: 'jiaoqi',
+          dataIndex: 'deliveryDate',
           width: 80,
           className: 'replacecolor',
+          scopedSlots: { customRender: 'fullSetRate' }
         },
         {
-          title: '订单数量',
-          dataIndex: 'quantity',
+          title: '委外订单数量',
+          dataIndex: 'subcontractOrderQuantity',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '齐套率',
-          dataIndex: 'iquantity',
+          dataIndex: 'setRate',
           width: 80,
           className: 'replacecolor',
-          scopedSlots: { customRender: 'fullSetRate' }
         },
         {
           title: '累计入库数量',
-          dataIndex: 'iquantityadd',
+          dataIndex: 'cumulativeReceiptQty',
           width: 80,
           className: 'replacecolor',
         }
@@ -122,8 +135,17 @@ export default {
       backDetailTable(){
           this.detailModVis = false
       },
-      sonFullSetRate(){
-         this.$refs.SubcomponentRate.SubcomponentModVis = true
+      sonFullSetRate(record){
+        fullRateClick({mODetailsID:record.mODetailsID}).then(res => {
+          if (res.success) {
+            this.$refs.SubcomponentRate.SubcomponentModVis = true
+            this.$refs.SubcomponentRate.SubcomponentRateData = res.result.record
+          }else{
+              that.$message.error(res.message);
+          }
+          
+        })
+
       }
  }
 }

+ 8 - 8
src/views/reportForms/full-rate-table/subcomponent-rate.vue

@@ -49,49 +49,49 @@ export default {
       SubcomponentRateCloumns: [
         {
           title: '标准用量',
-          dataIndex: 'data',
+          dataIndex: 'quantityUsed',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '应领数据合计',
-          dataIndex: 'po',
+          dataIndex: 'totalQuantityReceivable',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '已领数据合计',
-          dataIndex: 'chun',
+          dataIndex: 'totalCollectedQuantity',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '颜色',
-          dataIndex: 'chunma',
+          dataIndex: 'clour',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '克重',
-          dataIndex: 'color',
+          dataIndex: 'gramWeight',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '尺码',
-          dataIndex: 'jiaoqi',
+          dataIndex: 'size',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '门幅',
-          dataIndex: 'quantity',
+          dataIndex: 'doorframe',
           width: 80,
           className: 'replacecolor',
         },
         {
           title: '齐套率',
-          dataIndex: 'iquantity',
+          dataIndex: 'setRate',
           width: 80,
           className: 'replacecolor',
         },