cuijian
3 天以前 ba15d76ff0ec80ee759913511158d4333f6e6c59
src/views/tms/modules/baseTools/ParaMillToolSearchModal.vue
@@ -1,7 +1,7 @@
<template>
  <j-modal
    :title="title"
    :width="800"
    :width="1200"
    :visible="visible"
    centered
    :confirmLoading="confirmLoading"
@@ -12,144 +12,85 @@
    <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="diameter">
              <a-input
                v-model="model.diameter"
                :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="numberOfTeeth">
              <a-input
                v-model="model.numberOfTeeth"
                :placeholder="'请输入齿数'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="切削刃长" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="edgeLength">
              <a-input
                v-model="model.edgeLength"
                :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-col :span="8">
            <a-form-model-item
              label="附加技术条件"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="technicalConditions"
            >
              <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-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 :gutter="24">
          <a-col :span="8">
            <a-form-model-item
              label="装夹规格"
              :labelCol="labelCol"
@@ -162,17 +103,35 @@
              ></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="coolingMethod">
          <a-col :span="8">
            <a-form-model-item
              label="接口尺寸规格"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="sizeSpecifications"
            >
              <a-input
                v-model="model.coolingMethod"
                :placeholder="'请输入冷却方式'"
                v-model="model.sizeSpecifications"
                :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="adaptBlade"
            >
              <a-input
                v-model="model.adaptBlade"
                :placeholder="'请输入适配刀片'"
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-model-item label="刀尖角R" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="noseAngleR">
              <a-input
                v-model="model.noseAngleR"
@@ -180,33 +139,247 @@
              ></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="technicalConditions"
            >
          <a-col :span="8">
            <a-form-model-item label="刀尖角C" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="noseAngleC">
              <a-input
                v-model="model.technicalConditions"
                :placeholder="'请输入附加技术条件'"
                v-model="model.noseAngleC"
                :placeholder="'请输入刀尖角C'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="附加技术条件说明"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="conditionsInfo"
            >
          <a-col :span="8">
            <a-form-model-item label="刀尖角内R" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="angleInsideR">
              <a-input
                v-model="model.conditionsInfo"
                :placeholder="'请输入附加技术条件说明'"
                v-model="model.angleInsideR"
                :placeholder="'请输入刀尖角内R'"
              ></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="numberOfTeeth">
              <a-input
                v-model="model.numberOfTeeth"
                :placeholder="'请输入齿数'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="最小直径" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="smallDiameter">
              <a-input
                v-model="model.smallDiameter"
                :placeholder="'请输入最小直径'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="刀具角度" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="toolAngle">
              <a-input
                v-model="model.toolAngle"
                :placeholder="'请输入刀具角度'"
              ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="8">
            <a-form-model-item label="主偏角K" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mainAngleK">
              <a-input
                v-model="model.mainAngleK"
                :placeholder="'请输入主偏角K'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="最大切深" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="deepestDepth">
              <a-input
                v-model="model.deepestDepth"
                :placeholder="'请输入最大切深'"
              ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="螺距" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pitch">
              <a-input
                v-model="model.pitch"
                :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="recentlyDiameter">
              <a-input
                v-model="model.recentlyDiameter"
                :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="toolMaterial">
              <j-dict-select-tag
                type="list"
                v-model="model.toolMaterial"
                :triggerChange="true"
                dictCode="tool_material"
                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="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-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-row>
        <a-row>
<a-col :span="8">
            <a-form-model-item label="柄部形式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="handleForm">
              <j-dict-select-tag
                type="list"
                v-model="model.handleForm"
                :triggerChange="true"
                dictCode="handle_form"
                placeholder="请选择柄部形式"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="柄颈形式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="handleNeckForm">
              <j-dict-select-tag
                type="list"
                v-model="model.handleNeckForm"
                :triggerChange="true"
                dictCode="handle_neck_form"
                placeholder="请选择柄颈形式"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="内外螺纹" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="numberPatterns">
              <j-dict-select-tag
                type="list"
                v-model="model.numberPatterns"
                :triggerChange="true"
                dictCode="number_patterns"
                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="millingHeadForm">
              <j-dict-select-tag
                type="list"
                v-model="model.millingHeadForm"
                :triggerChange="true"
                dictCode="milling_head_form"
                placeholder="请选择铣刀头形式"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="切削刃形式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cuttingEdgeForm">
              <j-dict-select-tag
                type="list"
                v-model="model.cuttingEdgeForm"
                :triggerChange="true"
                dictCode="cutting_edge_form"
                placeholder="请选择切削刃形式"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
              <a-form-item label="刀具直径">
                <a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.littleDiameter"></a-input>
                <span class="query-group-split-cust"></span>
                <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigDiameter"></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.smallEdgeLength"></a-input>
                <span class="query-group-split-cust"></span>
                <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigEdgeLength"></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.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.smallNeckDiameter"></a-input>
                <span class="query-group-split-cust"></span>
                <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigNeckDiameter"></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.smallHandleLength"></a-input>
                <span class="query-group-split-cust"></span>
                <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigHandleLength"></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.smallHandleNeckLength"></a-input>
                <span class="query-group-split-cust"></span>
                <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigHandleNeckLength"></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.smallOverhangingLength"></a-input>
                <span class="query-group-split-cust"></span>
                <a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigOverhangingLength"></a-input>
              </a-form-item>
          </a-col>
        </a-row>
      </a-form-model>
@@ -258,26 +431,60 @@
    },
     
    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.diameter = this.model.diameter
      this.searchParams.noseAngleR = this.model.noseAngleR
      this.searchParams.edgeLength = this.model.edgeLength
      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.clampingSpecifications = this.model.clampingSpecifications
      this.searchParams.coolingMethod = this.model.coolingMethod
      this.searchParams.numberOfTeeth = this.model.numberOfTeeth
      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',
        'clampingSpecifications',
        'sizeSpecifications',
        'adaptBlade',
        'noseAngleR',
        'noseAngleC',
        'angleInsideR',
        'numberOfTeeth',
        'smallDiameter',
        'toolAngle',
        'mainAngleK',
        'deepestDepth',
        'pitch',
        'recentlyDiameter',
        'accuracyClass',
        'toolMaterial',
        'coolingMethod',
        'paintcoatFlag',
        'toolPattern',
        'handleForm',
        'handleNeckForm',
        'numberPatterns',
        'millingHeadForm',
        'cuttingEdgeForm',
        'littleDiameter',
        'bigDiameter',
        'smallEdgeLength',
        'bigEdgeLength',
        'smallTotalLength',
        'bigTotalLength',
        'smallNeckDiameter',
        'bigNeckDiameter',
        'smallHandleLength',
        'bigHandleLength',
        'smallHandleNeckLength',
        'bigHandleNeckLength',
        'smallOverhangingLength',
        'bigOverhangingLength'
      ]
      fields.forEach((field) => {
        this.searchParams[field] = this.model[field]
      })
      this.close()
      this.$emit('searchParams',this.searchParams)
    },