diff --git a/src/views/distribution/signfor/distributionSignforedt.vue b/src/views/distribution/signfor/distributionSignforedt.vue index 214477db..75768bb6 100644 --- a/src/views/distribution/signfor/distributionSignforedt.vue +++ b/src/views/distribution/signfor/distributionSignforedt.vue @@ -1144,7 +1144,7 @@ const menuData2 = ref([ { prop: 'trainNumber', label: '包件类型', - type: 1, + type: 2, values: '', width: '150', checkarr: [], @@ -1235,7 +1235,7 @@ const menuData2 = ref([ { prop: 'orderPackageFreezeStatusName', label: '冻结状态', - type: 1, + type: 2, values: '', width: '200', checkarr: [], @@ -1257,7 +1257,7 @@ const menuData2 = ref([ { prop: 'orderPackageStockupStatusName', label: '备货状态', - type: 1, + type: 2, values: '', width: '200', checkarr: [], @@ -1268,7 +1268,7 @@ const menuData2 = ref([ { prop: 'orderPackageReservationStatusName', label: '预约状态', - type: 1, + type: 2, values: '', width: '200', checkarr: [], @@ -1279,7 +1279,7 @@ const menuData2 = ref([ { prop: 'orderPackageLoadingStatusName', label: '装车状态 ', - type: 1, + type: 2, values: '', width: '200', checkarr: [], @@ -1290,7 +1290,7 @@ const menuData2 = ref([ { prop: 'scanStatus', label: '装车方式', - type: 1, + type: 2, values: '', width: '200', checkarr: [], @@ -1427,7 +1427,7 @@ const menuData3 = ref([ { prop: 'loadingStatusName', label: '装车状态', - type: 1, + type: 2, values: '', width: '200', checkarr: [], @@ -2271,32 +2271,35 @@ const ImgSuccessE = (response, uploadFile) => { /** 输入框筛选 */ const inputsc = (value, row, type) => { - console.log('value :>> ', value); - console.log('row :>> ', row); - console.log('type :>> ', type); - const _item = Tabs.value.find(val => val.type === type); + editLoading.value = true; + try { + const _item = Tabs.value.find(val => val.type === type); - const reg = new RegExp(value, 'i'); - _item.query[row.prop] = reg; - if (value === '') delete _item.query[row.prop]; + // 动态设置正则 + const reg = new RegExp(value, 'i'); - console.log('reg :>> ', reg); + _item.query[row.prop] = reg; - if (Object.keys(_item.query).length === 0) return (_item.renderData = _item.data); + if (value === '') delete _item.query[row.prop]; - const _data = _item.data.filter(value => { - let _flag = true; - for (let key in _item.query) { - console.log('_item.query[key].test(value[key]) :>> ', _item.query[key].test(value[key])); - if (!_item.query[key].test(value[key])) _flag = false; - if (!_flag) break; - } + if (Object.keys(_item.query).length === 0) return (_item.renderData = _item.data); - return _flag; - }); + const _data = _item.data.filter(value => { + let _flag = true; + for (let key in _item.query) { + if (!_item.query[key].test(value[key])) _flag = false; + if (!_flag) break; + } - console.log('_data :>> ', _data); - _item.renderData = _data; + return _flag; + }); + + _item.renderData = _data; + } catch (error) { + console.log('error :>> ', error); + } finally { + editLoading.value = false; + } }; /** 选择签收状态 */