CRM_26-06-04#story#8753,增加潜在供应商招募的H5链接中的信息填写

This commit is contained in:
2026-06-04 10:49:17 +08:00
parent 3c1f238163
commit 0483c2d0a7
8 changed files with 301 additions and 13 deletions

View File

@@ -686,6 +686,9 @@ export default {
async mounted() {
this.id=this.$route.params?.id
this.approvalForm.supplierId=this.$route.params?.supplierId
const urlParams = new URLSearchParams(window.location.search);
const rawId = this.$route.query.supplierId || urlParams.get('supplierId');
this.supplierId = rawId ? Number(rawId) : '';
await this.getSupplierServiceTree();
await this.getTypeList();
if( this.id){
@@ -948,7 +951,7 @@ export default {
}
},
async getSupplierServiceTree(){
let res = await supplierServiceTree();
let res = await supplierServiceTree({ supplierId: this.supplierId });
this.supplierServiceList=res.data
this.oldSupplierServiceList=this.supplierServiceList
},
@@ -1303,6 +1306,7 @@ export default {
// return
await saveVehicle({
vehicleId:this.id ? this.id : '',
supplierId: this.supplierId || undefined,
plateNumber:this.carNum ? this.carNum :'',
vehicleType:this.selectedOption?.length>0 ? this.selectedOption.join(',') : '',
// hasPolymerization:this.isJoin,