BAOLH
2026-09-18 4738a38017f424e58f9fc8b710a07ac9bbd9fe46
事前出差初版添加(补充修改0918)
2 files modified
12 ■■■■■ changed files
eladmin-web-master/src/api/attendance/preBusinessTravel.js 5 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/preBusinessTravel/index.vue 7 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/api/attendance/preBusinessTravel.js
@@ -1,4 +1,5 @@
import request from '@/utils/request'
import qs from 'qs'
export function add(data) {
  return request({
@@ -48,9 +49,9 @@
  })
}
export function getAllUse() {
export function getAllUse(params) {
  return request({
    url: 'api/preBusinessTravel/getAllUse',
    url: 'api/preBusinessTravel/getAllUse' + '?' + qs.stringify(params, { indices: false }),
    method: 'get'
  })
}
eladmin-web-master/src/views/attendance/preBusinessTravel/index.vue
@@ -239,7 +239,11 @@
        <el-table-column prop="travelReason" label="出差原因" width="140" show-overflow-tooltip />
        <el-table-column prop="departureCity" label="出发城市" width="80" show-overflow-tooltip />
        <el-table-column prop="arrivalCity" label="到达城市" width="80" show-overflow-tooltip />
        <el-table-column prop="project.name" label="关联项目" width="80" show-overflow-tooltip />
        <el-table-column prop="project.name" label="关联项目" width="80" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-tag>{{ scope.row.project.name }}</el-tag>
          </template>
        </el-table-column>
        <el-table-column prop="memberUserId" label="成员" width="120" show-overflow-tooltip>
          <template slot-scope="scope">
            {{ scope.row.memberUserId.split('-').filter(Boolean).map(num => Number(num)).map(userId => users.find(user => user.id == userId).nickName).join(',') }}
@@ -653,6 +657,7 @@
      that.$set(that.form, 'arrivalCity', data.arrivalCity)
      that.$set(that.form, 'projectId', data.projectId)
      that.$set(that.form, 'remarks', data.remarks)
      that.$set(that.form, 'memberUserIds', data.memberUserId.split('-').filter(Boolean).map(num => Number(num)))
    }
  }
}