cuijian
3 天以前 ba15d76ff0ec80ee759913511158d4333f6e6c59
src/views/tms/modules/baseTools/ParaTurningToolsSearchModal.vue
@@ -1,7 +1,7 @@
<template>
  <j-modal
    :title="title"
    :width="800"
    :width="1200"
    :visible="visible"
    centered
    :confirmLoading="confirmLoading"
@@ -12,201 +12,360 @@
    <a-spin :spinning="confirmLoading">
      <a-form-model ref="form" :model="model"  :labelCol="labelCol" :wrapperCol="wrapperCol">
        <a-row :gutter="24">
          <a-col :span="12">
          <a-col :span="8">
            <a-form-model-item prop="chineseName" label="中文名称">
              <a-input
                :placeholder="'请输入中文名称'"
                v-model="model.chineseName"
              />
              <a-input :placeholder="'请输入中文名称'" v-model="model.chineseName" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
          <a-col :span="8">
            <a-form-model-item prop="foreignLanguageName" label="外文名称">
              <a-input
                :placeholder="'请输入外文名称'"
                v-model="model.foreignLanguageName"
              />
              <a-input :placeholder="'请输入外文名称'" v-model="model.foreignLanguageName" />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="12">
          <a-col :span="8">
            <a-form-model-item prop="shortCalled" label="工具简称">
              <a-input
                :placeholder="'请输入工具简称'"
                v-model="model.shortCalled"
              />
              <a-input :placeholder="'请输入工具简称'" v-model="model.shortCalled" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
        </a-row>
        <a-row :gutter="24">
          <a-col :span="8">
            <a-form-model-item prop="groupCompanyCode" label="集团公司编码">
              <a-input
                :placeholder="'请输入集团公司编码'"
                v-model="model.groupCompanyCode"
              />
              <a-input :placeholder="'请输入集团公司编码'" v-model="model.groupCompanyCode" />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="12">
          <a-col :span="8">
            <a-form-model-item prop="groupCompanySign" label="标记">
              <a-input :placeholder="'请输入标记'" v-model="model.groupCompanySign" />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item prop="standardLevel" label="标准级别">
              <a-input
                :placeholder="'请输入标准级别'"
                v-model="model.standardLevel"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item prop="standardCode" label="标准号">
              <a-input
                :placeholder="'请输入标准号'"
                v-model="model.standardCode"
              />
              <a-input :placeholder="'请输入标准级别'" v-model="model.standardLevel" />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="12">
          <a-col :span="8">
            <a-form-model-item prop="standardCode" label="标准号">
              <a-input :placeholder="'请输入标准号'" v-model="model.standardCode" />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item prop="toolModel" label="型号/图号">
              <a-input
                :placeholder="'请输入型号/图号'"
                v-model="model.toolModel"
              />
              <a-input :placeholder="'请输入型号/图号'" v-model="model.toolModel" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="刀头规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="headSpecifications">
              <a-input
                v-model="model.headSpecifications"
                :placeholder="'请输入刀头规格'"
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="12">
            <a-form-model-item label="配套刀片号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="matchingNumber">
              <a-input
                v-model="model.matchingNumber"
                :placeholder="'请输入配套刀片号'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="主偏角" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leadAngle">
              <a-input
                v-model="model.leadAngle"
                :placeholder="'请输入主偏角'"
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="12">
            <a-form-model-item label="刀具总长" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="totalLength">
              <a-input
                v-model="model.totalLength"
                :placeholder="'请输入刀具总长'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="刀具材料" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="toolMaterial">
              <a-input
                v-model="model.toolMaterial"
                :placeholder="'请输入刀具材料'"
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="12">
          <a-col :span="8">
            <a-form-model-item label="零件材料" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partMaterial">
              <a-input
                v-model="model.partMaterial"
                :placeholder="'请输入零件材料'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="是否涂层" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="paintcoatFlag">
              <a-radio-group
                v-model="model.paintcoatFlag"
                :placeholder="'请选择是否涂层'"
              >
                <a-radio :value="'1'">是</a-radio>
                <a-radio :value="'2'">否</a-radio>
              </a-radio-group>
              <a-input v-model="model.partMaterial" :placeholder="'请输入零件材料'"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="12">
            <a-form-model-item label="刀具型式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="toolPattern">
              <a-input
                v-model="model.toolPattern"
                :placeholder="'请输入刀具型式'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="刀具截面尺寸"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="crossSectionalSize"
            >
              <a-input
                v-model="model.crossSectionalSize"
                :placeholder="'请输入刀具截面尺寸'"
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="12">
            <a-form-model-item label="切削方向" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cuttingDirection">
              <a-input
                v-model="model.cuttingDirection"
                :placeholder="'请输入切削方向'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="冷却方式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="coolingMethod">
              <a-input
                v-model="model.coolingMethod"
                :placeholder="'请输入冷却方式'"
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="12">
          <a-col :span="8">
            <a-form-model-item
              label="附加技术条件"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="technicalConditions"
            >
              <a-input
                v-model="model.technicalConditions"
                :placeholder="'请输入附加技术条件'"
              ></a-input>
              <a-input v-model="model.technicalConditions" :placeholder="'请输入附加技术条件'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
          <a-col :span="8">
            <a-form-model-item
              label="附加技术条件说明"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="conditionsInfo"
            >
              <a-input
                v-model="model.conditionsInfo"
                :placeholder="'请输入附加技术条件说明'"
              ></a-input>
              <a-input v-model="model.conditionsInfo" :placeholder="'请输入附加技术条件说明'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="品牌" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="brand">
              <a-input v-model="model.brand" :placeholder="'请输入品牌'"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-model-item label="刀头规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="headSpecifications">
              <a-input v-model="model.headSpecifications" :placeholder="'请输入刀头规格'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="配套刀片号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="matchingNumber">
              <a-input v-model="model.matchingNumber" :placeholder="'请输入配套刀片号'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="刀夹型号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="knifeClipModel">
              <a-input v-model="model.knifeClipModel" :placeholder="'请输入刀夹型号'"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-model-item label="主偏角" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leadAngle">
              <a-input v-model="model.leadAngle" :placeholder="'请输入主偏角'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="刀具截面尺寸" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="crossSectionalSize">
              <a-input v-model="model.crossSectionalSize" :placeholder="'请输入刀具截面尺寸'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="刀片尺寸" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="knifeSize">
              <a-input v-model="model.knifeSize" :placeholder="'请输入刀片尺寸'"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-model-item label="刀片后角" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bladePosterior">
              <a-input v-model="model.bladePosterior" :placeholder="'请输入刀片后角'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="精度等级" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="accuracyClass">
              <j-dict-select-tag
                type="list"
                v-model="model.accuracyClass"
                :triggerChange="true"
                dictCode="accuracy_class"
                placeholder="请选择精度等级"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="切削方向" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cuttingDirection">
              <j-dict-select-tag
                type="list"
                v-model="model.cuttingDirection"
                :triggerChange="true"
                dictCode="cutting_direction"
                placeholder="请选择切削方向"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-model-item label="刀具材料" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="toolMaterial">
              <j-dict-select-tag
                type="list"
                v-model="model.toolMaterial"
                :triggerChange="true"
                dictCode="tool_material"
                placeholder="请选择刀具材料"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="刀具型式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="toolPattern">
              <j-dict-select-tag
                type="list"
                v-model="model.toolPattern"
                :triggerChange="true"
                dictCode="tool_pattern"
                placeholder="请选择刀具型式"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="制式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="types">
              <j-dict-select-tag
                type="list"
                v-model="model.types"
                :triggerChange="true"
                dictCode="types"
                placeholder="请选择制式"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-model-item label="冷却方式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="coolingMethod">
              <j-dict-select-tag
                type="list"
                v-model="model.coolingMethod"
                :triggerChange="true"
                dictCode="cooling_method"
                placeholder="请选择冷却方式"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="接口紧固形式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fasteningForm">
              <j-dict-select-tag
                type="list"
                v-model="model.fasteningForm"
                :triggerChange="true"
                dictCode="fastening_form"
                placeholder="请选择接口紧固形式"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="刀杆类别" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="holderCategory">
              <j-dict-select-tag
                type="list"
                v-model="model.holderCategory"
                :triggerChange="true"
                dictCode="holder_category"
                placeholder="请选择刀杆类别"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-model-item label="刀片形状" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bladeShape">
              <j-dict-select-tag
                type="list"
                v-model="model.bladeShape"
                :triggerChange="true"
                dictCode="blade_shape"
                placeholder="请选择刀片形状"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="刀片装夹方式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="clampingMethod">
              <j-dict-select-tag
                type="list"
                v-model="model.clampingMethod"
                :triggerChange="true"
                dictCode="clamping_method"
                placeholder="请选择刀片装夹方式"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="刀杆方向" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="barDirection">
              <j-dict-select-tag
                type="list"
                v-model="model.barDirection"
                :triggerChange="true"
                dictCode="bar_direction"
                placeholder="请选择刀杆方向"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-model-item label="是否涂层" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="paintcoatFlag">
              <a-radio-group v-model="model.paintcoatFlag" :placeholder="'请选择是否涂层'">
                <a-radio :value="'1'">是</a-radio>
                <a-radio :value="'2'">否</a-radio>
              </a-radio-group>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-item label="刀具总长">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallTotalLength"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigTotalLength"></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="8">
            <a-form-item label="镗杆直径">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallBoringBarDiameter"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigBoringBarDiameter"></a-input>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-item label="刀杆长度">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallBladeLength"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigBladeLength"></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="8">
            <a-form-item label="刀具直径">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallToolDiameter"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigToolDiameter"></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="8">
            <a-form-item label="刀杆高度">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallBladeHeight"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigBladeHeight"></a-input>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-item label="刀杆尺寸">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallBladeSize"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigBladeSize"></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="8">
            <a-form-item label="刀片槽宽">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallSlotWidth"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigSlotWidth"></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="8">
            <a-form-item label="最小切入直径">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallSmallDiameter"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigSmallDiameter"></a-input>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-item label="最大切入直径">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallMaxDiameter"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigMaxDiameter"></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="8">
            <a-form-item label="最大切槽深度">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallMaxDepth"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigMaxDepth"></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="8">
            <a-form-item label="最小加工直径">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallMinDiameter"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigMinDiameter"></a-input>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-item label="刀板厚度">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallBladeThickness"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigBladeThickness"></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="8">
            <a-form-item label="刀杆宽度">
              <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallBladeWide"></a-input>
              <span class="query-group-split-cust"></span>
              <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigBladeWide"></a-input>
            </a-form-item>
          </a-col>
        </a-row>
      </a-form-model>
@@ -258,26 +417,68 @@
    },
     
    searchQuery(){
      this.searchParams.chineseName = this.model.chineseName
      this.searchParams.foreignLanguageName = this.model.foreignLanguageName
      this.searchParams.standardLevel = this.model.standardLevel
      this.searchParams.standardCode = this.model.standardCode
      this.searchParams.headSpecifications = this.model.headSpecifications
      this.searchParams.matchingNumber = this.model.matchingNumber
      this.searchParams.leadAngle = this.model.leadAngle
      this.searchParams.totalLength = this.model.totalLength
      this.searchParams.toolMaterial = this.model.toolMaterial
      this.searchParams.partMaterial = this.model.partMaterial
      this.searchParams.paintcoatFlag = this.model.paintcoatFlag
      this.searchParams.toolPattern = this.model.toolPattern
      this.searchParams.crossSectionalSize = this.model.crossSectionalSize
      this.searchParams.coolingMethod = this.model.coolingMethod
      this.searchParams.cuttingDirection = this.model.cuttingDirection
      this.searchParams.technicalConditions = this.model.technicalConditions
      this.searchParams.conditionsInfo = this.model.conditionsInfo
      this.searchParams.toolModel = this.model.toolModel
      this.searchParams.shortCalled = this.model.shortCalled
      this.searchParams.groupCompanyCode = this.model.groupCompanyCode
      const fields = [
        'chineseName',
        'foreignLanguageName',
        'shortCalled',
        'groupCompanyCode',
        'groupCompanySign',
        'standardLevel',
        'standardCode',
        'toolModel',
        'partMaterial',
        'technicalConditions',
        'conditionsInfo',
        'brand',
        'headSpecifications',
        'matchingNumber',
        'knifeClipModel',
        'leadAngle',
        'crossSectionalSize',
        'knifeSize',
        'bladePosterior',
        'accuracyClass',
        'cuttingDirection',
        'toolMaterial',
        'toolPattern',
        'types',
        'paintcoatFlag',
        'coolingMethod',
        'fasteningForm',
        'holderCategory',
        'bladeShape',
        'clampingMethod',
        'barDirection',
        'smallTotalLength',
        'bigTotalLength',
        'smallBoringBarDiameter',
        'bigBoringBarDiameter',
        'smallBladeLength',
        'bigBladeLength',
        'smallToolDiameter',
        'bigToolDiameter',
        'smallBladeHeight',
        'bigBladeHeight',
        'smallBladeWide',
        'bigBladeWide',
        'smallBladeSize',
        'bigBladeSize',
        'smallSlotWidth',
        'bigSlotWidth',
        'smallSmallDiameter',
        'bigSmallDiameter',
        'smallMaxDiameter',
        'bigMaxDiameter',
        'smallMaxDepth',
        'bigMaxDepth',
        'smallMinDiameter',
        'bigMinDiameter',
        'smallBladeThickness',
        'bigBladeThickness'
      ]
      fields.forEach((field) => {
        this.searchParams[field] = this.model[field]
      })
      this.close()
      this.$emit('searchParams',this.searchParams)
    },