批量审核
This commit is contained in:
		| @ -211,78 +211,32 @@ tabs = { | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         driverId: { | ||||
|         driverName: { | ||||
|           title: '承运司机', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             serverSearch: true, | ||||
|             searchDebounceTime: 300, | ||||
|             searchLoadingText: '搜索中...', | ||||
|             onSearch: (q: any) => { | ||||
|               if (!!q) { | ||||
|                 return this.service | ||||
|                   .request(this.service.$api_get_getDriverInfo, { keyword: q, model: 1, type: 1 }) | ||||
|                   .pipe(map(res => (res as any[]).map(i => ({ label: i.name, value: i.appUserId } as SFSchemaEnum)))) | ||||
|                   .toPromise(); | ||||
|               } else { | ||||
|                 return of([]); | ||||
|               } | ||||
|             }, | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value | ||||
|             } | ||||
|           } as SFSelectWidgetSchema | ||||
|           } | ||||
|         }, | ||||
|  | ||||
|         carNo: { | ||||
|           title: '车牌号', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             serverSearch: true, | ||||
|             searchDebounceTime: 300, | ||||
|             searchLoadingText: '搜索中...', | ||||
|             onSearch: (q: any) => { | ||||
|               if (!!q) { | ||||
|                 return this.service | ||||
|                   .request(this.service.$api_get_getCarLicenseListByCarNo, { | ||||
|                     carNo: q | ||||
|                   }) | ||||
|                   .pipe(map((res: any) => (res?.records as any[]).map(i => ({ label: i.carNo, value: i.appUserId } as SFSchemaEnum)))) | ||||
|                   .toPromise(); | ||||
|               } else { | ||||
|                 return of([]); | ||||
|               } | ||||
|             }, | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value | ||||
|             } | ||||
|           } as SFSelectWidgetSchema | ||||
|           } | ||||
|         }, | ||||
|          payeeId: { | ||||
|         captainName: { | ||||
|           title: '车队长', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             serverSearch: true, | ||||
|             searchDebounceTime: 300, | ||||
|             searchLoadingText: '搜索中...', | ||||
|             onSearch: (q: any) => { | ||||
|               if (!!q) { | ||||
|                 return this.service | ||||
|                   .request(this.service.$api_get_getDriverInfo, { keyword: q, | ||||
|                   model: 1, type: 2 }) | ||||
|                   .pipe(map((res) => (res as any[]).map((i) => ({ label: i.name, value: i.userId } as SFSchemaEnum)))) | ||||
|                   .toPromise(); | ||||
|               } else { | ||||
|                 return of([]); | ||||
|               } | ||||
|             }, | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|             }, | ||||
|           } as SFSelectWidgetSchema, | ||||
|           } | ||||
|         },  | ||||
|         paymentstatus: { | ||||
|           title: '支付状态', | ||||
| @ -765,8 +719,6 @@ tabs = { | ||||
|       if (res) { | ||||
|         this.st.load(1); | ||||
|         this.getGoodsSourceStatistical() | ||||
|       } else { | ||||
|         this.service.msgSrv.error(res.msg); | ||||
|       } | ||||
|     }); | ||||
|   } | ||||
| @ -800,9 +752,7 @@ tabs = { | ||||
|               this.stFloat.reload() | ||||
|               this.st?.reload(1); | ||||
|               this.getGoodsSourceStatistical() | ||||
|             } else { | ||||
|               this.service.msgSrv.error(res.msg) | ||||
|             } | ||||
|             }  | ||||
|           }) | ||||
|         }); | ||||
|       } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user