<template>
|
<j-modal
|
:title="title"
|
:width="1200"
|
:visible="visible"
|
centered
|
:confirmLoading="confirmLoading"
|
switchFullscreen
|
@cancel="handleCancel"
|
cancelText="关闭"
|
>
|
<a-spin :spinning="confirmLoading">
|
<a-form-model ref="form" :model="model" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-row :gutter="24">
|
<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="8">
|
<a-form-model-item prop="foreignLanguageName" label="外文名称">
|
<a-input :placeholder="'请输入外文名称'" v-model="model.foreignLanguageName" />
|
</a-form-model-item>
|
</a-col>
|
<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-row>
|
<a-row :gutter="24">
|
<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-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-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="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="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="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"
|
: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="toleranceClass">
|
<a-input v-model="model.toleranceClass" :placeholder="'请输入公差等级'"></a-input>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item
|
label="适配刀片-刀头-刀杆"
|
:labelCol="labelCol"
|
:wrapperCol="wrapperCol"
|
prop="fitterPart"
|
>
|
<a-input v-model="model.fitterPart" :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="connectorType">
|
<a-input v-model="model.connectorType" :placeholder="'请输入接口形式'"></a-input>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item label="切削刃锥角" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="coneAngle">
|
<a-input v-model="model.coneAngle" :placeholder="'请输入切削刃锥角'"></a-input>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item label="刃数" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bladeCount">
|
<a-input v-model="model.bladeCount" :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="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="chamferAngle">
|
<a-input v-model="model.chamferAngle" :placeholder="'请输入倒角角度'"></a-input>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item
|
label="有效加工长度"
|
:labelCol="labelCol"
|
:wrapperCol="wrapperCol"
|
prop="effectiveLength"
|
>
|
<a-input v-model="model.effectiveLength" :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="drillDiameterRange"
|
>
|
<a-input v-model="model.drillDiameterRange" :placeholder="'请输入钻头直径范围 '"></a-input>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item label="刀杆直径" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="knifeDiameter">
|
<a-input v-model="model.knifeDiameter" :placeholder="'请输入刀杆直径'"></a-input>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item label="孔径" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="boreDiameter">
|
<a-input v-model="model.boreDiameter" :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="slotSpecification"
|
>
|
<a-input v-model="model.slotSpecification" :placeholder="'请输入接口槽长规格'"></a-input>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item label="刀头数" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="headsNumber">
|
<a-input v-model="model.headsNumber" :placeholder="'请输入刀头数'"></a-input>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item label="适配刀座" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="adaptHolder">
|
<a-input v-model="model.adaptHolder" :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="guidanceLength">
|
<a-input v-model="model.guidanceLength" :placeholder="'请输入导向长度'"></a-input>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item label="导向直径" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="guidanceDiameter">
|
<a-input v-model="model.guidanceDiameter" :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-row>
|
<a-row :gutter="24">
|
<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="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 :gutter="24">
|
<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="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="fluteForm">
|
<j-dict-select-tag
|
type="list"
|
v-model="model.fluteForm"
|
:triggerChange="true"
|
dictCode="flute_form"
|
placeholder="请选择排屑槽形式"
|
/>
|
</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="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="scopeOfApplication">
|
<j-dict-select-tag
|
type="list"
|
v-model="model.scopeOfApplication"
|
:triggerChange="true"
|
dictCode="scope_of_application"
|
placeholder="请选择适用范围"
|
/>
|
</a-form-model-item>
|
</a-col>
|
<a-col :span="8">
|
<a-form-model-item label="加工方式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processingmethod">
|
<j-dict-select-tag
|
type="list"
|
v-model="model.processingmethod"
|
:triggerChange="true"
|
dictCode="processingmethod"
|
placeholder="请选择加工方式"
|
/>
|
</a-form-model-item>
|
</a-col>
|
</a-row>
|
|
<a-row :gutter="24">
|
<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-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-row>
|
<a-row>
|
<a-col :span="8">
|
<a-form-item label="最小镗孔直径">
|
<a-input placeholder="请输入最小值" class="query-group-cust" v-model="model.smallLatestBoringDiameter"></a-input>
|
<span class="query-group-split-cust"></span>
|
<a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigLatestBoringDiameter"></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.smallMaxBoringDiameter"></a-input>
|
<span class="query-group-split-cust"></span>
|
<a-input placeholder="请输入最大值" class="query-group-cust" v-model="model.bigMaxBoringDiameter"></a-input>
|
</a-form-item>
|
</a-col>
|
</a-row>
|
|
</a-form-model>
|
</a-spin>
|
<template slot="footer">
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
<a-button :style="{ marginRight: '8px' }" @click="handleCancel">关闭</a-button>
|
</template>
|
</j-modal>
|
</template>
|
|
<script>
|
import JDictSelectTag from '@/components/dict/JDictSelectTag'
|
|
export default {
|
name: 'ParaHoleToolsSearchModal',
|
components: {
|
JDictSelectTag,
|
},
|
data() {
|
return {
|
title: '工具信息-高级查询',
|
visible: false,
|
confirmLoading: false,
|
model: {},
|
labelCol: {
|
xs: { span: 24 },
|
sm: { span: 9 },
|
},
|
wrapperCol: {
|
xs: { span: 24 },
|
sm: { span: 14 },
|
},
|
searchParams: {},
|
}
|
},
|
created() {},
|
mounted() {},
|
methods: {
|
show() {
|
this.visible = true
|
},
|
close() {
|
this.$emit('close')
|
this.visible = false
|
},
|
handleCancel() {
|
this.close()
|
},
|
|
searchQuery() {
|
const fields = [
|
'chineseName',
|
'foreignLanguageName',
|
'standardLevel',
|
'standardCode',
|
'coneAngle',
|
'edgeLength',
|
'totalLength',
|
'toolMaterial',
|
'partMaterial',
|
'paintcoatFlag',
|
'toolPattern',
|
'handleSpecifications',
|
'coolingMethod',
|
'bladeCount',
|
'technicalConditions',
|
'conditionsInfo',
|
'toolModel',
|
'shortCalled',
|
'groupCompanyCode',
|
'groupCompanySign',
|
'brand',
|
'toleranceClass',
|
'fitterPart',
|
'connectorType',
|
'smallDiameter',
|
'chamferAngle',
|
'effectiveLength',
|
'drillDiameterRange',
|
'knifeDiameter',
|
'boreDiameter',
|
'slotSpecification',
|
'headsNumber',
|
'adaptHolder',
|
'guidanceLength',
|
'guidanceDiameter',
|
'accuracyClass',
|
'types',
|
'fluteForm',
|
'handleForm',
|
'scopeOfApplication',
|
'processingmethod',
|
'littleDiameter',
|
'bigDiameter',
|
'smallEdgeLength',
|
'bigEdgeLength',
|
'smallTotalLength',
|
'bigTotalLength',
|
'smallLatestBoringDiameter',
|
'bigLatestBoringDiameter',
|
'smallMaxBoringDiameter',
|
'bigMaxBoringDiameter'
|
];
|
|
fields.forEach(field => {
|
this.searchParams[field] = this.model[field];
|
});
|
// 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.coneAngle = this.model.coneAngle
|
// 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.handleSpecifications = this.model.handleSpecifications
|
// this.searchParams.coolingMethod = this.model.coolingMethod
|
// this.searchParams.bladeCount = this.model.bladeCount
|
// 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
|
this.close()
|
this.$emit('searchParams', this.searchParams)
|
},
|
searchReset() {
|
this.model = {}
|
},
|
},
|
}
|
</script>
|
|
<style lang="less" scoped>
|
/deep/ .ant-modal-body {
|
padding: 0 24px;
|
}
|
|
/deep/ .ant-upload {
|
width: 185px;
|
height: 185px;
|
}
|
|
/deep/ .img {
|
display: flex;
|
justify-content: center;
|
|
.ant-upload-picture-card-wrapper {
|
width: auto;
|
}
|
}
|
|
/deep/ .ant-upload-list-picture-card-container {
|
width: 185px;
|
height: 185px;
|
}
|
|
/deep/ .ant-upload-list-item {
|
width: 185px;
|
height: 185px;
|
}
|
</style>
|