|
@@ -8,7 +8,7 @@
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="订单号">
|
|
|
- <a-input placeholder="请输入订单号" v-model="queryParam.orderNum"></a-input>
|
|
|
+ <a-input placeholder="请输入订单号" v-model="queryParam.csrccode"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
@@ -37,7 +37,7 @@
|
|
|
<template v-if="toggleSearchStatus">
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="订单类型">
|
|
|
- <a-select placeholder="请选择订单类型" v-model="queryParam.orderType">
|
|
|
+ <a-select placeholder="请选择订单类型" v-model="queryParam.iOrderType">
|
|
|
<a-select-option :value="''">请选择</a-select-option>
|
|
|
<a-select-option :value="0">订单类型1</a-select-option>
|
|
|
<a-select-option :value="1">订单类型2</a-select-option>
|
|
@@ -48,13 +48,13 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="供应商">
|
|
|
- <a-input placeholder="请输入供应商" v-model="queryParam.supplier"></a-input>
|
|
|
+ <a-input placeholder="请输入供应商" v-model="queryParam.cVenCode"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="计划单号">
|
|
|
- <a-input placeholder="请输入计划单号" v-model="queryParam.planNum"></a-input>
|
|
|
+ <a-input placeholder="请输入计划单号" v-model="queryParam.cPlanLotNumber"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</template>
|
|
@@ -102,6 +102,8 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import moment from 'moment'
|
|
|
|
|
|
+import { supplyCapList } from '@api/reportForms/supply-capacity-table'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'SupplyCapacityTable', // 供应商产能报表
|
|
|
mixins: [JeecgListMixin],
|
|
@@ -115,19 +117,19 @@ export default {
|
|
|
{
|
|
|
title: '订单号',
|
|
|
width: 120,
|
|
|
- dataIndex: 'orderNum',
|
|
|
+ dataIndex: 'csrccode',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: '计划单号',
|
|
|
width: 120,
|
|
|
- dataIndex: 'planNum',
|
|
|
+ dataIndex: 'cPlanLotNumber',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- { title: '部门', width: 120, dataIndex: 'department', className: 'replacecolor' },
|
|
|
- { title: '业务员', width: 120, dataIndex: 'salesman', className: 'replacecolor' },
|
|
|
- { title: '供应商', width: 120, dataIndex: 'supplier', className: 'replacecolor' },
|
|
|
+ { title: '部门', width: 120, dataIndex: 'cDepCode', className: 'replacecolor' },
|
|
|
+ { title: '业务员', width: 120, dataIndex: 'cPersonCode', className: 'replacecolor' },
|
|
|
+ { title: '供应商', width: 120, dataIndex: 'cVenCode', className: 'replacecolor' },
|
|
|
// customRender: function(text) {
|
|
|
// if (text == '1') {
|
|
|
// return '销售类型1'
|
|
@@ -142,55 +144,74 @@ export default {
|
|
|
// return '销售类型4'
|
|
|
// }
|
|
|
// }
|
|
|
- { title: '供应商类型', width: 120, dataIndex: 'supplierType', className: 'replacecolor' },
|
|
|
- { title: '订单类型', width: 120, dataIndex: 'orderType', className: 'replacecolor' },
|
|
|
+ { title: '供应商类型', width: 120, dataIndex: 'cVenCodeType', className: 'replacecolor' },
|
|
|
+ { title: '订单类型', width: 120, dataIndex: 'iOrderType', className: 'replacecolor' },
|
|
|
{
|
|
|
title: '数量',
|
|
|
width: 120,
|
|
|
- dataIndex: 'quantity',
|
|
|
+ dataIndex: 'iQuantity',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
- { title: '累计入库数量', width: 120, dataIndex: 'accumulativeInQuantity', className: 'replacecolor' },
|
|
|
+ { title: '累计入库数量', width: 120, dataIndex: 'iReceivedQTY', className: 'replacecolor' },
|
|
|
{ title: '单位', width: 100, dataIndex: 'unit', className: 'replacecolor' },
|
|
|
{
|
|
|
title: '计划到货月份',
|
|
|
width: 120,
|
|
|
- dataIndex: 'planDeliveryMonth',
|
|
|
- customRender: text => {
|
|
|
- return moment(text).format('YYYY-MM')
|
|
|
- },
|
|
|
+ dataIndex: 'arriveMonth',
|
|
|
+ // customRender: text => {
|
|
|
+ // return moment(text).format('YYYY-MM')
|
|
|
+ // },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '计划到货日期',
|
|
|
width: 120,
|
|
|
dataIndex: 'planDeliveryData',
|
|
|
- customRender: text => {
|
|
|
- return moment(text).format('YYYY-MM-DD')
|
|
|
- },
|
|
|
+ // customRender: text => {
|
|
|
+ // return moment(text).format('YYYY-MM-DD')
|
|
|
+ // },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{ title: '系数', width: 100, dataIndex: 'coefficient', className: 'replacecolor' }
|
|
|
],
|
|
|
- supplyCapacityData: [{ orderNum: '3749505' }],
|
|
|
+ supplyCapacityData: [],
|
|
|
loading: false, // 表格加载
|
|
|
// 查询条件
|
|
|
queryParam: {
|
|
|
- orderNum: '',
|
|
|
+ csrccode: '',
|
|
|
startDate: '',
|
|
|
endDate: '',
|
|
|
- orderType: '',
|
|
|
- supplier: '',
|
|
|
- planNum: ''
|
|
|
- }
|
|
|
- // dateFormat: 'YYYY-MM-DD'
|
|
|
+ iOrderType: '',
|
|
|
+ cVenCode: '',
|
|
|
+ cPlanLotNumber: '',
|
|
|
+ pageNo: '', // 当前页
|
|
|
+ pageSize: '-1' // 页面大小
|
|
|
+ },
|
|
|
+ // 分页
|
|
|
+ pagination: {
|
|
|
+ total: '',
|
|
|
+ current: 0,
|
|
|
+ pageSize: 0
|
|
|
+ },
|
|
|
+ dateFormat: 'YYYY-MM-DD'
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- // 渲染供应链产能报表
|
|
|
+ this.getSupplyCapList() // 渲染供应链产能报表
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ // 供应商产能数据
|
|
|
+ getSupplyCapList() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ supplyCapList(this.queryParam).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ console.log('查询结果:', res.result)
|
|
|
+ this.supplyCapacityData = res.result
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
// 月份供应链合计导出
|
|
|
monthlySupplyExport() {},
|
|
|
// 月份部门合计导出
|
|
@@ -198,11 +219,12 @@ export default {
|
|
|
|
|
|
// 查询按钮
|
|
|
searchQuery() {
|
|
|
- // 渲染染损列表
|
|
|
+ this.getSupplyCapList()
|
|
|
},
|
|
|
searchReset() {
|
|
|
// console.log('>>>>重置')
|
|
|
this.queryParam = {}
|
|
|
+ this.getSupplyCapList()
|
|
|
}
|
|
|
},
|
|
|
computed: {},
|