Commit 4e59a116d6be5c93ee2741dc1c775f5d354d143d

Authored by 史婷婷
1 parent 6c1d6651

feat: 要车单&补货单-列表-代码优化

@@ -109,7 +109,6 @@ export default { @@ -109,7 +109,6 @@ export default {
109 filterVisible: false, 109 filterVisible: false,
110 filterForm: { 110 filterForm: {
111 status: '', 111 status: '',
112 - companySuggestedCategory: '',  
113 dateRange: [] 112 dateRange: []
114 }, 113 },
115 dicOptions: { 114 dicOptions: {
@@ -202,11 +201,6 @@ export default { @@ -202,11 +201,6 @@ export default {
202 if ((payload.status === '' || payload.status == null) && this.filterForm.status !== '') { 201 if ((payload.status === '' || payload.status == null) && this.filterForm.status !== '') {
203 payload.status = this.filterForm.status 202 payload.status = this.filterForm.status
204 } 203 }
205 - if ((payload.companySuggestedCategory === '' || payload.companySuggestedCategory == null) && this  
206 - .filterForm  
207 - .companySuggestedCategory !== '') {  
208 - payload.companySuggestedCategory = this.filterForm.companySuggestedCategory  
209 - }  
210 this.query = { 204 this.query = {
211 ...payload 205 ...payload
212 } 206 }
@@ -217,11 +211,6 @@ export default { @@ -217,11 +211,6 @@ export default {
217 (e && e.value !== undefined ? e.value : '') 211 (e && e.value !== undefined ? e.value : '')
218 this.filterForm.status = raw 212 this.filterForm.status = raw
219 }, 213 },
220 - onCategoryChange(e) {  
221 - const raw = e && e.detail && e.detail.value !== undefined ? e.detail.value : (e && e.value !== undefined ?  
222 - e.value : '')  
223 - this.filterForm.companySuggestedCategory = raw  
224 - },  
225 214
226 // 列表接口(真实请求) 215 // 列表接口(真实请求)
227 fetchList({ 216 fetchList({
@@ -97,7 +97,6 @@ export default { @@ -97,7 +97,6 @@ export default {
97 // 给到 card 的筛选值 97 // 给到 card 的筛选值
98 query: { 98 query: {
99 status: '', 99 status: '',
100 - companySuggestedCategory: '',  
101 dateRange: [] 100 dateRange: []
102 }, 101 },
103 extraParams: {}, 102 extraParams: {},
@@ -110,7 +109,6 @@ export default { @@ -110,7 +109,6 @@ export default {
110 filterVisible: false, 109 filterVisible: false,
111 filterForm: { 110 filterForm: {
112 status: '', 111 status: '',
113 - companySuggestedCategory: '',  
114 dateRange: [] 112 dateRange: []
115 }, 113 },
116 dicOptions: { 114 dicOptions: {
@@ -204,11 +202,6 @@ export default { @@ -204,11 +202,6 @@ export default {
204 if ((payload.status === '' || payload.status == null) && this.filterForm.status !== '') { 202 if ((payload.status === '' || payload.status == null) && this.filterForm.status !== '') {
205 payload.status = this.filterForm.status 203 payload.status = this.filterForm.status
206 } 204 }
207 - if ((payload.companySuggestedCategory === '' || payload.companySuggestedCategory == null) && this  
208 - .filterForm  
209 - .companySuggestedCategory !== '') {  
210 - payload.companySuggestedCategory = this.filterForm.companySuggestedCategory  
211 - }  
212 this.query = { 205 this.query = {
213 ...payload 206 ...payload
214 } 207 }
@@ -219,11 +212,6 @@ export default { @@ -219,11 +212,6 @@ export default {
219 (e && e.value !== undefined ? e.value : '') 212 (e && e.value !== undefined ? e.value : '')
220 this.filterForm.status = raw 213 this.filterForm.status = raw
221 }, 214 },
222 - onCategoryChange(e) {  
223 - const raw = e && e.detail && e.detail.value !== undefined ? e.detail.value : (e && e.value !== undefined ?  
224 - e.value : '')  
225 - this.filterForm.companySuggestedCategory = raw  
226 - },  
227 215
228 // 列表接口(真实请求) 216 // 列表接口(真实请求)
229 fetchList({ 217 fetchList({