|
@@ -507,12 +507,19 @@ export default {
|
|
|
},
|
|
|
filters: {
|
|
|
statusFilter(val) {
|
|
|
- let obj = that.statusList.find((o) => o.value == val);
|
|
|
- return obj ? obj.label : "";
|
|
|
+ if (that.statusList.length) {
|
|
|
+ let obj = that.statusList.find(o => o.value == val);
|
|
|
+ return obj ? obj.label : ''
|
|
|
+ }
|
|
|
+ return ''
|
|
|
},
|
|
|
orderTypeFilter(val) {
|
|
|
- let obj = that.orderTypeList.find((o) => o.value == val);
|
|
|
- return obj ? obj.label : "";
|
|
|
+
|
|
|
+ if (that.orderTypeList.length) {
|
|
|
+ let obj = that.orderTypeList.find(o => o.value == val);
|
|
|
+ return obj ? obj.label : ''
|
|
|
+ }
|
|
|
+ return ''
|
|
|
},
|
|
|
billStatusFilter(val) {
|
|
|
const MAP = {
|