| | |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | |
| | | :rowSelection="null" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | |
| | | { |
| | | title:'å¯ä¸ç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'toolId', |
| | | dataIndex: 'onlyCode', |
| | | }, |
| | | { |
| | | title:'éå
·åç§°', |
| | |
| | | { |
| | | title:'è§æ ¼', |
| | | align:"center", |
| | | dataIndex: 'model' |
| | | dataIndex: 'toolModel' |
| | | }, |
| | | { |
| | | title:'计éå·', |
| | |
| | | align:"center", |
| | | dataIndex: 'nextVerificationDate' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/tms/toolVerificationRecord/list", |
| | | list: "/tms/toolVerificationRecord/queryPageList", |
| | | delete: "/tms/toolVerificationRecord/delete", |
| | | deleteBatch: "/tms/toolVerificationRecord/deleteBatch", |
| | | exportXlsUrl: "/tms/toolVerificationRecord/exportXls", |
| | |
| | | { |
| | | title:'å¯ä¸ç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'toolId', |
| | | dataIndex: 'onlyCode', |
| | | }, |
| | | { |
| | | title:'éå
·åç§°', |
| | |
| | | { |
| | | title:'è§æ ¼', |
| | | align:"center", |
| | | dataIndex: 'model' |
| | | dataIndex: 'toolModel' |
| | | }, |
| | | { |
| | | title:'计éå·', |
| | |
| | | align:"center", |
| | | dataIndex: 'personResponsible' |
| | | }, |
| | | { |
| | | title:'å建人', |
| | | align:"center", |
| | | dataIndex: 'createBy' |
| | | }, |
| | | { |
| | | title:'å建æ¶é´', |
| | | align:"center", |
| | | dataIndex: 'createTime' |
| | | }, |
| | | // { |
| | | // title:'å建人', |
| | | // align:"center", |
| | | // dataIndex: 'createBy' |
| | | // }, |
| | | // { |
| | | // title:'å建æ¶é´', |
| | | // align:"center", |
| | | // dataIndex: 'createTime' |
| | | // }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/tms/toolVerificationRecord/list", |
| | | list: "/tms/toolVerificationRecord/queryPageList", |
| | | delete: "/tms/toolVerificationRecord/delete", |
| | | deleteBatch: "/tms/toolVerificationRecord/deleteBatch", |
| | | exportXlsUrl: "/tms/toolVerificationRecord/exportXls", |
| | |
| | | this.$bus.$emit('queryTreeData') //å·æ°å·¦ä¾§æ |
| | | }, |
| | | |
| | | onSelectChange(selectedRowKeys) { |
| | | onSelectChange(selectedRowKeys,selectionRows) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | | //éè¿idæ¥è¯¢ç®¡çåæ°ååæ°æ°æ® |
| | | getAction(this.url.queryParaByToolCode, { toolCode: this.selectedRowKeys[0],paraTypeFlag:this.paraTypeFlag}).then((res) => { |
| | | getAction(this.url.queryParaByToolCode, { toolCode: this.selectedRowKeys[0],paraTypeFlag:this.selectionRows[0].paraTypeFlag}).then((res) => { |
| | | if (res.success) { |
| | | if(this.paraTypeFlag === "1"){ |
| | | if(this.selectionRows[0].paraTypeFlag === "1"){ |
| | | this.$refs.paraCommonToolList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "2"){ |
| | | }else if(this.selectionRows[0].paraTypeFlag === "2"){ |
| | | this.$refs.paraHoleToolsList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "3"){ |
| | | }else if(this.selectionRows[0].paraTypeFlag === "3"){ |
| | | this.$refs.paraThreadingToolList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "4"){ |
| | | }else if(this.selectionRows[0].paraTypeFlag === "4"){ |
| | | this.$refs.paraMillToolList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "5"){ |
| | | }else if(this.selectionRows[0].paraTypeFlag === "5"){ |
| | | this.$refs.paraTurningToolsList.getPara(res.result); |
| | | }else if(this.paraTypeFlag === "6"){ |
| | | }else if(this.selectionRows[0].paraTypeFlag === "6"){ |
| | | this.$refs.paraBladeList.getPara(res.result); |
| | | } |
| | | } else { |
| | |
| | | }, |
| | | loadData() { |
| | | let params = this.getQueryParams(); |
| | | if (this.nodeSelected && this.nodeSelected.key !== '-1') { |
| | | if (this.nodeSelected) { |
| | | // å è½½éä¸èç¹çåç±» |
| | | params.classifyId = this.nodeSelected.key; |
| | | this.loading = true; |
| | |
| | | }else if(this.paraTypeFlag === '6'){ |
| | | httpUrl = this.url.paraBladeList |
| | | }else{ |
| | | this.dataSource = []; |
| | | this.clearPara() |
| | | this.loading = false; |
| | | return |
| | | //this.dataSource = []; |
| | | // this.clearPara() |
| | | // this.loading = false; |
| | | // return |
| | | httpUrl = this.url.paraCommonToolList |
| | | } |
| | | getAction(httpUrl, params) |
| | | .then((res) => { |
| | |
| | | this.ipagination.total = res.result.total |
| | | //é»è®¤éä¸ç¬¬ä¸æ¡æ°æ® |
| | | this.selectedRowKeys[0] = res.result.records[0].id |
| | | this.onSelectChange(this.selectedRowKeys) |
| | | this.selectionRows[0] = res.result.records[0] |
| | | this.onSelectChange(this.selectedRowKeys,this.selectionRows) |
| | | } else { |
| | | //this.$message.warning("è¯·éæ©å¶åèç¹è¿è¡æ¥è¯¢"); |
| | | this.ipagination.total = 0 |
| | |
| | | <!-- å½å页é¢ä¸å¡é¨å --> |
| | | <a-card :bordered="false" :title="title" v-show="visable"> |
| | | <a-descriptions title="å·¥å
·åæ°è¯¦æ
"> |
| | | <a-descriptions-item label="å·¥å
·ç®ç§°">{{ this.para == null || this.para.shortCalled == null ? '' : this.para.shortCalled }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸ç¼ç ">{{ this.para == null || this.para.groupCompanyCode == null ? '' : this.para.groupCompanyCode }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸æ è®°">{{ this.para == null || this.para.groupCompanySign == null ? '' : this.para.groupCompanySign }}</a-descriptions-item> |
| | | <a-descriptions-item label="åçå½¢ç¶">{{ this.para == null || this.para.bladeShape == null ? '' : this.para.bladeShape }}</a-descriptions-item> |
| | | <a-descriptions-item label="åçé¿åº¦">{{ this.para == null || this.para.bladeLength == null ? '' : this.para.bladeLength }}</a-descriptions-item> |
| | | <a-descriptions-item label="åååæ°">{{ this.para == null || this.para.cuttingEdgeCount == null ? '' : this.para.cuttingEdgeCount }}</a-descriptions-item> |
| | |
| | | <a-descriptions-item label="åå°R">{{ this.para == null || this.para.noseAngleR == null ? '' : this.para.noseAngleR }}</a-descriptions-item> |
| | | <a-descriptions-item label="åçææ">{{ this.para == null || this.para.toolMaterial == null ? '' : this.para.toolMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="é¶ä»¶ææ">{{ this.para == null || this.para.partMaterial == null ? '' : this.para.partMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag == '1' ? 'æ¯' : 'å¦' }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå ææ¯æ¡ä»¶">{{ this.para == null || this.para.technicalConditions == null ? '' : this.para.technicalConditions }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå ææ¯æ¡ä»¶è¯´æ">{{ this.para == null || this.para.conditionsInfo == null ? '' : this.para.conditionsInfo }}</a-descriptions-item> |
| | | <a-descriptions-item label="åç">{{ this.para == null || this.para.brand == null ? '' : this.para.brand }}</a-descriptions-item> |
| | |
| | | :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.editable = false |
| | | //åå§åé»è®¤å¼ |
| | | this.model = { |
| | | positionCode: '' |
| | | positionCode: '' |
| | | }; |
| | | this.model.classifyId = nodeSelected.key |
| | | this.model.classifyNum = nodeSelected.entity.classifyId |
| | |
| | | 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> |
| | |
| | | <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-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> |
| | |
| | | <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-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-card :bordered="false" :title="title" v-show="visable"> |
| | | <a-descriptions title="å·¥å
·åæ°è¯¦æ
"> |
| | | <a-descriptions-item label="å·¥å
·ç®ç§°">{{ this.para == null || this.para.shortCalled == null ? '' : this.para.shortCalled }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸ç¼ç ">{{ this.para == null || this.para.groupCompanyCode == null ? '' : this.para.groupCompanyCode }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸æ è®°">{{ this.para == null || this.para.groupCompanySign == null ? '' : this.para.groupCompanySign }}</a-descriptions-item> |
| | | <a-descriptions-item label="ç´å¾">{{ this.para == null || this.para.diameter == null ? '' : this.para.diameter }}</a-descriptions-item> |
| | | <a-descriptions-item label="åååé¥è§">{{ this.para == null || this.para.coneAngle == null ? '' : this.para.coneAngle }}</a-descriptions-item> |
| | | <a-descriptions-item label="åååé¿">{{ this.para == null || this.para.edgeLength == null ? '' : this.para.edgeLength }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå
·æ»é¿">{{ this.para == null || this.para.totalLength == null ? '' : this.para.totalLength }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå
·ææ">{{ this.para == null || this.para.toolMaterial == null ? '' : this.para.toolMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="é¶ä»¶ææ">{{ this.para == null || this.para.partMaterial == null ? '' : this.para.partMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag == '1' ? 'æ¯' : 'å¦' }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå
·åå¼">{{ this.para == null || this.para.toolPattern == null ? '' : this.para.toolPattern }}</a-descriptions-item> |
| | | <a-descriptions-item label="æé¨è§æ ¼">{{ this.para == null || this.para.handleSpecifications == null ? '' : this.para.handleSpecifications }}</a-descriptions-item> |
| | | <a-descriptions-item label="å·å´æ¹å¼">{{ this.para == null || this.para.coolingMethod == null ? '' : this.para.coolingMethod }}</a-descriptions-item> |
| | |
| | | <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-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> |
| | |
| | | <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> |
| | |
| | | </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-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"> |
| | |
| | | </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> |
| | |
| | | </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-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> |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | locationCodeOptions:[], |
| | | chineseNameChange1:'', |
| | | toolModelChange1:'', |
| | | diameterChange1:'', |
| | | totalLengthChange1:'', |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.editable = false; |
| | | //åå§åé»è®¤å¼ |
| | | this.model = { |
| | | positionCode: '' |
| | | positionCode: '' |
| | | }; |
| | | this.model.classifyId = nodeSelected.key |
| | | this.model.classifyNum = nodeSelected.entity.classifyId |
| | |
| | | this.$emit('close') |
| | | this.visible = false |
| | | this.$refs.form.clearValidate() |
| | | this.chineseNameChange1 = '', |
| | | this.toolModelChange1 = '', |
| | | this.diameterChange1 = '', |
| | | this.totalLengthChange1 = '' |
| | | }, |
| | | positionCodeSearch() { |
| | | let positionCode = [] |
| | |
| | | } |
| | | }) |
| | | }, |
| | | 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> |
| | |
| | | <!-- å½å页é¢ä¸å¡é¨å --> |
| | | <a-card :bordered="false" :title="title" v-show="visable"> |
| | | <a-descriptions title="å·¥å
·åæ°è¯¦æ
"> |
| | | <a-descriptions-item label="å·¥å
·ç®ç§°">{{ this.para == null || this.para.shortCalled == null ? '' : this.para.shortCalled }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸ç¼ç ">{{ this.para == null || this.para.groupCompanyCode == null ? '' : this.para.groupCompanyCode }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸æ è®°">{{ this.para == null || this.para.groupCompanySign == null ? '' : this.para.groupCompanySign }}</a-descriptions-item> |
| | | <a-descriptions-item label="ç´å¾">{{ this.para == null || this.para.diameter == null ? '' : this.para.diameter }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå°è§R">{{ this.para == null || this.para.noseAngleR == null ? '' : this.para.noseAngleR }}</a-descriptions-item> |
| | | <a-descriptions-item label="齿æ°">{{ this.para == null || this.para.numberOfTeeth == null ? '' : this.para.numberOfTeeth }}</a-descriptions-item> |
| | |
| | | <a-descriptions-item label="åå
·æ»é¿">{{ this.para == null || this.para.totalLength == null ? '' : this.para.totalLength }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå
·ææ">{{ this.para == null || this.para.toolMaterial == null ? '' : this.para.toolMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="é¶ä»¶ææ">{{ this.para == null || this.para.partMaterial == null ? '' : this.para.partMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag == '1' ? 'æ¯' : 'å¦' }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå
·åå¼">{{ this.para == null || this.para.toolPattern == null ? '' : this.para.toolPattern }}</a-descriptions-item> |
| | | <a-descriptions-item label="è£
å¤¹è§æ ¼">{{ this.para == null || this.para.clampingSpecifications == null ? '' : this.para.clampingSpecifications }}</a-descriptions-item> |
| | | <a-descriptions-item label="å·å´æ¹å¼">{{ this.para == null || this.para.coolingMethod == null ? '' : this.para.coolingMethod }}</a-descriptions-item> |
| | |
| | | <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-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> |
| | |
| | | <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-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-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"> |
| | | <a-form-model-item label="åå°è§R" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="noseAngleR"> |
| | | <a-input v-model="model.noseAngleR" :placeholder="disableSubmit?'':'请è¾å
¥åå°è§R'" :disabled="disableSubmit"></a-input> |
| | | <a-input 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-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> |
| | |
| | | <a-input v-model="model.technicalConditions" :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="conditionsInfo"> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="éå ææ¯æ¡ä»¶è¯´æ" :labelCol="{span:3}" :wrapperCol="{span:21}" prop="conditionsInfo"> |
| | | <a-input v-model="model.conditionsInfo" :placeholder="disableSubmit?'':'请è¾å
¥éå ææ¯æ¡ä»¶è¯´æ'" :disabled="disableSubmit" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | locationCodeOptions:[], |
| | | chineseNameChange1:'', |
| | | toolModelChange1:'', |
| | | diameterChange1:'', |
| | | totalLengthChange1:'', |
| | | noseAngleRChange1:'' |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.editable = false; |
| | | //åå§åé»è®¤å¼ |
| | | this.model = { |
| | | positionCode: '' |
| | | positionCode: '' |
| | | }; |
| | | this.model.classifyId = nodeSelected.key |
| | | this.model.classifyNum = nodeSelected.entity.classifyId |
| | |
| | | this.$emit('close') |
| | | this.visible = false |
| | | this.$refs.form.clearValidate() |
| | | this.chineseNameChange1 = '', |
| | | this.toolModelChange1 = '', |
| | | this.diameterChange1 = '', |
| | | this.totalLengthChange1 = '', |
| | | this.noseAngleRChange1 = '' |
| | | }, |
| | | positionCodeSearch() { |
| | | let positionCode = [] |
| | |
| | | } |
| | | }) |
| | | }, |
| | | chineseNameChange(chineseNameChange){ |
| | | this.chineseNameChange1 = chineseNameChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1 |
| | | }, |
| | | toolModelChange(toolModelChange){ |
| | | this.toolModelChange1 = toolModelChange == '' ? '' : '-'+toolModelChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1 |
| | | }, |
| | | diameterChange(diameterChange){ |
| | | this.diameterChange1 = diameterChange == '' ? '' : '-'+diameterChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1 |
| | | }, |
| | | totalLengthChange(totalLengthChange){ |
| | | this.totalLengthChange1 = totalLengthChange == '' ? '' : '-'+totalLengthChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1 |
| | | }, |
| | | noseAngleRChange(noseAngleRChange){ |
| | | this.noseAngleRChange1 = noseAngleRChange == '' ? '' : '-'+noseAngleRChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.diameterChange1+this.noseAngleRChange1+this.totalLengthChange1 |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <!-- å½å页é¢ä¸å¡é¨å --> |
| | | <a-card :bordered="false" :title="title" v-show="visable"> |
| | | <a-descriptions title="å·¥å
·åæ°è¯¦æ
"> |
| | | <a-descriptions-item label="å·¥å
·ç®ç§°">{{ this.para == null || this.para.shortCalled == null ? '' : this.para.shortCalled }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸ç¼ç ">{{ this.para == null || this.para.groupCompanyCode == null ? '' : this.para.groupCompanyCode }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸æ è®°">{{ this.para == null || this.para.groupCompanySign == null ? '' : this.para.groupCompanySign }}</a-descriptions-item> |
| | | <a-descriptions-item label="èºçº¹ä»£å·">{{ this.para == null || this.para.threadCode == null ? '' : this.para.threadCode }}</a-descriptions-item> |
| | | <a-descriptions-item label="èºè·">{{ this.para == null || this.para.pitch == null ? '' : this.para.pitch }}</a-descriptions-item> |
| | | <a-descriptions-item label="èºçº¹æå">{{ this.para == null || this.para.rotationDirection == null ? '' : this.para.rotationDirection }}</a-descriptions-item> |
| | |
| | | <a-descriptions-item label="åå
·æ»é¿">{{ this.para == null || this.para.totalLength == null ? '' : this.para.totalLength }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå
·ææ">{{ this.para == null || this.para.toolMaterial == null ? '' : this.para.toolMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="é¶ä»¶ææ">{{ this.para == null || this.para.partMaterial == null ? '' : this.para.partMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag == '1' ? 'æ¯' : 'å¦' }}</a-descriptions-item> |
| | | <a-descriptions-item label="å¤å尺寸">{{ this.para == null || this.para.externalDimensions == null ? '' : this.para.externalDimensions }}</a-descriptions-item> |
| | | <a-descriptions-item label="æé¨è§æ ¼">{{ this.para == null || this.para.handleSpecifications == null ? '' : this.para.handleSpecifications }}</a-descriptions-item> |
| | | <a-descriptions-item label="å·å´æ¹å¼">{{ this.para == null || this.para.coolingMethod == null ? '' : this.para.coolingMethod }}</a-descriptions-item> |
| | |
| | | <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-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> |
| | |
| | | <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-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="threadCode"> |
| | | <a-input v-model="model.threadCode" :placeholder="disableSubmit?'':'请è¾å
¥èºçº¹ä»£å·'" :disabled="disableSubmit"></a-input> |
| | | <a-input v-model="model.threadCode" :placeholder="disableSubmit?'':'请è¾å
¥èºçº¹ä»£å·'" :disabled="disableSubmit" @change="e => threadCodeChange(e.target.value)"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item label="èºè·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pitch"> |
| | | <a-input v-model="model.pitch" :placeholder="disableSubmit?'':'请è¾å
¥èºè·'" :disabled="disableSubmit"></a-input> |
| | | <a-input v-model="model.pitch" :placeholder="disableSubmit?'':'请è¾å
¥èºè·'" :disabled="disableSubmit" @change="e => pitchChange(e.target.value)"></a-input> |
| | | </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="tolerancezoneLevel"> |
| | | <a-form-model-item label="èºçº¹å
¬å·®å¸¦ä»£å·" :labelCol="{span:12}" :wrapperCol="{span:12}" prop="tolerancezoneLevel"> |
| | | <a-input v-model="model.tolerancezoneLevel" :placeholder="disableSubmit?'':'请è¾å
¥èºçº¹å
¬å·®å¸¦ä»£å·'" :disabled="disableSubmit"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | <a-input v-model="model.technicalConditions" :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="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-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item label="åç" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="brand"> |
| | | <a-input v-model="model.brand" :placeholder="disableSubmit?'':'请è¾å
¥åç'" :disabled="disableSubmit" ></a-input> |
| | |
| | | <a-input v-model="model.coolingMethod" :placeholder="disableSubmit?'':'请è¾å
¥å·å´æ¹å¼'" :disabled="disableSubmit" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | </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> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <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> |
| | |
| | | <a-input v-model="model.guidingSize" :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="connectionAperture"> |
| | | <a-input v-model="model.connectionAperture" :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="connectingKeyway"> |
| | | <a-input v-model="model.connectingKeyway" :placeholder="disableSubmit?'':'请è¾å
¥è¿æ¥é®æ§½'" :disabled="disableSubmit" ></a-input> |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | locationCodeOptions:[], |
| | | chineseNameChange1:'', |
| | | toolModelChange1:'', |
| | | threadCodeChange1:'', |
| | | pitchChange1:'', |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.editable = false; |
| | | //åå§åé»è®¤å¼ |
| | | this.model = { |
| | | positionCode: '' |
| | | positionCode: '' |
| | | }; |
| | | this.model.classifyId = nodeSelected.key |
| | | this.model.classifyNum = nodeSelected.entity.classifyId |
| | |
| | | this.$emit('close') |
| | | this.visible = false |
| | | this.$refs.form.clearValidate() |
| | | this.chineseNameChange1 = '', |
| | | this.toolModelChange1 = '', |
| | | this.threadCodeChange1 = '', |
| | | this.pitchChange1 = '' |
| | | }, |
| | | positionCodeSearch() { |
| | | let positionCode = [] |
| | |
| | | } |
| | | }) |
| | | }, |
| | | chineseNameChange(chineseNameChange){ |
| | | this.chineseNameChange1 = chineseNameChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.threadCodeChange1+this.pitchChange1 |
| | | }, |
| | | toolModelChange(toolModelChange){ |
| | | this.toolModelChange1 = toolModelChange == '' ? '' : '-'+toolModelChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.threadCodeChange1+this.pitchChange1 |
| | | }, |
| | | threadCodeChange(threadCodeChange){ |
| | | this.threadCodeChange1 = threadCodeChange == '' ? '' : '-'+threadCodeChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.threadCodeChange1+this.pitchChange1 |
| | | }, |
| | | pitchChange(pitchChange){ |
| | | this.pitchChange1 = pitchChange == '' ? '' : '-'+pitchChange |
| | | this.model.groupCompanySign = this.chineseNameChange1+this.toolModelChange1+this.threadCodeChange1+this.pitchChange1 |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <!-- å½å页é¢ä¸å¡é¨å --> |
| | | <a-card :bordered="false" :title="title" v-show="visable"> |
| | | <a-descriptions title="å·¥å
·åæ°è¯¦æ
"> |
| | | <a-descriptions-item label="å·¥å
·ç®ç§°">{{ this.para == null || this.para.shortCalled == null ? '' : this.para.shortCalled }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸ç¼ç ">{{ this.para == null || this.para.groupCompanyCode == null ? '' : this.para.groupCompanyCode }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå¢å
¬å¸æ è®°">{{ this.para == null || this.para.groupCompanySign == null ? '' : this.para.groupCompanySign }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå¤´è§æ ¼">{{ this.para == null || this.para.headSpecifications == null ? '' : this.para.headSpecifications }}</a-descriptions-item> |
| | | <a-descriptions-item label="é
å¥åçå·">{{ this.para == null || this.para.matchingNumber == null ? '' : this.para.matchingNumber }}</a-descriptions-item> |
| | | <a-descriptions-item label="主åè§">{{ this.para == null || this.para.leadAngle == null ? '' : this.para.leadAngle }}</a-descriptions-item> |
| | |
| | | <a-descriptions-item label="åå
·æ»é¿">{{ this.para == null || this.para.totalLength == null ? '' : this.para.totalLength }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå
·ææ">{{ this.para == null || this.para.toolMaterial == null ? '' : this.para.toolMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="é¶ä»¶ææ">{{ this.para == null || this.para.partMaterial == null ? '' : this.para.partMaterial }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ¯å¦æ¶å±">{{ this.para == null || this.para.paintcoatFlag == null ? '' : this.para.paintcoatFlag == '1' ? 'æ¯' : 'å¦' }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå
·åå¼">{{ this.para == null || this.para.toolPattern == null ? '' : this.para.toolPattern }}</a-descriptions-item> |
| | | <a-descriptions-item label="å·å´æ¹å¼">{{ this.para == null || this.para.coolingMethod == null ? '' : this.para.coolingMethod }}</a-descriptions-item> |
| | | <a-descriptions-item label="éå ææ¯æ¡ä»¶">{{ this.para == null || this.para.technicalConditions == null ? '' : this.para.technicalConditions }}</a-descriptions-item> |
| | |
| | | <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-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> |
| | |
| | | <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-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> |
| | |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | }, |
| | | locationCodeOptions:[] |
| | | locationCodeOptions:[], |
| | | chineseNameChange1:'', |
| | | toolModelChange1:'', |
| | | headSpecificationsChange1:'', |
| | | leadAngleChange1:'', |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.editable = false; |
| | | //åå§åé»è®¤å¼ |
| | | this.model = { |
| | | positionCode: '' |
| | | positionCode: '' |
| | | }; |
| | | this.model.classifyId = nodeSelected.key |
| | | this.model.classifyNum = nodeSelected.entity.classifyId |
| | |
| | | this.$emit('close') |
| | | this.visible = false |
| | | this.$refs.form.clearValidate() |
| | | this.chineseNameChange1 = '', |
| | | this.toolModelChange1 = '', |
| | | this.headSpecificationsChange1 = '', |
| | | this.leadAngleChange1 = '' |
| | | }, |
| | | positionCodeSearch() { |
| | | let positionCode = [] |
| | |
| | | } |
| | | }) |
| | | }, |
| | | 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> |
| | |
| | | <!-- å½å页é¢ä¸å¡é¨å --> |
| | | <a-card :bordered="false" :title="title" v-show="visable"> |
| | | <a-descriptions title="å·¥å
·ç®¡çåæ°è¯¦æ
"> |
| | | <a-descriptions-item label="å·¥å
፱Ȍ">{{ this.para == null || this.para.applicationType == null ? '' : this.para.applicationType }}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥å
·ç±»å">{{ this.para == null || this.para.applicationType == null ? '' : this.para.applicationType == '1' ? 'éç¨å·¥å
·' : 'ä¸ç¨å·¥å
·' }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ å级å«">{{ this.para == null || this.para.standardLevel == null ? '' : this.para.standardLevel }}</a-descriptions-item> |
| | | <a-descriptions-item label="æ åå·">{{ this.para == null || this.para.standardCode == null ? '' : this.para.standardCode }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå®¶">{{ this.para == null || this.para.supplierId == null ? '' : this.para.supplierId }}</a-descriptions-item> |
| | | <a-descriptions-item label="ä»åºç份åå¸">{{ this.para == null || this.para.provinceCity == null ? '' : this.para.provinceCity }}</a-descriptions-item> |
| | | <a-descriptions-item label="åºä½å·">{{ this.para == null || this.para.positionCode == null ? '' : this.para.positionCode }}</a-descriptions-item> |
| | | <a-descriptions-item label="åå¨ä½ç½®">{{ this.para == null || this.para.storageLocation == null ? '' : this.para.storageLocation }}</a-descriptions-item> |
| | | <a-descriptions-item label="计é主åä½">{{ this.para == null || this.para.mainUnit == null ? '' : this.para.mainUnit }}</a-descriptions-item> |
| | | <a-descriptions-item label="计éè¾
åä½">{{ this.para == null || this.para.auxiliaryUnit == null ? '' : this.para.auxiliaryUnit }}</a-descriptions-item> |
| | | <a-descriptions-item label="åä»·">{{ this.para == null || this.para.price == null ? '' : this.para.price }}</a-descriptions-item> |
| | |
| | | <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-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> |
| | |
| | | <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"/> |
| | |
| | | align:"center", |
| | | dataIndex: 'accuracyClass' |
| | | }, |
| | | { |
| | | title:'åå¨ä½ç½®', |
| | | align:"center", |
| | | dataIndex: 'storageLocation' |
| | | }, |
| | | // { |
| | | // title:'åå¨ä½ç½®', |
| | | // align:"center", |
| | | // dataIndex: 'storageLocation' |
| | | // }, |
| | | { |
| | | title:'åºä½å·', |
| | | align:"center", |
| | |
| | | this.leafFlagShow = false |
| | | if(record.leafFlag == "1"){ |
| | | this.paraTypeFlagShow = true |
| | | }else{ |
| | | this.validatorRules.paraTypeFlag[0].required = false |
| | | this.paraTypeFlagShow = false |
| | | } |
| | | }, |
| | | submitForm () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | console.log("111111",valid) |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | |
| | | :loading="cardLoading" |
| | | :bordered="false" |
| | | title="å·¥å
·åç±»" |
| | | style="height: 100%;" |
| | | > |
| | | <a-spin :spinning="loading"> |
| | | <a-alert |
| | |
| | | >åæ¶</a> |
| | | </div> |
| | | </a-alert> |
| | | <div class="drawer-bootom-button"> |
| | | <!-- <div class="drawer-bootom-button"> |
| | | <a-dropdown |
| | | :trigger="['click']" |
| | | placement="bottomCenter" |
| | |
| | | <a-icon type="bars" /> |
| | | </a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | </div> --> |
| | | |
| | | <a-input-search |
| | | @search="handleSearch" |
| | |
| | | /> |
| | | |
| | | <!-- showLine --> |
| | | <div style="flex: 1;overflow:auto;margin-top: 10px;max-height: 500px; min-height: 500px"> |
| | | <a-tree |
| | | :checkStrictly="checkStrictly" |
| | | :expandedKeys.sync="expandedKeys" |
| | | :selectedKeys="selectedKeys" |
| | | :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" |
| | | :treeData="treeDataSource" |
| | | :autoExpandParent="autoExpandParent" |
| | | :defaultExpandAll="true" |
| | | @select="onSelect" |
| | | @expand="onExpand" |
| | | > |
| | |
| | | |
| | | </template> |
| | | </a-tree> |
| | | </div> |
| | | </a-spin> |
| | | </a-card> |
| | | </template> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal :title="title" :width="1000" :visible="visible" :maskClosable="false" @ok="handleOk" @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :md="7" :sm="7"> |
| | | <a-form-item label="å¯ä¸ç¼å·"> |
| | | <a-input placeholder="请è¾å
¥å¯ä¸ç¼å·æ£ç´¢" v-model="queryParam.onlyCode"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="3" :sm="3"> |
| | | <a-space> |
| | | <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-space> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <a-table ref="table" size="middle" bordered rowKey="id" :scroll="{Â y: 300Â }" :columns="columns" |
| | | :dataSource="dataSource" :pagination="ipagination" :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'radio'}" |
| | | @change="handleTableChange"> |
| | | </a-table> |
| | | </div> |
| | | <!-- tableåºå-end --> |
| | | </a-card> |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag' |
| | | import { getAction } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JInput from '@/components/jeecg/JInput' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import JDate from '@/components/jeecg/JDate' |
| | | import { filterObj } from '@/utils/util' |
| | | |
| | | export default { |
| | | name: 'JSelectTools', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | JDictSelectTag, |
| | | JEllipsis, |
| | | JInput, |
| | | Tooltip, |
| | | JDate |
| | | }, |
| | | props: { |
| | | status: { |
| | | type: Number, |
| | | default: 1 |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | disableSubmit:false, |
| | | title: '', |
| | | visible: false, |
| | | disableMixinCreated: true, |
| | | queryParam: {}, |
| | | columns: [ |
| | | { |
| | | title: 'å¯ä¸ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'onlyCode' |
| | | }, |
| | | { |
| | | title: 'éå
·ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'toolCode' |
| | | }, |
| | | { |
| | | title: 'éå
·åç§°', |
| | | align: 'center', |
| | | dataIndex: 'toolName' |
| | | }, |
| | | { |
| | | title: 'åå·/å¾å·', |
| | | align: 'center', |
| | | dataIndex: 'toolModel' |
| | | }, |
| | | ], |
| | | url: { |
| | | list: '/tms/baseTools/verificationToolsList' |
| | | } |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | methods: { |
| | | showModals() { |
| | | this.selectedRowKeys = [] |
| | | this.visible = true |
| | | this.loadData(1) |
| | | }, |
| | | getQueryParams() { |
| | | //è·åæ¥è¯¢æ¡ä»¶ |
| | | let sqp = {} |
| | | if (this.superQueryParams) { |
| | | sqp['superQueryParams'] = encodeURI(this.superQueryParams) |
| | | sqp['superQueryMatchType'] = this.superQueryMatchType |
| | | } |
| | | var param = Object.assign(sqp, this.queryParam) |
| | | // param.field = this.getQueryField(); |
| | | param.pageNo = this.ipagination.current |
| | | param.pageSize = this.ipagination.pageSize |
| | | return filterObj(param) |
| | | }, |
| | | loadData(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error('请设置url.list屿§!') |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1 |
| | | } |
| | | var params = this.getQueryParams()//æ¥è¯¢æ¡ä»¶ |
| | | |
| | | if (!params) { |
| | | return false |
| | | } |
| | | |
| | | this.loading = true |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | |
| | | this.dataSource = res.result.records || res.result |
| | | if (res.result.total) { |
| | | this.ipagination.total = res.result.total |
| | | } else { |
| | | this.ipagination.total = 0 |
| | | } |
| | | |
| | | } else { |
| | | // this.$message.warning(res.message) |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | getQueryField() { |
| | | //TODO åæ®µæéæ§å¶ |
| | | // var str = ""; |
| | | // this.columns.forEach(function (value) { |
| | | // str += value.dataIndex +"," ; |
| | | // }); |
| | | // return str; |
| | | }, |
| | | modalFormOk(val) { |
| | | // æ°å¢/ä¿®æ¹ æåæ¶ï¼éè½½å表 |
| | | this.loadData() |
| | | this.selectedRowKeys = [val.id] |
| | | }, |
| | | searchQuery() { |
| | | this.loadData() |
| | | this.onClearSelected() |
| | | }, |
| | | searchReset() { |
| | | this.queryParam = {} |
| | | this.loadData() |
| | | this.onClearSelected() |
| | | }, |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | }, |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | handleOk() { |
| | | this.$emit('sendSelectionRows', this.selectionRows[0]) |
| | | this.close() |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | @import '~@assets/less/common.less'; |
| | | |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | } |
| | | |
| | | .success { |
| | | color: green; |
| | | } |
| | | |
| | | .error { |
| | | color: red; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | :width="1200" |
| | | :confirmLoading="confirmLoading" |
| | | switchFullscreen |
| | | centered |
| | | :visible="visible" |
| | | :mask-closable="false" |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <tool-verification-record-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></tool-verification-record-form> |
| | | |
| | | |
| | | |
| | | <a-spin :spinning="spinning"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item prop="onlyCode" :labelCol="labelCol" :wrapperCol="wrapperCol" label="å¯ä¸ç¼ç "> |
| | | <a-input-search v-model="model.onlyCode" placeholder="è¯·éæ©å¯ä¸ç¼ç " :disabled="disableSubmit" |
| | | @search="selectTools" enter-button |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item prop="toolCode" :labelCol="labelCol" :wrapperCol="wrapperCol" label="éå
·ç¼å·"> |
| | | <a-input placeholder="éæ©å¯ä¸ç¼ç åèªå¨å¸¦åº" v-model="model.toolCode" :disabled="true" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item prop="paramaTableName" :labelCol="labelCol" :wrapperCol="wrapperCol" label="éå
·åç§°"> |
| | | <a-input placeholder="éæ©å¯ä¸ç¼ç åèªå¨å¸¦åº" v-model="model.toolName" |
| | | :disabled="true" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="è§æ ¼" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input placeholder="éæ©å¯ä¸ç¼ç åèªå¨å¸¦åº" v-model="model.toolModel" |
| | | :disabled="true" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-model-item prop="personResponsible" :labelCol="labelCol" :wrapperCol="wrapperCol" label="责任人"> |
| | | <j-dict-select-tag type="list" v-model="model.personResponsible" dictCode="sys_user,realname,id" |
| | | placeholder="è¯·éæ©è´£ä»»äºº" :disabled="disableSubmit" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="æ£å®æ¥åæ¥æ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="verificationReportDate"> |
| | | <j-date placeholder="è¯·éæ©æ£å®æ¥åæ¥æ" date-format="YYYY-MM-DD" v-model="model.verificationReportDate" |
| | | style="width: 100%" :disabled="disableSubmit" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="计éå·" :labelCol="{span:3}" :wrapperCol="{span:19}"> |
| | | <a-input placeholder="请填å计éå·" v-model="model.measureNumber" :disabled="disableSubmit" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="æ£å®ç»æå建议" :labelCol="{span:3}" :wrapperCol="{span:19}" prop="result"> |
| | | <a-textarea placeholder="è¯·å¡«åæ£å®ç»æå建议" v-model="model.result" |
| | | :disabled="disableSubmit" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | <template slot="footer"> |
| | | <a-button :style="{ marginRight: '8px' }" @click="handleCancel()"> |
| | | å
³é |
| | | </a-button> |
| | | |
| | | <a-button @click="handleOk()" :disabled="disableSubmit" type="primary" :loading="confirmLoading">ç¡®å®</a-button> |
| | | </template> |
| | | <j-select-tools ref="toolListModel" @sendSelectionRows="getRows"></j-select-tools> |
| | | |
| | | |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import ToolVerificationRecordForm from './ToolVerificationRecordForm' |
| | | export default { |
| | | name: 'ToolVerificationRecordModal', |
| | | components: { |
| | | ToolVerificationRecordForm |
| | | }, |
| | | data () { |
| | | return { |
| | | title:'', |
| | | width:800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import JSelectTools from './JSelectTools' |
| | | import { requestPut, postAction, httpAction } from '@/api/manage' |
| | | export default { |
| | | name: 'ToolVerificationRecordModal', |
| | | mixins: [JVxeTableModelMixin], |
| | | components: { |
| | | JSelectTools |
| | | }, |
| | | data() { |
| | | return { |
| | | title: 'æä½', |
| | | visible: false, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 } |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 15 } |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | confirmLoading: false, |
| | | spinning: false, |
| | | disabled: false, |
| | | disableSubmit: false, |
| | | validatorRules: { |
| | | onlyCode: [ |
| | | { required: true, message: 'è¯·éæ©å¯ä¸ç¼ç !' } |
| | | ] |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.submitForm(); |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | lastSelectionData: null, |
| | | url: { |
| | | add: '/tms/toolVerificationRecord/add', |
| | | edit: '/tms/toolVerificationRecord/edit' |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | |
| | | methods: { |
| | | getRows(item) { |
| | | console.log(item) |
| | | if (item.id) { |
| | | this.$set(this.model, 'onlyCode', item.onlyCode) |
| | | this.$set(this.model, 'toolCode', item.toolCode) |
| | | this.$set(this.model, 'toolName', item.toolName) |
| | | this.$set(this.model, 'toolModel', item.toolModel) |
| | | } |
| | | }, |
| | | |
| | | selectTools: function() { |
| | | this.$refs.toolListModel.showModals() |
| | | this.$refs.toolListModel.title = 'éæ©éå
·ä¿¡æ¯' |
| | | this.$refs.toolListModel.disableSubmit = false |
| | | }, |
| | | |
| | | add() { |
| | | this.edit({}) |
| | | }, |
| | | edit(record) { |
| | | let that = this |
| | | that.visible = true |
| | | that.model = Object.assign({}, record) |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | }, |
| | | handleOk() { |
| | | const that = this |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | let formData = Object.assign(this.model) |
| | | that.confirmLoading = true |
| | | let httpurl = '' |
| | | let method = '' |
| | | if (!this.model.id) { |
| | | httpurl += this.url.add |
| | | method = 'post' |
| | | } else { |
| | | httpurl += this.url.edit |
| | | method = 'put' |
| | | } |
| | | httpAction(httpurl, this.model, method,formData).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message) |
| | | that.$emit('ok') |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |
| | | that.close() |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | |
| | | } |
| | | </script> |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | |
| | | </style> |
| | | |
| | | |
| | | |