吉安感知网项目-前端
chenyao
2026-01-28 38d6643ce2df6a7166dd496750d1f067451e1254
feat:更新工单
1 files modified
1 files added
93 ■■■■■ changed files
applications/task-work-order/src/views/orderView/equipmentResource/equipmentResourceApi.js 37 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/flyingHand/FlyingHandDialog.vue 56 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/equipmentResource/equipmentResourceApi.js
New file
@@ -0,0 +1,37 @@
import request from '@/axios'
// 设备分页查询
export function getEquipmentPage(params) {
    return request({
        url: '/drone-gd/workOrder/gdManageDevice/page',
        method: 'get',
        params
        // params: { descs: 'create_time', ...params },
    })
}
// 设备提交
export function submitExternalEquipment(data) {
    return request({
        url: '/drone-gd/workOrder/gdManageDevice/submitExternal',
        method: 'post',
        data
    })
}
// 设备删除
export function removeEquipment(data) {
    return request({
        url: `/drone-gd/workOrder/gdManageDevice/remove?ids=${data.ids}`,
        method: 'post',
    })
}
// 设备详情查询
export function getEquipmentDetail(params) {
    return request({
        url: '/drone-gd/workOrder/gdManageDevice/detail',
        method: 'get',
        params
    })
}
applications/task-work-order/src/views/orderView/flyingHand/FlyingHandDialog.vue
@@ -7,12 +7,57 @@
        destroy-on-close
        :close-on-click-modal="false"
    >
    <el-row class="detail-row-view" v-if="dialogType === 'view'">
      <el-col :span="12">
        <div class="label">飞手姓名</div>
        <div class="val">{{ formData.flyerName }}</div>
      </el-col>
      <el-col :span="12">
        <div class="label">飞手电话</div>
        <div class="val">{{ formData.flyerPhone }}</div>
      </el-col>
      <el-col :span="12">
        <div class="label">飞行时长</div>
        <div class="val">{{ formData.flightHours }}</div>
      </el-col>
      <el-col :span="12">
        <div class="label">技术特长</div>
        <div class="val">{{ getDictLabel(formData.technicalStrength, dictObj.technicalStrength) }}</div>
      </el-col>
      <el-col :span="12">
        <div class="label">擅长机型</div>
        <div class="val">{{ getDictLabel(formData.skilledUavType, dictObj.skilledUavType) }}</div>
      </el-col>
      <el-col :span="12">
        <div class="label">擅长任务类型</div>
        <div class="val">{{ getDictLabel(formData.skilledTaskType, dictObj.skilledTaskType) }}</div>
      </el-col>
      <el-col :span="12">
        <div class="label">项目经验</div>
        <div class="val">{{ formData.projectExperience }}</div>
      </el-col>
      <el-col :span="12">
        <div class="label">飞手证书</div>
        <div class="val">
            <el-image
                v-for="(item, index) in formData.certification"
                :key="index"
                :src="item"
                :preview-src-list="formData.certification"
                class="gd-image"
                style="width: 100px; height: 100px; margin-right: 10px;"
            />
        </div>
      </el-col>
    </el-row>
        <el-form
            ref="formRef"
            :model="formData"
            :rules="rules"
            class="gd-form"
            label-width="160px"
            v-else
        >
            <el-row>
                <el-col :span="12">
@@ -124,7 +169,7 @@
                        />
                    </el-form-item>
                </el-col>
                <el-col :span="24" v-if="dialogType === 'view'">
                <!-- <el-col :span="24" v-if="dialogType === 'view'">
                    <el-form-item label="飞手证书" prop="certification">
                        <el-image
                            v-for="(item, index) in formData.certification"
@@ -135,7 +180,7 @@
                            style="width: 100px; height: 100px; margin-right: 10px;"
                        />
                    </el-form-item>
                </el-col>
                </el-col> -->
            </el-row>
        </el-form>
        <template #footer>
@@ -155,6 +200,7 @@
import { ref, reactive, computed, watch, inject } from 'vue'
import { submitFlyingHand } from './flyingHandApi'
import { ElMessage } from 'element-plus'
import { getDictLabel } from '@ztzf/utils'
import { fieldRules } from '@ztzf/utils'
@@ -188,11 +234,11 @@
const dialogTitle = computed(() => {
    switch (props.dialogType) {
        case 'add':
            return '添加飞手信息'
            return '新增'
        case 'edit':
            return '编辑飞手信息'
            return '编辑'
        case 'view':
            return '查看飞手信息'
            return '查看'
        default:
            return '飞手信息'
    }