Browse Source

修改 client-eam export的组件。

杨志杰 3 years ago
parent
commit
3485230916
3 changed files with 51 additions and 36 deletions
  1. 5 1
      package.json
  2. 36 35
      src/index.js
  3. 10 0
      webpack.lib.js

+ 5 - 1
package.json

@@ -1,13 +1,17 @@
 {
   "name": "client-eam-v3",
   "description": "Leanwo Prodog Client",
-  "version": "1.0.0",
+  "version": "3.0.2",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "dev": "cross-env webpack serve --config ./webpack.dev.js",
     "build-lib": "cross-env NODE_ENV=production webpack --progress --config ./webpack.lib.js",
     "build": "cross-env NODE_ENV=production webpack --mode=production --config ./webpack.prod.js --progress"
   },
+  "files": [
+    "package.json",
+    "dist"
+  ],
   "peerDependencies": {
     "ant-design-vue": "^3.2.15",
     "moment": "^2.29.4",

+ 36 - 35
src/index.js

@@ -3,41 +3,42 @@ import $ from 'jquery';
 import langZhCn from './locales/zh-CN.json';
 import langEnUs from './locales/en-US.json';
 
-const HelloWorld = () => import(/* webpackChunkName: "component-1" */ './components/HelloWorld.vue');
-const AssetBasicSet = () => import(/* webpackChunkName: "component-2" */ './components/AssetBasicSetting.vue');
-const DepreciationDetailList = () => import(/* webpackChunkName: "component-3" */ './components/depreciation/DepreciationDetailList.vue');
-const DepreciationDistribution = () => import(/* webpackChunkName: "component-4" */ './components/depreciation/DepreciationDistribution.vue');
-const AssetWorkLoadInput = () => import(/* webpackChunkName: "component-5" */ './components/depreciation/AssetWorkLoadInput.vue');
-const SettleAccountAtTheEndOfMonth = () => import(/* webpackChunkName: "component-6" */ './components/depreciation/SettleAccountAtTheEndOfMonth.vue');
-const InventoryCheckLoss = () => import(/* webpackChunkName: "component-7" */ './components/inventory/InventoryCheckLoss.vue');
-const ConsolidatedAssetInventory = () => import(/* webpackChunkName: "component-8" */ './components/inventory/ConsolidatedAssetInventory.vue');
-const AutoGenerateAsset = () => import(/* webpackChunkName: "component-9" */ './components/customer/AutoGenerateAsset.vue');
-const AssetCheck = () => import(/* webpackChunkName: "component-10" */ './components/customer/AssetCheck.vue');
-const CustomPrintAssetInstance = () => import(/* webpackChunkName: "component-11" */ './components/customer/CustomPrintAssetInstance.vue');
-const CopyProperty = () => import(/* webpackChunkName: "component-12" */ './components/customer/CopyProperty.vue');
-const DataSync = () => import(/* webpackChunkName: "component-13" */ './components/customer/DataSync.vue');
-const DataSyncEdit = () => import(/* webpackChunkName: "component-14" */ './components/customer/DataSyncEdit.vue');
-const AssetDetailList = () => import(/* webpackChunkName: "component-15" */ './components/customer/AssetDetailList.vue');
-const AssetByRfid = () => import(/* webpackChunkName: "component-16" */ './components/customer/AssetByRfid.vue');
-const AssetInventorySearch = () => import(/* webpackChunkName: "component-17" */ './components/customer/AssetInventorySearch.vue');
-const AssetInventoryLostConfirm = () => import(/* webpackChunkName: "component-18" */ './components/customer/AssetInventoryLostConfirm.vue');
-const PrintAsset = () => import(/* webpackChunkName: "component-19" */ './components/print/PrintAsset.vue');
-const AssetBatchOperationQuery = () => import(/* webpackChunkName: "component-20" */ './components/archive/AssetBatchOperationQuery.vue');
-const AssetBatchOperationOrganization = () => import(/* webpackChunkName: "component-21" */ './components/archive/AssetBatchOperationOrganization.vue');
-const AssetBatchOperationScrap = () => import(/* webpackChunkName: "component-22" */ './components/archive/AssetBatchOperationScrap.vue');
-const AssetInstancePrint = () => import(/* webpackChunkName: "component-23" */ './components/customer/AssetInstancePrint.vue');
-const AssetInstanceSearchDetail = () => import(/* webpackChunkName: "component-24" */ './components/customer/AssetInstanceSearchDetail.vue');
-const GenerateDocumentTool = () => import(/* webpackChunkName: "component-25" */ './components/customer/GenerateDocumentTool.vue');
-const ExportPictureLibrary = () => import(/* webpackChunkName: "component-26" */ './components/customer/ExportPictureLibrary.vue');
-const AssetBatchOperationModifyUseStatus = () => import(/* webpackChunkName: "component-27" */ './components/archive/AssetBatchOperationModifyUseStatus.vue');
-const AssetBatchOperationModifyContact = () => import(/* webpackChunkName: "component-28" */ './components/archive/AssetBatchOperationModifyContact.vue');
-const PrintPreview = () => import(/* webpackChunkName: "component-29" */ './components/customer/PrintPreview.vue');
-const AssetInventory = () => import(/* webpackChunkName: "component-30" */ './components/customer/AssetInventory.vue');
-const AssetInventoryStep1 = () => import(/* webpackChunkName: "component-31" */ './components/customer/AssetInventoryStep1.vue');
-const ManuallyConfirmCountingData = () => import(/* webpackChunkName: "component-32" */ './components/customer/ManuallyConfirmCountingData.vue');
-const PerformInventoryTasks = () => import(/* webpackChunkName: "component-33" */ './components/customer/PerformInventoryTasks.vue');
-const InventoryDataProcessing = () => import(/* webpackChunkName: "component-34" */ './components/customer/InventoryDataProcessing.vue');
-const AssetLabelPrint = () => import(/* webpackChunkName: "component-35" */ './components/customer/AssetLabelPrint.vue');
+
+import HelloWorld from './components/HelloWorld.vue';
+import AssetBasicSet from  './components/AssetBasicSetting.vue';
+import DepreciationDetailList from  './components/depreciation/DepreciationDetailList.vue';
+import DepreciationDistribution from './components/depreciation/DepreciationDistribution.vue';
+import AssetWorkLoadInput from './components/depreciation/AssetWorkLoadInput.vue';
+import SettleAccountAtTheEndOfMonth from  './components/depreciation/SettleAccountAtTheEndOfMonth.vue';
+import InventoryCheckLoss from './components/inventory/InventoryCheckLoss.vue';
+import ConsolidatedAssetInventory from './components/inventory/ConsolidatedAssetInventory.vue';;
+import AutoGenerateAsset from './components/customer/AutoGenerateAsset.vue';
+import AssetCheck from './components/customer/AssetCheck.vue';
+import CustomPrintAssetInstance from './components/customer/CustomPrintAssetInstance.vue';
+import CopyProperty from  './components/customer/CopyProperty.vue';
+import DataSync from './components/customer/DataSync.vue';
+import DataSyncEdit from './components/customer/DataSyncEdit.vue';
+import AssetDetailList from './components/customer/AssetDetailList.vue';
+import AssetByRfid from './components/customer/AssetByRfid.vue';
+import AssetInventorySearch from './components/customer/AssetInventorySearch.vue';
+import AssetInventoryLostConfirm from './components/customer/AssetInventoryLostConfirm.vue';
+import PrintAsset from  './components/print/PrintAsset.vue';
+import AssetBatchOperationQuery from'./components/archive/AssetBatchOperationQuery.vue';
+import AssetBatchOperationOrganization from './components/archive/AssetBatchOperationOrganization.vue';
+import AssetBatchOperationScrap from './components/archive/AssetBatchOperationScrap.vue';
+import AssetInstancePrint from './components/customer/AssetInstancePrint.vue';
+import AssetInstanceSearchDetail from'./components/customer/AssetInstanceSearchDetail.vue';
+import GenerateDocumentTool from './components/customer/GenerateDocumentTool.vue';
+import ExportPictureLibrary from './components/customer/ExportPictureLibrary.vue';
+import AssetBatchOperationModifyUseStatus from './components/archive/AssetBatchOperationModifyUseStatus.vue';
+import AssetBatchOperationModifyContact from './components/archive/AssetBatchOperationModifyContact.vue';
+import PrintPreview from './components/customer/PrintPreview.vue';
+import AssetInventory from './components/customer/AssetInventory.vue';
+import AssetInventoryStep1 from './components/customer/AssetInventoryStep1.vue';
+import ManuallyConfirmCountingData from './components/customer/ManuallyConfirmCountingData.vue';
+import PerformInventoryTasks from './components/customer/PerformInventoryTasks.vue';
+import InventoryDataProcessing from './components/customer/InventoryDataProcessing.vue';
+import AssetLabelPrint from './components/customer/AssetLabelPrint.vue';
 
 
 export {

+ 10 - 0
webpack.lib.js

@@ -120,5 +120,15 @@ module.exports = WebpackMerge.merge(baseConfig,{
     "pc-component-v3": "pc-component-v3",
     "v-tooltip": "v-tooltip",
     "vue-select": "vue-select",
+
+    
+    'jquery': "jquery",
+    'bootstrap': 'bootstrap',
+    'BootstrapDialog': 'BootstrapDialog',
+    'vue': 'vue',
+    'vue-i18n': 'vue-i18n',
+    'vue-router': 'vue-router',
+    'vuex': 'vuex',
+
   },
 });