| | |
| | | @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 |
| | |
| | | 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, |
| | |
| | | ], |
| | | }, |
| | | 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-是)', |
| | | }, |
| | |
| | | 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; |
| | | } |