| | |
| | | |
| | | let active = table.active; |
| | | if (Array.isArray(active)) active = active[0]; |
| | | console.log('自动填充成功:', active); |
| | | if (active && active.driverName) { |
| | | try { |
| | | |
| | |
| | | }); |
| | | }) |
| | | await nextTick(); |
| | | console.log('自动填充成功:', form.value); |
| | | } |
| | | } catch (e) { |
| | | console.error("自动获取车牌失败", e); |
| | |
| | | if (Array.isArray(value)) { |
| | | id = value[0] |
| | | } |
| | | console.log(98521); |
| | | |
| | | getTmsDriver(id).then(res => { |
| | | return callback(res.data || {}) |
| | |
| | | if (Array.isArray(value)) { |
| | | id = value[0] |
| | | } |
| | | console.log(998, 'xq1'); |
| | | |
| | | getTmsVehicle(id).then(res => { |
| | | return callback(res.data || {}) |
| | | }) |
| | | } else { |
| | | console.log(669, 'xq2'); |
| | | |
| | | listTmsVehicle({ pageSize: page.pageSize, pageNum: page.currentPage, ...data }).then(res => { |
| | | return callback({ |
| | |
| | | // 【核心修改】:直接返回,不要赋值给 queryParams.value |
| | | return finalParams; |
| | | }, |
| | | handleBeforeOpenFunc: (type: string) => { |
| | | handleBeforeOpenFunc: (type: string,) => { |
| | | |
| | | if (type == 'add') { |
| | | form.value = {}; |
| | | } else if (type == 'edit') { |
| | | // form.value = row; |
| | | handleOrderTypeChange(form.value.orderType); |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | }) |