车辆对接
This commit is contained in:
		| @ -188,6 +188,15 @@ | ||||
|   <div nz-row> | ||||
|     <div nz-col nzSpan="12"> | ||||
|       <sf #sf7 [schema]="schema7" [formData]="sf7data" [button]="'none'" [ui]="ui7"> | ||||
|         <ng-template sf-template="receiptAddressId" let-i let-ui="ui"> | ||||
|           <input | ||||
|             nz-input | ||||
|             [ngModel]="i.value" | ||||
|             (ngModelChange)="i.setValue($event)" | ||||
|             placeholder="请点击选择收回单地址" | ||||
|             (click)="backBillChange()" | ||||
|           /> | ||||
|         </ng-template> | ||||
|         <ng-template sf-template="paymentDays" let-i let-ui="ui"> | ||||
|           <div nz-row> | ||||
|             <div class="align-center" style="width: 350px;"> | ||||
|  | ||||
| @ -459,6 +459,86 @@ export class  SupplyManagementBulkPublishComponent implements OnInit { | ||||
|   initSF6() { | ||||
|     this.schema7 = { | ||||
|       properties: { | ||||
|         stateReceipt: { | ||||
|           type: 'string', | ||||
|           title: '是否回单', | ||||
|           enum: [ | ||||
|             { label: '需要', value: true }, | ||||
|             { label: '不需要', value: false } | ||||
|           ], | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             errors: { required: '请选择' }, | ||||
|             placeholder: '请选择' | ||||
|           } | ||||
|         }, | ||||
|         receiptType: { | ||||
|           type: 'string', | ||||
|           title: '回单类型', | ||||
|           ui: { | ||||
|             widget: 'dict-select', | ||||
|             params: { dictKey: 'receipt:type' }, | ||||
|             containsAllLabel: false, | ||||
|             placeholder: '请选择', | ||||
|             errors: { required: '请选择' }, | ||||
|             visibleIf: { | ||||
|               stateReceipt: value => value === true | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         receiptAddressId: { | ||||
|           type: 'string', | ||||
|           title: '选择地址', | ||||
|           ui: { | ||||
|             widget: 'custom', | ||||
|             placeholder: '请点击选择收回单地址', | ||||
|             // validator: val => (this.sf6?.value?.receiptType === '2' ? [{ keyword: 'required', message: '请点击选择收回单地址' }] : []), | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           default: '' | ||||
|         }, | ||||
|         receiptUserName: { | ||||
|           type: 'string', | ||||
|           title: '联系人', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           readOnly: true | ||||
|         }, | ||||
|         phon: { | ||||
|           type: 'string', | ||||
|           title: '联系电话', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           readOnly: true | ||||
|         }, | ||||
|         area: { | ||||
|           type: 'string', | ||||
|           title: '所在地区', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           readOnly: true | ||||
|         }, | ||||
|         address: { | ||||
|           type: 'string', | ||||
|           title: '详细地址', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           readOnly: true | ||||
|         }, | ||||
|         paymentDays: { | ||||
|           type: 'string', | ||||
|           title: '到货后', | ||||
| @ -666,7 +746,23 @@ export class  SupplyManagementBulkPublishComponent implements OnInit { | ||||
|         } | ||||
|       }); | ||||
|   } | ||||
|  | ||||
|   backBillChange() { | ||||
|     const modalRef = this.modalService.create({ | ||||
|       nzTitle: '选择收回单地址', | ||||
|       nzContent: PublishAddressListComponent, | ||||
|       nzWidth: 900, | ||||
|       nzComponentParams: { spuStatus: '2' }, | ||||
|       nzOnOk: item => { | ||||
|         const data = item.seleteData; | ||||
|         if (JSON.stringify(data) === '{}') return; | ||||
|         this.sf7.setValue('/receiptAddressId', data.id); | ||||
|         this.sf7.setValue('/receiptUserName', data.contactName); | ||||
|         this.sf7.setValue('/phon', data.contactTelephone); | ||||
|         this.sf7.setValue('/area', `${data.province}-${data.city}-${data.area}`) | ||||
|         this.sf7.setValue('/address', data.detailedAddress); | ||||
|       } | ||||
|     }); | ||||
|   } | ||||
|  // 打开地图 | ||||
|  openMap(type: string, index: number) { | ||||
|   const modalRef = this.modalService.create({ | ||||
| @ -850,6 +946,13 @@ export class  SupplyManagementBulkPublishComponent implements OnInit { | ||||
|      } | ||||
|     this.totalFees = res?.freightPrice || '0'; | ||||
|     this.sf7data = { | ||||
|       stateReceipt: res?.supplementaryInformationVO?.stateReceipt, | ||||
|       receiptType: res?.receiptType || '', | ||||
|       receiptAddressId: res?.receiptAddressId || '', | ||||
|       receiptUserName: res?.supplementaryInformationVO?.receiptUserName || '', | ||||
|       area: res?.supplementaryInformationVO?.area || '', | ||||
|       phon: res?.supplementaryInformationVO?.phon || '', | ||||
|       address: res?.supplementaryInformationVO?.address || '', | ||||
|       paymentDays: res?.paymentDays || '', | ||||
|       remarks: res?.remarks || '' | ||||
|     }; | ||||
|  | ||||
| @ -154,6 +154,15 @@ | ||||
|   <div nz-row> | ||||
|     <div nz-col nzSpan="12"> | ||||
|       <sf #sf6 [schema]="schema6" [button]="'none'" [ui]="ui6" [formData]="sf6data"> | ||||
|         <ng-template sf-template="receiptAddressId" let-i let-ui="ui"> | ||||
|           <input | ||||
|             nz-input | ||||
|             [ngModel]="i.value" | ||||
|             (ngModelChange)="i.setValue($event)" | ||||
|             placeholder="请点击选择收回单地址" | ||||
|             (click)="backBillChange()" | ||||
|           /> | ||||
|         </ng-template> | ||||
|         <ng-template sf-template="paymentDays" let-i let-ui="ui"> | ||||
|           <div nz-row> | ||||
|             <div class="align-center" style="width: 350px;"> | ||||
|  | ||||
| @ -434,6 +434,86 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit { | ||||
|   initSF6() { | ||||
|     this.schema6 = { | ||||
|       properties: { | ||||
|         stateReceipt: { | ||||
|           type: 'string', | ||||
|           title: '是否回单', | ||||
|           enum: [ | ||||
|             { label: '需要', value: true }, | ||||
|             { label: '不需要', value: false } | ||||
|           ], | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             errors: { required: '请选择' }, | ||||
|             placeholder: '请选择' | ||||
|           } | ||||
|         }, | ||||
|         receiptType: { | ||||
|           type: 'string', | ||||
|           title: '回单类型', | ||||
|           ui: { | ||||
|             widget: 'dict-select', | ||||
|             params: { dictKey: 'receipt:type' }, | ||||
|             containsAllLabel: false, | ||||
|             placeholder: '请选择', | ||||
|             errors: { required: '请选择' }, | ||||
|             visibleIf: { | ||||
|               stateReceipt: value => value === true | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         receiptAddressId: { | ||||
|           type: 'string', | ||||
|           title: '选择地址', | ||||
|           ui: { | ||||
|             widget: 'custom', | ||||
|             placeholder: '请点击选择收回单地址', | ||||
|             // validator: val => (this.sf6?.value?.receiptType === '2' ? [{ keyword: 'required', message: '请点击选择收回单地址' }] : []), | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           default: '' | ||||
|         }, | ||||
|         receiptUserName: { | ||||
|           type: 'string', | ||||
|           title: '联系人', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           readOnly: true | ||||
|         }, | ||||
|         phon: { | ||||
|           type: 'string', | ||||
|           title: '联系电话', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           readOnly: true | ||||
|         }, | ||||
|         area: { | ||||
|           type: 'string', | ||||
|           title: '所在地区', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           readOnly: true | ||||
|         }, | ||||
|         address: { | ||||
|           type: 'string', | ||||
|           title: '详细地址', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               receiptType: value => value === '2' | ||||
|             } | ||||
|           }, | ||||
|           readOnly: true | ||||
|         }, | ||||
|         paymentDays: { | ||||
|           type: 'string', | ||||
|           title: '到货后', | ||||
| @ -463,7 +543,23 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit { | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|  | ||||
|   backBillChange() { | ||||
|     const modalRef = this.modalService.create({ | ||||
|       nzTitle: '选择收回单地址', | ||||
|       nzContent: PublishAddressListComponent, | ||||
|       nzWidth: 900, | ||||
|       nzComponentParams: { spuStatus: '2' }, | ||||
|       nzOnOk: item => { | ||||
|         const data = item.seleteData; | ||||
|         if (JSON.stringify(data) === '{}') return; | ||||
|         this.sf6.setValue('/receiptAddressId', data.id); | ||||
|         this.sf6.setValue('/receiptUserName', data.contactName); | ||||
|         this.sf6.setValue('/phon', data.contactTelephone); | ||||
|         this.sf6.setValue('/area', `${data.province}-${data.city}-${data.area}`) | ||||
|         this.sf6.setValue('/address', data.detailedAddress); | ||||
|       } | ||||
|     }); | ||||
|   } | ||||
|   //指派熟车 | ||||
|   chooseFamifiar(item: any) { | ||||
|     const modalRef = this.modalService.create({ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user