You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.9 KiB

2 years ago
import { createApp } from 'vue';
import website from './config/website';
import axios from './axios';
import router from './router/';
import store from './store';
import i18n from './lang/';
import { language, messages } from './lang/';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import ElementPlus from 'element-plus';
2 years ago
// import 'element-plus/dist/index.css';
2 years ago
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
import crudCommon from '@/mixins/crud.js';
import globalc from '@/api/basicdata/globalc.js';
import { getScreen, getHtmls } from './utils/util';
import functions from './utils/functions';
2 years ago
import './permission';
import error from './error';
import avueUeditor from 'avue-plugin-ueditor';
2 years ago
import basicBlock from 'components/basic-block/main.vue';
import basicContainer from 'components/basic-container/main.vue';
import thirdRegister from './components/third-register/main.vue';
import NfDesignBase from '@saber/nf-design-base-elp';
import flowDesign from './components/flow-design/main.vue';
import tablecmt from './components/tablecmt/tablecmt.vue';
import SelectBox from './components/SelectBox/SelectBox.vue';
import edittablehead from './components/edittablehead/index.vue';
2 years ago
import App from './App.vue';
import 'animate.css';
import dayjs from 'dayjs';
import 'styles/common.scss';
2 years ago
// import './styles/custom-theme.scss'
import './styles/index.scss';
import './styles/custom-theme.scss';
2 years ago
// 业务组件
import tenantPackage from './views/system/tenantpackage.vue';
2 years ago
window.$crudCommon = crudCommon;
window.axios = axios;
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
}
app.component('basicContainer', basicContainer);
app.component('basicBlock', basicBlock);
app.component('thirdRegister', thirdRegister);
app.component('flowDesign', flowDesign);
app.component('tenantPackage', tenantPackage);
app.component('tablecmt', tablecmt);
app.component('edittablehead', edittablehead);
app.component('SelectBox', SelectBox);
2 years ago
app.config.globalProperties.$dayjs = dayjs;
app.config.globalProperties.$functions = functions;
app.provide('functions', functions);
app.config.globalProperties.$globalc = globalc;
2 years ago
app.config.globalProperties.website = website;
app.config.globalProperties.getScreen = getScreen;
Squashed commit of the following: commit bb7cdb8d1e6c95cbc9150cec2d3634a4e1554180 Merge: fab70c4 cbb2a85 Author: big-y <804609860@qq.com> Date: Fri Aug 11 09:35:00 2023 +0800 Merge remote-tracking branch 'origin/dev' into dev # Conflicts: # src/views/distribution/inventory/distributionStockArticleDetails.vue commit cbb2a855b0ad8d211a0f6cd644ef1b0925ca19b7 Author: caoyizhong <1270296080@qq.com> Date: Thu Aug 10 22:14:50 2023 +0800 修改订单详细字段 commit 7b99fabb027b28d8f307b79ef71bf8c9b08d1566 Author: caoyizhong <1270296080@qq.com> Date: Thu Aug 10 21:36:15 2023 +0800 修改订单查询条件 commit 3d9a02978df8e0115cbead4d5b58171985a39791 Author: caoyizhong <1270296080@qq.com> Date: Thu Aug 10 20:41:59 2023 +0800 修改客户信息编辑编码校验 commit d8aa2f2c1d693721c4412cf238dbff106c5a1e7e Author: caoyizhong <1270296080@qq.com> Date: Thu Aug 10 19:39:39 2023 +0800 修改客户服务仓添加 commit fab70c4b27fbbe5e77133ca5902b75ec65a3d8c7 Author: big-y <804609860@qq.com> Date: Thu Aug 10 19:11:23 2023 +0800 标签渲染 commit ae4f8315959741b7db778804919b24825bb42f0d Author: big-y <804609860@qq.com> Date: Thu Aug 10 18:49:31 2023 +0800 标签渲染 commit 9cca1d753a662e4c7dcaa57573e81668c0d55624 Merge: 9aa102a b2e7078 Author: caoyizhong <1270296080@qq.com> Date: Thu Aug 10 17:30:00 2023 +0800 Merge remote-tracking branch 'origin/dev' into dev commit 9aa102af6dcb6a45cc6263641ef4b83fa46e0ed6 Author: caoyizhong <1270296080@qq.com> Date: Thu Aug 10 17:29:35 2023 +0800 修改班组添加操作 commit 5cbd76720706977e143a8419fd1af3e7f2fc8d1c Author: big-y <804609860@qq.com> Date: Thu Aug 10 16:19:29 2023 +0800 标签渲染 commit b2e7078fbe3297fffaa54926e533f809f2ac6546 Merge: 553e8d3 37356e4 Author: pref_mail@163.com <123456> Date: Thu Aug 10 14:33:28 2023 +0800 Merge branch 'dev' of http://47.108.105.48:3000/java_project/logpm_page into dev commit 553e8d3c4e0f7474c8d6e5f8a667a504ec6eab60 Author: pref_mail@163.com <123456> Date: Thu Aug 10 14:32:55 2023 +0800 没有修改二维码包间生成 commit 37356e4d770abad99969e7fd25b5f27d8a6f3517 Author: 0.0 <1092404103.qq.com> Date: Thu Aug 10 09:08:11 2023 +0800 1.隐藏按钮 commit 1272b45ea75a3c1a1ffa7411a55972dade77e8df Author: kilo <wan.ren@foxmail.com> Date: Wed Aug 9 21:56:21 2023 +0800 订单新增调整 commit e3c6e255ffbda3ff7d823b9014855ac1419b607e Author: 0.0 <1092404103.qq.com> Date: Wed Aug 9 21:40:34 2023 +0800 1.物料导出导入,托盘报损 commit b598c7054284296ec7ebe5fd73ef19b324dd18aa Author: caoyizhong <1270296080@qq.com> Date: Wed Aug 9 21:02:55 2023 +0800 修改批量补充物料 commit 47ab0850727b0581c9a427f8a5bc9f03769cfcc7 Author: caoyizhong <1270296080@qq.com> Date: Wed Aug 9 15:56:56 2023 +0800 添加订单字段 commit 921ea4ffd0d7689f517a3c7da529500352681053 Author: caoyizhong <1270296080@qq.com> Date: Wed Aug 9 14:02:16 2023 +0800 添加三方物料 commit d78b8a9da4bbba55cd44afac088abd2fc1d5c6ea Merge: 1b1efea 454ce4c Author: caoyizhong <1270296080@qq.com> Date: Wed Aug 9 11:30:36 2023 +0800 Merge remote-tracking branch 'origin/dev' into dev commit 1b1efea6a5327ee0375fe5596c4dddb803a48f1a Author: caoyizhong <1270296080@qq.com> Date: Wed Aug 9 11:30:31 2023 +0800 修改文字提醒
2 years ago
app.config.globalProperties.getHtmls = getHtmls;
2 years ago
app.use(error);
app.use(i18n);
2 years ago
app.use(store);
app.use(router);
app.use(ElementPlus, {
locale: messages[language],
});
app.use(Avue, {
axios,
calcHeight: 10,
locale: messages[language],
});
app.use(avueUeditor, { axios });
2 years ago
app.use(NfDesignBase);
1 year ago
// 按钮显示搜索或隐藏
app.directive('h5uShow', {
created(el, binding, vnode, prevVnode) {
el.classList.add('search_container');
el.style.gridTemplateRows = binding.value ? '1fr' : '0fr';
el.children[0].style.minHeight = 0;
},
updated(el, binding) {
el.style.gridTemplateRows = binding.value ? '1fr' : '0fr';
},
});
2 years ago
app.mount('#app');