cuijian
3 天以前 ba15d76ff0ec80ee759913511158d4333f6e6c59
src/views/tms/modules/baseTools/ParaThreadingToolSearchModal.vue
@@ -1,7 +1,7 @@
<template>
  <j-modal
    :title="title"
    :width="800"
    :width="1200"
    :visible="visible"
    centered
    :confirmLoading="confirmLoading"
@@ -12,134 +12,58 @@
    <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-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-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-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item prop="groupCompanyCode" label="集团公司编码">
              <a-input
                :placeholder="'请输入集团公司编码'"
                v-model="model.groupCompanyCode"
              />
              <a-input :placeholder="'请输入工具简称'" v-model="model.shortCalled" />
            </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="groupCompanyCode" label="集团公司编码">
              <a-input :placeholder="'请输入集团公司编码'" v-model="model.groupCompanyCode" />
            </a-form-model-item>
          </a-col>
          <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-row>
        <a-row :gutter="24">
          <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-row>
        <a-row :gutter="24">
          <a-col :span="12">
          <a-col :span="8">
            <a-form-model-item prop="toolModel" label="型号/图号">
              <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="threadCode">
              <a-input v-model="model.threadCode" :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="pitch">
              <a-input v-model="model.pitch" :placeholder="'请输入螺距'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="螺纹旋向" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rotationDirection">
              <a-input v-model="model.rotationDirection" :placeholder="'请输入螺纹旋向'"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="12">
            <a-form-model-item
              label="螺纹公差带代号/精度等级"
              :labelCol="{span:12}"
              :wrapperCol="{span:10}"
              prop="tolerancezoneLevel"
            >
              <a-input v-model="model.tolerancezoneLevel" :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="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-row>
        <a-row>
          <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-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-row>
        <a-row>
          <a-col :span="12">
            <a-form-model-item label="外型尺寸" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="externalDimensions">
              <a-input v-model="model.externalDimensions" :placeholder="'请输入外型尺寸'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="柄部规格"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
              prop="handleSpecifications"
            >
              <a-input v-model="model.handleSpecifications" :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"
@@ -149,7 +73,7 @@
              <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"
@@ -158,6 +82,196 @@
            >
              <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" :wrapperCol="wrapperCol" prop="threadCode">
              <a-input v-model="model.threadCode" :placeholder="'请输入螺纹代号'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item
              label="螺纹公差带代号/精度等级"
              :labelCol="{ span: 12 }"
              :wrapperCol="{ span: 10 }"
              prop="tolerancezoneLevel"
            >
              <a-input v-model="model.tolerancezoneLevel" :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="handleSpecifications"
            >
              <a-input v-model="model.handleSpecifications" :placeholder="'请输入柄部规格'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="导向尺寸" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="guidingSize">
              <a-input v-model="model.guidingSize" :placeholder="'请输入导向尺寸'"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="连接孔径" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="connectionAperture">
              <a-input v-model="model.connectionAperture" :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="connectingKeyway">
              <a-input v-model="model.connectingKeyway" :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="rotationDirection">
              <j-dict-select-tag
                type="list"
                v-model="model.rotationDirection"
                :triggerChange="true"
                dictCode="rotation_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-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="coolingMethod">
              <j-dict-select-tag
                type="list"
                v-model="model.coolingMethod"
                :triggerChange="true"
                dictCode="cooling_method"
                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="types">
              <j-dict-select-tag
                type="list"
                v-model="model.types"
                :triggerChange="true"
                dictCode="types"
                placeholder="请选择制式"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="螺孔类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="screwHoleType">
              <j-dict-select-tag
                type="list"
                v-model="model.screwHoleType"
                :triggerChange="true"
                dictCode="screw_hole_type"
                placeholder="请选择螺孔类型"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="8">
            <a-form-model-item label="螺纹标准" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="threadStandard">
              <j-dict-select-tag
                type="list"
                v-model="model.threadStandard"
                :triggerChange="true"
                dictCode="thread_standard"
                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="fluteSoltType">
              <j-dict-select-tag
                type="list"
                v-model="model.fluteSoltType"
                :triggerChange="true"
                dictCode="flute_solt_type"
                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.smallExternalDimensions"
              ></a-input>
              <span class="query-group-split-cust"></span>
              <a-input
                placeholder="请输入最大值"
                class="query-group-cust"
                v-model="model.bigExternalDimensions"
              ></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.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-row>
        <a-row>
          <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-row>
      </a-form-model>
@@ -205,24 +319,47 @@
    },
    searchQuery() {
      this.searchParams.chineseName = this.model.chineseName
      this.searchParams.foreignLanguageName = this.model.foreignLanguageName
      this.searchParams.threadCode = this.model.threadCode
      this.searchParams.pitch = this.model.pitch
      this.searchParams.rotationDirection = this.model.rotationDirection
      this.searchParams.tolerancezoneLevel = this.model.tolerancezoneLevel
      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.externalDimensions = this.model.externalDimensions
      this.searchParams.handleSpecifications = this.model.handleSpecifications
      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',
        'threadCode',
        'tolerancezoneLevel',
        'pitch',
        'handleSpecifications',
        'guidingSize',
        'connectionAperture',
        'connectingKeyway',
        'accuracyClass',
        'rotationDirection',
        'paintcoatFlag',
        'toolMaterial',
        'coolingMethod',
        'types',
        'screwHoleType',
        'threadStandard',
        'fluteSoltType',
        'smallExternalDimensions',
        'bigExternalDimensions',
        'smallEdgeLength',
        'bigEdgeLength',
        'smallTotalLength',
        'bigTotalLength'
      ]
      fields.forEach((field) => {
        this.searchParams[field] = this.model[field]
      })
      this.close()
      this.$emit('searchParams', this.searchParams)
    },