已重命名1个文件
已添加7个文件
已修改14个文件
已删除1个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage' |
| | | |
| | | export default { |
| | | getProductStructureTreeApi: () => getAction('/nc/product/load/tree') |
| | | } |
| | |
| | | <ProductStructureMain/> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <!--导å
¥æä»¶å
Œ
±å¼¹çª--> |
| | | <ImportFileModal/> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import ProductStructureTree from '../common/ProductStructureTree' |
| | | import ProductStructureMain from './modules/ProductStructure/ProductStructureMain' |
| | | import ImportFileModal from '../common/ImportFileModal' |
| | | |
| | | export default { |
| | | name: 'ProductStructure', |
| | | components: { |
| | | ProductStructureTree, |
| | | ProductStructureMain |
| | | ProductStructureMain, |
| | | ImportFileModal |
| | | }, |
| | | data() { |
| | | return {} |
| | |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="è§æ ¼"> |
| | | <a-input v-model="model.productName" placeholder="请è¾å
¥è§æ ¼"></a-input> |
| | | <a-input v-model="model.componentScale" placeholder="请è¾å
¥è§æ ¼"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'DocumentBatchDeleteModal', |
| | | components: {}, |
| | | data() { |
| | | return {} |
| | | }, |
| | | methods: {} |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | :maskClosable="false" |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <DocumentModalForm ref="realForm" @ok="submitCallback"/> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import DocumentModalForm from './DocumentModalForm.vue' |
| | | |
| | | export default { |
| | | name: 'DocumentModal', |
| | | components: { |
| | | DocumentModalForm |
| | | }, |
| | | props: { |
| | | currentTreeNodeInfo: { |
| | | type: Object |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | title: '', |
| | | width: 500, |
| | | visible: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add() |
| | | }) |
| | | }, |
| | | edit(record) { |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.edit(record) |
| | | }) |
| | | }, |
| | | handleOk() { |
| | | this.$refs.realForm.submitForm() |
| | | }, |
| | | submitCallback() { |
| | | this.$emit('ok') |
| | | this.visible = false |
| | | }, |
| | | handleCancel() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelColLong" |
| | | :wrapperCol="wrapperColLong"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="ææ¡£ååç§°" prop="docName"> |
| | | <a-input v-model="model.docName" placeholder="请è¾å
¥ææ¡£ååç§°"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="设å¤ç¼å·"> |
| | | <a-select v-model="model.productNo" placeholder="è¯·éæ©è®¾å¤ç¼å·"></a-select> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="代ç çæ¬"> |
| | | <a-input v-model="model.docAlias" placeholder="请è¾å
¥ä»£ç çæ¬"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="æè¿°"> |
| | | <a-textarea v-model="model.description" placeholder="请è¾å
¥ææ¡£æè¿°"></a-textarea> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | import { httpAction, getAction } from '@/api/manage' |
| | | |
| | | export default { |
| | | name: 'DocumentModalForm', |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | model: {}, |
| | | labelColLong: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | | }, |
| | | wrapperColLong: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 19 } |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | docName: [ |
| | | { required: true, message: '请è¾å
¥ææ¡£ååç§°!' } |
| | | ], |
| | | }, |
| | | url: { |
| | | add: '/mdc/mdcPartProcessInfo/add', |
| | | edit: '/mdc/mdcPartProcessInfo/edit' |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled() { |
| | | return this.disabled |
| | | } |
| | | }, |
| | | created() { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)) |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.edit(this.modelDefault) |
| | | }, |
| | | |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | console.log('model', this.model) |
| | | this.visible = true |
| | | }, |
| | | |
| | | submitForm() { |
| | | const that = this |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true |
| | | let httpUrl = '' |
| | | let method = 'post' |
| | | if (!this.model.id) { |
| | | httpUrl += this.url.add |
| | | } else { |
| | | httpUrl += this.url.edit |
| | | } |
| | | httpAction(httpUrl, this.model, method).then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.$emit('ok') |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal width="75%" :title="title" :visible="visible" @cancel="visible=false" :maskClosable="false" centered> |
| | | <div class="tabs-container"> |
| | | <div style="width: 72%"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="ææ¡£å表"> |
| | | <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.docName"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :md="11" :sm="11"> |
| | | <a-form-item label="ä¸ä¼ æ¶é´"> |
| | | <a-range-picker placeholder="è¯·éæ©ä¸ä¼ æ¶é´" v-model="queryParam.collectTime"></a-range-picker> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :md="4" :sm="4"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | |
| | | |
| | | <a-table :columns="columns" :data-source="dataSource" bordered :pagination="false" |
| | | :scroll="{y:440}" :size="size" rowKey="docId"> |
| | | |
| | | </a-table> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </div> |
| | | |
| | | <div style="width: 25%"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="设å¤å表"> |
| | | |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </div> |
| | | </div> |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'NcDocumentAssignModal', |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | disableMixinCreated: true, |
| | | visible: false, |
| | | title: '', |
| | | columns: [ |
| | | { |
| | | title: 'åºå·', |
| | | dataIndex: 'rowIndex', |
| | | key: 'rowIndex', |
| | | width: 65, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { title: 'æä»¶åç§°', dataIndex: 'docName', align: 'center', width: 300 }, |
| | | { title: '设å¤ç¼å·', dataIndex: 'docCode', align: 'center' }, |
| | | { title: 'åºåºç¶æ', dataIndex: 'pullStatus', align: 'center' }, |
| | | { title: 'ç¶ æ', dataIndex: 'docStatus', align: 'center' }, |
| | | { title: 'ä¸ä¼ æ¶é´', dataIndex: 'createTime', align: 'center', width: 200 } |
| | | ], |
| | | dataSource: [ |
| | | { |
| | | 'docId': '1872116579179859971', |
| | | 'docName': 'api-ms-win-core-heap-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116579423129601', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116579179859972', |
| | | 'docName': 'api-ms-win-core-libraryloader-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116579423129606', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116581352509442', |
| | | 'docName': 'api-ms-win-core-processthreads-l1-1-1.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116581453172737', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116581352509441', |
| | | 'docName': 'api-ms-win-core-profile-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116581453172738', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116581398646787', |
| | | 'docName': 'api-ms-win-core-processenvironment-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116581499310083', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116581394452482', |
| | | 'docName': 'api-ms-win-core-processthreads-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116581499310082', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116581398646786', |
| | | 'docName': 'api-ms-win-core-namedpipe-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116581503504385', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116581398646791', |
| | | 'docName': 'api-ms-win-core-rtlsupport-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116581503504386', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116583265112065', |
| | | 'docName': 'api-ms-win-core-synch-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116583357386754', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116583298666502', |
| | | 'docName': 'api-ms-win-core-timezone-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116583386746881', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116583298666498', |
| | | 'docName': 'api-ms-win-core-sysinfo-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116583399329795', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116583298666499', |
| | | 'docName': 'api-ms-win-core-util-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116583399329794', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:50', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116585123188739', |
| | | 'docName': 'api-ms-win-crt-convert-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116585219657730', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116585123188738', |
| | | 'docName': 'api-ms-win-crt-heap-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116585219657729', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116585131577347', |
| | | 'docName': 'api-ms-win-crt-environment-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116585223852035', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116585131577350', |
| | | 'docName': 'api-ms-win-crt-conio-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116585223852036', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116585131577346', |
| | | 'docName': 'api-ms-win-crt-locale-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116585223852034', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116585139965954', |
| | | 'docName': 'api-ms-win-crt-filesystem-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116585232240641', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116587392307203', |
| | | 'docName': 'api-ms-win-crt-stdio-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116587505553412', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:52', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116587392307207', |
| | | 'docName': 'api-ms-win-crt-process-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116587505553409', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116587379724289', |
| | | 'docName': 'api-ms-win-crt-multibyte-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116587497164802', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116587388112901', |
| | | 'docName': 'api-ms-win-crt-private-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116587497164801', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:52', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116587388112899', |
| | | 'docName': 'api-ms-win-crt-runtime-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116587505553410', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116587392307205', |
| | | 'docName': 'api-ms-win-crt-math-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116587505553411', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:51', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116589451710466', |
| | | 'docName': 'api-ms-win-crt-string-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116589644648450', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:52', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116589472681986', |
| | | 'docName': 'api-ms-win-crt-time-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116589653037060', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:52', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116589472681987', |
| | | 'docName': 'api-ms-win-crt-utility-l1-1-0.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116589653037058', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:52', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116589472681985', |
| | | 'docName': 'chrome_100_qq.pak', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'pak', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116589653037059', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:52', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116589787254785', |
| | | 'docName': 'chrome_200_qq.pak', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'pak', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116589896306690', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:52', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116590152159233', |
| | | 'docName': 'd3dcompiler_47.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116590277988354', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:52', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1872116591695663106', |
| | | 'docName': 'ffmpeg.dll', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'dll', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1872116591783743489', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2024-12-26 11:05:52', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | }, |
| | | { |
| | | 'docId': '1878649744767254529', |
| | | 'docName': 'avatar2.jpg', |
| | | 'docAlias': null, |
| | | 'docCode': null, |
| | | 'docSuffix': 'jpg', |
| | | 'docStatus': 1, |
| | | 'publishFileId': '1878649744901472258', |
| | | 'publishVersion': 'a.1', |
| | | 'description': null, |
| | | 'createTime': '2025-01-13 11:46:18', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null, |
| | | 'docClassCode': null, |
| | | 'pullStatus': 1, |
| | | 'pullUser': null, |
| | | 'attributionType': 5, |
| | | 'attributionId': '1327523708556668930', |
| | | 'classificationId': '1257965381181095938', |
| | | 'syncStatus': null |
| | | } |
| | | ], |
| | | queryParam: {}, |
| | | url: { |
| | | list: '' |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | visible: { |
| | | handler(value) { |
| | | if (value) this.loadData(1) |
| | | } |
| | | } |
| | | }, |
| | | methods: {} |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .tabs-container { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination" |
| | | :scroll="{y:189}" :customRow="customRow" :size="size" rowKey="docId"> |
| | | <div> |
| | | <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination" |
| | | :scroll="{y:189}" :customRow="customRow" :size="size" rowKey="docId"> |
| | | |
| | | </a-table> |
| | | </a-table> |
| | | |
| | | <DocumentModal ref="modalForm" @ok="modalFormOk"/> |
| | | |
| | | <NcDocumentAssignModal ref="documentAssignModalRef"/> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import DocumentModal from './DocumentModal' |
| | | import NcDocumentAssignModal from './NcDocumentAssignModal' |
| | | |
| | | export default { |
| | | name: 'NcDocumentTableList', |
| | | components: {}, |
| | | components: { NcDocumentAssignModal, DocumentModal }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | size: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('tableMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | | methods: { |
| | | customRow(record) { |
| | | return { |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | |
| | | handleDocumentEdit(record, modalTitle) { |
| | | this.$refs.modalForm.edit(record) |
| | | this.$refs.modalForm.title = modalTitle |
| | | }, |
| | | |
| | | handleDocumentAssign(record, modalTitle) { |
| | | this.$refs.documentAssignModalRef.title = modalTitle |
| | | this.$refs.documentAssignModalRef.visible = true |
| | | }, |
| | | |
| | | triggerCorrespondingMethod({ methodName, level, modalTitle, tableRowInfo }) { |
| | | if (this[methodName] && tableRowInfo.attributionType === 5) this[methodName](tableRowInfo, modalTitle) |
| | | } |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination" |
| | | :scroll="{y:189}" :customRow="customRow" :size="size"> |
| | | <div> |
| | | <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination" |
| | | :scroll="{y:189}" :customRow="customRow" :size="size" rowKey="docId"> |
| | | |
| | | </a-table> |
| | | </a-table> |
| | | |
| | | <DocumentModal ref="modalForm" @ok="modalFormOk"/> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import DocumentModal from './DocumentModal' |
| | | |
| | | export default { |
| | | name: 'OtherDocumentTableList', |
| | | components: {}, |
| | | components: { DocumentModal }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | | size: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('tableMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | | methods: { |
| | | customRow(record) { |
| | | return { |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | |
| | | handleDocumentEdit(record, modalTitle) { |
| | | this.$refs.modalForm.edit(record) |
| | | this.$refs.modalForm.title = modalTitle |
| | | }, |
| | | |
| | | triggerCorrespondingMethod({ methodName, level, modalTitle, tableRowInfo }) { |
| | | if (this[methodName] && tableRowInfo.attributionType === 1) this[methodName](tableRowInfo, modalTitle) |
| | | } |
| | | } |
| | | } |
ÎļþÃû´Ó src/views/dnc/base/modules/ProductStructure/Document/UseDocumentEquipmentTableList.vue ÐÞ¸Ä |
| | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | export default { |
| | | name: 'UseDocumentEquipmentTableList', |
| | | name: 'UseNcDocumentEquipmentTableList', |
| | | components: {}, |
| | | mixins: [JeecgListMixin], |
| | | data() { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | :maskClosable="false" |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <PartModalForm ref="realForm" @ok="submitCallback"/> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import PartModalForm from './PartModalForm.vue' |
| | | |
| | | export default { |
| | | name: 'PartModal', |
| | | components: { |
| | | PartModalForm |
| | | }, |
| | | props: { |
| | | currentTreeNodeInfo: { |
| | | type: Object |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | title: '', |
| | | width: 700, |
| | | visible: false |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('treeMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | | methods: { |
| | | /** |
| | | * æ·»å å½åé¨ä»¶é¶ä»¶ |
| | | * @param modalTitle |
| | | */ |
| | | handleComponentAddChild(modalTitle) { |
| | | this.title = modalTitle |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add() |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * æ·»å é¶ä»¶ |
| | | * @param modalTitle |
| | | */ |
| | | handlePartsAdd(modalTitle) { |
| | | this.title = modalTitle |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add() |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * ç¼è¾é¶ä»¶ä¿¡æ¯ |
| | | * @param modalTitle |
| | | */ |
| | | handlePartsEdit(modalTitle) { |
| | | this.title = modalTitle |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.edit(this.currentTreeNodeInfo.entity) |
| | | }) |
| | | }, |
| | | |
| | | handleOk() { |
| | | this.$refs.realForm.submitForm() |
| | | }, |
| | | |
| | | submitCallback() { |
| | | this.$emit('ok') |
| | | this.visible = false |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | }, |
| | | |
| | | triggerCorrespondingMethod({ methodName, modalTitle }) { |
| | | if (this[methodName]) this[methodName](modalTitle) |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="é¶ä»¶åç§°" prop="partsName"> |
| | | <a-input v-model="model.partsName" placeholder="请è¾å
¥é¶ä»¶åç§°"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="代å·" prop="partsCode"> |
| | | <a-input v-model="model.partsCode" placeholder="请è¾å
¥ä»£å·"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="é¶ä»¶åå·"> |
| | | <a-input v-model="model.partsModel" placeholder="é¶ä»¶åå·"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="è§æ ¼"> |
| | | <a-input v-model="model.partsScale" placeholder="请è¾å
¥è§æ ¼"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="éé"> |
| | | <a-input v-model="model.partsWeight" placeholder="请è¾å
¥éé"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="è£
é
ç±»å" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input v-model="model.assembleType" placeholder="请è¾å
¥è£
é
ç±»å"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç©æç¼ç "> |
| | | <a-input v-model="model.materielCode" placeholder="请è¾å
¥ç©æç¼ç "></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç»æç±»å"> |
| | | <a-input v-model="model.structureType" placeholder="请è¾å
¥ç»æç±»å"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å¤çç±»å"> |
| | | <a-input v-model="model.processType" placeholder="请è¾å
¥å¤çç±»å"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç产类å"> |
| | | <a-input v-model="model.produceType" placeholder="请è¾å
¥ç产类å"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="æè¿°" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea v-model="model.description" placeholder="请è¾å
¥æè¿°"></a-textarea> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | import { httpAction, getAction } from '@/api/manage' |
| | | |
| | | export default { |
| | | name: 'PartModalForm', |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 8 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 14 } |
| | | }, |
| | | labelColLong: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 4 } |
| | | }, |
| | | wrapperColLong: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 19 } |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | partsName: [ |
| | | { required: true, message: '请è¾å
¥é¶ä»¶åç§°!' } |
| | | ], |
| | | partsCode: [ |
| | | { required: true, message: '请è¾å
¥ä»£å·!' } |
| | | ] |
| | | }, |
| | | url: { |
| | | add: '/mdc/mdcPartProcessInfo/add', |
| | | edit: '/mdc/mdcPartProcessInfo/edit' |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled() { |
| | | return this.disabled |
| | | } |
| | | }, |
| | | created() { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)) |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.edit(this.modelDefault) |
| | | }, |
| | | |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | console.log('model', this.model) |
| | | this.visible = true |
| | | }, |
| | | |
| | | submitForm() { |
| | | const that = this |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true |
| | | let httpUrl = '' |
| | | let method = 'post' |
| | | if (!this.model.id) { |
| | | httpUrl += this.url.add |
| | | } else { |
| | | httpUrl += this.url.edit |
| | | } |
| | | httpAction(httpUrl, this.model, method).then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.$emit('ok') |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <template> |
| | | <a-descriptions bordered :size="size"> |
| | | <a-descriptions-item label="å·¥åºåç§°">{{currentLevelDetails.processName|isValueNull}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥åºå·">{{currentLevelDetails.processCode|isValueNull}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥èºç¼å· ">{{currentLevelDetails.craftNo|isValueNull}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥åºç±»å">{{currentLevelDetails.processType|isValueNull}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤åå·">{{currentLevelDetails.processingEquipmentModel|isValueNull}} |
| | | <a-descriptions-item label="å·¥åºåç§°">{{currentLevelDetails.processName}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥åºå·">{{currentLevelDetails.processCode}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥èºç¼å· ">{{currentLevelDetails.craftNo}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥åºç±»å">{{currentLevelDetails.processType}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤åå·">{{currentLevelDetails.processingEquipmentModel}} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤ç±»å">{{currentLevelDetails.processingEquipmentOs|isValueNull}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤ç¼å·">{{currentLevelDetails.processingEquipmentCode|isValueNull}} |
| | | <a-descriptions-item label="å 工设å¤ç±»å">{{currentLevelDetails.processingEquipmentOs}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤ç¼å·">{{currentLevelDetails.processingEquipmentCode}} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="å·¥è£
ç¼å·">{{currentLevelDetails.assembleStep|isValueNull}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥è£
åç§° ">{{currentLevelDetails.assembleName|isValueNull}}</a-descriptions-item> |
| | | <a-descriptions-item label="æè¿°" :span="3">{{currentLevelDetails.description|isValueNull}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥è£
ç¼å·">{{currentLevelDetails.assembleStep}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥è£
åç§° ">{{currentLevelDetails.assembleName}}</a-descriptions-item> |
| | | <a-descriptions-item label="æè¿°" :span="3">{{currentLevelDetails.description}}</a-descriptions-item> |
| | | </a-descriptions> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | size: { |
| | | type: String |
| | | } |
| | | }, |
| | | filters: { |
| | | isValueNull(value) { |
| | | return !value || value == null ? '' : value |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | components: { |
| | | ProcessModalForm |
| | | }, |
| | | props: { |
| | | currentTreeNodeInfo: { |
| | | type: Object |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | title: '', |
| | |
| | | visible: false |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('treeMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | | methods: { |
| | | add() { |
| | | /** |
| | | * å建 |
| | | * @param modalTitle |
| | | */ |
| | | handleComponentAddRelative(modalTitle) { |
| | | this.title = modalTitle |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add() |
| | | }) |
| | | }, |
| | | edit(record) { |
| | | |
| | | handleProcessAdd(modalTitle) { |
| | | this.title = modalTitle |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.edit(record) |
| | | this.$refs.realForm.add() |
| | | }) |
| | | }, |
| | | |
| | | handlePartsAddRelative(modalTitle) { |
| | | this.title = modalTitle |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add() |
| | | }) |
| | | }, |
| | | |
| | | handleProcessEdit(modalTitle) { |
| | | this.title = modalTitle |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.edit(this.currentTreeNodeInfo.entity) |
| | | }) |
| | | }, |
| | | |
| | | handleOk() { |
| | | this.$refs.realForm.submitForm() |
| | | }, |
| | | |
| | | submitCallback() { |
| | | this.$emit('ok') |
| | | this.visible = false |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | }, |
| | | |
| | | triggerCorrespondingMethod({ methodName, modalTitle }) { |
| | | if (this[methodName]) this[methodName](modalTitle) |
| | | } |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥åºå·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processCode"> |
| | | <a-form-model-item label="å·¥åºå·" prop="processCode"> |
| | | <a-input v-model="model.processCode" placeholder="请è¾å
¥å·¥åºå·"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥åºåç§°" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processName"> |
| | | <a-form-model-item label="å·¥åºåç§°" prop="processName"> |
| | | <a-input v-model="model.processName" placeholder="请è¾å
¥å·¥åºåç§°"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥èºç¼å·" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-model-item label="å·¥èºç¼å·"> |
| | | <a-input v-model="model.craftNo" placeholder="请è¾å
¥å·¥èºç¼å·"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥èºè§ç¨çæ¬" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-model-item label="å·¥èºè§ç¨çæ¬"> |
| | | <a-input v-model="model.craftVersion" placeholder="请è¾å
¥å·¥èºè§ç¨çæ¬"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥åºç±»å" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-model-item label="å·¥åºç±»å"> |
| | | <a-input v-model="model.processType" placeholder="请è¾å
¥å·¥åºç±»å"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥åºæè¿°" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-model-item label="å·¥åºæè¿°"> |
| | | <a-input v-model="model.description" placeholder="请è¾å
¥å·¥åºæè¿°"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥è£
ç¼å·" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-model-item label="å·¥è£
ç¼å·"> |
| | | <a-input v-model="model.assembleStep" placeholder="请è¾å
¥å·¥è£
ç¼å·"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥è£
åç§°" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-model-item label="å·¥è£
åç§°"> |
| | | <a-input v-model="model.assembleName" placeholder="请è¾å
¥å·¥è£
åç§°"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | equipmentIds: [ |
| | | { required: true, message: 'è¯·éæ©è®¾å¤!' } |
| | | processCode: [ |
| | | { required: true, message: '请è¾å
¥å·¥åºå·!' } |
| | | ], |
| | | partId: [ |
| | | { required: true, message: '请è¾å
¥é¶ä»¶å·!' } |
| | | ], |
| | | standardProcessLong: [ |
| | | { required: true, message: '请è¾å
¥æ åå 工工æ¶(min)!' } |
| | | ], |
| | | processCount: [ |
| | | { required: true, message: '请è¾å
¥å å·¥é¶ä»¶æ°é!' } |
| | | ], |
| | | passCount: [ |
| | | { required: true, message: '请è¾å
¥åæ ¼é¶ä»¶æ°é!' } |
| | | ], |
| | | theDate: [ |
| | | { required: true, message: 'è¯·éæ©æ¥æ!' } |
| | | processName: [ |
| | | { required: true, message: '请è¾å
¥å·¥åºåç§°!' } |
| | | ] |
| | | }, |
| | | url: { |
| | |
| | | this.model = Object.assign({}, { equipmentIds: record.equipmentId }, record) |
| | | console.log('model', this.model) |
| | | this.visible = true |
| | | }, |
| | | inputNumberChange() { |
| | | if (this.model.standardProcessLong && this.model.processCount) { |
| | | this.model.totalProcessLong = this.model.standardProcessLong * this.model.processCount |
| | | } |
| | | }, |
| | | submitForm() { |
| | | const that = this |
| | |
| | | <template> |
| | | <div> |
| | | |
| | | </div> |
| | | <a-descriptions bordered :size="size"> |
| | | <a-descriptions-item label="å·¥æ¥åç§°">{{currentLevelDetails.processName}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥æ¥å·">{{currentLevelDetails.processCode}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥èºç¼å· ">{{currentLevelDetails.craftNo}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥åºç±»å">{{currentLevelDetails.processType}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤åå·">{{currentLevelDetails.processingEquipmentModel}} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤ç±»å">{{currentLevelDetails.processingEquipmentOs}}</a-descriptions-item> |
| | | <a-descriptions-item label="å 工设å¤ç¼å·">{{currentLevelDetails.processingEquipmentCode}} |
| | | </a-descriptions-item> |
| | | <a-descriptions-item label="å·¥è£
ç¼å·">{{currentLevelDetails.assembleStep}}</a-descriptions-item> |
| | | <a-descriptions-item label="å·¥è£
åç§° ">{{currentLevelDetails.assembleName}}</a-descriptions-item> |
| | | <a-descriptions-item label="æè¿°" :span="3">{{currentLevelDetails.description}}</a-descriptions-item> |
| | | </a-descriptions> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'ProcessStepInfo', |
| | | components: {}, |
| | | props: { |
| | | currentLevelDetails: { |
| | | type: Object |
| | | }, |
| | | size: { |
| | | type: String |
| | | } |
| | | }, |
| | | data() { |
| | | return {} |
| | | }, |
| | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="产ååå·"> |
| | | <a-textarea v-model="model.productModel" placeholder="请è¾å
¥äº§ååå·"></a-textarea> |
| | | <a-input v-model="model.productModel" placeholder="请è¾å
¥äº§ååå·"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | <PartInfo :currentLevelDetails="currentLevelInfo.entity" :size="descriptionsContainerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="1" tab="å·¥åºå±æ§" v-if="currentLevelInfo.hasOwnProperty('processType')"> |
| | | <a-tab-pane :key="1" tab="å·¥åºå±æ§" v-if="currentLevelInfo.type===4"> |
| | | <ProcessInfo :currentLevelDetails="currentLevelInfo" :size="descriptionsContainerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="1" tab="å·¥æ¥å±æ§" v-if="currentLevelInfo.type===5"> |
| | | <ProcessStepInfo :currentLevelDetails="currentLevelInfo" :size="descriptionsContainerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <template v-if="currentLevelInfo.hasOwnProperty('attributionType')"> |
| | |
| | | import ProcessInfo from './Process/ProcessInfo' |
| | | import DocumentInfo from './Document/DocumentInfo' |
| | | import DocumentVersionTableList from './Document/DocumentVersionTableList' |
| | | import UseDocumentEquipmentTableList from './Document/UseDocumentEquipmentTableList' |
| | | import UseDocumentEquipmentTableList from './Document/UseNcDocumentEquipmentTableList' |
| | | import ProcessStepInfo from './ProcessStep/ProcessStepInfo' |
| | | |
| | | export default { |
| | | name: 'ProductStructureMainBottom', |
| | | components: { |
| | | ProcessStepInfo, |
| | | UseDocumentEquipmentTableList, |
| | | DocumentVersionTableList, |
| | | DocumentInfo, |
| | |
| | | <OtherDocumentTableList @handleTableContextMenuOpen="handleTableContextMenuOpen" :size="tableContainerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <TableContextMenu :currentTableRowInfo="currentTableRowInfo" ref="tableContextMenuRef"/> |
| | | <TableContextMenu :tableRowInfo="currentRightClickedTableRowInfo" ref="tableContextMenuRef"/> |
| | | </a-tabs> |
| | | </template> |
| | | |
| | | <script> |
| | | import ProcessTableList from './Process/ProcessTableList' |
| | | import NcDocumentTableList from './Document/NcDocumentTableList' |
| | | import OtherDocumentTableList from './Document/OtherDocumentTableList' |
| | | import TableContextMenu from '../../../common/TableContextMenu' |
| | | |
| | | export default { |
| | | name: 'ProductStructureMainTop', |
| | | components: { TableContextMenu, OtherDocumentTableList, NcDocumentTableList, ProcessTableList }, |
| | | components: { TableContextMenu, OtherDocumentTableList, NcDocumentTableList }, |
| | | data() { |
| | | return { |
| | | activeTabKey: '1', |
| | | tableContainerSize: 'small', |
| | | currentTableRowInfo: {}, |
| | | currentRightClickedTableRowInfo: {}, |
| | | currentTreeNodeInfo: {} |
| | | } |
| | | }, |
| | |
| | | * @param record å½åè¡¨æ ¼è¡ä¿¡æ¯ |
| | | */ |
| | | handleTableContextMenuOpen(record) { |
| | | this.currentTableRowInfo = Object.assign({}, record) |
| | | this.currentRightClickedTableRowInfo = Object.assign({}, record) |
| | | this.$refs.tableContextMenuRef.currentMenuLevel = record.param |
| | | this.$refs.tableContextMenuRef.menuStyle.top = event.clientY + 'px' |
| | | this.$refs.tableContextMenuRef.menuStyle.left = event.clientX + 'px' |
| | |
| | | }, |
| | | created() { |
| | | this.$bus.$on('treeMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | this.$bus.$on('tableMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | | methods: { |
| | | handleImport(modalTitle) { |
| | |
| | | <a-icon slot="product" type="shopping"/> |
| | | <a-icon slot="component" type="camera"/> |
| | | <a-icon slot="part" type="hdd"/> |
| | | <a-icon slot="process" type="apartment"/> |
| | | <a-icon slot="processStep" type="tool"/> |
| | | </a-tree> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <!--产åå¼¹çª--> |
| | | <ProductModal ref="productModalFormRef" :currentTreeNodeInfo="rightClickSelected"/> |
| | | <!--é¶ä»¶å¼¹çª--> |
| | | <!--é¨ä»¶å¼¹çª--> |
| | | <ComponentModal :currentTreeNodeInfo="rightClickSelected"/> |
| | | <!--导å
¥æä»¶å
Œ
±å¼¹çª--> |
| | | <ImportFileModal/> |
| | | <!--é¶ä»¶å¼¹çª--> |
| | | <PartModal :currentTreeNodeInfo="rightClickSelected"/> |
| | | <!--å·¥åºå¼¹çª--> |
| | | <ProcessModal :currentTreeNodeInfo="rightClickSelected"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { deleteAction } from '@/api/manage' |
| | | import { mapActions } from 'vuex' |
| | | import dncApi from '@/api/dnc' |
| | | import ProductStructureTreeContextMenu from './modules/ProductStructureTree/ProductStructureTreeContextMenu' |
| | | import ProductModal from '../base/modules/ProductStructure/Product/ProductModal' |
| | | import ImportFileModal from './ImportFileModal' |
| | | import ComponentModal from '../base/modules/ProductStructure/Component/ComponentModal' |
| | | import PartModal from '../base/modules/ProductStructure/Part/PartModal' |
| | | import ProcessModal from '../base/modules/ProductStructure/Process/ProcessModal' |
| | | |
| | | export default { |
| | | name: 'ProductStructureTree', |
| | | components: { |
| | | ProcessModal, |
| | | PartModal, |
| | | ComponentModal, |
| | | ImportFileModal, |
| | | ProductModal, |
| | | ProductStructureTreeContextMenu |
| | | }, |
| | |
| | | this.$bus.$on('treeMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | | methods: { |
| | | ...mapActions(['QueryProduction']), |
| | | |
| | | queryTreeData() { |
| | | this.loading = true |
| | | this.cardLoading = true |
| | | this.QueryProduction().then(res => { |
| | | dncApi.getProductStructureTreeApi().then(res => { |
| | | console.log('res', res) |
| | | if (res.success) { |
| | | this.dataList = [] |
| | | this.allTreeKeys = [] |
| | | // this.treeDataSource = res.result |
| | | this.treeDataSource = [ |
| | | { |
| | | 'id': '1869253349344432129', |
| | | 'label': '[让å¤äºº]æµè¯', |
| | | 'iconClass': '', |
| | | 'parentId': '1869253349344432129', |
| | | 'children': [ |
| | | { |
| | | 'id': '1869254044432879617', |
| | | 'label': '[378]qgwqg', |
| | | 'iconClass': '', |
| | | 'parentId': '1869253349344432129', |
| | | 'children': [ |
| | | { |
| | | 'id': '1869260302133137410', |
| | | 'label': '[ggjuk]è°è°å»', |
| | | 'iconClass': '', |
| | | 'parentId': '1869254044432879617', |
| | | 'children': [ |
| | | { |
| | | 'id': '1869294654070075393', |
| | | 'label': '[8989]qwfq', |
| | | 'iconClass': '', |
| | | 'parentId': '1869260302133137410', |
| | | 'children': null, |
| | | 'type': 2, |
| | | 'entity': { |
| | | 'componentId': '1869294654070075393', |
| | | 'parentId': '1869260302133137410', |
| | | 'productId': '1869253349344432129', |
| | | 'componentName': 'qwfq', |
| | | 'materielCode': '', |
| | | 'materielDesp': '', |
| | | 'componentModel': '', |
| | | 'componentScale': '', |
| | | 'componentWeight': null, |
| | | 'rankLevel': 3, |
| | | 'assembleType': null, |
| | | 'produceType': null, |
| | | 'processType': null, |
| | | 'structureType': null, |
| | | 'componentCode': '8989', |
| | | 'componentStatus': 1, |
| | | 'description': '', |
| | | 'createTime': '2024-12-18 16:12:30', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': '' |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': '1869253349344432129' |
| | | }, |
| | | { |
| | | 'id': '1869294701801254913', |
| | | 'label': '[888]7878', |
| | | 'iconClass': '', |
| | | 'parentId': '1869260302133137410', |
| | | 'children': null, |
| | | 'type': 2, |
| | | 'entity': { |
| | | 'componentId': '1869294701801254913', |
| | | 'parentId': '1869260302133137410', |
| | | 'productId': '1869253349344432129', |
| | | 'componentName': '7878', |
| | | 'materielCode': '', |
| | | 'materielDesp': '', |
| | | 'componentModel': '', |
| | | 'componentScale': '', |
| | | 'componentWeight': null, |
| | | 'rankLevel': 3, |
| | | 'assembleType': null, |
| | | 'produceType': null, |
| | | 'processType': null, |
| | | 'structureType': null, |
| | | 'componentCode': '888', |
| | | 'componentStatus': 1, |
| | | 'description': '', |
| | | 'createTime': '2024-12-18 16:12:41', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': '' |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': '1869253349344432129' |
| | | }, |
| | | { |
| | | 'id': '1869294780935188482', |
| | | 'label': '[6855]ww', |
| | | 'iconClass': '', |
| | | 'parentId': '1869260302133137410', |
| | | 'children': null, |
| | | 'type': 2, |
| | | 'entity': { |
| | | 'componentId': '1869294780935188482', |
| | | 'parentId': '1869260302133137410', |
| | | 'productId': '1869253349344432129', |
| | | 'componentName': 'ww', |
| | | 'materielCode': '', |
| | | 'materielDesp': '', |
| | | 'componentModel': '', |
| | | 'componentScale': '', |
| | | 'componentWeight': null, |
| | | 'rankLevel': 3, |
| | | 'assembleType': null, |
| | | 'produceType': null, |
| | | 'processType': null, |
| | | 'structureType': null, |
| | | 'componentCode': '6855', |
| | | 'componentStatus': 1, |
| | | 'description': '', |
| | | 'createTime': '2024-12-18 16:13:00', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': '' |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': '1869253349344432129' |
| | | }, |
| | | { |
| | | 'id': '1876199480437153794', |
| | | 'label': '[354]zzzzzzzzzzzzzzzzz', |
| | | 'iconClass': '', |
| | | 'parentId': '1869260302133137410', |
| | | 'children': null, |
| | | 'type': 3, |
| | | 'entity': { |
| | | 'partsId': '1876199480437153794', |
| | | 'partsName': 'zzzzzzzzzzzzzzzzz', |
| | | 'productId': '1869253349344432129', |
| | | 'componentId': '1869260302133137410', |
| | | 'materielCode': '', |
| | | 'materielDesp': '', |
| | | 'partsModel': '', |
| | | 'partsScale': '', |
| | | 'partsWeight': null, |
| | | 'assembleType': null, |
| | | 'produceType': null, |
| | | 'processType': null, |
| | | 'structureType': null, |
| | | 'partsCode': '354', |
| | | 'partsStatus': 1, |
| | | 'description': '', |
| | | 'createTime': '2025-01-06 17:29:49', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': '' |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': '1869260302133137410' |
| | | } |
| | | ], |
| | | 'type': 2, |
| | | 'entity': { |
| | | 'componentId': '1869260302133137410', |
| | | 'parentId': '1869254044432879617', |
| | | 'productId': '1869253349344432129', |
| | | 'componentName': 'è°è°å»', |
| | | 'materielCode': '', |
| | | 'materielDesp': '', |
| | | 'componentModel': '', |
| | | 'componentScale': '', |
| | | 'componentWeight': null, |
| | | 'rankLevel': 2, |
| | | 'assembleType': null, |
| | | 'produceType': null, |
| | | 'processType': null, |
| | | 'structureType': null, |
| | | 'componentCode': 'ggjuk', |
| | | 'componentStatus': 1, |
| | | 'description': '', |
| | | 'createTime': '2024-12-18 13:56:00', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': '' |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': '1869253349344432129' |
| | | } |
| | | ], |
| | | 'type': 2, |
| | | 'entity': { |
| | | 'componentId': '1869254044432879617', |
| | | 'parentId': null, |
| | | 'productId': '1869253349344432129', |
| | | 'componentName': 'qgwqg', |
| | | 'materielCode': '', |
| | | 'materielDesp': '', |
| | | 'componentModel': '', |
| | | 'componentScale': '', |
| | | 'componentWeight': null, |
| | | 'rankLevel': 1, |
| | | 'assembleType': null, |
| | | 'produceType': null, |
| | | 'processType': null, |
| | | 'structureType': null, |
| | | 'componentCode': '378', |
| | | 'componentStatus': 1, |
| | | 'description': '88', |
| | | 'createTime': '2022-12-18 13:32:48', |
| | | 'updateTime': '2024-12-18 13:32:48', |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': '1254966905669160962' |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': '1869253349344432129' |
| | | }, |
| | | { |
| | | 'id': '1869253419041181697', |
| | | 'label': '[876]为å
¨å½åäºç»', |
| | | 'iconClass': '', |
| | | 'parentId': '1869253349344432129', |
| | | 'children': null, |
| | | 'type': 2, |
| | | 'entity': { |
| | | 'componentId': '1869253419041181697', |
| | | 'parentId': null, |
| | | 'productId': '1869253349344432129', |
| | | 'componentName': '为å
¨å½åäºç»', |
| | | 'materielCode': '', |
| | | 'materielDesp': '', |
| | | 'componentModel': '56', |
| | | 'componentScale': '', |
| | | 'componentWeight': null, |
| | | 'rankLevel': 1, |
| | | 'assembleType': null, |
| | | 'produceType': null, |
| | | 'processType': null, |
| | | 'structureType': null, |
| | | 'componentCode': '876', |
| | | 'componentStatus': 1, |
| | | 'description': '', |
| | | 'createTime': '2024-12-18 13:28:39', |
| | | 'updateTime': '2024-12-18 14:03:55', |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': '1254966905669160962' |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': '1869253349344432129' |
| | | }, |
| | | { |
| | | 'id': '1869294861876867073', |
| | | 'label': '[777]he', |
| | | 'iconClass': '', |
| | | 'parentId': '1869253349344432129', |
| | | 'children': [ |
| | | { |
| | | 'id': '1876087437913108481', |
| | | 'label': '[ddd]åç»´æ¤', |
| | | 'iconClass': '', |
| | | 'parentId': '1869294861876867073', |
| | | 'children': null, |
| | | 'type': 2, |
| | | 'entity': { |
| | | 'componentId': '1876087437913108481', |
| | | 'parentId': '1869294861876867073', |
| | | 'productId': '1869253349344432129', |
| | | 'componentName': 'åç»´æ¤', |
| | | 'materielCode': '', |
| | | 'materielDesp': '', |
| | | 'componentModel': '', |
| | | 'componentScale': '', |
| | | 'componentWeight': null, |
| | | 'rankLevel': 2, |
| | | 'assembleType': null, |
| | | 'produceType': null, |
| | | 'processType': null, |
| | | 'structureType': null, |
| | | 'componentCode': 'ddd', |
| | | 'componentStatus': 1, |
| | | 'description': '', |
| | | 'createTime': '2025-01-06 10:04:36', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': '' |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': '1869253349344432129' |
| | | } |
| | | ], |
| | | 'type': 2, |
| | | 'entity': { |
| | | 'componentId': '1869294861876867073', |
| | | 'parentId': null, |
| | | 'productId': '1869253349344432129', |
| | | 'componentName': 'he', |
| | | 'materielCode': '', |
| | | 'materielDesp': '', |
| | | 'componentModel': '', |
| | | 'componentScale': '', |
| | | 'componentWeight': null, |
| | | 'rankLevel': 1, |
| | | 'assembleType': null, |
| | | 'produceType': null, |
| | | 'processType': null, |
| | | 'structureType': null, |
| | | 'componentCode': '777', |
| | | 'componentStatus': 1, |
| | | 'description': '', |
| | | 'createTime': '2024-12-18 16:13:20', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': '' |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': '1869253349344432129' |
| | | } |
| | | ], |
| | | 'type': 1, |
| | | 'entity': { |
| | | 'productId': '1869253349344432129', |
| | | 'productNo': '让å¤äºº', |
| | | 'productModel': '', |
| | | 'productName': 'æµè¯', |
| | | 'productStatus': 1, |
| | | 'createTime': '2024-12-18 13:28:22', |
| | | 'updateTime': null, |
| | | 'createUser': '1254966905669160962', |
| | | 'updateUser': null |
| | | }, |
| | | 'leaf': false, |
| | | 'rfield': null |
| | | } |
| | | ] |
| | | this.treeDataSource = res.list |
| | | this.generateList(this.treeDataSource) |
| | | // this.expandedKeys = this.allTreeKeys |
| | | this.expandedKeys = [this.treeDataSource[0].id] |
| | |
| | | return |
| | | } |
| | | const that = this |
| | | deleteAction(that.url.delete, { id: this.rightClickSelected.id }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.queryTreeData() |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | // deleteAction(that.url.delete, { id: this.rightClickSelected.id }) |
| | | // .then((res) => { |
| | | // if (res.success) { |
| | | // that.queryTreeData() |
| | | // that.$notification.success({ |
| | | // message: 'æ¶æ¯', |
| | | // description: res.message |
| | | // }) |
| | | // } else { |
| | | // that.$notification.warning({ |
| | | // message: 'æ¶æ¯', |
| | | // description: res.message |
| | | // }) |
| | | // } |
| | | // }) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | case 3: |
| | | treeNode.slots = { icon: 'part' } |
| | | break |
| | | case 4: |
| | | treeNode.slots = { icon: 'process' } |
| | | break |
| | | case 5: |
| | | treeNode.slots = { icon: 'processStep' } |
| | | break |
| | | default: |
| | | } |
| | | } |
| | |
| | | name: 'TableContextMenu', |
| | | components: {}, |
| | | props: { |
| | | currentTableRowInfo: { |
| | | tableRowInfo: { |
| | | type: Object |
| | | } |
| | | }, |
| | |
| | | defaultContextMenuList: { |
| | | //ææ¡£ |
| | | document: [ |
| | | { show: true, label: 'ç¼è¾ææ¡£ä¿¡æ¯', code: 'document_edit', subMenu: [], icon: 'edit' }, |
| | | { show: true, label: 'ææ´¾å°è®¾å¤', code: 'document_assign', subMenu: [], icon: 'cluster' }, |
| | | { show: false, label: '导åºNCç¨åº', code: 'document_export', subMenu: [], icon: 'export' }, |
| | | { show: true, label: '导å
¥NCç¨åº', code: 'document_import', subMenu: [], icon: 'import' }, |
| | | { show: true, label: 'ä¸è½½', code: 'document_download', subMenu: [], icon: 'download' }, |
| | | { show: true, label: 'å é¤', code: 'document_delete', subMenu: [], icon: 'delete' }, |
| | | { show: true, label: 'æ¹éå é¤', code: 'document_batch_remove', subMenu: [], icon: 'delete' }, |
| | | { show: true, label: 'ç¼è¾ææ¡£ä¿¡æ¯', code: 'document_edit', subMenu: [], icon: 'edit', isCommonMethod: false }, |
| | | { |
| | | show: true, |
| | | label: 'ææ´¾å°è®¾å¤', |
| | | code: 'document_assign', |
| | | subMenu: [], |
| | | icon: 'cluster', |
| | | isCommonMethod: false |
| | | }, |
| | | { |
| | | show: false, |
| | | label: '导åºNCç¨åº', |
| | | code: 'document_export', |
| | | subMenu: [], |
| | | icon: 'export', |
| | | isCommonMethod: true |
| | | }, |
| | | { show: true, label: '导å
¥NCç¨åº', code: 'document_import', subMenu: [], icon: 'import', isCommonMethod: true }, |
| | | { show: true, label: 'ä¸è½½', code: 'document_download', subMenu: [], icon: 'download', isCommonMethod: true }, |
| | | { show: true, label: 'å é¤', code: 'document_delete', subMenu: [], icon: 'delete', isCommonMethod: true }, |
| | | { |
| | | show: true, |
| | | label: 'æ¹éå é¤', |
| | | code: 'document_batch_remove', |
| | | subMenu: [], |
| | | icon: 'delete', |
| | | isCommonMethod: false |
| | | }, |
| | | { |
| | | show: true, |
| | | label: 'çå½å¨æ', |
| | | subMenu: [ |
| | | { show: true, label: 'åºåº', code: 'document_pull', icon: 'export' }, |
| | | { show: true, label: 'åæ¶åºåº', code: 'document_cancel_pull', icon: 'stop' }, |
| | | { show: true, label: 'å
¥åº', code: 'document_push', icon: 'import' }, |
| | | { show: true, label: 'åå¸', code: 'document_publish', icon: 'flag' }, |
| | | { show: true, label: 'éæ°åå¸', code: 'document_republish', icon: 'reload' }, |
| | | { show: true, label: '彿¡£', code: 'document_pigeonhole', icon: 'database' } |
| | | { show: true, label: 'åºåº', code: 'document_pull', icon: 'export', isCommonMethod: false }, |
| | | { show: true, label: 'åæ¶åºåº', code: 'document_cancel_pull', icon: 'stop', isCommonMethod: false }, |
| | | { show: true, label: 'å
¥åº', code: 'document_push', icon: 'import', isCommonMethod: true }, |
| | | { show: true, label: 'åå¸', code: 'document_publish', icon: 'flag', isCommonMethod: false }, |
| | | { show: true, label: 'éæ°åå¸', code: 'document_republish', icon: 'reload', isCommonMethod: false }, |
| | | { show: true, label: '彿¡£', code: 'document_pigeonhole', icon: 'database', isCommonMethod: false } |
| | | ], |
| | | icon: 'delete' |
| | | icon: 'hourglass' |
| | | } |
| | | ] |
| | | } |
| | |
| | | }, |
| | | methods: { |
| | | menuItemClick({ item, key }) { |
| | | // process_add => handleProcessAdd 触å对åºç»ä»¶äºä»¶ |
| | | const methodName = 'handle' + key.split('_').map(item => item[0].toUpperCase() + item.slice(1)).join('') |
| | | const menuKeyArray = key.split('_') |
| | | const isCommonMethod = this.defaultContextMenuList[this.currentMenuLevel].find(item => item.code === key).isCommonMethod |
| | | let methodName |
| | | // 夿æ¯å¦ä¸ºå
Œ
±æ¹æ³ï¼å¦æä¸ºå
Œ
±æ¹æ³åæªå䏿屿§product/component/part/processçåæ®µ |
| | | if (isCommonMethod) { |
| | | // product_add => handleAdd 触åå
Œ
±ç¶çº§ç»ä»¶äºä»¶ |
| | | methodName = 'handle' + menuKeyArray.map(item => item[0].toUpperCase() + item.slice(1)).slice(1).join('') |
| | | } else { |
| | | // product_add => handleProcessAdd 触å对åºç»ä»¶äºä»¶ |
| | | methodName = 'handle' + menuKeyArray.map(item => item[0].toUpperCase() + item.slice(1)).join('') |
| | | } |
| | | const modalTitle = this.defaultContextMenuList[this.currentMenuLevel].find(item => item.code === key).label |
| | | console.log('key', key) |
| | | this.$bus.$emit('menuItemMethodTrigger', { level: this.currentMenuLevel, methodName, modalTitle }) |
| | | console.log('methodName---------------------------------------', methodName) |
| | | console.log('tableRowInfo---------------------------------------', this.tableRowInfo) |
| | | this.$bus.$emit('tableMenuItemMethodTrigger', { |
| | | methodName, |
| | | modalTitle, |
| | | tableRowInfo: this.tableRowInfo |
| | | }) |
| | | } |
| | | } |
| | | } |