|
@@ -0,0 +1,1211 @@
|
|
|
+<template>
|
|
|
+ <div class="global-variable">
|
|
|
+ <h2 class="TitleH2">主轴</h2>
|
|
|
+ <!-- <div class="message">
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>润滑油品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="lubricantBrand"
|
|
|
+ placeholder="请选择"
|
|
|
+ @change="linkage"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in lubricatingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>润滑油型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ :disabled="!lubricantBrand"
|
|
|
+ v-model="lubricantModel"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in lubricatingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>前轴承品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ @change="ZQqian"
|
|
|
+ v-model="frontPingPaiValue"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>前轴承型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ :disabled="!frontPingPaiValue"
|
|
|
+ v-model="frontBearingModel"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>后轴承品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ @change="ZQhou"
|
|
|
+ v-model="rearBearingBrand"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>后轴承型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ :disabled="!rearBearingBrand"
|
|
|
+ v-model="rearBearingModel"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ </div> -->
|
|
|
+<zhuzhou ></zhuzhou>
|
|
|
+ <div v-if="clxShow">
|
|
|
+ <h2 class="TitleH2">齿轮箱</h2>
|
|
|
+ <div class="CLX">
|
|
|
+ <div class="message">
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>润滑油品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="brandvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ @change="handleBrandChange"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in lubricatingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>润滑油型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="modelvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ :disabled="!brandvalue"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in lubricatingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- LLS -->
|
|
|
+ <!-- <p class="locationP">
|
|
|
+ <i @click="addLSS" class="el-icon-plus"></i>
|
|
|
+ <i v-if="lssList.length > 1" @click="delLSS" class="el-icon-minus"></i>
|
|
|
+ </p> -->
|
|
|
+ <div class="message">
|
|
|
+ <p class="caption">
|
|
|
+ <span class="capSpan1">LSS低速轴</span>
|
|
|
+ </p>
|
|
|
+ <div
|
|
|
+ v-for="(item, index) in lssList"
|
|
|
+ :key="index"
|
|
|
+ class="message-BOX"
|
|
|
+ >
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>{{ index === 0 ? "低速轴承品牌:" : "低速轴承2/品牌:" }}</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="item.lssPPvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ @change="LSSslow(item)"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="option in bearingPPoptions"
|
|
|
+ :key="option"
|
|
|
+ :label="option"
|
|
|
+ :value="option"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>{{ index === 0 ? "低速轴承型号:" : "低速轴承2/型号:" }}</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="item.lssXXvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ :disabled="!item.lssPPvalue"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="option in bearingXXoptions"
|
|
|
+ :key="option"
|
|
|
+ :label="option"
|
|
|
+ :value="option"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 行星轮 -->
|
|
|
+ <p class="locationP">
|
|
|
+ <i @click="addPlanet" class="el-icon-plus"></i>
|
|
|
+ <i
|
|
|
+ v-if="planets.length > 1"
|
|
|
+ @click="delPlanet"
|
|
|
+ class="el-icon-minus"
|
|
|
+ ></i>
|
|
|
+ </p>
|
|
|
+ <div v-for="(item, index) in planets" :key="index" class="message">
|
|
|
+ <p class="caption">
|
|
|
+ <span class="capSpan1">{{ `${levelNames[index]}行星轮结构` }}</span>
|
|
|
+ </p>
|
|
|
+ <div class="message-BOX">
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>行星轮轴承品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="item.xxlPPvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ @change="XXLzhoucheng(item)"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>行星轮轴承型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="item.xxlxhvalue"
|
|
|
+ :disabled="!item.xxlPPvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>齿圈齿数:</p>
|
|
|
+ <el-input
|
|
|
+ v-model="item.gearring"
|
|
|
+ @input="validateInput($event, index, 'gearring')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>太阳轮齿数:</p>
|
|
|
+ <el-input
|
|
|
+ v-model="item.suntooth"
|
|
|
+ @input="validateInput($event, index, 'suntooth')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>行星轮个数:</p>
|
|
|
+ <el-input
|
|
|
+ v-model="item.planetnumber"
|
|
|
+ @input="validateInput($event, index, 'planetnumber')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>行星轮齿数:</p>
|
|
|
+ <el-input
|
|
|
+ v-model="item.planetooth"
|
|
|
+ @input="validateInput($event, index, 'planetooth')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="message-BOX">
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>太阳轮轴承品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="item.tyPPvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ @change="TYLzhoucheng(item)"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>太阳轮轴承型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ v-model="item.tyxhvalue"
|
|
|
+ :disabled="!item.tyPPvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 平行轮 -->
|
|
|
+ <p class="locationP">
|
|
|
+ <i @click="addparallel" class="el-icon-plus"></i>
|
|
|
+ <i
|
|
|
+ v-if="parallel.length > 1"
|
|
|
+ @click="delparallel"
|
|
|
+ class="el-icon-minus"
|
|
|
+ ></i>
|
|
|
+ </p>
|
|
|
+ <div
|
|
|
+ v-for="(item, index) in parallel"
|
|
|
+ :key="`parallel-${index}`"
|
|
|
+ class="message"
|
|
|
+ >
|
|
|
+ <p class="caption">
|
|
|
+ <span class="capSpan1">{{ `${levelNames[index]}平行轮结构` }}</span>
|
|
|
+ </p>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>大齿轮齿数</p>
|
|
|
+ <el-input
|
|
|
+ v-model="item.big"
|
|
|
+ @input="validateInput($event, index, 'big')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>小齿轮齿数</p>
|
|
|
+ <el-input
|
|
|
+ v-model="item.little"
|
|
|
+ @input="validateInput($event, index, 'little')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 低速中间轴 -->
|
|
|
+ <p class="locationP">
|
|
|
+ <i @click="addslowly" class="el-icon-plus"></i>
|
|
|
+ <i
|
|
|
+ v-if="slowly.length > 1"
|
|
|
+ @click="delslowly"
|
|
|
+ class="el-icon-minus"
|
|
|
+ ></i>
|
|
|
+ </p>
|
|
|
+ <div class="message">
|
|
|
+ <p class="caption">
|
|
|
+ <span class="capSpan1">低速中间轴</span>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <div v-for="(item, index) in slowly" :key="index" class="message-BOX">
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>轴承-RS品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ @change="DSrs(item)"
|
|
|
+ v-model="item.rsBrand"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>轴承-RS型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ :disabled="!item.rsBrand"
|
|
|
+ v-model="item.rsModel"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>轴承-GS品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ @change="DSgs(item)"
|
|
|
+ v-model="item.gsBrand"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>轴承-GS型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ :disabled="!item.gsBrand"
|
|
|
+ v-model="item.gsModel"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>齿圈齿数:</p>
|
|
|
+ <el-input
|
|
|
+ v-model="item.gearring"
|
|
|
+ @input="(event) => validateInput(event, index, 'gearring')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 高速轴 -->
|
|
|
+ <!-- <p class="locationP">
|
|
|
+ <i @click="addhigh" class="el-icon-plus"></i>
|
|
|
+ <i v-if="high.length > 1" @click="delhigh" class="el-icon-minus"></i>
|
|
|
+ </p> -->
|
|
|
+ <div class="message">
|
|
|
+ <p class="caption">
|
|
|
+ <span class="capSpan1">高速轴</span>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <div v-for="(item, index) in high" :key="index" class="message-BOX">
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>轴承-RS品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ @change="GSrs(item)"
|
|
|
+ v-model="item.rsBrand"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>轴承-RS型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ :disabled="!item.rsBrand"
|
|
|
+ v-model="item.rsModel"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>轴承-GS品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ @click="GSgs(item)"
|
|
|
+ v-model="item.gsBrand"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>轴承-GS型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ :disabled="!item.gsBrand"
|
|
|
+ v-model="item.gsModel"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>齿圈齿数:</p>
|
|
|
+ <el-input
|
|
|
+ v-model="item.gearring"
|
|
|
+ @input="(event) => validateInput(event, index, 'gearring')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <h2 class="TitleH2">发电机</h2>
|
|
|
+
|
|
|
+ <div class="message">
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>润滑油品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ @change="dynamo"
|
|
|
+ v-model="brandvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in lubricatingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>润滑油型号:</p>
|
|
|
+ <el-select
|
|
|
+ :disabled="!brandvalue"
|
|
|
+ clearable
|
|
|
+ v-model="modelvalue"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in lubricatingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>极对数:</p>
|
|
|
+ <el-input v-model="polepair" @input="validateNumericInput"></el-input>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>冷却方式:</p>
|
|
|
+ <el-select clearable v-model="cooling" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in coolingoptions"
|
|
|
+ :key="item.keyId"
|
|
|
+ :label="item.valueName"
|
|
|
+ :value="item.valueName"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 驱动端 -->
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>驱动轴承品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ @change="drive"
|
|
|
+ v-model="drivePingPaiValue"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>驱动轴承型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ :disabled="!drivePingPaiValue"
|
|
|
+ v-model="driveXingHaoValue"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <!-- 非驱动端 -->
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>非驱动轴承品牌:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ @change="undriven"
|
|
|
+ v-model="nodrivePingPaiValue"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingPPoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-DIV">
|
|
|
+ <p>非驱动轴承型号:</p>
|
|
|
+ <el-select
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ :disabled="!nodrivePingPaiValue"
|
|
|
+ v-model="nodriveXingHaoValue"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in bearingXXoptions"
|
|
|
+ :key="item"
|
|
|
+ :label="item"
|
|
|
+ :value="item"
|
|
|
+ >
|
|
|
+ </el-option
|
|
|
+ ></el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-button @click="submit">提交</el-button>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import {
|
|
|
+ getBrandModelNameOrModelNumber,
|
|
|
+ getUnitDictRoutineList,
|
|
|
+} from "@/api/maintain";
|
|
|
+import Chilunxiang from "./componentBJ/chilunxiang.vue";
|
|
|
+import Fadianji from "./componentBJ/fadianji.vue";
|
|
|
+import zhuzhou from "./componentBJ/zhuzhou.vue";
|
|
|
+export default {
|
|
|
+ components: { zhuzhou, Chilunxiang, Fadianji },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ clxShow: true,
|
|
|
+ curvedMotionType: null,
|
|
|
+ // ZC
|
|
|
+ lubricantBrand: "",
|
|
|
+ lubricantModel: "",
|
|
|
+ frontPingPaiValue: "",
|
|
|
+ frontBearingModel: "",
|
|
|
+ rearBearingBrand: "",
|
|
|
+ rearBearingModel: "",
|
|
|
+ // 润滑油
|
|
|
+ lubricatingPPoptions: [],
|
|
|
+ lubricatingXXoptions: [],
|
|
|
+ // 轴承
|
|
|
+ bearingPPoptions: [],
|
|
|
+ bearingXXoptions: [],
|
|
|
+ // CLX
|
|
|
+ brandvalue: "",
|
|
|
+ modelvalue: "",
|
|
|
+ lssList: [{ lssPPvalue: "", lssXXvalue: "" }],
|
|
|
+ xxlPPvalue: "",
|
|
|
+ xxlxhvalue: "",
|
|
|
+ tyPPvalue: "",
|
|
|
+ tyxhvalue: "",
|
|
|
+ planets: [
|
|
|
+ {
|
|
|
+ planetnumber: "",
|
|
|
+ planetooth: "",
|
|
|
+ suntooth: "",
|
|
|
+ gearring: "",
|
|
|
+ xxlPPvalue: "",
|
|
|
+ xxlxhvalue: "",
|
|
|
+ tyPPvalue: "",
|
|
|
+ tyxhvalue: "",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ levelNames: ["一级", "二级", "三级"],
|
|
|
+ parallel: [{ big: "", little: "" }],
|
|
|
+ slowly: [
|
|
|
+ {
|
|
|
+ gearring: "",
|
|
|
+ rsBrand: null,
|
|
|
+ rsModel: null,
|
|
|
+ gsBrand: null,
|
|
|
+ gsModel: null,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ high: [
|
|
|
+ {
|
|
|
+ gearring: "",
|
|
|
+ rsBrand: null,
|
|
|
+ rsModel: null,
|
|
|
+ gsBrand: null,
|
|
|
+ gsModel: null,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ // FDJ
|
|
|
+ brandvalue: "",
|
|
|
+ modelvalue: "",
|
|
|
+ polepair: "",
|
|
|
+ cooling: "",
|
|
|
+ drivePingPaiValue: "",
|
|
|
+ driveXingHaoValue: "",
|
|
|
+ nodrivePingPaiValue: "",
|
|
|
+ nodriveXingHaoValue: "",
|
|
|
+ coolingoptions: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.GETbrand();
|
|
|
+ this.curvedMotionType = this.$route.query.curvedMotionType;
|
|
|
+ if (this.curvedMotionType == "2") {
|
|
|
+ this.clxShow = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ validateNumericInput(event) {
|
|
|
+ const newValue = this.polepair.replace(/[^0-9]/g, "");
|
|
|
+ if (this.polepair !== newValue) {
|
|
|
+ this.$message({
|
|
|
+ message: "请输入数字!",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.polepair = newValue;
|
|
|
+ },
|
|
|
+ GETbrand() {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ };
|
|
|
+ const params2 = {
|
|
|
+ unitType: 2,
|
|
|
+ };
|
|
|
+ const params3 = {
|
|
|
+ contentsType: "UDTC00031",
|
|
|
+ };
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingPPoptions = res.data;
|
|
|
+ });
|
|
|
+ getBrandModelNameOrModelNumber(params2).then((res) => {
|
|
|
+ this.lubricatingPPoptions = res.data;
|
|
|
+ });
|
|
|
+ getUnitDictRoutineList(params3).then((res) => {
|
|
|
+ this.coolingoptions = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ linkage() {
|
|
|
+ const params = {
|
|
|
+ unitType: 2,
|
|
|
+ manufacture: this.lubricantBrand,
|
|
|
+ };
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.lubricatingXXoptions = res.data;
|
|
|
+ this.lubricantModel = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ ZQqian() {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: this.frontPingPaiValue,
|
|
|
+ };
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ this.frontBearingModel = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ ZQhou() {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: this.rearBearingBrand,
|
|
|
+ };
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ this.rearBearingModel = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ dynamo() {
|
|
|
+ const params = {
|
|
|
+ unitType: 2,
|
|
|
+ manufacture: this.brandvalue,
|
|
|
+ };
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.lubricatingXXoptions = res.data;
|
|
|
+ this.modelvalue = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ drive() {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: this.drivePingPaiValue,
|
|
|
+ };
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ this.driveXingHaoValue = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ undriven() {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: this.nodrivePingPaiValue,
|
|
|
+ };
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ this.nodriveXingHaoValue = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //.........................................................................
|
|
|
+ handleBrandChange() {
|
|
|
+ const params = {
|
|
|
+ unitType: 2,
|
|
|
+ manufacture: this.brandvalue,
|
|
|
+ };
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ this.modelvalue = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ LSSslow(item) {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: item.lssPPvalue,
|
|
|
+ };
|
|
|
+ console.log(params);
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ item.lssXXvalue = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ XXLzhoucheng(item) {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: item.xxlPPvalue,
|
|
|
+ };
|
|
|
+ console.log(params);
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ item.xxlxhvalue = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ TYLzhoucheng(item) {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: item.tyPPvalue,
|
|
|
+ };
|
|
|
+ console.log(params);
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ item.tyxhvalue = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ DSrs(item) {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: item.rsBrand,
|
|
|
+ };
|
|
|
+ console.log(params);
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ item.rsModel = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ DSgs(item) {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: item.gsBrand,
|
|
|
+ };
|
|
|
+ console.log(params);
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ item.gsModel = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ GSrs(item) {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: item.rsBrand,
|
|
|
+ };
|
|
|
+ console.log(params);
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ item.rsModel = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ GSgs(item) {
|
|
|
+ const params = {
|
|
|
+ unitType: 1,
|
|
|
+ manufacture: item.gsBrand,
|
|
|
+ };
|
|
|
+ console.log(params);
|
|
|
+ getBrandModelNameOrModelNumber(params).then((res) => {
|
|
|
+ this.bearingXXoptions = res.data;
|
|
|
+ item.gsModel = "";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ addPlanet() {
|
|
|
+ if (this.planets.length < 3) {
|
|
|
+ // 深拷贝默认值并推入 planets 数组
|
|
|
+ const defaultPlanet = {
|
|
|
+ planetnumber: "",
|
|
|
+ planetooth: "",
|
|
|
+ suntooth: "",
|
|
|
+ gearring: "",
|
|
|
+ xxlPPvalue: "", // 行星轮轴承品牌
|
|
|
+ xxlxhvalue: "", // 行星轮轴承型号
|
|
|
+ tyPPvalue: "", // 太阳轮轴承品牌
|
|
|
+ tyxhvalue: "", // 太阳轮轴承型号
|
|
|
+ };
|
|
|
+ this.planets.push({ ...defaultPlanet });
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ delPlanet() {
|
|
|
+ if (this.planets.length > 1) {
|
|
|
+ this.planets.pop();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ validateInput(value, index, field) {
|
|
|
+ const validValue = value.replace(/[^0-9]/g, "");
|
|
|
+ if (this.planets[index]) {
|
|
|
+ this.planets[index][field] = validValue;
|
|
|
+ }
|
|
|
+ if (this.parallel[index]) {
|
|
|
+ this.parallel[index][field] = validValue;
|
|
|
+ }
|
|
|
+ if (this.slowly[index]) {
|
|
|
+ this.slowly[index][field] = validValue;
|
|
|
+ }
|
|
|
+ if (this.high[index]) {
|
|
|
+ this.high[index][field] = validValue;
|
|
|
+ }
|
|
|
+ if (validValue !== value) {
|
|
|
+ this.$message({
|
|
|
+ message: "只能输入数字",
|
|
|
+ type: "warning",
|
|
|
+ duration: 2000,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ addparallel() {
|
|
|
+ if (this.parallel.length < 3) {
|
|
|
+ this.parallel.push({ big: "", little: "" });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ delparallel() {
|
|
|
+ if (this.parallel.length > 1) {
|
|
|
+ this.parallel.pop();
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ addLSS() {
|
|
|
+ if (this.lssList.length < 2) {
|
|
|
+ this.lssList.push({ brandvalue: "", modelvalue: "" });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ delLSS() {
|
|
|
+ if (this.lssList.length > 1) {
|
|
|
+ this.lssList.pop();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ addslowly() {
|
|
|
+ if (this.slowly.length >= 2) {
|
|
|
+ // Optionally provide feedback if the limit is reached
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "只能添加最多两项!",
|
|
|
+ });
|
|
|
+ return; // Exit the function if the limit is reached
|
|
|
+ }
|
|
|
+
|
|
|
+ // Add a new item to the array
|
|
|
+ this.slowly.push({
|
|
|
+ gearring: "",
|
|
|
+ rsBrand: "",
|
|
|
+ rsModel: "",
|
|
|
+ gsBrand: "",
|
|
|
+ gsModel: "",
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ delslowly() {
|
|
|
+ if (this.slowly.length > 1) {
|
|
|
+ this.slowly.pop();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ addhigh() {
|
|
|
+ if (this.high.length < 2) {
|
|
|
+ this.high.push({
|
|
|
+ gearring: "",
|
|
|
+ rsBrand: null,
|
|
|
+ rsModel: null,
|
|
|
+ gsBrand: null,
|
|
|
+ gsModel: null,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ delhigh() {
|
|
|
+ if (this.high.length > 1) {
|
|
|
+ this.high.pop();
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ submit() {
|
|
|
+ const params = {
|
|
|
+ // 主轴
|
|
|
+ unitBearingsDto: {
|
|
|
+ lubricantBrand: this.lubricantBrand,
|
|
|
+ lubricantModel: this.lubricantModel,
|
|
|
+ frontBearingBrand: this.frontPingPaiValue,
|
|
|
+ frontBearingModel: this.frontBearingModel,
|
|
|
+ rearBearingBrand: this.rearBearingBrand,
|
|
|
+ rearBearingModel: this.rearBearingModel,
|
|
|
+ code: "",
|
|
|
+ id: 0,
|
|
|
+ },
|
|
|
+ // 齿轮箱
|
|
|
+ unitGearDto: {
|
|
|
+ unitGearDto: {
|
|
|
+ code: "",
|
|
|
+ id: 0,
|
|
|
+ lubricantBrand: "",
|
|
|
+ lubricantModel: "",
|
|
|
+ unitGearboxBearingsDtoList: [
|
|
|
+ {
|
|
|
+ bearingBrand: "",
|
|
|
+ bearingGsBrand: "",
|
|
|
+ bearingGsModel: "",
|
|
|
+ bearingModel: "",
|
|
|
+ bearingRsBrand: "",
|
|
|
+ bearingRsModel: "",
|
|
|
+ gearRingTeethCount: "",
|
|
|
+ gearboxBearingLevel: "",
|
|
|
+ gearboxBearingNumber: "",
|
|
|
+ gearboxCode: "",
|
|
|
+ id: 0,
|
|
|
+ parallelWheelGrade: 0,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ unitGearboxStructureDtoList: [
|
|
|
+ {
|
|
|
+ bearingBrand: "",
|
|
|
+ bearingModel: "",
|
|
|
+ gearRingTeethCount: "",
|
|
|
+ gearboxCode: "",
|
|
|
+ gearboxStructure: 0,
|
|
|
+ id: 0,
|
|
|
+ largeGearTeethCount: "",
|
|
|
+ planetWheelCount: "",
|
|
|
+ planetWheelTeethCount: "",
|
|
|
+ planetaryGearGrade: 0,
|
|
|
+ smallGearTeethCount: "",
|
|
|
+ sunWheelBearingBrand: "",
|
|
|
+ sunWheelBearingModel: "",
|
|
|
+ sunWheelTeethCount: "",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
+ // 发电机
|
|
|
+ unitDynamoDto: {
|
|
|
+ lubricantBrand: this.brandvalue,
|
|
|
+ lubricantModel: this.modelvalue,
|
|
|
+ driveEndBearingBrand: this.drivePingPaiValue,
|
|
|
+ driveEndBearingModel: this.driveXingHaoValue,
|
|
|
+ nonDriveEndBearingBrand: this.nodrivePingPaiValue,
|
|
|
+ nonDriveEndBearingModel: this.nodriveXingHaoValue,
|
|
|
+ polePairs: this.polepair,
|
|
|
+ coolingMethod: this.cooling,
|
|
|
+ id: 0,
|
|
|
+ },
|
|
|
+ };
|
|
|
+ console.log(params);
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.TitleH2 {
|
|
|
+ font-weight: 800;
|
|
|
+ font-size: 28px;
|
|
|
+ margin: 20px 0;
|
|
|
+}
|
|
|
+
|
|
|
+.message {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+
|
|
|
+ .message-DIV {
|
|
|
+ width: 25%;
|
|
|
+ display: flex;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ justify-content: space-between;
|
|
|
+ .el-input {
|
|
|
+ width: 223px;
|
|
|
+ }
|
|
|
+ p {
|
|
|
+ width: 140px;
|
|
|
+ line-height: 40px;
|
|
|
+ height: 40px;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.CLX {
|
|
|
+ .message {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .message-BOX {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .message-DIV {
|
|
|
+ width: 25%;
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ margin-bottom: 20px;
|
|
|
+ justify-content: space-between;
|
|
|
+ p {
|
|
|
+ width: 140px;
|
|
|
+ line-height: 40px;
|
|
|
+ height: 40px;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ .el-input {
|
|
|
+ width: 223px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .message-DIV {
|
|
|
+ width: 25%;
|
|
|
+ display: flex;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ justify-content: space-between;
|
|
|
+ p {
|
|
|
+ width: 140px;
|
|
|
+ line-height: 40px;
|
|
|
+ height: 40px;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ .el-input {
|
|
|
+ width: 223px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .caption {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0 10px;
|
|
|
+ height: 30px;
|
|
|
+ line-height: 30px;
|
|
|
+ color: #ffffff;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ .el-icon-plus:before {
|
|
|
+ font-size: 20px;
|
|
|
+ }
|
|
|
+ .capSpan1 {
|
|
|
+ background: rgb(101, 101, 101);
|
|
|
+ width: 140px;
|
|
|
+ padding-left: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .locationP {
|
|
|
+ text-align: right;
|
|
|
+ font-size: 24px;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|