From 55abd3e2adf7585fb4597a6227336f0a0550f1ba Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期四, 21 八月 2025 09:06:44 +0800 Subject: [PATCH] 工具信息、工具台账、出入库申请增加参数查询 --- src/views/tms/modules/baseTools/ParaHoleToolsModal.vue | 112 +++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 91 insertions(+), 21 deletions(-) diff --git a/src/views/tms/modules/baseTools/ParaHoleToolsModal.vue b/src/views/tms/modules/baseTools/ParaHoleToolsModal.vue index 9520948..d92cfc2 100644 --- a/src/views/tms/modules/baseTools/ParaHoleToolsModal.vue +++ b/src/views/tms/modules/baseTools/ParaHoleToolsModal.vue @@ -59,7 +59,7 @@ <a-col :span="24"> <a-form-model-item prop="chineseName" label="涓枃鍚嶇О"> - <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ヤ腑鏂囧悕绉�'" v-model="model.chineseName" :disabled="disableSubmit"/> + <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ヤ腑鏂囧悕绉�'" v-model="model.chineseName" :disabled="disableSubmit" @change="e => chineseNameChange(e.target.value)"/> </a-form-model-item> </a-col> </a-row> @@ -75,7 +75,7 @@ <a-col :span="24"> <a-form-model-item prop="toolModel" label="鍨嬪彿/鍥惧彿"> - <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ瀷鍙�/鍥惧彿'" v-model="model.toolModel" :disabled="disableSubmit" /> + <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ瀷鍙�/鍥惧彿'" v-model="model.toolModel" :disabled="disableSubmit" @change="e => toolModelChange(e.target.value)"/> </a-form-model-item> </a-col> </a-row> @@ -123,7 +123,7 @@ <a-col :span="8"> <a-form-model-item prop="applicationType" label="宸ュ叿绫诲瀷"> - <j-dict-select-tag dict-code="equipment_category" :placeholder="disableSubmit?'':'璇烽�夋嫨宸ュ叿绫诲瀷'" + <j-dict-select-tag dict-code="application_type" :placeholder="disableSubmit?'':'璇烽�夋嫨宸ュ叿绫诲瀷'" v-model="model.applicationType" :disabled="disableSubmit" /> </a-form-model-item> </a-col> @@ -156,11 +156,6 @@ <a-row :gutter="24"> <a-col :span="8"> - <a-form-model-item prop="storageLocation" label="瀛樺偍浣嶇疆"> - <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ瓨鍌ㄤ綅缃�'" v-model="model.storageLocation" :disabled="disableSubmit"/> - </a-form-model-item> - </a-col> - <a-col :span="8"> <a-form-model-item prop="lowerInventory" label="鏈�浣庡簱瀛�"> <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ユ渶浣庡簱瀛�'" v-model="model.lowerInventory" :disabled="disableSubmit"/> </a-form-model-item> @@ -170,10 +165,7 @@ <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ユ渶楂樺簱瀛�'" v-model="model.highestInventory" :disabled="disableSubmit"/> </a-form-model-item> </a-col> - </a-row> - - <a-row :gutter="24"> - <a-col :span="8"> + <a-col :span="8"> <a-form-model-item prop="auxiliaryUnitFlag" label="鏄惁鏈夎閲忚緟鍗曚綅"> <a-radio-group v-model="model.auxiliaryUnitFlag" :placeholder="disableSubmit?'':'璇烽�夋嫨鏄惁鏈夎閲忚緟鍗曚綅'" :disabled="disableSubmit"> <a-radio :value="'1'">鏄�</a-radio> @@ -181,6 +173,9 @@ </a-radio-group> </a-form-model-item> </a-col> + </a-row> + + <a-row :gutter="24"> <a-col :span="8"> <a-form-model-item prop="mainUnit" label="璁¢噺涓诲崟浣�"> <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ヨ閲忎富鍗曚綅'" v-model="model.mainUnit" :disabled="disableSubmit"/> @@ -191,14 +186,14 @@ <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ヨ閲忚緟鍗曚綅'" v-model="model.auxiliaryUnit" :disabled="disableSubmit"/> </a-form-model-item> </a-col> - </a-row> - - <a-row :gutter="24"> <a-col :span="8"> <a-form-model-item prop="supplierId" label="鍘傚"> <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ巶瀹�'" v-model="model.supplierId" :disabled="disableSubmit"/> </a-form-model-item> </a-col> + </a-row> + + <a-row :gutter="24"> <a-col :span="8"> <a-form-model-item prop="price" label="鍗曚环"> <a-input :placeholder="disableSubmit?'':'璇疯緭鍏ュ崟浠�'" v-model="model.price" :disabled="disableSubmit"/> @@ -216,8 +211,37 @@ <a-row :gutter="24"> <a-col :span="6"> + <a-form-model-item label="宸ュ叿绠�绉�" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="shortCalled"> + <a-input + v-model="model.shortCalled" + :placeholder="disableSubmit ? '' : '璇疯緭鍏ュ伐鍏风畝绉�'" + :disabled="disableSubmit" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item label="闆嗗洟鍏徃缂栫爜" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="groupCompanyCode"> + <a-input + v-model="model.groupCompanyCode" + :placeholder="disableSubmit ? '' : '璇疯緭鍏ラ泦鍥㈠叕鍙哥紪鐮�'" + :disabled="disableSubmit" + ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="12"> + <a-form-model-item label="闆嗗洟鍏徃鏍囪" :labelCol="{span:4}" :wrapperCol="{span:20}" prop="groupCompanySign"> + <a-input + v-model="model.groupCompanySign" + :disabled="true" + ></a-input> + </a-form-model-item> + </a-col> + </a-row> + + <a-row :gutter="24"> + <a-col :span="6"> <a-form-model-item label="鐩村緞" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="diameter"> - <a-input v-model="model.diameter" :placeholder="disableSubmit?'':'璇疯緭鍏ョ洿寰�'" :disabled="disableSubmit"></a-input> + <a-input v-model="model.diameter" :placeholder="disableSubmit?'':'璇疯緭鍏ョ洿寰�'" :disabled="disableSubmit" @change="e => diameterChange(e.target.value)"></a-input> </a-form-model-item> </a-col> <a-col :span="6"> @@ -232,7 +256,7 @@ </a-col> <a-col :span="6"> <a-form-model-item label="鍒�鍏锋�婚暱" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="totalLength"> - <a-input v-model="model.totalLength" :placeholder="disableSubmit?'':'璇疯緭鍏ュ垁鍏锋�婚暱'" :disabled="disableSubmit"></a-input> + <a-input v-model="model.totalLength" :placeholder="disableSubmit?'':'璇疯緭鍏ュ垁鍏锋�婚暱'" :disabled="disableSubmit" @change="e => totalLengthChange(e.target.value)"></a-input> </a-form-model-item> </a-col> </a-row> @@ -279,7 +303,7 @@ </a-form-model-item> </a-col> <a-col :span="6"> - <a-form-model-item label="闄勫姞鎶�鏈潯浠惰鏄�" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="conditionsInfo"> + <a-form-model-item label="闄勫姞鎶�鏈潯浠惰鏄�" :labelCol="{span:12}" :wrapperCol="{span:12}" prop="conditionsInfo"> <a-input v-model="model.conditionsInfo" :placeholder="disableSubmit?'':'璇疯緭鍏ラ檮鍔犳妧鏈潯浠惰鏄�'" :disabled="disableSubmit" ></a-input> </a-form-model-item> </a-col> @@ -330,7 +354,7 @@ </a-row> <a-row> <a-col :span="6"> - <a-form-model-item label="閫傞厤鍒�鐗�-鍒�澶�-鍒�鏉�" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fitterPart"> + <a-form-model-item label="閫傞厤鍒�鐗�-鍒�澶�-鍒�鏉�" :labelCol="{span:12}" :wrapperCol="{span:12}" prop="fitterPart"> <a-input v-model="model.fitterPart" :placeholder="disableSubmit?'':'璇疯緭鍏ラ�傞厤鍒�鐗�-鍒�澶�-鍒�鏉�'" :disabled="disableSubmit" ></a-input> </a-form-model-item> </a-col> @@ -391,6 +415,18 @@ <a-col :span="6"> <a-form-model-item label="鍒�澶存暟" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="headsNumber"> <a-input v-model="model.headsNumber" :placeholder="disableSubmit?'':'璇疯緭鍏ュ垁澶存暟'" :disabled="disableSubmit" ></a-input> + </a-form-model-item> + </a-col> + </a-row> + <a-row> + <a-col :span="6"> + <a-form-model-item label="瀵煎悜闀垮害" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="guidanceLength"> + <a-input v-model="model.guidanceLength" :placeholder="disableSubmit?'':'璇疯緭鍏ュ鍚戦暱搴�'" :disabled="disableSubmit" ></a-input> + </a-form-model-item> + </a-col> + <a-col :span="6"> + <a-form-model-item label="瀵煎悜鐩村緞" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="guidanceDiameter"> + <a-input v-model="model.guidanceDiameter" :placeholder="disableSubmit?'':'璇疯緭鍏ュ鍚戠洿寰�'" :disabled="disableSubmit" ></a-input> </a-form-model-item> </a-col> </a-row> @@ -493,8 +529,13 @@ url: { add: '/tms/baseTools/add', edit: '/tms/baseTools/edit', + queryParaByToolCode: '/tms/baseTools/queryByToolCode', }, - locationCodeOptions:[] + locationCodeOptions:[], + chineseNameChange1:'', + toolModelChange1:'', + diameterChange1:'', + totalLengthChange1:'', } }, created() { @@ -514,7 +555,7 @@ this.editable = false; //鍒濆鍖栭粯璁ゅ�� this.model = { - positionCode: '' + positionCode: '' }; this.model.classifyId = nodeSelected.key this.model.classifyNum = nodeSelected.entity.classifyId @@ -525,12 +566,25 @@ edit(record) { this.editable = true; this.model = Object.assign({}, record) + //閫氳繃id鏌ヨ绠$悊鍙傛暟鍜屽弬鏁版暟鎹� + 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() { this.$emit('close') this.visible = false this.$refs.form.clearValidate() + this.chineseNameChange1 = '', + this.toolModelChange1 = '', + this.diameterChange1 = '', + this.totalLengthChange1 = '' }, positionCodeSearch() { let positionCode = [] @@ -604,6 +658,22 @@ } }) }, + chineseNameChange(chineseNameChange){ + this.chineseNameChange1 = chineseNameChange + this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.totalLengthChange1 + }, + toolModelChange(toolModelChange){ + this.toolModelChange1 = toolModelChange == '' ? '' : '-'+toolModelChange + this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.totalLengthChange1 + }, + diameterChange(diameterChange){ + this.diameterChange1 = diameterChange == '' ? '' : '-'+diameterChange + this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.totalLengthChange1 + }, + totalLengthChange(totalLengthChange){ + this.totalLengthChange1 = totalLengthChange == '' ? '' : '-'+totalLengthChange + this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.totalLengthChange1 + } } } </script> -- Gitblit v1.9.3