| | |
| | | :placeholder="disableSubmit ? '' : '请输入中文名称'" |
| | | v-model="model.chineseName" |
| | | :disabled="disableSubmit" |
| | | @change="e => chineseNameChange(e.target.value)" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | :placeholder="disableSubmit ? '' : '请输入型号/图号'" |
| | | v-model="model.toolModel" |
| | | :disabled="disableSubmit" |
| | | @change="e => toolModelChange(e.target.value)" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | </a-col> |
| | | </a-row> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="accuracyClass" label="精度等级"> |
| | | <j-dict-select-tag |
| | | type="list" |
| | | v-model="model.accuracyClass" |
| | | :triggerChange="true" |
| | | dictCode="accuracy_class" |
| | | :placeholder="disableSubmit ? '' : '请选择精度等级'" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <a-col :span="6"> |
| | | <a-row> |
| | |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="applicationType" label="工具类型"> |
| | | <j-dict-select-tag |
| | | dict-code="equipment_category" |
| | | dict-code="application_type" |
| | | :placeholder="disableSubmit ? '' : '请选择工具类型'" |
| | | v-model="model.applicationType" |
| | | :disabled="disableSubmit" |
| | |
| | | |
| | | <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 ? '' : '请输入最低库存'" |
| | |
| | | /> |
| | | </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 |
| | |
| | | </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 |
| | |
| | | /> |
| | | </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 |
| | |
| | | /> |
| | | </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 |
| | |
| | | |
| | | <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="bladeShape"> |
| | | <a-input |
| | | v-model="model.bladeShape" |
| | | :placeholder="disableSubmit ? '' : '请输入刀片形状'" |
| | | :disabled="disableSubmit" |
| | | @change="e => bladeShapeChange(e.target.value)" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | v-model="model.bladeLength" |
| | | :placeholder="disableSubmit ? '' : '请输入刀片长度'" |
| | | :disabled="disableSubmit" |
| | | @change="e => bladeLengthChange(e.target.value)" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | v-model="model.cuttingEdgeCount" |
| | | :placeholder="disableSubmit ? '' : '请输入切削刃数'" |
| | | :disabled="disableSubmit" |
| | | @change="e => cuttingEdgeCountChange(e.target.value)" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | v-model="model.noseAngleR" |
| | | :placeholder="disableSubmit ? '' : '请输入刀尖R'" |
| | | :disabled="disableSubmit" |
| | | @change="e => noseAngleRChange(e.target.value)" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="附加技术条件说明" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | :labelCol="{span:12}" |
| | | :wrapperCol="{span:12}" |
| | | prop="conditionsInfo" |
| | | > |
| | | <a-input |
| | |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="最小加工内螺纹公称直径" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | :labelCol="{span:15}" |
| | | :wrapperCol="{span:9}" |
| | | prop="minInternalThread" |
| | | > |
| | | <a-input |
| | |
| | | toolMaterial: [{ required: true, message: '请输入刀片材料' }], |
| | | paintcoatFlag: [{ required: true, message: '请选择是否涂层' }], |
| | | technicalConditions: [{ required: true, message: '请输入附加技术条件' }], |
| | | shortCalled: [{ required: true, message: '请输入工具简称' }], |
| | | }, |
| | | url: { |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions: [], |
| | | chineseNameChange1:'', |
| | | toolModelChange1:'', |
| | | bladeShapeChange1:'', |
| | | bladeLengthChange1:'', |
| | | cuttingEdgeCountChange1:'', |
| | | noseAngleRChange1:'' |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.$emit('close') |
| | | this.visible = false |
| | | this.$refs.form.clearValidate() |
| | | this.chineseNameChange1 = '', |
| | | this.toolModelChange1 = '', |
| | | this.bladeShapeChange1 = '', |
| | | this.bladeLengthChange1 = '', |
| | | this.cuttingEdgeCountChange1 = '', |
| | | this.noseAngleRChange1 = '' |
| | | }, |
| | | positionCodeSearch() { |
| | | let positionCode = [] |
| | |
| | | } |
| | | }) |
| | | }, |
| | | chineseNameChange(chineseNameChange){ |
| | | this.chineseNameChange1 = chineseNameChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.bladeShapeChange1+this.bladeLengthChange1 |
| | | +this.cuttingEdgeCountChange1+this.noseAngleRChange1 |
| | | }, |
| | | toolModelChange(toolModelChange){ |
| | | this.toolModelChange1 = toolModelChange == '' ? '' : '-'+toolModelChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.bladeShapeChange1+this.bladeLengthChange1 |
| | | +this.cuttingEdgeCountChange1+this.noseAngleRChange1 |
| | | }, |
| | | bladeShapeChange(bladeShapeChange){ |
| | | this.bladeShapeChange1 = bladeShapeChange == '' ? '' : '-'+bladeShapeChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.bladeShapeChange1+this.bladeLengthChange1 |
| | | +this.cuttingEdgeCountChange1+this.noseAngleRChange1 |
| | | }, |
| | | bladeLengthChange(bladeLengthChange){ |
| | | this.bladeLengthChange1 = bladeLengthChange == '' ? '' : '-'+bladeLengthChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.bladeShapeChange1+this.bladeLengthChange1 |
| | | +this.cuttingEdgeCountChange1+this.noseAngleRChange1 |
| | | }, |
| | | cuttingEdgeCountChange(cuttingEdgeCountChange){ |
| | | this.cuttingEdgeCountChange1 = cuttingEdgeCountChange == '' ? '' : '-'+cuttingEdgeCountChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.bladeShapeChange1+this.bladeLengthChange1 |
| | | +this.cuttingEdgeCountChange1+this.noseAngleRChange1 |
| | | }, |
| | | noseAngleRChange(noseAngleRChange){ |
| | | this.noseAngleRChange1 = noseAngleRChange == '' ? '' : '-'+noseAngleRChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.bladeShapeChange1+this.bladeLengthChange1 |
| | | +this.cuttingEdgeCountChange1+this.noseAngleRChange1 |
| | | } |
| | | }, |
| | | } |
| | | </script> |