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/ParaTurningToolsSearchModal.vue | 319 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 319 insertions(+), 0 deletions(-) diff --git a/src/views/tms/modules/baseTools/ParaTurningToolsSearchModal.vue b/src/views/tms/modules/baseTools/ParaTurningToolsSearchModal.vue new file mode 100644 index 0000000..f0b7392 --- /dev/null +++ b/src/views/tms/modules/baseTools/ParaTurningToolsSearchModal.vue @@ -0,0 +1,319 @@ +<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="鍒�澶磋鏍�" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="headSpecifications"> + <a-input + v-model="model.headSpecifications" + :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="matchingNumber"> + <a-input + v-model="model.matchingNumber" + :placeholder="'璇疯緭鍏ラ厤濂楀垁鐗囧彿'" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="12"> + <a-form-model-item label="涓诲亸瑙�" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leadAngle"> + <a-input + v-model="model.leadAngle" + :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-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-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-form-model-item> + </a-col> + <a-col :span="12"> + <a-form-model-item + label="鍒�鍏锋埅闈㈠昂瀵�" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="crossSectionalSize" + > + <a-input + v-model="model.crossSectionalSize" + :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="cuttingDirection"> + <a-input + v-model="model.cuttingDirection" + :placeholder="'璇疯緭鍏ュ垏鍓婃柟鍚�'" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="12"> + <a-form-model-item label="鍐峰嵈鏂瑰紡" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="coolingMethod"> + <a-input + v-model="model.coolingMethod" + :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.standardLevel = this.model.standardLevel + this.searchParams.standardCode = this.model.standardCode + this.searchParams.headSpecifications = this.model.headSpecifications + this.searchParams.matchingNumber = this.model.matchingNumber + this.searchParams.leadAngle = this.model.leadAngle + 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.crossSectionalSize = this.model.crossSectionalSize + this.searchParams.coolingMethod = this.model.coolingMethod + this.searchParams.cuttingDirection = this.model.cuttingDirection + 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