copy from src/views/eam/EquipmentList.vue
copy to src/views/eam/EquipmentListOfFilesCarousel.vue
Îļþ´Ó src/views/eam/EquipmentList.vue ¸´ÖÆ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <a-card :bordered="false" title="æ°æ§å转åº"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-search-select-tag |
| | | dict="mom_eam_equipment_category,name,id" |
| | | <j-dict-select-tag |
| | | dict="mom_eam_equipment_category,name,id,equipment_category_uda1 = 'filesCarousel'" |
| | | placeholder="请è¾å
¥æç´¢æ¡ä»¶å¹¶éæ©" |
| | | v-model="queryParam.equipmentCategoryId" |
| | | /> |
| | |
| | | :wrapperCol="wrapperCol" |
| | | label="ç»ä¸ç¼ç " |
| | | > |
| | | <j-input |
| | | <a-input |
| | | placeholder="请è¾å
¥è®¾å¤ç»ä¸ç¼ç æ¥è¯¢" |
| | | v-model="queryParam.num" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | |
| | | :wrapperCol="wrapperCol" |
| | | label="设å¤åç§°" |
| | | > |
| | | <j-input |
| | | <a-input |
| | | placeholder="请è¾å
¥è®¾å¤åç§°æ¥è¯¢" |
| | | v-model="queryParam.name" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-input |
| | | <a-input |
| | | v-model="queryParam.model" |
| | | placeholder="请è¾å
¥åå·" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk"></equipment-modal> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | | <process-edit-model ref ="processEditModel"></process-edit-model> |
| | | <precision-edit-model ref ="precisionEditModel"></precision-edit-model> |
| | | <aBC-update-edit-model @ok="modalFormOk" :updateList="selectionRows" ref="updateABC"></aBC-update-edit-model> |
| | |
| | | EquipmentPrecisionParametersList, |
| | | EquipmentModal, |
| | | EquipmentResumeDrawer, |
| | | JSearchSelectTag, |
| | | JSearchSelectTag, |
| | | ProcessEditModel, |
| | | PrecisionEditModel, |
| | | EquipmentUpdateABCList , |
| | |
| | | data () { |
| | | return { |
| | | description: '设å¤å°è´¦ç®¡ç页é¢', |
| | | caytegoryParam:'filesCarousel', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | this.ipagination.current = 1; |
| | | } |
| | | this.onClearSelected() |
| | | this.queryParam.equipmentCategoryUda1 = this.caytegoryParam; |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
ÎļþÃû´Ó src/views/eam/EquipmentList.vue ÐÞ¸Ä |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <a-card :bordered="false" title="ç产设å¤"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-search-select-tag |
| | | dict="mom_eam_equipment_category,name,id" |
| | | <j-dict-select-tag |
| | | dictCode="mom_eam_equipment_category,name,id,equipment_category_uda1 = 'producter'" |
| | | placeholder="请è¾å
¥æç´¢æ¡ä»¶å¹¶éæ©" |
| | | v-model="queryParam.equipmentCategoryId" |
| | | /> |
| | |
| | | :wrapperCol="wrapperCol" |
| | | label="ç»ä¸ç¼ç " |
| | | > |
| | | <j-input |
| | | <a-input |
| | | placeholder="请è¾å
¥è®¾å¤ç»ä¸ç¼ç æ¥è¯¢" |
| | | v-model="queryParam.num" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | |
| | | :wrapperCol="wrapperCol" |
| | | label="设å¤åç§°" |
| | | > |
| | | <j-input |
| | | <a-input |
| | | placeholder="请è¾å
¥è®¾å¤åç§°æ¥è¯¢" |
| | | v-model="queryParam.name" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-input |
| | | <a-input |
| | | v-model="queryParam.model" |
| | | placeholder="请è¾å
¥åå·" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk"></equipment-modal> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | | <process-edit-model ref ="processEditModel"></process-edit-model> |
| | | <precision-edit-model ref ="precisionEditModel"></precision-edit-model> |
| | | <aBC-update-edit-model @ok="modalFormOk" :updateList="selectionRows" ref="updateABC"></aBC-update-edit-model> |
| | |
| | | data () { |
| | | return { |
| | | description: '设å¤å°è´¦ç®¡ç页é¢', |
| | | caytegoryParam:'producter', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | this.ipagination.current = 1; |
| | | } |
| | | this.onClearSelected() |
| | | this.queryParam.equipmentCategoryUda1 = this.caytegoryParam; |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
copy from src/views/eam/EquipmentList.vue
copy to src/views/eam/EquipmentListOfWeldingMachine.vue
Îļþ´Ó src/views/eam/EquipmentList.vue ¸´ÖÆ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <a-card :bordered="false" title="çæº"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-search-select-tag |
| | | dict="mom_eam_equipment_category,name,id" |
| | | <j-dict-select-tag |
| | | dictCode="mom_eam_equipment_category,name,id,equipment_category_uda1 = 'weldingMachine'" |
| | | placeholder="请è¾å
¥æç´¢æ¡ä»¶å¹¶éæ©" |
| | | v-model="queryParam.equipmentCategoryId" |
| | | /> |
| | |
| | | :wrapperCol="wrapperCol" |
| | | label="ç»ä¸ç¼ç " |
| | | > |
| | | <j-input |
| | | <a-input |
| | | placeholder="请è¾å
¥è®¾å¤ç»ä¸ç¼ç æ¥è¯¢" |
| | | v-model="queryParam.num" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | |
| | | :wrapperCol="wrapperCol" |
| | | label="设å¤åç§°" |
| | | > |
| | | <j-input |
| | | <a-input |
| | | placeholder="请è¾å
¥è®¾å¤åç§°æ¥è¯¢" |
| | | v-model="queryParam.name" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-input |
| | | <a-input |
| | | v-model="queryParam.model" |
| | | placeholder="请è¾å
¥åå·" |
| | | ></j-input> |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk"></equipment-modal> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal> |
| | | <process-edit-model ref ="processEditModel"></process-edit-model> |
| | | <precision-edit-model ref ="precisionEditModel"></precision-edit-model> |
| | | <aBC-update-edit-model @ok="modalFormOk" :updateList="selectionRows" ref="updateABC"></aBC-update-edit-model> |
| | |
| | | data () { |
| | | return { |
| | | description: '设å¤å°è´¦ç®¡ç页é¢', |
| | | caytegoryParam:'weldingMachine', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | this.ipagination.current = 1; |
| | | } |
| | | this.onClearSelected() |
| | | this.queryParam.equipmentCategoryUda1 = this.caytegoryParam; |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | |
| | | this.$refs.modalForm.title = "æ°å¢"; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | this.$refs.modalForm.parentId = record.id; |
| | | this.$refs.modalForm.equipmentCategoryUda1 = record.equipmentCategoryUda1; |
| | | }, |
| | | onClearSelected() { |
| | | this.hiding = true; |
| | |
| | | codeDisable: true, |
| | | disableSubmit: false, |
| | | parentId: '', |
| | | equipmentCategoryUda1:'', |
| | | model: {}, |
| | | labelCol: { |
| | | span: 7 |
| | |
| | | let obj; |
| | | if (!this.model.id) { |
| | | formData.parentId = this.parentId |
| | | formData.equipmentCategoryUda1 = this.equipmentCategoryUda1; |
| | | obj = postAction(this.url.add, formData); |
| | | } else { |
| | | formData.equipmentCategoryDtlList = this.selectionRows; |
| | |
| | | placeholder="è¯·éæ©è®¾å¤æå±åç±»" |
| | | :disabled="formDisabled" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_equipment_category,name,id" |
| | | :dictCode="'mom_eam_equipment_category,name,id,equipment_category_uda1 = '+'\''+caytegoryParam+'\''" |
| | | v-model="model.equipmentCategoryId" |
| | | /> |
| | | </a-form-model-item> |
| | |
| | | >ç»´æ¤å使ç¨ä¿¡æ¯</a-divider> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç»´ä¿®é¨é¨" |
| | | label="ç»´æ¤é¨é¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="manageId" |
| | |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="è¯·éæ©ç»´ä¿®é¨é¨" |
| | | placeholder="è¯·éæ©ç»´æ¤é¨é¨" |
| | | tree-default-expand-all |
| | | v-model="model.manageId" |
| | | /> |
| | |
| | | default: false, |
| | | required: false |
| | | }, |
| | | caytegoryParam:{ |
| | | type:String, |
| | | default: '', |
| | | required: false |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | edit(record) { |
| | | console.log(this.disabled) |
| | | this.model = Object.assign({}, record); |
| | | if(!this.model.id){ |
| | | this.model.equipmentStatus = '1' |
| | | } |
| | | this.visible = true; |
| | | }, |
| | | close() { |