|
|
@@ -11,7 +11,7 @@
|
|
|
width="70%"
|
|
|
>
|
|
|
<el-card shadow="never">
|
|
|
- <searchTable @search="reload"></searchTable>
|
|
|
+ <searchTable :needProduces="needProduces" @search="reload"></searchTable>
|
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
|
:columns="columns"
|
|
|
@@ -54,6 +54,10 @@ export default {
|
|
|
default: () => {
|
|
|
return {};
|
|
|
}
|
|
|
+ },
|
|
|
+ needProduces: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
@@ -85,6 +89,28 @@ export default {
|
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 200
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'needProduce',
|
|
|
+ label: '订单类型',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 150,
|
|
|
+
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ let businessType =
|
|
|
+ cellValue == 1
|
|
|
+ ? '有客户生产性订单'
|
|
|
+ : cellValue == 2
|
|
|
+ ? '无客户生产性订单'
|
|
|
+ : cellValue == 4
|
|
|
+ ? '不定向订单'
|
|
|
+ : cellValue == 5
|
|
|
+ ? '委外订单'
|
|
|
+ : '库存式订单';
|
|
|
+
|
|
|
+ return businessType;
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'contractName',
|
|
|
label: '合同名称',
|
|
|
@@ -185,6 +211,9 @@ export default {
|
|
|
if (this.contactData.id) {
|
|
|
where['contactId'] = this.contactData.id;
|
|
|
}
|
|
|
+ if (this.needProduces) {
|
|
|
+ where['needProduces'] = this.needProduces;
|
|
|
+ }
|
|
|
return getTableList({
|
|
|
pageNum: page,
|
|
|
size: limit,
|