15815213711
2025-07-29 4c82fc90c9942245f1bd787d820d3738f1a6bc89
修改ID,修改加密方式
3个文件已修改
123 ■■■■■ 已修改文件
ui/admin-ui3/src/plugins/index.ts 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ui/admin-ui3/src/utils/ruoyi.ts 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ui/admin-ui3/src/views/cwgl/dispatchOrder/index.vue 110 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ui/admin-ui3/src/plugins/index.ts
@@ -5,7 +5,7 @@
import modal from "@/plugins/modal";
import download from "@/plugins/download";
import {useDict} from "@/utils/dict";
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel } from '@/utils/ruoyi'
import { parseTime, resetForm, addDateRange,addDateRangeNew, handleTree, selectDictLabel } from '@/utils/ruoyi'
export default function installPlugins(app: App<Element>) {
@@ -24,6 +24,7 @@
    app.config.globalProperties.parseTime = parseTime;
    app.config.globalProperties.resetForm = resetForm;
    app.config.globalProperties.addDateRange = addDateRange;
    app.config.globalProperties.addDateRangeNew = addDateRangeNew;
    app.config.globalProperties.handleTree = handleTree;
    app.config.globalProperties.selectDictLabel = selectDictLabel;
}
ui/admin-ui3/src/utils/ruoyi.ts
@@ -69,6 +69,16 @@
    }
    return search;
}
export function addDateRangeNew(params: any, dateRange: any[], propName: string) {
    let search = params;
    dateRange = Array.isArray(dateRange) ? dateRange : [];
    if(dateRange.length >0){
        search[ propName+'Begin' ] = dateRange[0];
        search[ propName + 'End'] = dateRange[1];
    }
    return search;
}
// 回显数据字典
export function selectDictLabel(datas: { [x: string]: { label: any } }, value: string) {
ui/admin-ui3/src/views/cwgl/dispatchOrder/index.vue
@@ -21,21 +21,7 @@
        @on-load="onLoad"
    >
      <template #menu-left>
        <el-button
            type="success"
            icon="Edit"
            :disabled="pageF.single"
            v-hasPermi="['cwgl:dispatchOrder:edit']"
            @click="handleUpdate">修改
        </el-button>
        <el-button
            type="danger"
            icon="Delete"
            :disabled="pageF.multiple"
            @click="handleDelete"
            v-hasPermi="['cwgl:dispatchOrder:remove']"
        >删除
        </el-button>
        <el-button
            type="warning"
            plain
@@ -92,9 +78,14 @@
const option = ref({
  pageKey: 'DispatchOrder',
  rowKey: 'id',
  addBtn:false,
  editBtn:false,
  delBtn:false,
  viewBtn:false,
  selection:false,
  column: {
    dispatchNo: {
      label: '调度单号',search:true,
      label: '调度单号',search:true,width: 120,
      rules: [
        {
          required: true,
@@ -103,78 +94,95 @@
      ],
    },
    transportMode: {
      label: '运输方式',
      label: '运输方式',width: 120,
    },
    productName: {
      label: '服务产品名称',
      label: '服务产品名称',width: 120,
    },
    carrierName: {
      label: '承运商',search:true,
      label: '承运商',search:true,width: 120,
    },
    departureLocationName: {
      label: '出发地名称',
      label: '出发地名称',width: 120,
    },
    arrivalLocationName: {
      label: '目的地名称',
      label: '目的地名称',width: 120,
    },
    licensePlateNumber: {
      label: '车牌',search:true,
      label: '车牌',search:true,width: 120,
    },
    vehiclePlateId: {
      label: '车板号',
      label: '车板号',width: 120,
    },
    mainDriverName: {
      label: '主驾驶员',
      label: '主驾驶员',width: 120,
    },
    assistantDriverName: {
      label: '副驾驶员',
      label: '副驾驶员',width: 120,
    },
    pointNum: {
      label: '提送货点数',
      label: '提送货点数',width: 120,
    },
    quantity: {
      label: '件数',
      label: '件数',width: 120,
    },
    actualDepartureTime: {
      label: '实际出发时间',
      label: '实际出发时间',width: 180,
    },
    actualDepartureTimeRange: {
      label: '实际出发时间',display: false,search: true, searchRange: true, type: 'date',
      format: 'YYYY-MM-DD',hide: true,searchSpan: 6,searchLabelWidth: 110,
      valueFormat: 'YYYY-MM-DD',
    },
    requiredArrivalTime: {
      label: '要求到达时间',
      label: '要求到达时间',width: 180,
    },
    requiredArrivalTimeRange: {
      label: '要求到达时间',display: false,search: true, searchRange: true, type: 'date',
      format: 'YYYY-MM-DD',hide: true,searchSpan: 6,searchLabelWidth: 110,
      valueFormat: 'YYYY-MM-DD',
    },
    actualArrivalTime: {
      label: '实际到达时间',
      label: '实际到达时间',width: 180,
    },
    actualArrivalTimeRange: {
      label: '要求到达时间',display: false,search: true, searchRange: true, type: 'date',
      format: 'YYYY-MM-DD',hide: true,searchSpan: 6,searchLabelWidth: 110,
      valueFormat: 'YYYY-MM-DD',
    },
    beReturn: {
      label: '是否回程(N,Y)',
      label: '是否回程',dataType:'string',width: 100,
      type: 'select', dicUrl: '/system/dict/data/type/dispatch_order_status',
    },
    dispatchQuantity: {
      label: '实发件数',
      label: '实发件数',width: 100,
    },
    dispatchWeight: {
      label: '实发重量',
      label: '实发重量',width: 100,
    },
    dispatchVolume: {
      label: '实发体积(立方)',
      label: '实发体积(立方)',width: 100,
    },
    status: {
      label: '状态',
      label: '状态',search: true,dataType:'string',width: 100,
      type: 'select', dicUrl: '/system/dict/data/type/dispatch_order_status',
    },
    remark: {
      label: '备注',
      label: '备注',width: 120,
      type: 'textarea', minRows: 3, maxRows: 5,
    },
    createBy: {
      label: '创建人',
    },
    createTime: {
      label: '创建时间',
    },
    updateBy: {
      label: '修改人',
    },
    updateTime: {
      label: '修改时间',
    },
    // createBy: {
    //   label: '创建人',
    // },
    // createTime: {
    //   label: '创建时间',
    // },
    // updateBy: {
    //   label: '修改人',
    // },
    // updateTime: {
    //   label: '修改时间',
    // },
    isDeleted: {
      label: '是否删除(0-否,1-是)',
    },
@@ -213,6 +221,12 @@
  handleUpdateFunc: () => {
    crudRef.value.rowEdit(selectionList.value[0]);
  },
  getBeginListFunc(params:any = {}){
    params = proxy.addDateRangeNew(params, params?.actualDepartureTimeRange, 'actualDepartureTime') || {};
    params = proxy.addDateRangeNew(params, params?.requiredArrivalTimeRange, 'requiredArrivalTime') || {};
    params = proxy.addDateRangeNew(params, params?.actualArrivalTimeRange, 'actualArrivalTime') || {};
    return params;
  },
  handleSelectionChangeFunc: (selection: any) => {
    selectionList.value = selection;
  }