| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="accuracyClass" label="精度等级"> |
| | | <j-dict-select-tag |
| | | :disabled="disableSubmit" |
| | | type="list" |
| | | v-model="model.accuracyClass" |
| | | :triggerChange="true" |
| | | dictCode="accuracy_class" |
| | | :placeholder="disableSubmit?'':'请选择精度等级'" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-col> |
| | | |
| | | <a-col :span="6"> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="positionCode" label="库位号"> |
| | | <!-- <a-form-model-item prop="positionCode" label="库位号"> |
| | | <a-select |
| | | :disabled="disableSubmit" |
| | | :triggerChange="true" |
| | | :options="locationCodeOptions" |
| | | v-model="model.positionCode" |
| | | /> |
| | | </a-form-model-item> --> |
| | | <a-form-model-item label="库位" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-tooltip title="选择库位后,此类刀具默认存储到此库位,请慎重选择!" placement="topRight"> |
| | | <a-input-search |
| | | v-model="model.positionCode" |
| | | @search="positionCodeSearch" |
| | | enter-button |
| | | placeholder="请选择库位" |
| | | /> |
| | | </a-tooltip> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <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-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-form-model-item prop="auxiliaryUnitFlag" label="是否有计量辅单位"> |
| | | <a-radio-group v-model="model.auxiliaryUnitFlag" :placeholder="disableSubmit?'':'请选择是否有计量辅单位'" :disabled="disableSubmit"> |
| | |
| | | </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"/> |
| | |
| | | <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"/> |
| | |
| | | |
| | | <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> 参数信息 |
| | | </a-divider> |
| | | |
| | | <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="headSpecifications"> |
| | | <a-input v-model="model.headSpecifications" :placeholder="disableSubmit?'':'请输入刀头规格'" :disabled="disableSubmit"></a-input> |
| | | <a-input v-model="model.headSpecifications" :placeholder="disableSubmit?'':'请输入刀头规格'" :disabled="disableSubmit" @change="e => headSpecificationsChange(e.target.value)"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item label="主偏角" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leadAngle"> |
| | | <a-input v-model="model.leadAngle" :placeholder="disableSubmit?'':'请输入主偏角'" :disabled="disableSubmit"></a-input> |
| | | <a-input v-model="model.leadAngle" :placeholder="disableSubmit?'':'请输入主偏角'" :disabled="disableSubmit" @change="e => leadAngleChange(e.target.value)"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item label="切削方向" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cuttingDirection"> |
| | | <a-input v-model="model.cuttingDirection" :placeholder="disableSubmit?'':'请输入切削方向'" :disabled="disableSubmit"></a-input> |
| | | <j-dict-select-tag |
| | | type="list" |
| | | v-model="model.cuttingDirection" |
| | | :triggerChange="true" |
| | | dictCode="cutting_direction" |
| | | placeholder="请选择切削方向" |
| | | :disabled="disableSubmit" |
| | | /> |
| | | </a-form-model-item> |
| | | </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"> |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item label="刀具型式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="toolPattern"> |
| | | <a-input v-model="model.toolPattern" :placeholder="disableSubmit?'':'请输入刀具型式'" :disabled="disableSubmit" ></a-input> |
| | | <j-dict-select-tag |
| | | type="list" |
| | | v-model="model.toolPattern" |
| | | :triggerChange="true" |
| | | dictCode="tool_pattern" |
| | | placeholder="请选择刀具型式" |
| | | :disabled="disableSubmit" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | </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> |
| | |
| | | </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-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="holderCategory"> |
| | | <a-input v-model="model.holderCategory" :placeholder="disableSubmit?'':'请输入刀杆类别'" :disabled="disableSubmit" ></a-input> |
| | | <j-dict-select-tag |
| | | type="list" |
| | | v-model="model.holderCategory" |
| | | :triggerChange="true" |
| | | dictCode="holder_category" |
| | | placeholder="请选择刀杆类别" |
| | | :disabled="disableSubmit" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item label="接口紧固形式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fasteningForm"> |
| | | <a-input v-model="model.fasteningForm" :placeholder="disableSubmit?'':'请输入接口紧固形式'" :disabled="disableSubmit" ></a-input> |
| | | <j-dict-select-tag |
| | | type="list" |
| | | v-model="model.fasteningForm" |
| | | :triggerChange="true" |
| | | dictCode="fastening_form" |
| | | placeholder="请选择接口紧固形式" |
| | | :disabled="disableSubmit" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item label="刀片形状" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bladeShape"> |
| | | <a-input v-model="model.bladeShape" :placeholder="disableSubmit?'':'请输入刀片形状'" :disabled="disableSubmit" ></a-input> |
| | | <j-dict-select-tag |
| | | type="list" |
| | | v-model="model.bladeShape" |
| | | :triggerChange="true" |
| | | dictCode="blade_shape" |
| | | placeholder="请选择刀片形状" |
| | | :disabled="disableSubmit" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item label="刀杆方向" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="barDirection"> |
| | | <a-input v-model="model.barDirection" :placeholder="disableSubmit?'':'请输入刀杆方向'" :disabled="disableSubmit" ></a-input> |
| | | <j-dict-select-tag |
| | | type="list" |
| | | v-model="model.barDirection" |
| | | :triggerChange="true" |
| | | dictCode="bar_direction" |
| | | 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="clampingMethod"> |
| | | <a-input v-model="model.clampingMethod" :placeholder="disableSubmit?'':'请输入刀片装夹方式'" :disabled="disableSubmit" ></a-input> |
| | | <j-dict-select-tag |
| | | type="list" |
| | | v-model="model.clampingMethod" |
| | | :triggerChange="true" |
| | | dictCode="clamping_method" |
| | | placeholder="请选择刀片装夹方式" |
| | | :disabled="disableSubmit" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | <select-position-code-modal ref="selectPositionCodeModal" :title="'选择库位'" /> |
| | | </j-modal> |
| | | </template> |
| | | |
| | |
| | | import JSelectProduction from '@comp/jeecgbiz/JSelectProduction.vue' |
| | | import { duplicateCheck } from '@/api/api'//重复校验 |
| | | import { ajaxGetDictItems } from '@/api/api' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag' |
| | | import SelectPositionCodeModal from './SelectPositionCodeModal' |
| | | |
| | | export default { |
| | | name: 'ParaHoleToolsModal', |
| | | components: { JSelectProduction }, |
| | | components: { JSelectProduction,JDictSelectTag,SelectPositionCodeModal }, |
| | | data() { |
| | | return { |
| | | title: '操作', |
| | |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | accuracyClass:[ |
| | | { required: true, message: '请选择精度等级' }, |
| | | ], |
| | | toolCode: [ |
| | | { required: true, message: '请输入工具编码' }, |
| | | { validator: this.validateNum } |
| | |
| | | url: { |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | queryParaByToolCode: '/tms/baseTools/queryByToolCode', |
| | | }, |
| | | locationCodeOptions:[] |
| | | locationCodeOptions:[], |
| | | chineseNameChange1:'', |
| | | toolModelChange1:'', |
| | | headSpecificationsChange1:'', |
| | | leadAngleChange1:'', |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.$bus.$on('selectionRows', (data) => { |
| | | this.model.positionCode = data[0].positionCode |
| | | }) |
| | | }, |
| | | created() { |
| | | ajaxGetDictItems("tms_goods_shelves,location_code,id", null).then((res) => { |
| | |
| | | add(nodeSelected) { |
| | | this.editable = false; |
| | | //初始化默认值 |
| | | this.model = {}; |
| | | this.model = { |
| | | positionCode: '' |
| | | }; |
| | | this.model.classifyId = nodeSelected.key |
| | | this.model.classifyNum = nodeSelected.entity.classifyId |
| | | this.model.classifyName = nodeSelected.entity.typeName |
| | |
| | | edit(record) { |
| | | this.editable = true; |
| | | this.model = Object.assign({}, record) |
| | | this.chineseNameChange1 = record.chineseName |
| | | this.toolModelChange1 = '-'+record.toolModel |
| | | this.headSpecificationsChange1 = '-'+record.headSpecifications |
| | | this.leadAngleChange1 = '-'+record.leadAngle |
| | | //通过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.headSpecificationsChange1 = '', |
| | | this.leadAngleChange1 = '' |
| | | }, |
| | | positionCodeSearch() { |
| | | let positionCode = [] |
| | | positionCode.push(this.model.positionCode) |
| | | this.$refs.selectPositionCodeModal.showModal(positionCode) |
| | | this.$refs.selectPositionCodeModal.title = '选择库位' |
| | | this.$refs.selectPositionCodeModal.disableSubmit = false |
| | | }, |
| | | handleOk() { |
| | | const that = this |
| | |
| | | } |
| | | }) |
| | | }, |
| | | chineseNameChange(chineseNameChange){ |
| | | this.chineseNameChange1 = chineseNameChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.headSpecificationsChange1+this.leadAngleChange1 |
| | | }, |
| | | toolModelChange(toolModelChange){ |
| | | this.toolModelChange1 = toolModelChange == '' ? '' : '-'+toolModelChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.headSpecificationsChange1+this.leadAngleChange1 |
| | | }, |
| | | headSpecificationsChange(headSpecificationsChange){ |
| | | this.headSpecificationsChange1 = headSpecificationsChange == '' ? '' : '-'+headSpecificationsChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.headSpecificationsChange1+this.leadAngleChange1 |
| | | }, |
| | | leadAngleChange(leadAngleChange){ |
| | | this.leadAngleChange1 = leadAngleChange == '' ? '' : '-'+leadAngleChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.headSpecificationsChange1+this.leadAngleChange1 |
| | | } |
| | | } |
| | | } |
| | | </script> |