合同
This commit is contained in:
		| @ -1,7 +1,15 @@ | |||||||
|  | <!-- | ||||||
|  |  * @Author: your name | ||||||
|  |  * @Date: 2021-12-03 11:10:14 | ||||||
|  |  * @LastEditTime: 2021-12-07 19:51:34 | ||||||
|  |  * @LastEditors: your name | ||||||
|  |  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | ||||||
|  |  * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\assigned-car\assigned-car.component.html | ||||||
|  | --> | ||||||
| <div> | <div> | ||||||
|   <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> |   <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> | ||||||
|   <div> |   <div> | ||||||
|     <st #st [data]="service.$api_get_catalogue_member" [columns]="columns"> |     <!-- <st #st [data]="service.$api_get_catalogue_member" [columns]="columns"> --> | ||||||
|     </st> |     <!-- </st> --> | ||||||
|   </div> |   </div> | ||||||
| </div> | </div> | ||||||
| @ -1,3 +1,11 @@ | |||||||
|  | /* | ||||||
|  |  * @Author: your name | ||||||
|  |  * @Date: 2021-12-03 11:10:14 | ||||||
|  |  * @LastEditTime: 2021-12-07 19:51:21 | ||||||
|  |  * @LastEditors: your name | ||||||
|  |  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | ||||||
|  |  * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\bulk-detail\bulk-detail.component.ts | ||||||
|  |  */ | ||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import { ActivatedRoute } from '@angular/router'; | import { ActivatedRoute } from '@angular/router'; | ||||||
| import { STColumn } from '@delon/abc/st'; | import { STColumn } from '@delon/abc/st'; | ||||||
| @ -65,14 +73,14 @@ export class SupplyManagementBulkDetailComponent implements OnInit { | |||||||
|       nzTitle: '<i>删除确认</i>', |       nzTitle: '<i>删除确认</i>', | ||||||
|       nzContent: `请仔细核对,避免误操作!<br>是否删除?</br>`, |       nzContent: `请仔细核对,避免误操作!<br>是否删除?</br>`, | ||||||
|       nzOnOk: () => { |       nzOnOk: () => { | ||||||
|         this.service.http.post(this.service.$api_del_driver, { id }).subscribe((res) => { |         // this.service.http.post(this.service.$api_del_driver, { id }).subscribe((res) => { | ||||||
|           if (res) { |         //   if (res) { | ||||||
|             this.service.msgSrv.success('数据删除成功!'); |         //     this.service.msgSrv.success('数据删除成功!'); | ||||||
|             // this.st1.reload(); |         //     // this.st1.reload(); | ||||||
|           } else { |         //   } else { | ||||||
|             this.service.msgSrv.error('删除失败!'); |         //     this.service.msgSrv.error('删除失败!'); | ||||||
|           } |         //   } | ||||||
|         }); |         // }); | ||||||
|       }, |       }, | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -49,7 +49,19 @@ | |||||||
|     </nz-alert> |     </nz-alert> | ||||||
|   </div> |   </div> | ||||||
|   <div style="margin-top: 15px;"> |   <div style="margin-top: 15px;"> | ||||||
|     <st #st [data]="url" [columns]="columns"> |     <st | ||||||
|  |     #st | ||||||
|  |     size="small" | ||||||
|  |     [bordered]="true" | ||||||
|  |     [scroll]="{ x: '2000px' }" | ||||||
|  |     [data]="service.$api_get_bulkPage_list" | ||||||
|  |     [columns]="columns" | ||||||
|  |     [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" | ||||||
|  |     [res]="{ reName: { list: 'data.records', total: 'data.total' } }" | ||||||
|  |     [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" | ||||||
|  |     [loadingDelay]="500" | ||||||
|  |     [loading]="service.http.loading" | ||||||
|  |     > | ||||||
|       <ng-template st-row="goodsId" let-item let-index="index"> |       <ng-template st-row="goodsId" let-item let-index="index"> | ||||||
|         <a [routerLink]="'/supply-management/bulk-detail/'+item.id">{{item.no}}</a> |         <a [routerLink]="'/supply-management/bulk-detail/'+item.id">{{item.no}}</a> | ||||||
|       </ng-template> |       </ng-template> | ||||||
|  | |||||||
| @ -53,7 +53,14 @@ export class SupplyManagementBulkComponent implements OnInit { | |||||||
|     this.initST(); |     this.initST(); | ||||||
|     this.initSFFre(); |     this.initSFFre(); | ||||||
|   } |   } | ||||||
|  |   /** | ||||||
|  |  * 查询参数 | ||||||
|  |  */ | ||||||
|  |    get reqParams() { | ||||||
|  |     return { | ||||||
|  |       ...this.sf?.value, | ||||||
|  |     }; | ||||||
|  |   } | ||||||
|   /** |   /** | ||||||
|  * 初始化查询表单 |  * 初始化查询表单 | ||||||
|  */ |  */ | ||||||
| @ -315,13 +322,13 @@ export class SupplyManagementBulkComponent implements OnInit { | |||||||
|   getCatalogueMember() { |   getCatalogueMember() { | ||||||
|     const params = { |     const params = { | ||||||
|     }; |     }; | ||||||
|     return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe( |     // return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe( | ||||||
|       map((res) => { |     //   map((res) => { | ||||||
|         if (res) { |     //     if (res) { | ||||||
|           console.log(res) |     //       console.log(res) | ||||||
|         } |     //     } | ||||||
|       }), |     //   }), | ||||||
|     ); |     // ); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   selectChange(e: number) { |   selectChange(e: number) { | ||||||
|  | |||||||
| @ -1,3 +1,11 @@ | |||||||
|  | <!-- | ||||||
|  |  * @Author: your name | ||||||
|  |  * @Date: 2021-12-03 11:10:14 | ||||||
|  |  * @LastEditTime: 2021-12-07 19:50:54 | ||||||
|  |  * @LastEditors: your name | ||||||
|  |  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | ||||||
|  |  * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\update-price\update-price.component.html | ||||||
|  | --> | ||||||
| <div class="mb-lg"> | <div class="mb-lg"> | ||||||
|   <nz-spin *ngIf="!i" class="modal-spin"></nz-spin> |   <nz-spin *ngIf="!i" class="modal-spin"></nz-spin> | ||||||
|   <sf *ngIf="i" #sf mode="edit" [schema]="schema" [ui]="ui" [formData]="i" button="none"> |   <sf *ngIf="i" #sf mode="edit" [schema]="schema" [ui]="ui" [formData]="i" button="none"> | ||||||
| @ -15,10 +23,10 @@ | |||||||
| </div> | </div> | ||||||
| <div> | <div> | ||||||
|   <h4>变更日志</h4> |   <h4>变更日志</h4> | ||||||
|   <st #st [data]="service.$api_get_catalogue_member" [bordered]="true" [columns]="columns" [page]="{show:false}"> |   <!-- <st #st [data]="service.$api_get_catalogue_member" [bordered]="true" [columns]="columns" [page]="{show:false}"> | ||||||
|     <ng-template st-row="operator" let-item let-index="index"> |     <ng-template st-row="operator" let-item let-index="index"> | ||||||
|       <div>黎日湛</div> |       <div>黎日湛</div> | ||||||
|       <div>18811112222</div> |       <div>18811112222</div> | ||||||
|     </ng-template> |     </ng-template> | ||||||
|   </st> |   </st> --> | ||||||
| </div> | </div> | ||||||
| @ -1,3 +1,11 @@ | |||||||
|  | /* | ||||||
|  |  * @Author: your name | ||||||
|  |  * @Date: 2021-12-03 11:10:14 | ||||||
|  |  * @LastEditTime: 2021-12-07 19:50:40 | ||||||
|  |  * @LastEditors: your name | ||||||
|  |  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | ||||||
|  |  * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\update-price\update-price.component.ts | ||||||
|  |  */ | ||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { STColumn } from '@delon/abc/st'; | import { STColumn } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | ||||||
|  | |||||||
| @ -6,12 +6,15 @@ | |||||||
|   </ng-template> |   </ng-template> | ||||||
| </page-header-wrapper> | </page-header-wrapper> | ||||||
| <nz-card> | <nz-card> | ||||||
|   <nz-spin *ngIf="!i" class="modal-spin"></nz-spin> |  | ||||||
|   <div nz-row> |   <div nz-row> | ||||||
|     <div nz-col nzSpan="4"> |     <div nz-col nzSpan="4"> | ||||||
|       <sv-container class="bdr"> |       <sv-container class="bdr"> | ||||||
|         <sv label="货源编号" col="1">{{ i?.no }}</sv> |         <sv label="货源编号" col="1">{{ dataList?.resourceCode }}</sv> | ||||||
|         <sv-title class="text-center text-lg">待接单</sv-title> |         <sv-title class="text-center text-lg"> | ||||||
|  |           <span *ngIf="dataList?.resourceStatus === 1">待接单</span> | ||||||
|  |           <span *ngIf="dataList?.resourceStatus === 2">已接单</span> | ||||||
|  |           <span *ngIf="dataList?.resourceStatus === 3">已取消</span> | ||||||
|  |         </sv-title> | ||||||
|         <sv-title> |         <sv-title> | ||||||
|           <div class=""> |           <div class=""> | ||||||
|             <a class="btn-size">修改单价</a> |             <a class="btn-size">修改单价</a> | ||||||
| @ -24,64 +27,83 @@ | |||||||
|     <div nz-col nzSpan="16" class="approval-status"> |     <div nz-col nzSpan="16" class="approval-status"> | ||||||
|       <nz-steps style="width: 80%; margin: 0 auto" [nzLabelPlacement]="'vertical'"> |       <nz-steps style="width: 80%; margin: 0 auto" [nzLabelPlacement]="'vertical'"> | ||||||
|         <nz-step nzStatus="finish" nzIcon="user" [nzDescription]="i?.createAt" nzTitle="下单"></nz-step> |         <nz-step nzStatus="finish" nzIcon="user" [nzDescription]="i?.createAt" nzTitle="下单"></nz-step> | ||||||
|         <nz-step nzStatus="finish" nzIcon="solution" nzTitle="完结"></nz-step> |         <nz-step nzStatus="finish" nzIcon="user" nzTitle="完结"></nz-step> | ||||||
|       </nz-steps> |       </nz-steps> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
|   <nz-divider></nz-divider> |   <nz-divider></nz-divider> | ||||||
|   <div sv-container *ngIf="i"> |   <div sv-container > | ||||||
|     <sv label="外部货源号">{{ i?.owner }}</sv> |     <sv label="项目名称">{{ dataList?.enterpriseProjectId }}</sv> | ||||||
|     <sv label="项目名称">32943898021309809423</sv> |     <sv label="外部货源号">{{ dataList?.externalResourceCode }}</sv> | ||||||
|     <sv label="服务类型">3321944288191034921</sv> |     <sv label="录单员">{{ dataList?.enterpriseProjectId }}</sv> | ||||||
|     <sv label="录单员">18112345678</sv> |     <sv label="调度员">{{ dataList?.dispatchName }}</sv> | ||||||
|     <sv label="调度员">曲丽丽 18100000000 </sv> |  | ||||||
|     <sv label="承诺付款时间">曲丽丽 18100000000 </sv> |  | ||||||
|   </div> |   </div> | ||||||
|   <nz-divider></nz-divider> |   <nz-divider></nz-divider> | ||||||
|   <div nz-row> |   <div nz-row> | ||||||
|     <div nz-col nzSpan="6"> |     <div nz-col nzSpan="6"> | ||||||
|       <div class="source-info"> |       <div class="source-info"> | ||||||
|         <h3>装卸货信息</h3> |         <div *ngFor="let item of dataList?.unLoadingPlaceList; let i = index"> | ||||||
|         <p>装货地:广东省深圳市龙岗区怡亚通大厦</p> |           <h3 *ngIf="i === 0" style="font-weight: 700;">装卸货信息</h3> | ||||||
|         <p>联系人:奥利给/13680058545</p> |           <div *ngIf="item?.type === 1"> | ||||||
|         <p>卸货地:广东省深圳市福田区岗厦村9巷8号405(新村)</p> |             <p>装货地:{{item?.detailedAddress}}</p> | ||||||
|         <p>联系人:花花世界/13680058545</p> |              <p>联系人:{{item?.appUserName}}/{{item?.contractTelephone}}</p> | ||||||
|         <p>发货日期:广东省深圳市福田区岗厦村9巷8号405(新村)</p> |           </div> | ||||||
|         <p>卸货日期:花花世界/13680058545</p> |           <div *ngIf="item.type === 2"> | ||||||
|  |           <p>卸货地:{{item?.detailedAddress}}</p> | ||||||
|  |           <p>联系人:{{item?.appUserName}}/{{item?.contractTelephone}}</p> | ||||||
|  |         </div> | ||||||
|  |           <p>发货日期:{{item?.createTime}}</p> | ||||||
|  |           <p>卸货日期:{{item?.modifyTime}}</p> | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|     <div nz-col nzSpan="6"> |     </div> | ||||||
|  |     <div nz-col nzSpan="5"> | ||||||
|       <div class="source-info bdr bdl pl-md"> |       <div class="source-info bdr bdl pl-md"> | ||||||
|         <h3>货物信息</h3> |         <div *ngFor="let item of dataList?.goodsInfoList; let i = index"> | ||||||
|         <p>货物名称:广东省深圳市龙岗区怡亚通大厦</p> |         <h3 *ngIf="i === 0" style="font-weight: 700;">货物信息</h3> | ||||||
|         <p>重量/体积:广东省深圳市福田区岗厦村9巷8号405(新村)</p> |         <p>货物名称:{{item?.goodsName}}</p> | ||||||
|         <p>车型/车长:花花世界/13680058545</p> |         <p>货物数量:{{item?.weight}}吨/{{item?.volume}}立方</p> | ||||||
|  |         <p>用车需求:{{item?.vehicleDemand}}</p> | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|     <div nz-col nzSpan="6"> |     </div> | ||||||
|  |     <div nz-col nzSpan="5"> | ||||||
|       <div class="source-info bdr pl-md"> |       <div class="source-info bdr pl-md"> | ||||||
|         <h3>承运信息</h3> |         <h3 style="font-weight: 700;">承运信息</h3> | ||||||
|         <p>司机:广东省深圳市龙岗区怡亚通大厦</p> |         <p>网络货运人:{{dataList?.carrierInformationVO?.enterpriseInfoName}}</p> | ||||||
|         <p>车牌号:广东省深圳市福田区岗厦村9巷8号405(新村)</p> |         <p>服务类型:{{dataList?.carrierInformationVO?.serviceType === 1 ? '抢单' : '指派'}}</p> | ||||||
|         <p>车型/车长/承重:{{'拖车'}} | {{'4.5米'}} | {{'15吨'}}</p> |         <p>司机姓名:{{dataList?.carrierInformationVO?.driverName}}</p> | ||||||
|  |         <p>手机号:{{dataList?.carrierInformationVO?.driverTelephone}}</p> | ||||||
|  |         <p>车牌号:{{dataList?.carrierInformationVO?.driverLicensePlate}}</p> | ||||||
|  |       </div> | ||||||
|  |     </div> | ||||||
|  |     <div nz-col nzSpan="5"> | ||||||
|  |       <div class="source-info bdr pl-md"> | ||||||
|  |         <h3 style="font-weight: 700;">服务信息</h3> | ||||||
|  |         <p>货物价值:{{dataList?.goodsInfoList?.goodsName}}</p> | ||||||
|  |         <p>保价费金额:{{dataList?.goodsInfoList?.goodsName}}</p> | ||||||
|       </div> |       </div> | ||||||
|     </div> |     </div> | ||||||
|     <div class="source-info pl-md"> |     <div class="source-info pl-md"> | ||||||
|       <h3>补充信息</h3> |       <h3 style="font-weight: 700;">补充信息</h3> | ||||||
|       <p>需要回单</p> |       <p>{{dataList?.supplementaryInformationVO?.stateReceipt === 2 ? '不需要回单' : '需要回单'}}</p> | ||||||
|       <p>备注:奥利给/13680058545</p> |       <p>联系人:{{dataList?.supplementaryInformationVO?.receiptUserId}}</p> | ||||||
|  |       <p>联系电话:{{dataList?.supplementaryInformationVO?.remarks}}</p> | ||||||
|  |       <p>所在地区:{{dataList?.supplementaryInformationVO?.remarks}}</p> | ||||||
|  |       <p>详细地址:{{dataList?.supplementaryInformationVO?.receiptAddress}}</p> | ||||||
|  |       <p>备注:{{dataList?.supplementaryInformationVO?.remarks}}</p> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
|   <nz-divider></nz-divider> |   <nz-divider></nz-divider> | ||||||
|   <div nz-row> |   <div nz-row> | ||||||
|     <div class="freight-info-box"> |     <div class="freight-info-box"> | ||||||
|       <h3>运费信息</h3> |       <h3 style="font-weight: 700;">运费信息</h3> | ||||||
|       <div class="text-right"> |       <div class="text-right"> | ||||||
|         <p><label class="freigth-label">预付:</label><span>{{400 | currency }}</span></p> |         <div *ngFor="let item of dataList?.expenseList; let i = index"> | ||||||
|         <p><label class="freigth-label">油卡:</label><span>{{400 | currency }}</span></p> |         <p *ngIf="i === 0"><label class="freigth-label"></label><span style="color: #fad786;">{{'到货后15天内支付运费' }}</span></p> | ||||||
|         <p><label class="freigth-label">到付:</label><span>{{400 | currency }}</span></p> |         <p><label class="freigth-label">{{item?.expenseName}}:</label><span>{{item.price | currency:'¥' }}</span></p> | ||||||
|         <p><label class="freigth-label">回单付:</label><span>{{400 | currency}}</span></p> |         <p><label class="freigth-label">附加费:</label><span>{{400 | currency:'¥' }}</span></p> | ||||||
|         <p><label class="freigth-label">附加费:</label><span>{{400 | currency }}</span></p> |         </div> | ||||||
|       </div> |       </div> | ||||||
|     </div> |     </div> | ||||||
|     <nz-divider></nz-divider> |     <nz-divider></nz-divider> | ||||||
|  | |||||||
| @ -1,3 +1,11 @@ | |||||||
|  | /* | ||||||
|  |  * @Author: your name | ||||||
|  |  * @Date: 2021-12-03 11:10:14 | ||||||
|  |  * @LastEditTime: 2021-12-08 10:21:11 | ||||||
|  |  * @LastEditors: Please set LastEditors | ||||||
|  |  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | ||||||
|  |  * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle-detail\vehicle-detail.component.ts | ||||||
|  |  */ | ||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import { ActivatedRoute } from '@angular/router'; | import { ActivatedRoute } from '@angular/router'; | ||||||
| import { STColumn } from '@delon/abc/st'; | import { STColumn } from '@delon/abc/st'; | ||||||
| @ -14,6 +22,7 @@ export class SupplyManagementVehicleDetailComponent implements OnInit { | |||||||
|  |  | ||||||
|   id = this.route.snapshot.params.id; |   id = this.route.snapshot.params.id; | ||||||
|   i: any; |   i: any; | ||||||
|  |   dataList: any; | ||||||
|   logColumns: STColumn[] = [ |   logColumns: STColumn[] = [ | ||||||
|     { title: '内容', index: 'theme' }, |     { title: '内容', index: 'theme' }, | ||||||
|     { title: '操作人', index: 'operationUserPhone' }, |     { title: '操作人', index: 'operationUserPhone' }, | ||||||
| @ -29,12 +38,22 @@ export class SupplyManagementVehicleDetailComponent implements OnInit { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   ngOnInit(): void { |   ngOnInit(): void { | ||||||
|     this.service.http.get(`/user/${this.id}?_allow_anonymous=true&_allow_badcode=true`).subscribe(res => { |     console.log(this.id) | ||||||
|       console.log(res); |     if(this.id) { | ||||||
|       this.i = res |       this.getDetailList(this.id) | ||||||
|     }); |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   // 获取录单员  | ||||||
|  |   getDetailList(id: any) { | ||||||
|  |     const params = { | ||||||
|  |       id: id | ||||||
|  |     }; | ||||||
|  |    this.service.request(`${this.service.$api_get_getCompleteVehicleDetail}`, params).subscribe((res) => { | ||||||
|  |       console.log(res) | ||||||
|  |       this.dataList = res | ||||||
|  |     }) | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| <!-- | <!-- | ||||||
|  * @Author: your name |  * @Author: your name | ||||||
|  * @Date: 2021-12-03 11:10:14 |  * @Date: 2021-12-03 11:10:14 | ||||||
|  * @LastEditTime: 2021-12-03 14:51:38 |  * @LastEditTime: 2021-12-08 09:57:47 | ||||||
|  * @LastEditors: Please set LastEditors |  * @LastEditors: Please set LastEditors | ||||||
|  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | ||||||
|  * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html |  * @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html | ||||||
| @ -41,10 +41,6 @@ | |||||||
|     </nz-tab> |     </nz-tab> | ||||||
|   </nz-tabset> |   </nz-tabset> | ||||||
|   <div style="margin-top: 15px;"> |   <div style="margin-top: 15px;"> | ||||||
|     <!-- [req]="{ method: 'GET', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" |  | ||||||
|       [res]="{ reName: { list: 'data.records', total: 'data.total' } }" |  | ||||||
|       [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" |  | ||||||
|       [loadingDelay]="500" [loading]="service.http.loading" --> |  | ||||||
|       <!-- 选中提示框 --> |       <!-- 选中提示框 --> | ||||||
| <div style="position: relative"> | <div style="position: relative"> | ||||||
|   <nz-alert |   <nz-alert | ||||||
| @ -55,15 +51,32 @@ | |||||||
|   > |   > | ||||||
|   </nz-alert> |   </nz-alert> | ||||||
| </div> | </div> | ||||||
|     <st #st [scroll]="{ x: '1200px' }" [data]="service.$api_get_catalogue_member" [columns]="columns"> | <st | ||||||
|       <ng-template st-row="goodsId" let-item let-index="index"> | #st | ||||||
|         <a [routerLink]="'/supply-management/vehicle-detail/'+item.id">{{item.no}}</a> | size="small" | ||||||
|  | [bordered]="true" | ||||||
|  | [scroll]="{ x: '2000px' }" | ||||||
|  | [data]="service.$api_get_wholePage_list" | ||||||
|  | [columns]="columns" | ||||||
|  | [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" | ||||||
|  | [res]="{ reName: { list: 'data.records', total: 'data.total' } }" | ||||||
|  | [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" | ||||||
|  | [loadingDelay]="500" | ||||||
|  | [loading]="service.http.loading" | ||||||
|  | > | ||||||
|  |       <ng-template st-row="resourceCode" let-item let-index="index"> | ||||||
|  |         <a [routerLink]="'/supply-management/vehicle-detail/'+item.id">{{item.resourceCode}}</a> | ||||||
|       </ng-template> |       </ng-template> | ||||||
|       <!-- <ng-template st-row="externalSn" let-item let-index="index"> |       <ng-template st-row="LoadingAddressArr" let-item let-index="index"> | ||||||
|         <span class="mr-xs">{{111111}}</span> |         <div *ngFor="let i of item?.LoadingAddressArr"> | ||||||
|         <a (click)="editEnternalSn(item)">编辑</a> |           <span>{{item?.LoadingAddressArr[i]}}</span> | ||||||
|       </ng-template> --> |         </div> | ||||||
|       <ng-template st-row="enStatusStr27878" let-item let-index="index"> |       </ng-template> | ||||||
|  |       <ng-template st-row="serviceType" let-item let-index="index"> | ||||||
|  |           <span *ngIf="item?.serviceType === 1 || item?.serviceType === '1'">抢单</span> | ||||||
|  |           <span *ngIf="item?.serviceType === 2 || item?.serviceType === '2'">指派</span> | ||||||
|  |       </ng-template> | ||||||
|  |       <ng-template st-row="totalAmount" let-item let-index="index"> | ||||||
|         <div class="mr-xs" nzPopoverTitle="Title" nz-popover [nzPopoverContent]="contentTemplate">{{item.no}}</div> |         <div class="mr-xs" nzPopoverTitle="Title" nz-popover [nzPopoverContent]="contentTemplate">{{item.no}}</div> | ||||||
|       </ng-template> |       </ng-template> | ||||||
|       <ng-template #contentTemplate> |       <ng-template #contentTemplate> | ||||||
|  | |||||||
| @ -16,7 +16,6 @@ import { SupplyManagementUpdateFreightComponent } from '../update-freight/update | |||||||
|   styleUrls: ['./vehicle.component.less'] |   styleUrls: ['./vehicle.component.less'] | ||||||
| }) | }) | ||||||
| export class SupplyManagementVehicleComponent implements OnInit { | export class SupplyManagementVehicleComponent implements OnInit { | ||||||
|   url = `/user?_allow_anonymous=true`; |  | ||||||
|   ui: SFUISchema = {}; |   ui: SFUISchema = {}; | ||||||
|   ui2: SFUISchema = {}; |   ui2: SFUISchema = {}; | ||||||
|   schema: SFSchema = {}; |   schema: SFSchema = {}; | ||||||
| @ -30,32 +29,40 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|   columns: STColumn[] = []; |   columns: STColumn[] = []; | ||||||
|   tabs = [  { |   tabs = [  { | ||||||
|     name: '全部', |     name: '全部', | ||||||
|     type: 5, |     type: 0, | ||||||
|     count: 0, |     count: 0, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     name: '待接单', |     name: '待接单', | ||||||
|     type: 5, |     type: 1, | ||||||
|     count: 0, |     count: 0, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     name: '已接单', |     name: '已接单', | ||||||
|     type: 5, |     type: 2, | ||||||
|     count: 0, |     count: 0, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     name: '已取消', |     name: '已取消', | ||||||
|     type: 5, |     type: 3, | ||||||
|     count: 0, |     count: 0, | ||||||
|   }, |   }, | ||||||
|   ]; |   ]; | ||||||
|  |   resourceStatus: any; | ||||||
|   constructor(public service: SupplyManagementService, private modal: NzModalService, private router: Router,private ar: ActivatedRoute) { } |   constructor(public service: SupplyManagementService, private modal: NzModalService, private router: Router,private ar: ActivatedRoute) { } | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
|  * 查询参数 |  * 查询参数 | ||||||
|  */ |  */ | ||||||
|   get reqParams() { |   get reqParams() { | ||||||
|  |     console.log(this.resourceStatus) | ||||||
|  |     const a:any = {}; | ||||||
|  |     if(this.resourceStatus) { | ||||||
|  |       a.resourceStatus = this.resourceStatus  | ||||||
|  |     } | ||||||
|  |     console.log(a) | ||||||
|     return { |     return { | ||||||
|  |       ...a, | ||||||
|       ...this.sf?.value, |       ...this.sf?.value, | ||||||
|     }; |     }; | ||||||
|   } |   } | ||||||
| @ -77,35 +84,35 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|     this.schema = { |     this.schema = { | ||||||
|       properties: { |       properties: { | ||||||
|         _$expand: { type: 'boolean', ui: { hidden: true } }, |         _$expand: { type: 'boolean', ui: { hidden: true } }, | ||||||
|         no: { |         resourceCode: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '货源编号', |           title: '货源编号', | ||||||
|         }, |         }, | ||||||
|         sex2: { |         serviceType: { | ||||||
|           title: '服务类型', |           title: '服务类型', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           default: 0, |  | ||||||
|           enum: [ |           enum: [ | ||||||
|             { label: '未知', value: 0 }, |             { label: '抢单', value: 1 }, | ||||||
|             { label: '男', value: 1 }, |             { label: '指派', value: 2 }, | ||||||
|             { label: '女', value: 2 }, |  | ||||||
|             { label: '保密', value: 3 }, |  | ||||||
|           ], |           ], | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select', | ||||||
|  |  | ||||||
|           } as SFSelectWidgetSchema, |           } as SFSelectWidgetSchema, | ||||||
|         }, |         }, | ||||||
|         categoryId: { |         goodsName: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '货物名称', |           title: '货物名称', | ||||||
|           // enum: this.secondCatList || [], |           enum: [ | ||||||
|  |             { label: '普货', value: 1 }, | ||||||
|  |             { label: '指派', value: 2 }, | ||||||
|  |           ], | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select', | ||||||
|             placeholder: '请选择', |             placeholder: '请选择', | ||||||
|           } as SFSelectWidgetSchema, |           } as SFSelectWidgetSchema, | ||||||
|         }, |         }, | ||||||
|         no2: { |         loadingPlace: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '装货地', |           title: '装货地', | ||||||
|           ui: { |           ui: { | ||||||
| @ -135,12 +142,11 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|         sex: { |         sex: { | ||||||
|           title: '审核状态', |           title: '审核状态', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           default: 0, |  | ||||||
|           enum: [ |           enum: [ | ||||||
|             { label: '未知', value: 0 }, |             { label: '待审核', value: 1 }, | ||||||
|             { label: '男', value: 1 }, |             { label: '审核通过', value: 2 }, | ||||||
|             { label: '女', value: 2 }, |             { label: '不通过', value: 3 }, | ||||||
|             { label: '保密', value: 3 }, |             { label: '已取消', value: 4 }, | ||||||
|           ], |           ], | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select', | ||||||
| @ -159,7 +165,7 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|               _$expand: (value: boolean) => value, |               _$expand: (value: boolean) => value, | ||||||
|             }, |             }, | ||||||
|             allowClear: true, |             allowClear: true, | ||||||
|             asyncData: () => this.getCatalogueMember(), |             // asyncData: () => this.getCatalogueMember(), | ||||||
|           }, |           }, | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
| @ -193,26 +199,31 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|         title: '货源编号', |         title: '货源编号', | ||||||
|         width: '100px', |         width: '100px', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         render: 'goodsId' |         render: 'resourceCode' | ||||||
|       }, |       }, | ||||||
|       { title: '服务类型', index: 'externalSn', width: '120px', className: 'text-center' }, |       { title: '服务类型', index: 'serviceType', width: '120px', className: 'text-center',render: 'serviceType'}, | ||||||
|       { title: '货主', index: 'linkUrl', width: '120px', className: 'text-center' }, |       { title: '货主', index: 'shipperAppUserName', width: '120px', className: 'text-center' }, | ||||||
|       { |       { | ||||||
|         title: '项目名称', |         title: '项目名称', | ||||||
|  |         index: 'enterpriseProjectName', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         width: '120px', |         width: '120px', | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '装货地', |         title: '装货地', | ||||||
|  |         index: 'loadingAddressArr', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         width: '120px', |         width: '120px', | ||||||
|  |         render: 'loadingAddressArr' | ||||||
|       }, { |       }, { | ||||||
|         title: '卸货地', |         title: '卸货地', | ||||||
|  |         index: 'unloadingAddressArr', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         width: '120px', |         width: '120px', | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '货物名称', |         title: '货物名称', | ||||||
|  |         index: 'goodsName', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         width: '120px', |         width: '120px', | ||||||
|       }, |       }, | ||||||
| @ -220,9 +231,12 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|         title: '货物数量', |         title: '货物数量', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         width: '120px', |         width: '120px', | ||||||
|  |         index: 'goodsNumber', | ||||||
|  |  | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '用车需求', |         title: '用车需求', | ||||||
|  |         index: 'vehicleDemand', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         width: '120px', |         width: '120px', | ||||||
|       }, |       }, | ||||||
| @ -230,41 +244,43 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|         title: '总费用', |         title: '总费用', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         width: '120px', |         width: '120px', | ||||||
|         index: 'goodsId', |         index: 'totalAmount', | ||||||
|         render: 'enStatusStr27878' |         render: 'totalAmount' | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '附加费', |         title: '附加费', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         width: '120px', |         width: '120px', | ||||||
|  |         index: 'surcharge', | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '货源状态', |         title: '货源状态', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         index: 'enStatusStr2', |         index: 'resourceStatus', | ||||||
|         type: 'badge', |         type: 'badge', | ||||||
|         width: '120px', |         width: '120px', | ||||||
|         badge: { |         badge: { | ||||||
|           正常: { text: '正常', color: 'success' }, |           1: { text: '待接单', color: 'success' }, | ||||||
|           冻结: { text: '冻结', color: 'warning' }, |           2: { text: '已接单', color: 'warning' }, | ||||||
|           废弃: { text: '废弃', color: 'default' }, |  | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '创建时间', |         title: '创建时间', | ||||||
|         width: '170px', |         width: '170px', | ||||||
|  |         index: 'releaseTime', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '审核状态', |         title: '审核状态', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         index: 'enStatusStr3', |         index: 'auditStatus', | ||||||
|         type: 'badge', |         type: 'badge', | ||||||
|         width: '170px', |         width: '170px', | ||||||
|         badge: { |         badge: { | ||||||
|           正常: { text: '正常', color: 'success' }, |           1: { text: '待审核', color: 'warning' }, | ||||||
|           冻结: { text: '冻结', color: 'warning' }, |           2: { text: '审核通过', color: 'success' }, | ||||||
|           废弃: { text: '废弃', color: 'default' }, |           3: { text: '不通过', color: 'default' }, | ||||||
|  |           4: { text: '已取消', color: 'default' }, | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
| @ -276,10 +292,12 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|           { |           { | ||||||
|             text: '货源审核', |             text: '货源审核', | ||||||
|             click: (_record) => this.audit(_record, 1), |             click: (_record) => this.audit(_record, 1), | ||||||
|  |             iif: item => item.status === 1, | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             text: '修改货源', |             text: '修改货源', | ||||||
|             click: (_record) => this.amend(_record), |             click: (_record) => this.amend(_record), | ||||||
|  |             iif: item => item.status === 1 || item.status === 2, | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             text: '修改运费', |             text: '修改运费', | ||||||
| @ -287,6 +305,7 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
|             text: '取消货源', |             text: '取消货源', | ||||||
|  |             iif: item => item.status === 1 || item.status === 2, | ||||||
|             // click: (_record) => this.delOne(_record), |             // click: (_record) => this.delOne(_record), | ||||||
|           }, |           }, | ||||||
|           { |           { | ||||||
| @ -296,6 +315,7 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|           { |           { | ||||||
|             text: '重新指派', |             text: '重新指派', | ||||||
|             click: (_record) => this.assignedCar(_record), |             click: (_record) => this.assignedCar(_record), | ||||||
|  |             iif: item =>  item.status === 2, | ||||||
|           }, |           }, | ||||||
|         ], |         ], | ||||||
|       }, |       }, | ||||||
| @ -332,21 +352,14 @@ export class SupplyManagementVehicleComponent implements OnInit { | |||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   // 获取录单员  |  | ||||||
|   getCatalogueMember() { |  | ||||||
|     const params = { |  | ||||||
|     }; |  | ||||||
|     return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe( |  | ||||||
|       map((res) => { |  | ||||||
|         if (res) { |  | ||||||
|           console.log(res) |  | ||||||
|         } |  | ||||||
|       }), |  | ||||||
|     ); |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   selectChange(e: number) { |   selectChange(e: number) { | ||||||
|     console.log(e); |     console.log(e); | ||||||
|  |     this.resourceStatus = e; | ||||||
|  |     this.initST(); | ||||||
|  |     setTimeout(() => { | ||||||
|  |       this.st.load(); | ||||||
|  |     }, 500); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
|  | |||||||
| @ -1,3 +1,11 @@ | |||||||
|  | /* | ||||||
|  |  * @Author: your name | ||||||
|  |  * @Date: 2021-12-03 11:10:14 | ||||||
|  |  * @LastEditTime: 2021-12-07 20:09:14 | ||||||
|  |  * @LastEditors: Please set LastEditors | ||||||
|  |  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | ||||||
|  |  * @FilePath: \tms-obc-web\src\app\routes\supply-management\services\supply-management.service.ts | ||||||
|  |  */ | ||||||
| import { Injectable, Injector } from '@angular/core'; | import { Injectable, Injector } from '@angular/core'; | ||||||
| import { BaseService } from 'src/app/shared/services'; | import { BaseService } from 'src/app/shared/services'; | ||||||
|  |  | ||||||
| @ -5,9 +13,15 @@ import { BaseService } from 'src/app/shared/services'; | |||||||
|   providedIn: 'root' |   providedIn: 'root' | ||||||
| }) | }) | ||||||
| export class SupplyManagementService extends BaseService { | export class SupplyManagementService extends BaseService { | ||||||
|  |   // 整车获取货源表详情 | ||||||
|  |   $api_get_getCompleteVehicleDetail = `api/sdc/goodsResourceOperate/getCompleteVehicleDetail`; | ||||||
|  |   // 大宗获取货源表详情 | ||||||
|  |   $api_get_getBulkDetail = `api/sdc/goodsResourceOperate/getBulkDetail`; | ||||||
|  |   // 查询运营后台大宗货源列表 | ||||||
|  |   $api_get_bulkPage_list = `api/sdc/goodsResourceOperate/list/bulkPage`; | ||||||
|  |   // 查询运营后台整车货源列表 | ||||||
|  |   $api_get_wholePage_list = `api/sdc/goodsResourceOperate/list/wholePage`; | ||||||
|  |  | ||||||
|   $api_get_catalogue_member = `/user?_allow_anonymous=true`; |  | ||||||
|   $api_del_driver = ``; |  | ||||||
|   constructor(public injector: Injector) { |   constructor(public injector: Injector) { | ||||||
|     super(injector) |     super(injector) | ||||||
|   } |   } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user