|
|
|
@ -3,70 +3,70 @@
|
|
|
|
|
<!-- 搜索栏-->
|
|
|
|
|
<el-form v-show="showSearch" ref="queryRef" :inline="true" :label-width=" locale ? '100px':'180px'"
|
|
|
|
|
:model="queryParams">
|
|
|
|
|
<el-form-item :label="t('tireManagement.info.factory')" prop="tyreFactory">
|
|
|
|
|
<el-form-item :label="t('web.factory')" prop="tyreFactory">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.tyreFactory"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('tireManagement.info.factory')"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('web.factory')"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('tireManagement.info.tireNumber')" prop="outerTireNumber">
|
|
|
|
|
<el-form-item :label="t('web.tireNumber')" prop="outerTireNumber">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.outerTireNumber"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('tireManagement.info.tireNumber')"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('web.tireNumber')"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('tireManagement.info.brand')" prop="brand">
|
|
|
|
|
<el-form-item :label="t('web.brand')" prop="brand">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.brand"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('tireManagement.info.brand')"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('web.brand')"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('tireManagement.info.pattern')" prop="pattern">
|
|
|
|
|
<el-form-item :label="t('web.pattern')" prop="pattern">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.pattern"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('tireManagement.info.pattern')"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('web.pattern')"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('tireManagement.info.tireSpecificationModel')" prop="size">
|
|
|
|
|
<el-form-item :label="t('web.tireSpecificationModel')" prop="size">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.size"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('tireManagement.info.tireSpecificationModel')"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('web.tireSpecificationModel')"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('tireManagement.info.sensorNumber')" prop="sensorId">
|
|
|
|
|
<el-form-item :label="t('web.sensorNumber')" prop="sensorId">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.sensorId"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('tireManagement.info.sensorNumber')"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('web.sensorNumber')"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('tireManagement.info.numberPlate')" prop="carLicense">
|
|
|
|
|
<el-form-item :label="t('web.numberPlate')" prop="carLicense">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.carLicense"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('tireManagement.info.numberPlate')"
|
|
|
|
|
:placeholder="t('common.pleaseEnter') + t('web.numberPlate')"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 200px"
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('tireManagement.info.creationTime')">
|
|
|
|
|
<el-form-item :label="t('common.createTime')">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="dateRange"
|
|
|
|
|
:end-placeholder="t('common.endDate')"
|
|
|
|
@ -113,7 +113,7 @@
|
|
|
|
|
plain
|
|
|
|
|
type="info"
|
|
|
|
|
@click="handleImport"
|
|
|
|
|
>导入
|
|
|
|
|
>{{ t('common.import') }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
@ -132,18 +132,18 @@
|
|
|
|
|
<!-- 表格主体-->
|
|
|
|
|
<el-table v-loading="loading" :data="postList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column align="center" fixed type="selection" width="55"/>
|
|
|
|
|
<el-table-column align="center" label="工厂" prop="tyreFactory" width="150"/>
|
|
|
|
|
<el-table-column align="center" label="外胎号" prop="outerTireNumber" width="150"/>
|
|
|
|
|
<el-table-column align="center" label="品牌" prop="brand" width="150"/>
|
|
|
|
|
<el-table-column align="center" label="规格型号" prop="size" width="150"/>
|
|
|
|
|
<el-table-column align="center" label="花纹" prop="pattern" width="150"/>
|
|
|
|
|
<el-table-column align="center" label="目前所安装车辆" prop="carLicense" width="150"/>
|
|
|
|
|
<el-table-column align="center" label="安装轮位" prop="tyrePosition" width="150"/>
|
|
|
|
|
<el-table-column align="center" label="传感器编号" prop="sensorId" width="150"/>
|
|
|
|
|
<el-table-column align="center" label="最新花纹深度(mm)" prop="currentTextureDepth" width="170"/>
|
|
|
|
|
<el-table-column align="center" label="创建时间" prop="createTime" width="170"/>
|
|
|
|
|
<el-table-column align="center" label="创建者" prop="createName" width="170"/>
|
|
|
|
|
<el-table-column align="center" label="使用企业" prop="companyCode" width="170"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.factory')" prop="tyreFactory" width="150"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.tireNumber')" prop="outerTireNumber" width="150"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.brand')" prop="brand" width="150"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.tireSpecificationModel')" prop="size" :width=" locale ? 150:200"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.pattern')" prop="pattern" width="150"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.currentlyInstalledVehicles')" prop="carLicense" :width=" locale ? 150:200"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.mountingWheelPosition')" prop="tyrePosition" :width=" locale ? 150:200"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.sensorNumber')" prop="sensorId" width="150"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.depthOfLatestPattern')" prop="currentTextureDepth" width="170"/>
|
|
|
|
|
<el-table-column align="center" :label="t('common.createTime')" prop="createTime" width="170"/>
|
|
|
|
|
<el-table-column align="center" :label="t('common.createBy')" prop="createName" width="170"/>
|
|
|
|
|
<el-table-column align="center" :label="t('web.usingEnterprise')" prop="companyCode" width="170"/>
|
|
|
|
|
<el-table-column :label="t('option.option')" align="center" class-name="small-padding fixed-width" fixed="right"
|
|
|
|
|
width="160">
|
|
|
|
|
<template #default="scope">
|
|
|
|
@ -170,24 +170,24 @@
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改岗位对话框 -->
|
|
|
|
|
<el-dialog v-model="open" :title="title" append-to-body width="500px">
|
|
|
|
|
<el-form ref="postRef" :label-width=" locale ? '100px':'140px'" :model="form" :rules="rules">
|
|
|
|
|
<el-form ref="postRef" :label-width=" locale ? '100px':'180px'" :model="form" :rules="rules">
|
|
|
|
|
<el-form-item v-if="false" prop="id">
|
|
|
|
|
<el-input v-model="form.id"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="胎号" prop="outerTireNumber">
|
|
|
|
|
<el-form-item :label="t('web.tireNumber')" prop="outerTireNumber">
|
|
|
|
|
<el-input v-model="form.outerTireNumber"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="品牌" prop="brand">
|
|
|
|
|
<el-form-item :label="t('web.brand')" prop="brand">
|
|
|
|
|
<el-input v-model="form.brand"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="规格型号" prop="size">
|
|
|
|
|
<el-form-item :label="t('web.tireSpecificationModel')" prop="size">
|
|
|
|
|
<el-input v-model="form.size"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="花纹" prop="pattern">
|
|
|
|
|
<el-form-item :label="t('web.pattern')" prop="pattern">
|
|
|
|
|
<el-input v-model="form.pattern"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item :label="t('tireManagement1.treadDepth')" prop="currentTextureDepth">
|
|
|
|
|
<el-form-item :label="t('web.depthOfLatestPattern')" prop="currentTextureDepth">
|
|
|
|
|
<el-input-number
|
|
|
|
|
v-model="form.currentTextureDepth"
|
|
|
|
|
:max="99"
|
|
|
|
@ -223,24 +223,24 @@
|
|
|
|
|
<el-icon class="el-icon--upload">
|
|
|
|
|
<upload-filled/>
|
|
|
|
|
</el-icon>
|
|
|
|
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
|
|
<div class="el-upload__text">{{ t('common.dragTheFileHereOr') }}<em>{{ t('common.clickUpload') }}</em></div>
|
|
|
|
|
<template #tip>
|
|
|
|
|
<div class="el-upload__tip text-center">
|
|
|
|
|
<div class="el-upload__tip">
|
|
|
|
|
<el-checkbox v-model="upload.updateSupport"/>
|
|
|
|
|
是否更新已经存在的用户数据
|
|
|
|
|
{{ t('common.whetherToUpdateExistingUserData') }}
|
|
|
|
|
</div>
|
|
|
|
|
<span>仅允许导入xls、xlsx格式文件。</span>
|
|
|
|
|
<span>{{ t('common.onlyXlsAndXlsxFilesCanBeImported') }}。</span>
|
|
|
|
|
<el-link :underline="false" style="font-size:12px;vertical-align: baseline;" type="primary"
|
|
|
|
|
@click="importTemplate">下载模板
|
|
|
|
|
@click="importTemplate">{{ t('common.downloadTemplate') }}
|
|
|
|
|
</el-link>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-upload>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<div class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitFileForm">确 定</el-button>
|
|
|
|
|
<el-button @click="upload.open = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitFileForm">{{ t('option.ok') }}</el-button>
|
|
|
|
|
<el-button @click="upload.open = false">{{ t('option.cancel') }}</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -334,7 +334,7 @@ const queryParams = ref({
|
|
|
|
|
|
|
|
|
|
// 表单验证规则
|
|
|
|
|
const rules = {
|
|
|
|
|
outerTireNumber: [{required: true, message: "胎号不能为空", trigger: "blur"}],
|
|
|
|
|
outerTireNumber: [{required: true, message: t('other.theTireNumberCannotBeEmpty'), trigger: "blur"}],
|
|
|
|
|
// type: [{required: true, message: "轮胎型号不能为空", trigger: "blur"}],
|
|
|
|
|
// serialNumber: [{required: true, message: "轮胎编号不能为空", trigger: "blur"}],
|
|
|
|
|
}
|
|
|
|
@ -487,11 +487,11 @@ const handleFileSuccess = (response, file, fileList) => {
|
|
|
|
|
/** 提交上传文件 */
|
|
|
|
|
function submitFileForm() {
|
|
|
|
|
proxy.$refs["uploadRef"].submit();
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 导入按钮操作 */
|
|
|
|
|
function handleImport() {
|
|
|
|
|
upload.title = "轮胎信息导入";
|
|
|
|
|
upload.title = t('other.tireInformationImport') ;
|
|
|
|
|
upload.open = true;
|
|
|
|
|
};
|
|
|
|
|
getList();
|
|
|
|
|