From b6b2c379bd92f076acd16801b1442604ea21fc5d Mon Sep 17 00:00:00 2001 From: cuilei <ray_tsu1@163.com> Date: 星期三, 27 八月 2025 17:30:52 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/tms/modules/baseTools/ParaThreadingToolSearchModal.vue | 264 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 264 insertions(+), 0 deletions(-) diff --git a/src/views/tms/modules/baseTools/ParaThreadingToolSearchModal.vue b/src/views/tms/modules/baseTools/ParaThreadingToolSearchModal.vue new file mode 100644 index 0000000..a916f3b --- /dev/null +++ b/src/views/tms/modules/baseTools/ParaThreadingToolSearchModal.vue @@ -0,0 +1,264 @@ +<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="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-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="铻虹汗浠e彿" :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="'璇疯緭鍏ヨ灪绾瑰叕宸甫浠e彿/绮惧害绛夌骇'"></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.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> \ No newline at end of file -- Gitblit v1.9.3