CRM_26-06-04#story#8753,增加潜在供应商招募的H5链接中的信息填写
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user