| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | placeholder="请è¾å
¥åå·" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import JSearchSelectTag from '../../components/dict/JSearchSelectTag.vue' |
| | | import ProcessEditModel from './modules/equipmentNew/edit/ProcessEditModel.vue' |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col :span="6"> |
| | | <a-form-item |
| | | label="车é´" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©èµè½¦é´" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_factory_model,name,id,del_flag!='1'" |
| | | v-model="queryParam.factoryModelId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="ç»´æ¤é¨é¨" |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | placeholder="请è¾å
¥åå·" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | placeholder="请è¾å
¥åå·" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | placeholder="请è¾å
¥åå·" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | |
| | | placeholder="请è¾å
¥åå·" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-col> |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false" title="è¿è¾è½¦"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="åç±»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | :dictCode="'mom_eam_equipment_category,name,id,equipment_category_uda1='+'\''+caytegoryParam+'\''" |
| | | placeholder="请è¾å
¥æç´¢æ¡ä»¶å¹¶éæ©" |
| | | v-model="queryParam.equipmentCategoryId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="ç产线ç¼å·" |
| | | > |
| | | <a-input |
| | | placeholder="请è¾å
¥ç产线ç¼ç æ¥è¯¢" |
| | | v-model="queryParam.num" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="6" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="ç产线åç§°" |
| | | > |
| | | <a-input |
| | | placeholder="请è¾å
¥ç产线åç§°æ¥è¯¢" |
| | | v-model="queryParam.name" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | @click="searchReset" |
| | | icon="reload" |
| | | >éç½®</a-button> |
| | | <a-button @click="handleAdd" type="primary" icon="plus" v-has="'equipmentAccount:add&delete&import&Edit'">æ°å¢</a-button> |
| | | <!-- <a-button type="primary" icon="download" @click="handleExportXls('设å¤å°è´¦')" v-has="'equipmentAccount:outport'">导åº</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import" v-has="'equipmentAccount:add&delete&import&Edit'">导å
¥</a-button> |
| | | </a-upload> |
| | | <a-button :disabled="selectedRowKeys.length==0" @click="handleUpdateABC" type="primary" icon="font-colors" v-has="'equipmentAccount:add&delete&import&Edit'">ABCæ è¯åæ´</a-button> |
| | | <a-button :disabled="selectedRowKeys.length==0" @click="handleUpdateWarranty" type="primary" icon="calendar" v-has="'equipmentAccount:add&delete&import&Edit'">è´¨ä¿æåæ´</a-button> --> |
| | | </div> |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已鿩 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'checkbox'}" |
| | | :customRow="clickThenSelect" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text,record"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a |
| | | href="javascript:;" |
| | | @click='handleDetail(record)' |
| | | >详æ
</a> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleEdit(record)" >ç¼è¾</a> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link"> |
| | | æ´å¤ |
| | | <a-icon type="down" /> |
| | | </a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item v-has="'equipmentAccount:add&delete&import&Edit'"> |
| | | |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'equipmentAccount:add&delete&import&Edit'" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane tab="设å¤" key="1" forceRender> |
| | | <equipment-list-of-line :mainId="selectedMainId"></equipment-list-of-line> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-of-line-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-of-line-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { getAction } from '@/api/manage' |
| | | import '@/assets/less/TableExpand.less' |
| | | import JSearchSelectTag from '../../components/dict/JSearchSelectTag.vue' |
| | | import EquipmentOfLineModal from './modules/line/EquipmentOfLineModal.vue' |
| | | import EquipmentListOfLine from './modules/line/EquipmentListOfLine.vue' |
| | | export default { |
| | | name: "EquipmentOfLine", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | | components: { |
| | | JSearchSelectTag, |
| | | EquipmentOfLineModal, |
| | | EquipmentListOfLine, |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '设å¤å°è´¦ç®¡ç页é¢', |
| | | caytegoryParam:'line', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: 'center', |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼ç ', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | }, |
| | | { |
| | | title: 'ç产线åç§°', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | }, |
| | | { |
| | | title: 'è®¾å¤æ»æ°', |
| | | align: "center", |
| | | dataIndex: 'sumOfEquipment', |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | align: "center", |
| | | dataIndex: 'action', |
| | | scopedSlots: { |
| | | customRender: 'action', |
| | | }, |
| | | width: 147, |
| | | fixed: 'right', |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getEquipmentList", |
| | | delete: "/eam/equipment/delete", |
| | | deleteBatch: "/eam/equipment/deleteBatch", |
| | | active: "/eam/equipment/active", |
| | | exportXlsUrl: '/eam/equipment/exportXls', |
| | | importExcelUrl: "/eam/equipment/importExcel", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | dictOptions:{ |
| | | }, |
| | | /* å页忰 */ |
| | | ipagination:{ |
| | | current: 1, |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | selectedMainId:'', |
| | | superFieldList:[], |
| | | equipmentProcessParametersMainId: '', |
| | | equipmentDocumentMainId: '', |
| | | equipmentPrecisionParametersMainId: '', |
| | | precisionParametersTemplateId:'', |
| | | isOpenPrecision:true, |
| | | isOpenProcess:true, |
| | | treeData: [], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | mainId:'', |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | this.initOptions(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | equipmentResumeShow(record) { |
| | | this.$refs.EquipmentResumeDrawer.visible = true |
| | | this.$refs.EquipmentResumeDrawer.title = '设å¤å±¥å' |
| | | this.$refs.EquipmentResumeDrawer.handleShow(record) |
| | | }, |
| | | clickThenSelect(record) { |
| | | return { |
| | | on: { |
| | | click: () => { |
| | | this.onSelectChange(record.id.split(","), [record]); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | onClearSelected() { |
| | | this.selectedRowKeys = []; |
| | | this.selectionRows = []; |
| | | this.selectedMainId='' |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if(selectedRowKeys.length==1){ |
| | | this.selectedMainId=selectedRowKeys[0] |
| | | }else{ |
| | | this.selectedMainId='' |
| | | } |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | | }, |
| | | loadData(arg) { |
| | | if(!this.url.list){ |
| | | this.$message.error("请设置url.list屿§!") |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | 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) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records; |
| | | this.ipagination.total = res.result.total; |
| | | } |
| | | if(res.code===510){ |
| | | this.$message.warning(res.message) |
| | | } |
| | | this.loading = false; |
| | | }) |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'num',text:'ç»ä¸ç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'name',text:'设å¤åç§°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'model',text:'åå·',dictCode:''}) |
| | | fieldList.push({type:'string',value:'specification',text:'è§æ ¼',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentStatus',text:'设å¤ç¶æ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'technologyStatus',text:'technologyStatus',dictCode:''}) |
| | | fieldList.push({type:'string',value:'assetNumber',text:'assetNumber',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentCategoryId',text:'equipmentCategoryId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'specificEquipment',text:'specificEquipment',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentPhoto',text:'equipmentPhoto',dictCode:''}) |
| | | fieldList.push({type:'string',value:'constructorId',text:'èµäº§å¶é å',dictCode:''}) |
| | | fieldList.push({type:'string',value:'supplierId',text:'supplierId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'factoryNumber',text:'factoryNumber',dictCode:''}) |
| | | fieldList.push({type:'string',value:'leaveFactoryDate',text:'åºåæ¥æ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'acceptanceCheckDate',text:'éªæ¶æ¥æ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'affiliationId',text:'affiliationId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'manageId',text:'ç»´æ¤é¨é¨ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'manager',text:'manager',dictCode:''}) |
| | | fieldList.push({type:'string',value:'useId',text:'使ç¨é¨é¨ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'functionary',text:'functionary',dictCode:''}) |
| | | fieldList.push({type:'string',value:'location',text:'location',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentImportanceId',text:'ABCæ è¯ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'processParameters',text:'processParameters',dictCode:''}) |
| | | fieldList.push({type:'string',value:'processParametersTemplateId',text:'processParametersTemplateId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'precisionParameters',text:'precisionParameters',dictCode:''}) |
| | | fieldList.push({type:'string',value:'precisionParametersTemplateId',text:'precisionParametersTemplateId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'verification',text:'verification',dictCode:''}) |
| | | fieldList.push({type:'string',value:'verificationPeriod',text:'verificationPeriod',dictCode:''}) |
| | | fieldList.push({type:'string',value:'lastVerificationDate',text:'lastVerificationDate',dictCode:''}) |
| | | fieldList.push({type:'string',value:'nextVerificationDate',text:'nextVerificationDate',dictCode:''}) |
| | | fieldList.push({type:'string',value:'status',text:'status',dictCode:''}) |
| | | fieldList.push({type:'string',value:'remark',text:'remark',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda1',text:'å·¥åº',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda2',text:'å®è£
ä½ç½®',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda3',text:'éé',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda4',text:'éé计éåä½ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda5',text:'åè½ä½ç½®',dictCode:''}) |
| | | fieldList.push({type:'string',value:'tenantId',text:'tenantId',dictCode:''}) |
| | | fieldList.push({type:'int',value:'delFlag',text:'delFlag',dictCode:''}) |
| | | fieldList.push({type:'string',value:'teamId',text:'ç»´ä¿®çç»ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'sourceId',text:'sourceId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'fundSource',text:'èµéæ¥æº',dictCode:''}) |
| | | fieldList.push({type:'string',value:'factoryNo',text:'åºåç¼å·',dictCode:''}) |
| | | fieldList.push({type:'string',value:'mfr',text:'å¶é å',dictCode:''}) |
| | | fieldList.push({type:'string',value:'sourceCountry',text:'èµäº§æ¥æºå½å®¶',dictCode:''}) |
| | | fieldList.push({type:'string',value:'gpo',text:'æ»åç',dictCode:''}) |
| | | fieldList.push({type:'string',value:'keyEquipmentIdentification',text:'å
³é®è®¾å¤æ è¯',dictCode:''}) |
| | | fieldList.push({type:'string',value:'securityConfiguration',text:'å®å
¨é
ç½®',dictCode:''}) |
| | | fieldList.push({type:'string',value:'coolingSystem',text:'å·å´ç³»ç»',dictCode:''}) |
| | | fieldList.push({type:'string',value:'fireExtinguisher',text:'çç«å¨',dictCode:''}) |
| | | fieldList.push({type:'string',value:'fireExtinguisherValidityPeriod',text:'çç«å¨æææ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'operatingSystem',text:'æä½ç³»ç»',dictCode:''}) |
| | | fieldList.push({type:'string',value:'system',text:'ç³»ç»',dictCode:''}) |
| | | fieldList.push({type:'string',value:'port',text:'端å£',dictCode:''}) |
| | | fieldList.push({type:'BigDecimal',value:'coordinateNum',text:'åæ æ°é',dictCode:''}) |
| | | fieldList.push({type:'string',value:'projectApprovalNo',text:'ç«é¡¹å¡å·',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | }, |
| | | editProcess(record){ |
| | | this.$refs.processEditModel.edit(record); |
| | | }, |
| | | editPrecision(record){ |
| | | this.$refs.precisionEditModel.edit(record); |
| | | }, |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | handleUpdateABC(){ |
| | | this.$refs.updateABC.add(); |
| | | }, |
| | | handleUpdateWarranty(){ |
| | | this.$refs.updateWarranty.add(); |
| | | }, |
| | | handleEditSpareParts(record){ |
| | | this.$refs.modalFormSpareParts.edit(record); |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less' |
| | | </style> |
| | |
| | | @cancel="close" |
| | | style="top:50px" |
| | | cancelText="å
³é" |
| | | :width="1200" |
| | | :width="1400" |
| | | > |
| | | <a-card :bordered="false"> |
| | | <div class="table-page-search-wrapper"> |
| | |
| | | :md="8" |
| | | :sm="6" |
| | | > |
| | | <a-form-item label="ç»ä¸ç¼ç "> |
| | | <a-form-item label="设å¤åç§°"> |
| | | <a-input |
| | | placeholder="请è¾å
¥ç»ä¸ç¼ç " |
| | | v-model="queryParam.num" |
| | | placeholder="设å¤åç§°" |
| | | v-model="queryParam.name" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'num' |
| | | }, |
| | | { |
| | | title: 'èµäº§ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'assetNumber' |
| | | }, |
| | | |
| | | { |
| | | title: 'ç¹ç§è®¾å¤', |
| | | align: 'center', |
| | | dataIndex: 'specificEquipment_dictText' |
| | | dataIndex: 'num', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'name' |
| | | dataIndex: 'name', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: 'center', |
| | | dataIndex: 'model' |
| | | dataIndex: 'model', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: '设å¤è§æ ¼', |
| | | align: 'center', |
| | | dataIndex: 'specification' |
| | | dataIndex: 'specification', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: 'ABCæ è¯', |
| | | align: "center", |
| | | dataIndex: 'equipmentImportanceId', |
| | | width:100 |
| | | }, |
| | | { |
| | | title: 'å
³é®è®¾å¤æ è¯', |
| | | align: "center", |
| | | dataIndex: 'specificEquipment_dictText', |
| | | width:100 |
| | | }, |
| | | { |
| | | title: '设å¤ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'equipmentStatus_dictText' |
| | | dataIndex: 'equipmentStatus_dictText', |
| | | width:100 |
| | | }, |
| | | { |
| | | title: 'ææ¯ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'technologyStatus_dictText' |
| | | dataIndex: 'technologyStatus_dictText', |
| | | width:100 |
| | | }, |
| | | |
| | | { |
| | | title: '设å¤å¾ç', |
| | | align: 'center', |
| | | dataIndex: 'equipmentPhoto', |
| | | scopedSlots: { customRender: 'equipmentPhoto' } |
| | | }, |
| | | // { |
| | | // title:'设å¤å¾ç', |
| | | // align:"center", |
| | | // dataIndex: 'equipmentPhoto', |
| | | // scopedSlots: {customRender: 'imgSlot'} |
| | | // }, |
| | | { |
| | | title: 'ä½ç½®', |
| | | align: 'center', |
| | | dataIndex: 'location' |
| | | }, |
| | | |
| | | { |
| | | title: 'éè¦åº¦', |
| | | align: 'center', |
| | | dataIndex: 'equipmentImportanceId_dictText' |
| | | } |
| | | |
| | | ], |
| | | selectedRowKeys: [], |
| | | oldSelectRows: [], |
| | |
| | | let that = this |
| | | this.loading = true |
| | | let params = this.getQueryParams()//æ¥è¯¢æ¡ä»¶ |
| | | params.equipmentStatus = '1' |
| | | // params.equipmentStatus = '1' |
| | | await getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | for (let i = 0; i < res.result.records.length; i++) { |
| | |
| | | this.loadData() |
| | | }, |
| | | handleSubmit() { |
| | | this.$bus.$emit('selectionRows', this.selectionRows) |
| | | this.$emit('selectionRows', this.selectionRows) |
| | | this.searchReset(0) |
| | | this.close() |
| | | }, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已鿩 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | class="j-table-force-nowrap" |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | :rowClassName="tableRowClass" |
| | | @change="handleTableChange"> |
| | | <span |
| | | slot="specificEquipment" |
| | | slot-scope="text" |
| | | > |
| | | <a-icon type="check" style="color: rgb(0, 21, 255);" v-if="text==='æ¯'" /> |
| | | <a-icon type="close" v-else style="color:red;"/> |
| | | </span> |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text,record"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | export default { |
| | | name: "EquipmentListOfLine", |
| | | disableMixinCreated:true, |
| | | mixins:[JeecgListMixin], |
| | | components: { }, |
| | | props:{ |
| | | mainId:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | | } |
| | | }, |
| | | watch:{ |
| | | mainId:{ |
| | | immediate: true, |
| | | handler(val) { |
| | | if(!this.mainId){ |
| | | this.clearList() |
| | | }else{ |
| | | this.queryParam['lineId'] = val |
| | | this.loadData(1); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '设å¤', |
| | | disableMixinCreated:true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '主设�', |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | width:50, |
| | | scopedSlots: { customRender: 'specificEquipment' } |
| | | }, |
| | | { |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: 'åå·', |
| | | align: "center", |
| | | dataIndex: 'model', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: '使ç¨é¨é¨', |
| | | align: "center", |
| | | dataIndex: 'useId_dictText', |
| | | width:200 |
| | | }, |
| | | { |
| | | title: 'ABCæ è¯', |
| | | align: "center", |
| | | dataIndex: 'equipmentImportanceId', |
| | | width:100 |
| | | }, |
| | | { |
| | | title: 'å
³é®è®¾å¤', |
| | | align: "center", |
| | | dataIndex: 'specificEquipment_dictText', |
| | | width:100 |
| | | }, |
| | | { |
| | | title: 'ææ¯ç¶æ', |
| | | align: "center", |
| | | dataIndex: 'technologyStatus_dictText', |
| | | width:100 |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getEquipmentList", |
| | | }, |
| | | dictOptions:{ |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | clearList(){ |
| | | this.dataSource=[] |
| | | this.selectedRowKeys=[] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | tableRowClass(record, index) { |
| | | if (record.isMeta==='yes') { |
| | | return 'primary' |
| | | } |
| | | }, |
| | | |
| | | }, |
| | | mounted(){ |
| | | this.$bus.$on('loadData', (data) => { |
| | | this.loadData(); |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | .primary { |
| | | color: red; |
| | | font-weight: bold; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <j-form-container :disabled="formDisabled"> |
| | | <!-- 主表ååºå --> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç产线æå±åç±»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="equipmentCategoryId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="ç产线æå±åç±»" |
| | | :disabled="formDisabled" |
| | | :triggerChange="true" |
| | | :dictCode="caytegoryParam==='all'?'mom_eam_equipment_category,name,id':'mom_eam_equipment_category,name,id,equipment_category_uda1 = '+'\''+caytegoryParam+'\''" |
| | | v-model="model.equipmentCategoryId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç产线ç¼ç " |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="num" |
| | | > |
| | | <a-input |
| | | v-model="model.num" |
| | | placeholder="请è¾å
¥ç产线ç¼å·" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="ç产线åç§°" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="name" |
| | | > |
| | | <a-input |
| | | v-model="model.name" |
| | | placeholder="请è¾å
¥ç产线åç§°" |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </j-form-container> |
| | | <!-- å表ååºå --> |
| | | <a-tabs v-model="activeKey" @change="handleChangeTabs"> |
| | | <a-tab-pane tab="设å¤" :key="refKeys[0]" :forceRender="true"> |
| | | <j-vxe-table |
| | | keep-source |
| | | :ref="refKeys[0]" |
| | | :loading="equipmentOfLineList.loading" |
| | | :columns="equipmentOfLineList.columns" |
| | | :dataSource="equipmentOfLineList.dataSource" |
| | | :maxHeight="600" |
| | | :disabled="formDisabled" |
| | | :rowNumber="true" |
| | | :rowSelection="true" |
| | | :bordered="true" |
| | | :alwaysEdit="true" |
| | | :toolbar="true" |
| | | @valueChange="changeDate" |
| | | :toolbarConfig="toolbarConfig" |
| | | > |
| | | <template slot="toolbarPrefix"> |
| | | <a-button type="primary" @click="selectEquipmentList" :disabled="formDisabled">éæ©è®¾å¤ |
| | | </a-button> |
| | | </template> |
| | | </j-vxe-table> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-select-modal ref="EquipmentSelectModal" @selectionRows="addSelectedEquipments"></equipment-select-modal> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { getAction } from '@/api/manage' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { duplicateCheck } from '@/api/api' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import { getRefPromise,VALIDATE_FAILED} from '@/components/jeecg/JVxeTable/utils/vxeUtils.js' |
| | | import JFormContainer from '@/components/jeecg/JFormContainer' |
| | | import EquipmentSelectModal from '../equipmentScrap/EquipmentSelectModal.vue' |
| | | |
| | | import dayjs from 'dayjs' |
| | | export default { |
| | | name: 'EquipmentOfLineForm', |
| | | mixins: [JVxeTableModelMixin], |
| | | components: { |
| | | JFormContainer, |
| | | dayjs, |
| | | EquipmentSelectModal |
| | | }, |
| | | props: { |
| | | //表åç¦ç¨ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | }, |
| | | caytegoryParam: { |
| | | type: String, |
| | | default: '', |
| | | required: false |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | toolbarConfig: { |
| | | // prefix åç¼ï¼suffix åç¼ |
| | | slot: ['prefix', 'suffix'], |
| | | // add æ°å¢æé®ï¼remove å 餿é®ï¼clearSelection æ¸
ç©ºéæ©æé® |
| | | btn: ['remove', 'clearSelection'] |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | model:{ |
| | | }, |
| | | // æ°å¢æ¶å表é»è®¤æ·»å å è¡ç©ºæ°æ® |
| | | addDefaultRowNum: 0, |
| | | validatorRules: { |
| | | num: [ |
| | | { required: true, message: '请è¾å
¥ç¼ç !' }, |
| | | { validator: (rule, value, callback) => validateDuplicateValue('mom_eam_equipment', 'num', value, this.model.id, callback) } |
| | | ], |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥åç§°!' } |
| | | ], |
| | | equipmentCategoryId:[ |
| | | { required: true, message: '请è¾å
¥åç±»!' } |
| | | ] |
| | | }, |
| | | refKeys: ['equipmentOfLineTable', ], |
| | | tableKeys:['equipmentOfLineTable', ], |
| | | activeKey: 'equipmentOfLineTable', |
| | | equipmentOfLineList: { |
| | | loading: false, |
| | | dataSource: [], |
| | | columns: [ |
| | | { |
| | | title: 'id', |
| | | key: 'id', |
| | | type: JVXETypes.hidden, |
| | | disabled:true, |
| | | align:'center', |
| | | }, |
| | | { |
| | | title: 'showId', |
| | | key: 'showId', |
| | | type: JVXETypes.hidden, |
| | | disabled:true, |
| | | align:'center', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | key: 'num', |
| | | type: JVXETypes.normal, |
| | | width:"300px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | | defaultValue:'', |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | key: 'name', |
| | | type: JVXETypes.normal, |
| | | width:"300px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | | defaultValue:'', |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | key: 'model', |
| | | type: JVXETypes.normal, |
| | | width:"202px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | | defaultValue:'', |
| | | }, |
| | | { |
| | | title: 'å
³é®è®¾å¤æ è¯', |
| | | key: 'specificEquipment_dictText', |
| | | type: JVXETypes.normal, |
| | | width:"202px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | | defaultValue:'', |
| | | }, |
| | | { |
| | | title: 'ABCæ è¯', |
| | | key: 'equipmentImportanceId', |
| | | type: JVXETypes.normal, |
| | | width:"202px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | | defaultValue:'', |
| | | }, |
| | | { |
| | | title: 'ææ¯ç¶æ', |
| | | key: 'technologyStatus_dictText', |
| | | type: JVXETypes.normal, |
| | | width:"202px", |
| | | placeholder: '请è¾å
¥${title}', |
| | | disabled:true, |
| | | align:'center', |
| | | defaultValue:'', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ä¸»è®¾å¤', |
| | | key: 'isMeta', |
| | | type: JVXETypes.select, |
| | | width:"202px", |
| | | placeholder: 'è¯·éæ©${title}', |
| | | dictCode:'is_product', |
| | | align:'center', |
| | | options:[], |
| | | validateRules: [ |
| | | { |
| | | required: true, // å¿
å¡« |
| | | message: '请è¾å
¥${title}' // æ¾ç¤ºçææ¬ |
| | | }, |
| | | ] |
| | | }, |
| | | ] |
| | | }, |
| | | url: { |
| | | add: "/eam/equipment/addLine", |
| | | edit:"/eam/equipment/editLine", |
| | | equipmentOfLineTable: { |
| | | list: "/eam/equipment/getEquipmentList", |
| | | }, |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled(){ |
| | | return this.disabled |
| | | }, |
| | | }, |
| | | created () { |
| | | }, |
| | | methods: { |
| | | addBefore(){ |
| | | this.equipmentOfLineList.dataSource=[]; |
| | | }, |
| | | getAllTable() { |
| | | let values = this.tableKeys.map(key => getRefPromise(this, key)) |
| | | return Promise.all(values) |
| | | }, |
| | | /** è°ç¨å®edit()æ¹æ³ä¹åä¼èªå¨è°ç¨æ¤æ¹æ³ */ |
| | | editAfter() { |
| | | this.$nextTick(() => { |
| | | }) |
| | | // å è½½åè¡¨æ°æ® |
| | | if (this.model.id) { |
| | | let params = {lineId: this.model.id } |
| | | this.requestSubTableData(this.url.equipmentOfLineTable.list, params, this.equipmentOfLineList) |
| | | } |
| | | }, |
| | | //æ ¡éªææä¸å¯¹ä¸å表表å |
| | | validateSubForm(allValues){ |
| | | return new Promise((resolve,reject)=>{ |
| | | Promise.all([ |
| | | ]).then(() => { |
| | | resolve(allValues) |
| | | }).catch(e => { |
| | | if (e.error === VALIDATE_FAILED) { |
| | | // å¦æææªéè¿è¡¨åéªè¯çå表ï¼å°±èªå¨è·³è½¬å°å®æå¨çtab |
| | | this.activeKey = e.index == null ? this.activeKey : this.refKeys[e.index] |
| | | } else { |
| | | console.error(e) |
| | | } |
| | | }) |
| | | }) |
| | | }, |
| | | /** æ´çæformData */ |
| | | classifyIntoFormData(allValues) { |
| | | let main = Object.assign(this.model, allValues.formValue) |
| | | return { |
| | | ...main, // å±å¼ |
| | | equipmentOfLineTable: allValues.tablesValue[0].tableData, |
| | | } |
| | | }, |
| | | validateError(msg){ |
| | | this.$message.error(msg) |
| | | }, |
| | | changeDate(target){ |
| | | let tableData =this.$refs.equipmentOfLineTable.getTableData(); |
| | | let id = target.row.id |
| | | if(target.column.key==='isMeta'){ |
| | | for(var i = 0;i<tableData.length;i++){ |
| | | if(id!==tableData[i].showId){ |
| | | this.$refs.equipmentOfLineTable.getRowById(tableData[i].showId).isMeta='no' |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | //éæ©è®¾å¤ |
| | | selectEquipmentList() { |
| | | let ids = [] |
| | | let tableData = this.$refs.equipmentOfLineTable.getTableData() |
| | | let deleteData = this.$refs.equipmentOfLineTable.getDeleteData() |
| | | for (let i = 0; i < tableData.length; i++) { |
| | | ids.push(tableData[i].showId) |
| | | } |
| | | this.$refs.EquipmentSelectModal.showModals(ids) |
| | | this.$refs.EquipmentSelectModal.title = 'éæ©è®¾å¤' |
| | | this.$refs.EquipmentSelectModal.disableSubmit = false |
| | | }, |
| | | addSelectedEquipments(data) { |
| | | let tableData = this.$refs.equipmentOfLineTable.getTableData() |
| | | // const seletedEquipmentIds = tableData. |
| | | var tableStr = JSON.stringify(tableData) |
| | | const addRows = [] |
| | | for (let i = 0; i < data.length; i++) { |
| | | var equipment = {} |
| | | if (tableStr.indexOf(data[i].id)==-1) { |
| | | equipment = { |
| | | id: data[i].id, |
| | | num: data[i].num, |
| | | name: data[i].name, |
| | | model:data[i].model, |
| | | showId:data[i].id, |
| | | specificEquipment_dictText:data[i].specificEquipment_dictText, |
| | | technologyStatus_dictText:data[i].technologyStatus_dictText, |
| | | equipmentImportanceId:data[i].equipmentImportanceId, |
| | | isMeta:'no' |
| | | } |
| | | } |
| | | addRows.push(equipment) |
| | | } |
| | | this.$refs.equipmentOfLineTable.pushRows(addRows) |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="1520" |
| | | :height="600" |
| | | :visible="visible" |
| | | :maskClosable="true" |
| | | :fullscreen="true" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel"> |
| | | <equipment-of-line-form |
| | | :caytegoryParam="caytegoryParam" |
| | | ref="realForm" |
| | | @ok="submitCallback" |
| | | :disabled="disableSubmit"/> |
| | | </j-modal> |
| | | </template> |
| | | <script> |
| | | import EquipmentOfLineForm from './EquipmentOfLineForm' |
| | | export default { |
| | | name: 'EquipmentOfLineModal', |
| | | components: { |
| | | EquipmentOfLineForm |
| | | }, |
| | | props:{ |
| | | caytegoryParam: { |
| | | type: String, |
| | | default: '', |
| | | required: false |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | title:'', |
| | | width:1500, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods:{ |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.addBefore(); |
| | | }) |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.handleOk(); |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.$bus.$emit('loadData') |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | </style> |