2023-08-29 17:35:31 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<el-dialog width="80%" v-model="visible" :show-close="false">
|
|
|
|
|
|
<template #title>
|
|
|
|
|
|
<div class="title-detail">
|
|
|
|
|
|
<!-- <img src="@/assets/images/tableIcon/look.png" alt="" /> -->
|
|
|
|
|
|
<span>{{ newTitle }}</span>
|
|
|
|
|
|
<el-icon>
|
|
|
|
|
|
<close @click="closeMain" />
|
|
|
|
|
|
</el-icon>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<el-tabs v-model="activeName" type="card" class="demo-tabs">
|
|
|
|
|
|
<el-tab-pane label="工程概况" name="first">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<h4 class="littleTitle">基本信息</h4>
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<div class="overview">
|
|
|
|
|
|
<el-form ref="formRef" :model="formData" label-width="180px" :rules="rules" class="basic-form" size="default">
|
|
|
|
|
|
<!-- <el-form ref="formDataRef" :model="formData" label-width="150px" class="basic-form"> -->
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="设备类型:" prop="type">
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<el-select
|
2023-08-31 18:32:19 +08:00
|
|
|
|
v-model="formData.type"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
:disabled="newTitle == '查看设备'"
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-option v-for="item in typeList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="是否外地设备:" prop="nonlocal">
|
|
|
|
|
|
<el-radio-group placeholder="请选择" v-model="formData.nonlocal">
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="编号性质:" prop="theNature">
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<el-select
|
2023-08-31 18:32:19 +08:00
|
|
|
|
v-model="formData.theNature"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
:disabled="newTitle == '查看设备'"
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
>
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-option v-for="item in propertyList" :key="item.value" :label="item.label" :value="item.value">
|
|
|
|
|
|
</el-option>
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="是否全新设备:" prop="newEquipment">
|
|
|
|
|
|
<el-radio-group placeholder="请选择" v-model="formData.newEquipment">
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="规格型号:" prop="model">
|
|
|
|
|
|
<el-input v-model="formData.model" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="许可证发证机关:" prop="licensingAuthority">
|
|
|
|
|
|
<el-input v-model="formData.licensingAuthority" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="出厂(合格证):" prop="certificateApproval">
|
|
|
|
|
|
<el-input v-model="formData.certificateApproval" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="工作幅度(m):" prop="workingRange">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-input v-model="formData.workingRange" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="最大额定起重量(kg):" prop="maximumWeight">
|
|
|
|
|
|
<el-input v-model="formData.maximumWeight" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="独立起升高度(m):" prop="hoistingHeight">
|
|
|
|
|
|
<el-input v-model="formData.hoistingHeight" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="购置日期:" prop="purchaseDate">
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<el-date-picker
|
|
|
|
|
|
:disabled="newTitle == '查看设备'"
|
|
|
|
|
|
style="width: 100%"
|
2023-08-31 18:32:19 +08:00
|
|
|
|
v-model="formData.purchaseDate"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
format="YYYY-MM-DD"
|
|
|
|
|
|
value-format="YYYY-MM-DD"
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
placeholder="请选择时间"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="编号有效期:" prop="timeLimit">
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<el-date-picker
|
|
|
|
|
|
:disabled="newTitle == '查看设备'"
|
|
|
|
|
|
style="width: 100%"
|
2023-08-31 18:32:19 +08:00
|
|
|
|
v-model="formData.timeLimit"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
format="YYYY-MM-DD"
|
|
|
|
|
|
value-format="YYYY-MM-DD"
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
placeholder="请选择时间"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="设备原值:" prop="theInitial">
|
|
|
|
|
|
<el-input v-model.number="formData.theInitial" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="设备改造次数:" prop="equipmentNumber">
|
|
|
|
|
|
<el-input v-model.number="formData.equipmentNumber" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="发票编码:" prop="serialNumber">
|
|
|
|
|
|
<el-input v-model="formData.serialNumber" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="购买合同编码:" prop="contractNo">
|
|
|
|
|
|
<el-input v-model="formData.contractNo" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="生产厂家:" prop="manufacturer">
|
|
|
|
|
|
<el-input v-model="formData.manufacturer" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="出厂日期:" prop="manufactureDate">
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<el-date-picker
|
|
|
|
|
|
:disabled="newTitle == '查看设备'"
|
|
|
|
|
|
style="width: 100%"
|
2023-08-31 18:32:19 +08:00
|
|
|
|
v-model="formData.manufactureDate"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
format="YYYY-MM-DD"
|
|
|
|
|
|
value-format="YYYY-MM-DD"
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
placeholder="请选择时间"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="制造许可证编号:" prop="manufacturingLicense">
|
|
|
|
|
|
<el-input v-model="formData.manufacturingLicense" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="是否为原购产品:" prop="theShipper">
|
|
|
|
|
|
<el-radio-group placeholder="请选择" v-model="formData.theShipper">
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
|
|
|
<el-radio :label="0">否</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120">
|
|
|
|
|
|
<el-col :span="12">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-form-item label="设备用途:" prop="equipmentUseType">
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
v-model="formData.equipmentUseType"
|
|
|
|
|
|
:disabled="newTitle == '查看设备'"
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-option v-for="item in useList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
|
|
|
|
|
</el-select>
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="黑匣子信息:" prop="blackBox">
|
|
|
|
|
|
<el-input v-model="formData.blackBox" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-row :gutter="120" v-if="formData.type == 1">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="前臂永久性标识:" prop="towerPermanentForearm">
|
|
|
|
|
|
<el-input v-model="formData.towerPermanentForearm" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="后臂永久性标识:" prop="towerPermanentHindArm">
|
|
|
|
|
|
<el-input v-model="formData.towerPermanentHindArm" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120" v-if="formData.type == 1">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="塔帽永久性标识:" prop="towerPermanentCap">
|
|
|
|
|
|
<el-input v-model="formData.towerPermanentCap" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="上转台永久性标识:" prop="towerPermanentSuperior">
|
|
|
|
|
|
<el-input v-model="formData.towerPermanentSuperior" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="120" v-if="formData.type == 1">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="下转台永久性标识:" prop="towerPermanentDown">
|
|
|
|
|
|
<el-input v-model="formData.towerPermanentDown" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="标准节点永久性标识:" prop="towerPermanentStandard">
|
|
|
|
|
|
<el-input v-model="formData.towerPermanentStandard" placeholder="请输入" :disabled="newTitle == '查看设备'" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</el-form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="附件信息" name="second">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<h4 class="littleTitle">附件信息</h4>
|
2023-08-29 17:35:31 +08:00
|
|
|
|
<div style="width: 90%; margin: 0 auto">
|
|
|
|
|
|
<el-table
|
2023-08-31 18:32:19 +08:00
|
|
|
|
:data="documentData"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
class="el-table"
|
|
|
|
|
|
:header-cell-style="{ backgroundColor: '#f5f7fa', textAlign: 'center' }"
|
|
|
|
|
|
:cell-style="{ textAlign: 'center' }"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-table-column type="index" label="序号" width="200" />
|
|
|
|
|
|
<el-table-column prop="dictValue" label="附件名称" />
|
|
|
|
|
|
<el-table-column label="操作" width="200">
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<template #default="{ row, $index }">
|
|
|
|
|
|
<el-button type="primary" @click="onUpload(row, $index)" link>上传附件</el-button>
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
|
<el-button class="cancelButtonStyle" @click="visible = false">取消</el-button>
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<el-button type="primary" @click="submitForm(formRef)">保存</el-button>
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog v-model="dialogVisible" title="查看附件" width="30%" show-close>
|
|
|
|
|
|
<el-table
|
2023-08-31 18:32:19 +08:00
|
|
|
|
:data="documentData"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
border
|
|
|
|
|
|
class="el-table"
|
|
|
|
|
|
:header-cell-style="{ backgroundColor: '#f5f7fa', textAlign: 'center' }"
|
|
|
|
|
|
:cell-style="{ textAlign: 'center' }"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-table-column prop="fileName" label="文件名称" />
|
|
|
|
|
|
<el-table-column label="操作" width="200">
|
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
|
<el-button type="primary" link size="small" @click="onDowmload(row)">下载</el-button>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
|
<span class="dialog-footer">
|
|
|
|
|
|
<el-button type="primary" @click="dialogVisible = false"> 关闭 </el-button>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-dialog>
|
2023-08-31 18:32:19 +08:00
|
|
|
|
<!-- 附件上传 -->
|
|
|
|
|
|
<FilesUploadPlus v-model="showFilesUpload" @update:files="handlechange" :files="current.files" :reset="true" />
|
2023-08-29 17:35:31 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup name="addHoistMachinery">
|
|
|
|
|
|
import { ref, watch, onMounted } from "vue";
|
|
|
|
|
|
import { getDicList, exportApp } from "@/api/modules/jxjview";
|
|
|
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
|
|
|
import { useDownload } from "@/hooks/useDownload";
|
2023-08-31 18:32:19 +08:00
|
|
|
|
import type { FormInstance } from "element-plus";
|
|
|
|
|
|
import { hoistEquipAdd } from "@/api/modules/enterpriseApi";
|
|
|
|
|
|
import FilesUploadPlus from "@/components/FilesUploadPlus/FilesUpload.vue";
|
2023-08-29 17:35:31 +08:00
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
addDialog: Boolean,
|
|
|
|
|
|
newTitle: String
|
|
|
|
|
|
});
|
2023-08-31 18:32:19 +08:00
|
|
|
|
const emits = defineEmits(["update:addDialog", "confirm"]);
|
|
|
|
|
|
const documentData = ref<any>([]);
|
|
|
|
|
|
const documentDataIndex = ref(0);
|
|
|
|
|
|
const current = ref({
|
|
|
|
|
|
files: []
|
|
|
|
|
|
});
|
|
|
|
|
|
const showFilesUpload = ref(false);
|
|
|
|
|
|
const useList = ref([
|
|
|
|
|
|
{ label: "自用", value: 1 },
|
|
|
|
|
|
{ label: "租赁", value: 2 }
|
|
|
|
|
|
]);
|
2023-08-29 17:35:31 +08:00
|
|
|
|
const typeList = ref([]);
|
2023-08-31 18:32:19 +08:00
|
|
|
|
const propertyList = ref([
|
|
|
|
|
|
{ label: "长期", value: 1 },
|
|
|
|
|
|
{ label: "临时", value: 2 }
|
|
|
|
|
|
]);
|
2023-08-29 17:35:31 +08:00
|
|
|
|
const dialogVisible = ref(false);
|
|
|
|
|
|
const annexFiles = ref([]);
|
|
|
|
|
|
const formRef = ref();
|
|
|
|
|
|
const visible = ref(false);
|
|
|
|
|
|
const activeName = ref("first");
|
|
|
|
|
|
const rules = ref({
|
2023-08-31 18:32:19 +08:00
|
|
|
|
type: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
2023-08-31 18:32:19 +08:00
|
|
|
|
message: "请选择",
|
|
|
|
|
|
trigger: "change"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
nonlocal: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
2023-08-31 18:32:19 +08:00
|
|
|
|
message: "请选择",
|
|
|
|
|
|
trigger: "change"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
theNature: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
2023-08-31 18:32:19 +08:00
|
|
|
|
message: "请选择",
|
2023-08-29 17:35:31 +08:00
|
|
|
|
trigger: "change"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
newEquipment: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请选择",
|
|
|
|
|
|
trigger: "change"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
model: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
2023-08-31 18:32:19 +08:00
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
licensingAuthority: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
certificateApproval: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
workingRange: [
|
|
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
2023-08-31 18:32:19 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
pattern: /^\d+(\.\d{0,2})?$/,
|
|
|
|
|
|
message: "请输入整数或小数点后两位小数",
|
|
|
|
|
|
trigger: "blur"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
maximumWeight: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
2023-08-31 18:32:19 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
pattern: /^\d+(\.\d{0,2})?$/,
|
|
|
|
|
|
message: "请输入整数或小数点后两位小数",
|
|
|
|
|
|
trigger: "blur"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
hoistingHeight: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
2023-08-31 18:32:19 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
pattern: /^\d+(\.\d{0,2})?$/,
|
|
|
|
|
|
message: "请输入整数或小数点后两位小数",
|
|
|
|
|
|
trigger: "blur"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
purchaseDate: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请选择",
|
|
|
|
|
|
trigger: "change"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
timeLimit: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请选择",
|
|
|
|
|
|
trigger: "change"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
theInitial: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
equipmentNumber: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
2023-08-31 18:32:19 +08:00
|
|
|
|
},
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
2023-08-31 18:32:19 +08:00
|
|
|
|
pattern: /^[0-9]+$/,
|
|
|
|
|
|
message: "请输入整数",
|
2023-08-29 17:35:31 +08:00
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
serialNumber: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
contractNo: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
2023-08-31 18:32:19 +08:00
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
|
2023-08-31 18:32:19 +08:00
|
|
|
|
manufacturer: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
|
|
|
|
|
|
manufactureDate: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请选择",
|
|
|
|
|
|
trigger: "change"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
|
|
|
|
|
|
manufacturingLicense: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
|
|
|
|
|
|
theShipper: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
2023-08-31 18:32:19 +08:00
|
|
|
|
message: "请选择",
|
|
|
|
|
|
trigger: "change"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
equipmentUseType: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
2023-08-31 18:32:19 +08:00
|
|
|
|
message: "请选择",
|
|
|
|
|
|
trigger: "change"
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
blackBox: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
towerPermanentForearm: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
towerPermanentHindArm: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
towerPermanentCap: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
towerPermanentSuperior: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
towerPermanentDown: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2023-08-31 18:32:19 +08:00
|
|
|
|
towerPermanentStandard: [
|
2023-08-29 17:35:31 +08:00
|
|
|
|
{
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
message: "请输入",
|
|
|
|
|
|
trigger: "blur"
|
|
|
|
|
|
}
|
|
|
|
|
|
]
|
|
|
|
|
|
});
|
|
|
|
|
|
const formData = ref({
|
2023-08-31 18:32:19 +08:00
|
|
|
|
type: null,
|
|
|
|
|
|
nonlocal: 0,
|
|
|
|
|
|
theNature: null,
|
|
|
|
|
|
newEquipment: 0,
|
2023-08-29 17:35:31 +08:00
|
|
|
|
model: "",
|
|
|
|
|
|
licensingAuthority: "",
|
2023-08-31 18:32:19 +08:00
|
|
|
|
certificateApproval: "",
|
2023-08-29 17:35:31 +08:00
|
|
|
|
workingRange: "",
|
2023-08-31 18:32:19 +08:00
|
|
|
|
maximumWeight: "",
|
|
|
|
|
|
hoistingHeight: "",
|
|
|
|
|
|
purchaseDate: null,
|
|
|
|
|
|
timeLimit: null,
|
|
|
|
|
|
theInitial: "",
|
|
|
|
|
|
equipmentNumber: "",
|
|
|
|
|
|
serialNumber: "",
|
|
|
|
|
|
contractNo: "",
|
2023-08-29 17:35:31 +08:00
|
|
|
|
manufacturer: "",
|
2023-08-31 18:32:19 +08:00
|
|
|
|
manufactureDate: null,
|
|
|
|
|
|
manufacturingLicense: "",
|
|
|
|
|
|
theShipper: 0,
|
|
|
|
|
|
equipmentUseType: null,
|
|
|
|
|
|
blackBox: "",
|
|
|
|
|
|
towerPermanentForearm: "",
|
|
|
|
|
|
towerPermanentHindArm: "",
|
|
|
|
|
|
towerPermanentCap: "",
|
|
|
|
|
|
towerPermanentSuperior: "",
|
|
|
|
|
|
towerPermanentDown: "",
|
|
|
|
|
|
towerPermanentStandard: ""
|
2023-08-29 17:35:31 +08:00
|
|
|
|
});
|
2023-08-31 18:32:19 +08:00
|
|
|
|
const handlechange = e => {
|
|
|
|
|
|
console.log(e);
|
|
|
|
|
|
current.value.files = e.map(item => {
|
|
|
|
|
|
item.label = current.value.dictLabel;
|
|
|
|
|
|
return item;
|
|
|
|
|
|
});
|
|
|
|
|
|
documentData.value[documentDataIndex.value].fileList = current.value.files;
|
|
|
|
|
|
};
|
|
|
|
|
|
// 上传附件按钮
|
|
|
|
|
|
const onUpload = async (row: any, index: any) => {
|
|
|
|
|
|
console.log(row);
|
|
|
|
|
|
showFilesUpload.value = true;
|
|
|
|
|
|
documentDataIndex.value = index;
|
|
|
|
|
|
if (row.fileList.length > 0) {
|
|
|
|
|
|
let arr: any = [];
|
|
|
|
|
|
row.fileList.map(item => {
|
2023-09-08 19:01:18 +08:00
|
|
|
|
if (item.response) {
|
|
|
|
|
|
arr.push({
|
|
|
|
|
|
response: { ...item.response, url: item.response.url },
|
|
|
|
|
|
name: item.response.originalFilename,
|
|
|
|
|
|
url: item.response.url,
|
|
|
|
|
|
size: +item.response.size,
|
|
|
|
|
|
type: item.response.contentType
|
|
|
|
|
|
});
|
|
|
|
|
|
} else {
|
|
|
|
|
|
arr.push({
|
|
|
|
|
|
response: { ...item, url: item.fileUrl },
|
|
|
|
|
|
name: item.fileName,
|
|
|
|
|
|
url: item.fileUrl,
|
|
|
|
|
|
size: +item.fileSize,
|
|
|
|
|
|
type: item.contentType
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
2023-08-31 18:32:19 +08:00
|
|
|
|
delete item.response;
|
|
|
|
|
|
});
|
|
|
|
|
|
current.value.files = arr;
|
|
|
|
|
|
console.log(current.value.files);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
current.value.files = [];
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
const getTypeDicMainList = async () => {
|
|
|
|
|
|
// 获取起重机械设备类型字典
|
|
|
|
|
|
const { result } = await getDicList({ dictType: "hoist_equip_type" });
|
|
|
|
|
|
if (result.length > 0) {
|
|
|
|
|
|
let arr: any = [];
|
|
|
|
|
|
result.map(item => {
|
|
|
|
|
|
arr.push({
|
|
|
|
|
|
label: item.dictValue,
|
|
|
|
|
|
value: item.dictLabel
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
typeList.value.length = 0;
|
|
|
|
|
|
typeList.value.push(...arr);
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
2023-08-29 17:35:31 +08:00
|
|
|
|
const onDowmload = row => {
|
|
|
|
|
|
ElMessageBox.confirm("确认下载数据?", "温馨提示", { type: "warning" }).then(() =>
|
|
|
|
|
|
useDownload(exportApp, `${row.fileName}`, { fileUrl: row.fileUrl })
|
|
|
|
|
|
);
|
|
|
|
|
|
};
|
|
|
|
|
|
// 附件信息的查看点击
|
|
|
|
|
|
const onAppendix = row => {
|
|
|
|
|
|
dialogVisible.value = true;
|
|
|
|
|
|
|
|
|
|
|
|
// current.value = form.value.annexFiles.filter(item => item.label == row.dictLabel);
|
|
|
|
|
|
};
|
|
|
|
|
|
// 提交整改情况
|
2023-08-31 18:32:19 +08:00
|
|
|
|
const submitForm = async (formEl: FormInstance | undefined) => {
|
|
|
|
|
|
if (!formEl) return;
|
|
|
|
|
|
await formEl.validate(async (valid, fields) => {
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
console.log(formData.value);
|
|
|
|
|
|
console.log(documentData.value);
|
|
|
|
|
|
let requestData = {
|
|
|
|
|
|
...formData.value,
|
|
|
|
|
|
annexFiles: [] as any
|
|
|
|
|
|
};
|
|
|
|
|
|
documentData.value.map(item => {
|
|
|
|
|
|
if (item.fileList && item.fileList.length > 0) {
|
|
|
|
|
|
item.fileList.map(item2 => {
|
|
|
|
|
|
requestData.annexFiles.push({
|
|
|
|
|
|
createTime: item2.response.createTime,
|
|
|
|
|
|
extendName: item2.response.ext,
|
|
|
|
|
|
fileId: item2.response.id,
|
|
|
|
|
|
fileName: item2.response.originalFilename,
|
|
|
|
|
|
fileSize: item2.response.size,
|
|
|
|
|
|
fileUrl: item2.response.url,
|
|
|
|
|
|
contentType: item2.response.contentType,
|
|
|
|
|
|
label: item.dictLabel
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
if (formData.value.id) {
|
|
|
|
|
|
const res = await hoistEquipAdd({ ...formData.value });
|
|
|
|
|
|
ElMessage.success("编辑成功");
|
|
|
|
|
|
} else {
|
|
|
|
|
|
const res = await hoistEquipAdd(requestData);
|
|
|
|
|
|
ElMessage.success("新增成功");
|
|
|
|
|
|
}
|
|
|
|
|
|
emits("confirm");
|
|
|
|
|
|
visible.value = false;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
ElMessage({
|
|
|
|
|
|
showClose: true,
|
|
|
|
|
|
message: "请完善表单信息!",
|
|
|
|
|
|
type: "error"
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2023-08-29 17:35:31 +08:00
|
|
|
|
};
|
|
|
|
|
|
// 关闭两个对话框
|
|
|
|
|
|
const closeMain = () => {
|
|
|
|
|
|
visible.value = false;
|
|
|
|
|
|
};
|
2023-09-13 11:47:55 +08:00
|
|
|
|
const getAnnexDicMainList = async () => {
|
|
|
|
|
|
// 起重机械设备附件字典
|
|
|
|
|
|
const res = await getDicList({ dictType: "equip_attachment_name" });
|
|
|
|
|
|
documentData.value = res.result.map(item => ({ ...item, fileList: [] }));
|
|
|
|
|
|
};
|
2023-08-29 17:35:31 +08:00
|
|
|
|
// 监听父组件的visible,用来简介控制el-dialog的弹框开关,一般是用于开
|
|
|
|
|
|
watch(
|
|
|
|
|
|
() => props.addDialog,
|
|
|
|
|
|
(n, o) => {
|
|
|
|
|
|
visible.value = n;
|
|
|
|
|
|
if (n) {
|
|
|
|
|
|
formRef.value?.resetFields();
|
|
|
|
|
|
formData.value = {
|
2023-08-31 18:32:19 +08:00
|
|
|
|
type: null,
|
|
|
|
|
|
nonlocal: 0,
|
|
|
|
|
|
theNature: null,
|
|
|
|
|
|
newEquipment: 0,
|
2023-08-29 17:35:31 +08:00
|
|
|
|
model: "",
|
|
|
|
|
|
licensingAuthority: "",
|
2023-08-31 18:32:19 +08:00
|
|
|
|
certificateApproval: "",
|
2023-08-29 17:35:31 +08:00
|
|
|
|
workingRange: "",
|
2023-08-31 18:32:19 +08:00
|
|
|
|
maximumWeight: "",
|
|
|
|
|
|
hoistingHeight: "",
|
|
|
|
|
|
purchaseDate: null,
|
|
|
|
|
|
timeLimit: null,
|
|
|
|
|
|
theInitial: "",
|
|
|
|
|
|
equipmentNumber: "",
|
|
|
|
|
|
serialNumber: "",
|
|
|
|
|
|
contractNo: "",
|
2023-08-29 17:35:31 +08:00
|
|
|
|
manufacturer: "",
|
2023-08-31 18:32:19 +08:00
|
|
|
|
manufactureDate: null,
|
|
|
|
|
|
manufacturingLicense: "",
|
|
|
|
|
|
theShipper: 0,
|
|
|
|
|
|
equipmentUseType: null,
|
|
|
|
|
|
blackBox: "",
|
|
|
|
|
|
towerPermanentForearm: "",
|
|
|
|
|
|
towerPermanentHindArm: "",
|
|
|
|
|
|
towerPermanentCap: "",
|
|
|
|
|
|
towerPermanentSuperior: "",
|
|
|
|
|
|
towerPermanentDown: "",
|
|
|
|
|
|
towerPermanentStandard: ""
|
2023-08-29 17:35:31 +08:00
|
|
|
|
};
|
2023-09-08 19:01:18 +08:00
|
|
|
|
activeName.value = "first";
|
2023-09-13 11:47:55 +08:00
|
|
|
|
getAnnexDicMainList();
|
2023-08-29 17:35:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
);
|
|
|
|
|
|
// 监听el-dialog显示状态,再通过@update:visible 通知父组件,一般是用于关
|
|
|
|
|
|
watch(visible, (n, o) => {
|
|
|
|
|
|
emits("update:addDialog", n);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(async () => {
|
2023-08-31 18:32:19 +08:00
|
|
|
|
await getTypeDicMainList();
|
2023-09-13 11:47:55 +08:00
|
|
|
|
await getAnnexDicMainList();
|
2023-08-29 17:35:31 +08:00
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
@mixin flex {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
.title-detail {
|
|
|
|
|
|
@include flex;
|
|
|
|
|
|
border-left: 4px solid #008bff;
|
|
|
|
|
|
padding-left: 6px;
|
|
|
|
|
|
// > img {
|
|
|
|
|
|
// width: 16px;
|
|
|
|
|
|
// height: 18px;
|
|
|
|
|
|
// }
|
|
|
|
|
|
> span {
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
color: #333333;
|
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
:deep(.el-icon) {
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
color: #a8abb2;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.littleTitle {
|
|
|
|
|
|
margin-top: 23px;
|
|
|
|
|
|
margin-bottom: 35px;
|
|
|
|
|
|
border-left: 3px solid #008bff;
|
|
|
|
|
|
padding-left: 6px;
|
|
|
|
|
|
}
|
|
|
|
|
|
:deep(.el-tabs--card > .el-tabs__header) {
|
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
:deep(.el-tabs--card > .el-tabs__header .el-tabs__nav) {
|
|
|
|
|
|
// width: 600px;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
:deep(.el-tabs__nav-scroll) {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
.el-tabs__item {
|
|
|
|
|
|
width: 220px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
// background: #fff;
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
|
|
|
|
|
|
border: 1px solid #aeaeae;
|
|
|
|
|
|
// border-radius: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-tabs__item.is-active {
|
|
|
|
|
|
background-color: #008bff;
|
|
|
|
|
|
border: 1px solid #008bff;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
:deep(#tab-first) {
|
|
|
|
|
|
border-radius: 4px 0 0 4px;
|
|
|
|
|
|
border-left: 1px solid #aeaeae;
|
|
|
|
|
|
}
|
|
|
|
|
|
:deep(#tab-second) {
|
|
|
|
|
|
border-radius: 0 4px 4px 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|