cuijian
12 小时以前 3043aabc2e5dc72b1e76fd44a05edaa5c0f214fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<template>
  <j-modal
    :title="title"
    :width="800"
    :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="12">
            <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-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-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-form-model-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="12">
            <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-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-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-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-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>
export default {
  name: 'ParaHoleToolsSearchModal',
  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() {
      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.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>