吉安感知网项目-前端
罗广辉
2026-01-31 7fd4c50d77446469496fba2a5d8edeeecd0740b4
feat: title调整
2 files modified
42 ■■■■ changed files
applications/task-work-order/src/views/orderView/orderManage/orderManage/FormDiaLog.vue 36 ●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderManage/orderManage/RefuseOrderDialog.vue 6 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderManage/orderManage/FormDiaLog.vue
@@ -180,12 +180,17 @@
                />
            </div>
            <div class="rightBox" v-if="!dialogReadonly">
                <div class="detail-title"><span class="required-star" v-if="!dialogReadonly">*</span>推荐设备</div>
                <div class="detail-title">
                    <span class="required-star" v-if="!dialogReadonly">*</span>
                    推荐设备
                </div>
                <el-table
                    class="separateTable"
                    :empty-text="(formData.deviceLoadDemand && pointList.length) ? '暂无数据' : '请先选择设备需求并在地图上绘制工单范围'"
                    :empty-text="
                        formData.deviceLoadDemand && pointList.length ? '暂无数据' : '请先选择设备需求并在地图上绘制工单范围'
                    "
                    ref="deviceTableRef"
                    :data="(formData.deviceLoadDemand && pointList.length) ? deviceList : []"
                    :data="formData.deviceLoadDemand && pointList.length ? deviceList : []"
                    row-key="id"
                    @selection-change="handleDeviceSelectionChange"
                >
@@ -198,11 +203,7 @@
        </div>
        <template #footer>
            <el-button
                v-if="['11', '21', '23','31', '60'].includes(gdStatus)"
                @click="viewDescription"
                color="#F2F3F5"
            >
            <el-button v-if="['11', '21', '23', '31', '60'].includes(gdStatus)" @click="viewDescription" color="#F2F3F5">
                {{ gdStatusObj[gdStatus]?.reason }}
            </el-button>
@@ -331,15 +332,15 @@
const hasPatrolTaskList = computed(() => ['30', '40', '50', '60'].includes(String(formData.value.workOrderStatus)))
const gdStatusObj = {
    '10': { reason: '拒单原因', operationType: '2' },
    '10': { reason: '拒单原因', operationType: '2', title: '拒绝接单' },
    '11': { reason: '拒单原因' },
    '20': { reason: '取消原因', operationType: '3' },
    '21': { reason: '取消原因'},
    '20': { reason: '取消原因', operationType: '3',title:'申请取消' },
    '21': { reason: '取消原因' },
    '23': { reason: '取消原因' },
    '30': { reason: '协商修改原因', operationType: '9' },
    '30': { reason: '协商修改原因', operationType: '9',title:'协商修改' },
    '31': { reason: '协商修改原因' },
    '40': { reason: '' },
    '50': { reason: '情况说明', operationType: '11' },
    '50': { reason: '情况说明', operationType: '11',title:'结算' },
    '60': { reason: '情况说明' },
}
@@ -393,6 +394,7 @@
            row: formData.value,
            type: gdStatusObj[gdStatus.value].operationType,
            formLabel: gdStatusObj[gdStatus.value].reason,
            title: gdStatusObj[gdStatus.value]?.title || '新增'
        })
    })
}
@@ -642,14 +644,14 @@
</script>
<style lang="scss" scoped>
.separateTable{
.separateTable {
    height: 0;
    flex: 1;
    :deep(){
        .el-scrollbar__view{
    :deep() {
        .el-scrollbar__view {
            height: 100%;
        }
        .el-table__empty-text{
        .el-table__empty-text {
            line-height: normal;
        }
    }
applications/task-work-order/src/views/orderView/orderManage/orderManage/RefuseOrderDialog.vue
@@ -2,7 +2,7 @@
    <el-dialog
        class="gd-dialog"
        v-model="visible"
        :title="titleEnum[dialogMode]"
        :title="dialogTitle"
        @closed="visible = false"
        destroy-on-close
        :close-on-click-modal="false"
@@ -98,12 +98,14 @@
}
let formLabelStr = ref('原因')
let dialogTitle = ref('新增')
// 操作类型:1接单,2拒接接单,3申请取消,4申请修改, 5同意取消 6不同意取消 7.同意修改 8.不同意修改 9.协商修改
async function open({ mode = 'add', row, formLabel, type } = {}) {
async function open({ mode = 'add', row, formLabel, type,title } = {}) {
    dialogMode.value = mode
    formLabelStr.value = formLabel
    dialogTitle.value =  title
    formData.value = {
        workOrderId: row.id,
        operationType: type,