doway-coms 2.10.11 → 2.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1701,7 +1701,8 @@ export default {
|
|
|
1701
1701
|
this.$emit('paste', row)
|
|
1702
1702
|
})
|
|
1703
1703
|
} else {
|
|
1704
|
-
|
|
1704
|
+
delete this.copySaveRow['_X_ROW_KEY']
|
|
1705
|
+
this.copySaveRow.id= this.$store.getters.newId() + ''
|
|
1705
1706
|
$table.insertAt(this.copySaveRow, -1)
|
|
1706
1707
|
.then(({ row }) => {
|
|
1707
1708
|
this.$emit('paste', row)
|
package/packages/utils/api.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import request from './request'
|
|
2
2
|
import store from './store'
|
|
3
3
|
import axios from 'axios'
|
|
4
|
-
export function loadViewInfo(
|
|
4
|
+
export function loadViewInfo(params) {
|
|
5
5
|
return request({
|
|
6
6
|
url: store.getters.umsUrl + '/v1/module/loadViewInfo',
|
|
7
7
|
method: 'get',
|
|
8
|
-
params
|
|
9
|
-
moduleCode: moduleCode
|
|
10
|
-
}
|
|
8
|
+
params
|
|
11
9
|
})
|
|
12
10
|
}
|
|
13
11
|
export function loadLangInfo(moduleCode,moduleLangCacheHash) {
|
|
@@ -105,4 +103,4 @@ export function userResetApi(data) {
|
|
|
105
103
|
method: 'get',
|
|
106
104
|
params: data
|
|
107
105
|
})
|
|
108
|
-
}
|
|
106
|
+
}
|
package/packages/utils/common.js
CHANGED
|
@@ -59,7 +59,7 @@ export function replaceParamString(
|
|
|
59
59
|
tempStr = tempStr.substr(
|
|
60
60
|
tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
|
|
61
61
|
)
|
|
62
|
-
|
|
62
|
+
|
|
63
63
|
if (typeof tempReplaceValue === 'string') {
|
|
64
64
|
paramString = paramString.replace(
|
|
65
65
|
tempReplaceParam,
|
|
@@ -73,7 +73,7 @@ export function replaceParamString(
|
|
|
73
73
|
}
|
|
74
74
|
return paramString
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
/**
|
|
78
78
|
* 替换掩码参数字符串
|
|
79
79
|
* @param {参数字符串} paramString
|
|
@@ -104,7 +104,7 @@ export function replaceParamString(
|
|
|
104
104
|
tempStr = tempStr.substr(
|
|
105
105
|
tempStr.indexOf(tempReplaceParam) + tempReplaceParam.length
|
|
106
106
|
)
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
// if (typeof tempReplaceValue === 'string') {
|
|
109
109
|
// paramString = paramString.replace(
|
|
110
110
|
// tempReplaceParam,
|
|
@@ -239,7 +239,7 @@ export function replaceParamString(
|
|
|
239
239
|
const gridErrors = await gridView.fullValidate()
|
|
240
240
|
return gridErrors
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
|
|
243
243
|
export function routeBeforeEach(to, from, next){
|
|
244
244
|
if(to.params.aliveCacheKey){
|
|
245
245
|
to.meta['aliveCacheKey'] = to.params.aliveCacheKey
|
|
@@ -263,7 +263,7 @@ export function replaceParamString(
|
|
|
263
263
|
// next()
|
|
264
264
|
// }))
|
|
265
265
|
store
|
|
266
|
-
.dispatch('moduleLoadViewInfo', { moduleCode: to.meta.moduleCode })
|
|
266
|
+
.dispatch('moduleLoadViewInfo', { moduleCode: to.meta.moduleCode,companyId: store.getters.company.id })
|
|
267
267
|
.then(() => {
|
|
268
268
|
next()
|
|
269
269
|
})
|
|
@@ -493,7 +493,7 @@ export function custUnitPriceNotTaxAmount(rowInfo, taxRate, colInfo) {
|
|
|
493
493
|
}
|
|
494
494
|
/**
|
|
495
495
|
* 设置行业属性字段信息
|
|
496
|
-
* @param {字段} fields
|
|
496
|
+
* @param {字段} fields
|
|
497
497
|
*/
|
|
498
498
|
export function setIndustryVersionFields(fields){
|
|
499
499
|
let length = fields.length
|
|
@@ -614,9 +614,9 @@ export function getGridPagerButton(datas,dataCode){
|
|
|
614
614
|
}
|
|
615
615
|
/**
|
|
616
616
|
* 获取最大排序步长
|
|
617
|
-
* @param {} datas
|
|
618
|
-
* @param {*} fieldCode
|
|
619
|
-
* @param {*} step
|
|
617
|
+
* @param {} datas
|
|
618
|
+
* @param {*} fieldCode
|
|
619
|
+
* @param {*} step
|
|
620
620
|
*/
|
|
621
621
|
export function getStepMaxValue(datas,fieldCode,step){
|
|
622
622
|
let tempSortStep = step
|
|
@@ -633,4 +633,4 @@ export function getStepMaxValue(datas,fieldCode,step){
|
|
|
633
633
|
tempDtlMaxSort = XEUtils.add(tempDtlMaxSort, 1)
|
|
634
634
|
tempDtlMaxSort = XEUtils.multiply(tempDtlMaxSort, tempSortStep)
|
|
635
635
|
return tempDtlMaxSort
|
|
636
|
-
}
|
|
636
|
+
}
|
package/packages/utils/store.js
CHANGED
|
@@ -30,6 +30,7 @@ export default new Vuex.Store({
|
|
|
30
30
|
userId: '',
|
|
31
31
|
userName: '',
|
|
32
32
|
staffId: '',
|
|
33
|
+
company: {},
|
|
33
34
|
},
|
|
34
35
|
mutations: {
|
|
35
36
|
SET_TOKEN: (state, token) => {
|
|
@@ -187,6 +188,9 @@ export default new Vuex.Store({
|
|
|
187
188
|
SET_DEFAULT_DEP: (state, defaultDep) => {
|
|
188
189
|
state.defaultDep = defaultDep
|
|
189
190
|
},
|
|
191
|
+
SET_COMPANY: (state, company) => {
|
|
192
|
+
state.company = company
|
|
193
|
+
},
|
|
190
194
|
},
|
|
191
195
|
actions: {
|
|
192
196
|
/**
|
|
@@ -231,7 +235,10 @@ export default new Vuex.Store({
|
|
|
231
235
|
moduleLoadViewInfo({commit, state}, dataInfo) {
|
|
232
236
|
let vm = this
|
|
233
237
|
return new Promise((resolve, reject) => {
|
|
234
|
-
loadViewInfo(
|
|
238
|
+
loadViewInfo({
|
|
239
|
+
moduleCode: dataInfo.moduleCode,
|
|
240
|
+
companyId: dataInfo.companyId,
|
|
241
|
+
})
|
|
235
242
|
.then(reponseData => {
|
|
236
243
|
commit('SET_MODULE_VIEW_INFO', {
|
|
237
244
|
moduleCode: dataInfo.moduleCode,
|
|
@@ -312,6 +319,7 @@ export default new Vuex.Store({
|
|
|
312
319
|
userName: state => state.userName,
|
|
313
320
|
staffId: state => state.staffId,
|
|
314
321
|
baseSetting: state => state.baseSetting,
|
|
315
|
-
defaultDep: state => state.defaultDep
|
|
322
|
+
defaultDep: state => state.defaultDep,
|
|
323
|
+
company: state => state.company
|
|
316
324
|
}
|
|
317
325
|
})
|