|
@@ -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);
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|