|
@@ -1,38 +1,15 @@
|
|
|
/**
|
|
/**
|
|
|
* 表单--封装自定义代码扩展接口
|
|
* 表单--封装自定义代码扩展接口
|
|
|
- *
|
|
|
|
|
- * <pre>
|
|
|
|
|
- * 作者:hugh zhuang
|
|
|
|
|
- * 邮箱:3378340995@qq.com
|
|
|
|
|
- * 日期:2017-10-01-下午3:29:34
|
|
|
|
|
- * 版权:广州流辰信息技术有限公司
|
|
|
|
|
- * </pre>
|
|
|
|
|
*/
|
|
*/
|
|
|
import _ from 'lodash'
|
|
import _ from 'lodash'
|
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
|
import request from '@/utils/request'
|
|
import request from '@/utils/request'
|
|
|
import dialog from '@/utils/dialog'
|
|
import dialog from '@/utils/dialog'
|
|
|
import common from '@/utils/common'
|
|
import common from '@/utils/common'
|
|
|
-import getserial from './custom/serialNumber' // 编码规则
|
|
|
|
|
-import pintText from './custom/pintText.js' // 打印规则
|
|
|
|
|
-import repostCurd from './custom/joinCURD.js' // 增删改查规则
|
|
|
|
|
-import getDate from './custom/getDateRule.js' // 获取年月日
|
|
|
|
|
-import {
|
|
|
|
|
- snapshoot,
|
|
|
|
|
- generateUUID,
|
|
|
|
|
- getFileByte,
|
|
|
|
|
- uploadFile
|
|
|
|
|
-} from '@/api/platform/file/attachment' // 印章,快照
|
|
|
|
|
|
|
+import sealApi from '@/utils/seal'
|
|
|
const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
|
|
const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
|
|
|
-import pinyin4js from 'pinyin4js'
|
|
|
|
|
import store from '@/store'
|
|
import store from '@/store'
|
|
|
import router from '@/router'
|
|
import router from '@/router'
|
|
|
-import { save } from '@/api/platform/message/innerMessage'
|
|
|
|
|
-import { get as getUserById } from '@/api/platform/org/user'
|
|
|
|
|
-
|
|
|
|
|
-import {
|
|
|
|
|
- goSeal, wordToPdf, sealByKeywords, docxToPdfAndSign, transferPDF
|
|
|
|
|
-} from '@/api/platform/form/seal' // ca电子签章接口
|
|
|
|
|
|
|
|
|
|
// 定义全局
|
|
// 定义全局
|
|
|
var JForm
|
|
var JForm
|
|
@@ -56,27 +33,13 @@ _.extend(JForm, {
|
|
|
this.$request = request
|
|
this.$request = request
|
|
|
this.$dialog = dialog
|
|
this.$dialog = dialog
|
|
|
this.$common = common
|
|
this.$common = common
|
|
|
|
|
+ this.$sealApi = sealApi
|
|
|
|
|
+ this.$router = router
|
|
|
|
|
+ this.$store = store
|
|
|
this.$import = _import
|
|
this.$import = _import
|
|
|
- this.$pyjs = pinyin4js
|
|
|
|
|
- this.$getDate = getDate // 获取封装好的年月日
|
|
|
|
|
- this.$getNumBer = getserial // 封装获取流水号
|
|
|
|
|
- this.$getPint = pintText // 封装打开报表
|
|
|
|
|
- this.$curdPost = repostCurd // 封装通用增删改查
|
|
|
|
|
- this.$snapshoot = snapshoot // 报表快照(经过润乾)
|
|
|
|
|
- this.$generateUUID = generateUUID // 自定义规则自动生成uuid
|
|
|
|
|
- this.$router = router // 添加router对象
|
|
|
|
|
- this.$save = save // 文件发放通知
|
|
|
|
|
- this.$goSeal = goSeal // ca电子签章接口
|
|
|
|
|
- this.$wordToPdf = wordToPdf // word转pdf
|
|
|
|
|
- this.$transferPDF = transferPDF // 转pdf,文件新增修订
|
|
|
|
|
- this.$sealByKeywords = sealByKeywords // 关键字盖章
|
|
|
|
|
- this.$getFileByte = getFileByte // 获取文件流
|
|
|
|
|
- this.$uploadFile = uploadFile // 文件上传接口
|
|
|
|
|
- this.$sign = docxToPdfAndSign
|
|
|
|
|
- this.$getUserById = getUserById
|
|
|
|
|
this._ = _
|
|
this._ = _
|
|
|
- this.$store = store
|
|
|
|
|
this._isInitialization = true
|
|
this._isInitialization = true
|
|
|
|
|
+ this.$loading = Vue.prototype.$loading
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 表单加载
|
|
// 表单加载
|