sen
昨天 5abcde36961125cbf436f91b8c17610a6b5f8308
修改调度单必填校验
1个文件已修改
10 ■■■■■ 已修改文件
ui/admin-ui3/src/views/tms/tmsDispatchOrder/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ui/admin-ui3/src/views/tms/tmsDispatchOrder/index.vue
@@ -1400,7 +1400,6 @@
            let active = table.active;
            if (Array.isArray(active)) active = active[0];
            console.log('自动填充成功:', active);
            if (active && active.driverName) {
              try {
@@ -1420,7 +1419,6 @@
                    });
                  })
                  await nextTick();
                  console.log('自动填充成功:', form.value);
                }
              } catch (e) {
                console.error("自动获取车牌失败", e);
@@ -1551,7 +1549,6 @@
              if (Array.isArray(value)) {
                id = value[0]
              }
              console.log(98521);
              getTmsDriver(id).then(res => {
                return callback(res.data || {})
@@ -2687,13 +2684,11 @@
          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({
@@ -3389,14 +3384,17 @@
    // 【核心修改】:直接返回,不要赋值给 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);
    }
  }
})