| | |
| | | @Excel(name = "系统编号") |
| | | @TableField("system_code") |
| | | private String systemCode; |
| | | |
| | | /** |
| | | * 自营类型 |
| | | */ |
| | | @TableField("self_leas_type") |
| | | private Integer selfLeasType; |
| | | |
| | | /** |
| | | * 集装箱号 |
| | |
| | | @TableField("shelf_code") |
| | | private String shelfCode; |
| | | |
| | | /** |
| | | * 自营类型 |
| | | */ |
| | | @TableField("self_leas_type") |
| | | private Integer selfLeasType; |
| | | |
| | | /** |
| | | * 托架类型 |
| | |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="selfLeasType" column="self_leas_type" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="selectTmsContainerVo"> |
| | | select thisTab.id, thisTab.system_code, thisTab.container_code, thisTab.container_use_type, thisTab.container_size, thisTab.owner_team_id, thisTab.owner_team_name, thisTab.manufacturer, thisTab.manufacture_date, thisTab.length_mm, thisTab.width_mm, thisTab.height_mm, thisTab.max_total_weight_kg, thisTab.max_load_kg, thisTab.volume_m3, thisTab.is_in_use, thisTab.maintenance_status, thisTab.last_maintenance_date, thisTab.next_maintenance_date, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark from tms_container AS thisTab |
| | | select thisTab.id, thisTab.system_code, thisTab.container_code, thisTab.container_use_type, thisTab.container_size, thisTab.owner_team_id, thisTab.owner_team_name, thisTab.manufacturer, thisTab.manufacture_date, thisTab.length_mm, thisTab.width_mm, thisTab.height_mm, thisTab.max_total_weight_kg, thisTab.max_load_kg, thisTab.volume_m3, thisTab.is_in_use, thisTab.maintenance_status, thisTab.last_maintenance_date, thisTab.next_maintenance_date, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark ,thisTab.self_leas_type from tms_container AS thisTab |
| | | </sql> |
| | | <sql id="selectTmsContainerVoCount"> |
| | | select count(0) from tms_container as thisTab |
| | |
| | | <if test="isInUse != null "> and thisTab.is_in_use = #{isInUse}</if> |
| | | <if test="maintenanceStatus != null "> and thisTab.maintenance_status = #{maintenanceStatus}</if> |
| | | <if test="status != null "> and thisTab.status = #{status}</if> |
| | | <if test="selfLeasType != null "> and thisTab.self_leas_type = #{selfLeasType}</if> |
| | | |
| | | </sql> |
| | | |
| | | <!--查询--> |
| | |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="selfLeasType != null">self_leas_type,</if> |
| | | |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="systemCode != null and systemCode != ''">#{systemCode},</if> |
| | |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="selfLeasType != null">#{selfLeasType},</if> |
| | | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <insert id="insertTmsContainerBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into tms_container |
| | | <trim prefix="(" suffix=") values" suffixOverrides=","> |
| | | id,system_code,container_code,container_use_type,container_size,owner_team_id,owner_team_name,manufacturer,manufacture_date,length_mm,width_mm,height_mm,max_total_weight_kg,max_load_kg,volume_m3,is_in_use,maintenance_status,last_maintenance_date,next_maintenance_date,status,create_by,create_time,update_by,update_time,remark, |
| | | id,system_code,container_code,container_use_type,container_size,owner_team_id,owner_team_name,manufacturer,manufacture_date,length_mm,width_mm,height_mm,max_total_weight_kg,max_load_kg,volume_m3,is_in_use,maintenance_status,last_maintenance_date,next_maintenance_date,status,create_by,create_time,update_by,update_time,remark,self_leas_type, |
| | | </trim> |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | <trim prefix="(" suffix=") " suffixOverrides=","> |
| | | #{item.id},#{item.systemCode},#{item.containerCode},#{item.containerUseType},#{item.containerSize},#{item.ownerTeamId},#{item.ownerTeamName},#{item.manufacturer},#{item.manufactureDate},#{item.lengthMm},#{item.widthMm},#{item.heightMm},#{item.maxTotalWeightKg},#{item.maxLoadKg},#{item.volumeM3},#{item.isInUse},#{item.maintenanceStatus},#{item.lastMaintenanceDate},#{item.nextMaintenanceDate},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.remark}, |
| | | #{item.id},#{item.systemCode},#{item.containerCode},#{item.containerUseType},#{item.containerSize},#{item.ownerTeamId},#{item.ownerTeamName},#{item.manufacturer},#{item.manufactureDate},#{item.lengthMm},#{item.widthMm},#{item.heightMm},#{item.maxTotalWeightKg},#{item.maxLoadKg},#{item.volumeM3},#{item.isInUse},#{item.maintenanceStatus},#{item.lastMaintenanceDate},#{item.nextMaintenanceDate},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.remark},#{item.item.selfLeasType}, |
| | | </trim> |
| | | </foreach> |
| | | </insert> |
| | |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="selfLeasType != null">self_leas_type = #{selfLeasType},</if> |
| | | |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test="item.updateBy != null">update_by = #{item.updateBy},</if> |
| | | <if test="item.updateTime != null">update_time = #{item.updateTime},</if> |
| | | <if test="item.remark != null">remark = #{item.remark},</if> |
| | | <if test="item.selfLeasType != null">self_leas_type = #{item.selfLeasType},</if> |
| | | </trim> |
| | | where id = #{item.id} |
| | | </foreach> |
| | |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="selfLeasType" column="self_leas_type" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTmsShelfVo"> |
| | | select thisTab.id, thisTab.system_code, thisTab.shelf_code, thisTab.shelf_type, thisTab.owner_team_id, thisTab.owner_team_name, thisTab.manufacturer, thisTab.manufacture_date, thisTab.length_mm, thisTab.width_mm, thisTab.height_mm, thisTab.max_load_kg, thisTab.compatible_container_type, thisTab.is_in_use, thisTab.maintenance_status, thisTab.last_maintenance_date, thisTab.next_maintenance_date, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark from tms_shelf AS thisTab |
| | | select thisTab.id, thisTab.system_code, thisTab.shelf_code, thisTab.shelf_type, thisTab.owner_team_id, thisTab.owner_team_name, thisTab.manufacturer, thisTab.manufacture_date, thisTab.length_mm, thisTab.width_mm, thisTab.height_mm, thisTab.max_load_kg, thisTab.compatible_container_type, thisTab.is_in_use, thisTab.maintenance_status, thisTab.last_maintenance_date, thisTab.next_maintenance_date, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark ,thisTab.self_leas_type from tms_shelf AS thisTab |
| | | </sql> |
| | | <sql id="selectTmsShelfVoCount"> |
| | | select count(0) from tms_shelf as thisTab |
| | |
| | | <if test="isInUse != null "> and thisTab.is_in_use = #{isInUse}</if> |
| | | <if test="maintenanceStatus != null "> and thisTab.maintenance_status = #{maintenanceStatus}</if> |
| | | <if test="status != null "> and thisTab.status = #{status}</if> |
| | | <if test="selfLeasType != null "> and thisTab.self_leas_type = #{selfLeasType}</if> |
| | | </sql> |
| | | |
| | | <!--查询--> |
| | |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="selfLeasType != null">self_leas_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="systemCode != null and systemCode != ''">#{systemCode},</if> |
| | |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="selfLeasType != null">#{selfLeasType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <insert id="insertTmsShelfBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into tms_shelf |
| | | <trim prefix="(" suffix=") values" suffixOverrides=","> |
| | | id,system_code,shelf_code,shelf_type,owner_team_id,owner_team_name,manufacturer,manufacture_date,length_mm,width_mm,height_mm,max_load_kg,compatible_container_type,is_in_use,maintenance_status,last_maintenance_date,next_maintenance_date,status,create_by,create_time,update_by,update_time,remark, |
| | | id,system_code,shelf_code,shelf_type,owner_team_id,owner_team_name,manufacturer,manufacture_date,length_mm,width_mm,height_mm,max_load_kg,compatible_container_type,is_in_use,maintenance_status,last_maintenance_date,next_maintenance_date,status,create_by,create_time,update_by,update_time,remark,self_leas_type, |
| | | </trim> |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | <trim prefix="(" suffix=") " suffixOverrides=","> |
| | | #{item.id},#{item.systemCode},#{item.shelfCode},#{item.shelfType},#{item.ownerTeamId},#{item.ownerTeamName},#{item.manufacturer},#{item.manufactureDate},#{item.lengthMm},#{item.widthMm},#{item.heightMm},#{item.maxLoadKg},#{item.compatibleContainerType},#{item.isInUse},#{item.maintenanceStatus},#{item.lastMaintenanceDate},#{item.nextMaintenanceDate},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.remark}, |
| | | #{item.id},#{item.systemCode},#{item.shelfCode},#{item.shelfType},#{item.ownerTeamId},#{item.ownerTeamName},#{item.manufacturer},#{item.manufactureDate},#{item.lengthMm},#{item.widthMm},#{item.heightMm},#{item.maxLoadKg},#{item.compatibleContainerType},#{item.isInUse},#{item.maintenanceStatus},#{item.lastMaintenanceDate},#{item.nextMaintenanceDate},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.remark},#{item.selfLeasType}, |
| | | </trim> |
| | | </foreach> |
| | | </insert> |
| | |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="selfLeasType != null">self_leas_type = #{selfLeasType},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test="item.updateBy != null">update_by = #{item.updateBy},</if> |
| | | <if test="item.updateTime != null">update_time = #{item.updateTime},</if> |
| | | <if test="item.remark != null">remark = #{item.remark},</if> |
| | | <if test="item.selfLeasType != null">self_leas_type = #{item.selfLeasType},</if> |
| | | </trim> |
| | | where id = #{item.id} |
| | | </foreach> |
| | |
| | | # 列表操作按钮展示位置 left/right |
| | | VITE_APP_listOptFixed = 'left' |
| | | #后台接口地址 |
| | | VITE_APP_BASE_SERVER_API = 'http://localhost:8080' |
| | | VITE_APP_BASE_SERVER_API = 'http://localhost:8060' |
| | | # 上下文 |
| | | VITE_APP_BASE_URL = '/admin/' |
| | | |
| | |
| | | "type": "module", |
| | | "scripts": { |
| | | "dev": "vite", |
| | | "build:prod": "vue-tsc --noEmit --skipLibCheck && vite build", |
| | | "build:prod": " vite build", |
| | | "build:stage": "vite build --mode staging", |
| | | "preview": "vite preview" |
| | | }, |
| | |
| | | |
| | | .el-dropdown .el-dropdown-link{ |
| | | color: var(--el-color-primary) !important; |
| | | } |
| | | .el-table{ |
| | | --el-table-current-row-bg-color: var(--el-color-success-light-7) !important; |
| | | } |
| | |
| | | viewBtn: true, |
| | | selection: true, |
| | | searchSpan: 5, |
| | | height: 600, |
| | | props: { |
| | | label: 'dictLabel', |
| | | value: 'dictValue' |
| | |
| | | } |
| | | ], |
| | | }, |
| | | selfLeasType: { |
| | | label: '自租类型', |
| | | type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type', |
| | | addDisplay: true, |
| | | editDisplay: true,minWidth:150, |
| | | viewDisplay: true, |
| | | hide: false, |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "自租类型不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | }, |
| | | containerCode: { |
| | | label: '集装箱号', |
| | | addDisplay: true, |
| | |
| | | hide: false,minWidth:150, |
| | | search: true, |
| | | }, |
| | | selfLeasType: { |
| | | label: '自租类型', |
| | | type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type', |
| | | hide: false, display: false, |
| | | search: true, |
| | | }, |
| | | containerCode: { |
| | | label: '集装箱号', |
| | | display: false, |
| | |
| | | </el-link> |
| | | </template> |
| | | |
| | | <template #shipperId-form> |
| | | <template #shipperId-form="{disabled}"> |
| | | <div style="display:flex; align-items: center;justify-content: space-between"> |
| | | <avue-input-table :props="consignorProps" |
| | | :children="consignorOption" |
| | | :children="consignorOption" :disabled="disabled" |
| | | :on-load="onShipperLoad" suffixIcon="search" |
| | | v-model="form.shipperId" style="width: 80%" |
| | | @change="changeShipper" |
| | | placeholder="请选择装货点"></avue-input-table> |
| | | <el-button icon="plus" @click="handleAddShipper"></el-button> |
| | | <el-button icon="plus" :disabled="disabled" @click="handleAddShipper"></el-button> |
| | | </div> |
| | | </template> |
| | | <template #receiverId-form> |
| | | <template #receiverId-form="{disabled}"> |
| | | <div style="display:flex; align-items: center;justify-content: space-between"> |
| | | <avue-input-table :props="consignorProps" |
| | | :children="consignorOption" |
| | | :on-load="onConsignorLoad" suffixIcon="search" |
| | | v-model="form.receiverId" |
| | | v-model="form.receiverId" :disabled="disabled" |
| | | @change="changeReceiver" style="width: 80%" |
| | | placeholder="请选择卸货点"></avue-input-table> |
| | | <el-button icon="plus" @click="handleAddReceiver"></el-button> |
| | | <el-button icon="plus" :disabled="disabled" @click="handleAddReceiver"></el-button> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | ], |
| | | type: 'table', suffixIcon: 'search',dataType: 'string', |
| | | change: (val: any) => { |
| | | console.log(val) |
| | | const table = crudRef.value?.getPropRef?.('quoteDetailId')?.$refs?.temp; |
| | | if (!table) return; |
| | | let active = table.active; |
| | | if (Array.isArray(active)) active = active[0]; |
| | | if (active) { |
| | | console.log(active) |
| | | Object.assign(form.value, { |
| | | quoteDetailId: active.quoteDetailId, |
| | | transportLine: active.transportRoute, |
| | |
| | | ], |
| | | }, |
| | | isUrgent: { |
| | | label: '是否紧急', |
| | | label: '是否紧急',value: '1', |
| | | display: true, |
| | | type: 'radio', dicUrl: '/system/dict/data/type/sys_number_is', dataType: 'string', |
| | | rules: [ |
| | |
| | | option.value.group.forEach((item: any) => { |
| | | if (item.prop == 'pcxx') { |
| | | item.column.commissionModel.display = value != 1; |
| | | item.column.containerId.display = value != 1; |
| | | item.column.shelfId.display = value != 1; |
| | | item.column.vehicleProviderId.display = value == 1; |
| | | item.column.containerNo.display = value == 1; |
| | | item.column.shelfCode.display = value == 1; |
| | | // item.column.vehicleProviderId.rules.forEach((cItem: any) => { |
| | | // cItem.required = value == 1; |
| | | // }); |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | }, |
| | | commissionModel:{ |
| | |
| | | listTmsDriver({ |
| | | pageSize: page.pageSize, |
| | | pageNum: page.currentPage, ...data, |
| | | carrierType: form.value.operationMode |
| | | carrierType: form.value.operationMode,vehicleProviderId:form.value.vehicleProviderId |
| | | }).then(res => { |
| | | return callback({ |
| | | total: res.total, |
| | |
| | | } else { |
| | | listTmsDriver({ |
| | | pageSize: page.pageSize, |
| | | pageNum: page.currentPage, ...data, |
| | | pageNum: page.currentPage, ...data,vehicleProviderId:form.value.vehicleProviderId, |
| | | carrierType: form.value.operationMode |
| | | }).then(res => { |
| | | return callback({ |
| | |
| | | Object.assign(form.value, { |
| | | vehicleId: active.id, |
| | | licensePlate: active.licensePlate, |
| | | actualVehicleType: active.vehicleType, |
| | | }); |
| | | } |
| | | }, |
| | |
| | | }, |
| | | vehicleType: { |
| | | label: '车辆类型', minWidth: 120, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/vehicle_type', |
| | | |
| | | search: true, |
| | | }, |
| | | internalCode: { |
| | |
| | | listTmsVehicle({ |
| | | pageSize: page.pageSize, |
| | | pageNum: page.currentPage, ...data, |
| | | carrierType: form.value.operationMode |
| | | carrierType: form.value.operationMode,serviceProviderId:form.value.vehicleProviderId |
| | | }).then(res => { |
| | | return callback({ |
| | | total: res.total, |
| | |
| | | label: '卸货点联系方式', |
| | | display: true, disabled: true |
| | | }, |
| | | containerNo: { |
| | | label: '集装箱号', |
| | | display: false, |
| | | }, |
| | | containerId: { |
| | | label: '关联集装箱信息', |
| | | display: true, |
| | |
| | | containerUseType: { |
| | | label: '集装箱用途类型', minWidth: 120, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/container_use_type', |
| | | search: true, |
| | | }, |
| | | selfLeasType: { |
| | | label: '自租类型', minWidth: 120, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type', |
| | | search: true, |
| | | }, |
| | | containerSize: { |
| | |
| | | } |
| | | |
| | | }, |
| | | shelfCode: { |
| | | label: '托板号', |
| | | display: false, |
| | | }, |
| | | shelfId: { |
| | | label: '托板号', |
| | | display: true, |
| | |
| | | search: true, |
| | | }, |
| | | shelfType: { |
| | | label: '托架类型', minWidth: 120, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/shelf_type', |
| | | search: true, |
| | | }, |
| | | selfLeasType: { |
| | | label: '自租类型', minWidth: 120, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type', |
| | | search: true, |
| | | }, |
| | | compatibleContainerType: { |
| | |
| | | pageF.isUploading = false; |
| | | }) |
| | | }else if (optionType.value === 'customs') { |
| | | customsOrder(form.value.id).then(res => { |
| | | customsOrder({id:form.value.id}).then(res => { |
| | | ElMessage({ |
| | | message: "提交成功!", |
| | | type: 'success' |
| | |
| | | pageF.isUploading = false; |
| | | }) |
| | | }else if (optionType.value === 'loading') { |
| | | loadingOrder(form.value.id).then(res => { |
| | | loadingOrder({id:form.value.id}).then(res => { |
| | | ElMessage({ |
| | | message: "提交成功!", |
| | | type: 'success' |
| | |
| | | } |
| | | ], |
| | | }, |
| | | selfLeasType: { |
| | | label: '自租类型', |
| | | type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type', |
| | | addDisplay: true, |
| | | editDisplay: true,minWidth:150, |
| | | viewDisplay: true, |
| | | hide: false, |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "自租类型不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | }, |
| | | shelfCode: { |
| | | label: '托架编号', |
| | | addDisplay: true, |
| | |
| | | hide: false, |
| | | search: true, |
| | | }, |
| | | selfLeasType: { |
| | | label: '自营租赁类型',display: false, |
| | | type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/self_leas_type', |
| | | hide: false,minWidth:150, |
| | | search: true, |
| | | }, |
| | | shelfType: { |
| | | label: '托架类型', |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/shelf_type', |
| | |
| | | hide: false,minWidth:150, |
| | | search: true, |
| | | }, |
| | | |
| | | isInUse: { |
| | | label: '是否在用',dataType: 'string', |
| | | type: 'radio', dicUrl: '/system/dict/data/type/sys_number_is', |