|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
{ label: '发布失败', value: '3' }
|
|
|
],
|
|
|
second: [
|
|
|
- { label: '所有状态', value: '7,4,5,6' },
|
|
|
+ { label: '所有状态', value: '' },
|
|
|
{ label: '待生产', value: '4' },
|
|
|
{ label: '生产中', value: '5' },
|
|
|
{ label: '已完成', value: '6' },
|
|
|
@@ -126,6 +126,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
{
|
|
|
columnKey: 'status',
|
|
|
label: '状态',
|
|
|
@@ -135,13 +137,19 @@ export default {
|
|
|
},
|
|
|
|
|
|
|
|
|
- {
|
|
|
- columnKey: 'approvalStatus',
|
|
|
- label: '审批状态',
|
|
|
- align: 'center',
|
|
|
- slot: 'approvalStatus',
|
|
|
- action: 'approvalStatus'
|
|
|
- },
|
|
|
+ ...(this.activeName === 'first'
|
|
|
+ ? [
|
|
|
+ {
|
|
|
+ prop: 'approvalStatus',
|
|
|
+ label: '审批状态',
|
|
|
+ align: 'center',
|
|
|
+ slot: 'approvalStatus',
|
|
|
+ action: 'approvalStatus'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ : []),
|
|
|
+
|
|
|
+
|
|
|
|
|
|
{
|
|
|
prop: 'createUserName',
|
|
|
@@ -183,7 +191,13 @@ export default {
|
|
|
return obj && obj.label;
|
|
|
},
|
|
|
/* 表格数据源 */
|
|
|
- datasource({ page, limit, where, order }) {
|
|
|
+ datasource({ page, limit, where }) {
|
|
|
+ if (this.activeName == 'first') {
|
|
|
+ where.type = 1
|
|
|
+ } else if (this.activeName == 'second') {
|
|
|
+ where.type = 2
|
|
|
+ delete where.statusList
|
|
|
+ }
|
|
|
return getList({
|
|
|
pageNum: page,
|
|
|
size: limit,
|
|
|
@@ -195,7 +209,6 @@ export default {
|
|
|
this.$refs.planEditDialogRef.open(type, row);
|
|
|
} else if (this.activeName == 'second') {
|
|
|
this.$refs.produceEditDialogRef.open(type, row);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
},
|