From a80d418d5d985af44565058c56c061b2b4c4fa43 Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期三, 03 九月 2025 16:51:24 +0800 Subject: [PATCH] 参数录入增加数据字典选择,查询列表增加字典翻译 --- src/views/tms/modules/baseTools/ParaThreadingToolModal.vue | 90 +++++++++++++++++++++++++++++++++++++------- 1 files changed, 75 insertions(+), 15 deletions(-) diff --git a/src/views/tms/modules/baseTools/ParaThreadingToolModal.vue b/src/views/tms/modules/baseTools/ParaThreadingToolModal.vue index ce5eec0..79a473e 100644 --- a/src/views/tms/modules/baseTools/ParaThreadingToolModal.vue +++ b/src/views/tms/modules/baseTools/ParaThreadingToolModal.vue @@ -250,7 +250,14 @@ </a-col> <a-col :span="6"> <a-form-model-item label="铻虹汗鏃嬪悜" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="rotationDirection"> - <a-input v-model="model.rotationDirection" :placeholder="disableSubmit?'':'璇疯緭鍏ヨ灪绾规棆鍚�'" :disabled="disableSubmit"></a-input> + <j-dict-select-tag + type="list" + v-model="model.rotationDirection" + :triggerChange="true" + dictCode="rotation_direction" + placeholder="璇烽�夋嫨铻虹汗鏃嬪悜" + :disabled="disableSubmit" + /> </a-form-model-item> </a-col> <a-col :span="6"> @@ -273,7 +280,14 @@ </a-col> <a-col :span="6"> <a-form-model-item label="鍒�鍏锋潗鏂�" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="toolMaterial"> - <a-input v-model="model.toolMaterial" :placeholder="disableSubmit?'':'璇疯緭鍏ュ垁鍏锋潗鏂�'" :disabled="disableSubmit" ></a-input> + <j-dict-select-tag + type="list" + v-model="model.toolMaterial" + :triggerChange="true" + dictCode="tool_material" + placeholder="璇烽�夋嫨鍒�鍏锋潗鏂�" + :disabled="disableSubmit" + /> </a-form-model-item> </a-col> <a-col :span="6"> @@ -320,29 +334,64 @@ </a-col> <a-col :span="6"> <a-form-model-item label="鍒跺紡" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="types"> - <a-input v-model="model.types" :placeholder="disableSubmit?'':'璇疯緭鍏ュ埗寮�'" :disabled="disableSubmit" ></a-input> + <j-dict-select-tag + type="list" + v-model="model.types" + :triggerChange="true" + dictCode="types" + placeholder="璇烽�夋嫨鍒跺紡" + :disabled="disableSubmit" + /> </a-form-model-item> </a-col> <a-col :span="6"> <a-form-model-item label="鍐峰嵈鏂瑰紡" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="coolingMethod"> - <a-input v-model="model.coolingMethod" :placeholder="disableSubmit?'':'璇疯緭鍏ュ喎鍗存柟寮�'" :disabled="disableSubmit" ></a-input> + <j-dict-select-tag + type="list" + v-model="model.coolingMethod" + :triggerChange="true" + dictCode="cooling_method" + placeholder="璇烽�夋嫨鍐峰嵈鏂瑰紡" + :disabled="disableSubmit" + /> </a-form-model-item> </a-col> </a-row> <a-row> <a-col :span="6"> <a-form-model-item label="铻虹汗鏍囧噯" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="threadStandard"> - <a-input v-model="model.threadStandard" :placeholder="disableSubmit?'':'璇疯緭鍏ヨ灪绾规爣鍑�'" :disabled="disableSubmit" ></a-input> + <j-dict-select-tag + type="list" + v-model="model.threadStandard" + :triggerChange="true" + dictCode="thread_standard" + placeholder="璇烽�夋嫨铻虹汗鏍囧噯" + :disabled="disableSubmit" + /> </a-form-model-item> </a-col> <a-col :span="6"> <a-form-model-item label="鎺掑睉妲藉瀷" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fluteSoltType"> - <a-input v-model="model.fluteSoltType" :placeholder="disableSubmit?'':'璇疯緭鍏ユ帓灞戞Ы鍨�'" :disabled="disableSubmit" ></a-input> + <j-dict-select-tag + type="list" + v-model="model.fluteSoltType" + :triggerChange="true" + dictCode="flute_solt_type" + placeholder="璇烽�夋嫨鎺掑睉妲藉瀷" + :disabled="disableSubmit" + /> </a-form-model-item> </a-col> <a-col :span="6"> <a-form-model-item label="铻虹汗绫诲瀷" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="threadType"> - <a-input v-model="model.threadType" :placeholder="disableSubmit?'':'璇疯緭鍏ヨ灪绾圭被鍨�'" :disabled="disableSubmit" ></a-input> + <j-dict-select-tag + type="list" + v-model="model.threadType" + :triggerChange="true" + dictCode="thread_type" + placeholder="璇烽�夋嫨铻虹汗绫诲瀷" + :disabled="disableSubmit" + /> </a-form-model-item> </a-col> <a-col :span="6"> @@ -352,6 +401,17 @@ </a-col> </a-row> <a-row> + <a-col :span="6"> + <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="6"> <a-form-model-item label="杩炴帴瀛斿緞" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="connectionAperture"> <a-input v-model="model.connectionAperture" :placeholder="disableSubmit?'':'璇疯緭鍏ヨ繛鎺ュ瓟寰�'" :disabled="disableSubmit" ></a-input> @@ -510,14 +570,14 @@ this.threadCodeChange1 = '-'+record.threadCode this.pitchChange1 = '-'+record.pitch //閫氳繃id鏌ヨ绠$悊鍙傛暟鍜屽弬鏁版暟鎹� - getAction(this.url.queryParaByToolCode, { - toolCode: record.toolCodeId, - paraTypeFlag: record.paraTypeFlag, - }).then((res) => { - if (res.success) { - this.model = Object.assign({}, res.result) - } - }) + // getAction(this.url.queryParaByToolCode, { + // toolCode: record.toolCodeId, + // paraTypeFlag: record.paraTypeFlag, + // }).then((res) => { + // if (res.success) { + // this.model = Object.assign({}, res.result) + // } + // }) this.visible = true }, close() { -- Gitblit v1.9.3