|
@@ -244,13 +244,22 @@
|
|
deptId: store.curDeptDetails.deptId,
|
|
deptId: store.curDeptDetails.deptId,
|
|
keywords: keywords.value
|
|
keywords: keywords.value
|
|
};
|
|
};
|
|
- normalStatus.value = true;
|
|
|
|
|
|
+ // normalStatus.value = true;
|
|
getDayWorkList(reqData).then(res => {
|
|
getDayWorkList(reqData).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
tempList.value = res.data
|
|
tempList.value = res.data
|
|
- listData.value = res.data.filter(item => {
|
|
|
|
- return item.isWasteRecycling == 0 && item.isAmend == 0;
|
|
|
|
- });
|
|
|
|
|
|
+ if (normalStatus.value) {
|
|
|
|
+ listData.value = res.data.filter(item => {
|
|
|
|
+ return item.isWasteRecycling == 0 && item.isAmend == 0;
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ listData.value = res.data.filter(item => {
|
|
|
|
+ return item.isWasteRecycling == 1 || item.isAmend == 1;
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ // listData.value = res.data.filter(item => {
|
|
|
|
+ // return item.isWasteRecycling == 0 && item.isAmend == 0;
|
|
|
|
+ // });
|
|
for (let i = 0; i < listData.value.length; i++) {
|
|
for (let i = 0; i < listData.value.length; i++) {
|
|
if (listData.value[i].prevProcess) {
|
|
if (listData.value[i].prevProcess) {
|
|
let sum = 0;
|
|
let sum = 0;
|