doway-coms 2.8.5 → 2.8.7
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 +1 -1
- package/packages/BaseGrid/src/index.vue +24 -22
- package/packages/utils/store.js +222 -219
- package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
- package/dist/css/index.7946d50b.css +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/js/chunk-vendors.28fda91d.js +0 -340
- package/dist/js/index.49bc6add.js +0 -2
- package/lib/doway-coms.common.js +0 -120397
- package/lib/doway-coms.css +0 -1
- package/lib/doway-coms.umd.js +0 -120407
- package/lib/doway-coms.umd.min.js +0 -328
package/package.json
CHANGED
|
@@ -1664,31 +1664,33 @@ export default {
|
|
|
1664
1664
|
case 'copyRow':
|
|
1665
1665
|
if(this.gridEdit){
|
|
1666
1666
|
this.copySaveRow=JSON.parse(JSON.stringify(row))
|
|
1667
|
+
|
|
1667
1668
|
}
|
|
1668
1669
|
break
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
.
|
|
1688
|
-
|
|
1689
|
-
|
|
1670
|
+
case 'paste':
|
|
1671
|
+
if (this.copySaveRow && this.gridEdit) {
|
|
1672
|
+
if (this.treeConfig) {
|
|
1673
|
+
let parentField = this.treeConfig.parentField ? this.treeConfig.parentField : 'parentId'
|
|
1674
|
+
let childrenField = this.treeConfig.childrenField ? this.treeConfig.childrenField : 'children'
|
|
1675
|
+
//树情况下 分批插入
|
|
1676
|
+
this.copySaveRow.id= this.$store.getters.newId() + ''
|
|
1677
|
+
let tmpRow = JSON.parse(JSON.stringify(this.copySaveRow))
|
|
1678
|
+
delete tmpRow['_X_ROW_KEY']
|
|
1679
|
+
delete tmpRow[childrenField]
|
|
1680
|
+
tmpRow[parentField]=row==null?null:row.id
|
|
1681
|
+
$table.insertAt(tmpRow, -1)
|
|
1682
|
+
.then(({ row }) => {
|
|
1683
|
+
pasteChildren(this.copySaveRow, childrenField,parentField)
|
|
1684
|
+
this.$emit('paste', row)
|
|
1685
|
+
})
|
|
1686
|
+
} else {
|
|
1687
|
+
this.copySaveRow.id= this.$store.getters.newId() + ''
|
|
1688
|
+
$table.insertAt(this.copySaveRow, -1)
|
|
1689
|
+
.then(({ row }) => {
|
|
1690
|
+
this.$emit('paste', row)
|
|
1691
|
+
})
|
|
1692
|
+
}
|
|
1690
1693
|
}
|
|
1691
|
-
}
|
|
1692
1694
|
break
|
|
1693
1695
|
case 'clearFilter':
|
|
1694
1696
|
// 示例
|
package/packages/utils/store.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
import {loadViewInfo,loadLangInfo} from './api'
|
|
1
|
+
import {loadViewInfo, loadLangInfo} from './api'
|
|
3
2
|
import XEUtils from 'xe-utils'
|
|
4
3
|
import Vue from 'vue'
|
|
5
4
|
import Vuex from 'vuex'
|
|
6
5
|
import {stringUrlQuery} from './common'
|
|
7
|
-
import {
|
|
6
|
+
import {controlType} from './enum'
|
|
7
|
+
|
|
8
8
|
Vue.use(Vuex)
|
|
9
9
|
|
|
10
10
|
export default new Vuex.Store({
|
|
11
11
|
state: {
|
|
12
|
-
moduleLangUrl:'',
|
|
13
|
-
umsUrl:'',
|
|
14
|
-
baseUrl:'',
|
|
15
|
-
msgUrl:'',
|
|
16
|
-
wmsUrl:'',
|
|
17
|
-
identityUrl:'',
|
|
12
|
+
moduleLangUrl: '',
|
|
13
|
+
umsUrl: '',
|
|
14
|
+
baseUrl: '',
|
|
15
|
+
msgUrl: '',
|
|
16
|
+
wmsUrl: '',
|
|
17
|
+
identityUrl: '',
|
|
18
18
|
token: '',
|
|
19
|
-
industryVersion:'',//行业版本
|
|
20
|
-
custPriceNotTaxPrecision:0,
|
|
21
|
-
custPricePrecision:0,
|
|
22
|
-
supplyPriceNotTaxPrecision:0,
|
|
23
|
-
supplyPricePrecision:0,
|
|
24
|
-
isGenerateMatCode:'false',//是否生成物料编码
|
|
19
|
+
industryVersion: '',//行业版本
|
|
20
|
+
custPriceNotTaxPrecision: 0,
|
|
21
|
+
custPricePrecision: 0,
|
|
22
|
+
supplyPriceNotTaxPrecision: 0,
|
|
23
|
+
supplyPricePrecision: 0,
|
|
24
|
+
isGenerateMatCode: 'false',//是否生成物料编码
|
|
25
25
|
webAppCode: '',
|
|
26
26
|
moduleViewInfo: {},
|
|
27
|
-
moduleLangInfo:{},
|
|
27
|
+
moduleLangInfo: {},
|
|
28
28
|
controlSize: 'small',
|
|
29
29
|
newId: 0,//明细新增id
|
|
30
30
|
userId: '',
|
|
31
31
|
userName: '',
|
|
32
32
|
staffId: '',
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
},
|
|
34
|
+
mutations: {
|
|
35
35
|
SET_TOKEN: (state, token) => {
|
|
36
|
-
|
|
36
|
+
state.token = token
|
|
37
37
|
},
|
|
38
38
|
SET_USERID: (state, userId) => {
|
|
39
39
|
state.userId = userId
|
|
@@ -44,212 +44,214 @@ export default new Vuex.Store({
|
|
|
44
44
|
SET_STAFFID: (state, staffId) => {
|
|
45
45
|
state.staffId = staffId
|
|
46
46
|
},
|
|
47
|
-
SET_INDUSTRY_VERSION:(state,industryVersion)=>{
|
|
48
|
-
|
|
47
|
+
SET_INDUSTRY_VERSION: (state, industryVersion) => {
|
|
48
|
+
state.industryVersion = industryVersion
|
|
49
49
|
},
|
|
50
|
-
SET_IS_GENERATE_MAT_CODE:(state,isGenerateMatCode)=>{
|
|
51
|
-
|
|
50
|
+
SET_IS_GENERATE_MAT_CODE: (state, isGenerateMatCode) => {
|
|
51
|
+
state.isGenerateMatCode = isGenerateMatCode
|
|
52
52
|
},
|
|
53
53
|
SET_WEB_APP_CODE: (state, webAppCode) => {
|
|
54
|
-
|
|
54
|
+
state.webAppCode = webAppCode
|
|
55
55
|
},
|
|
56
|
-
SET_MODULE_LANG_INFO:(state,data)=>{
|
|
57
|
-
|
|
56
|
+
SET_MODULE_LANG_INFO: (state, data) => {
|
|
57
|
+
state.moduleLangInfo[data.moduleCode] = data.info
|
|
58
58
|
},
|
|
59
59
|
SET_MODULE_VIEW_INFO: (state, data) => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
60
|
+
let tempDataInfo = {}
|
|
61
|
+
XEUtils.arrayEach(data.info.datas, loopData => {
|
|
62
|
+
let tempFields = []
|
|
63
|
+
let tempPagerButtons = []
|
|
64
|
+
tempDataInfo[loopData.code] = {code: '', name: '', fields: []}
|
|
65
|
+
tempDataInfo[loopData.code].code = loopData.code
|
|
66
|
+
tempDataInfo[loopData.code].name = loopData.name
|
|
67
|
+
tempDataInfo[loopData.code].extraInfo = loopData.extraInfo
|
|
68
|
+
let operationFields = []
|
|
69
|
+
XEUtils.arrayEach(loopData.fields, loopField => {
|
|
70
|
+
let tempField = {
|
|
71
|
+
field: loopField.boundField,
|
|
72
|
+
title: loopField.name,
|
|
73
|
+
width: loopField.width,
|
|
74
|
+
visible: !loopField.hidden,
|
|
75
|
+
filters: loopField.isFilter,
|
|
76
|
+
sortable: loopField.isSortable,
|
|
77
|
+
controlType: loopField.controlType,
|
|
78
|
+
edit: loopField.edit,
|
|
79
|
+
sysVisible: !loopField.sysHidden
|
|
80
|
+
}
|
|
81
|
+
if (tempField.sysVisible === false) {
|
|
82
|
+
tempField.visible = false
|
|
83
|
+
}
|
|
84
|
+
//页面状态控制
|
|
85
|
+
if (loopField.editStates) {
|
|
86
|
+
tempField['editStates'] = loopField.editStates.split(',')
|
|
87
|
+
tempField['visibleStates'] = loopField.editStates.split(',')
|
|
88
|
+
}
|
|
89
|
+
//单据状态控制
|
|
90
|
+
if (loopField.editStatuss) {
|
|
91
|
+
tempField['editStatuss'] = loopField.editStatuss.split(',')
|
|
92
|
+
tempField['visibleStatuss'] = loopField.editStatuss.split(',')
|
|
93
|
+
}
|
|
94
|
+
let extraInfo = loopField.extraInfo
|
|
95
|
+
? JSON.parse(loopField.extraInfo)
|
|
96
|
+
: {}
|
|
97
|
+
let userExtraInfo = loopField.userExtraInfo
|
|
98
|
+
? JSON.parse(loopField.userExtraInfo)
|
|
99
|
+
: {}
|
|
100
|
+
extraInfo = {...extraInfo, ...userExtraInfo}
|
|
101
|
+
//存在额外参数,就赋值
|
|
102
|
+
if (Object.keys(extraInfo).length) {
|
|
103
|
+
if (Object.hasOwn(extraInfo, 'api')) {
|
|
104
|
+
extraInfo['api'] = state[extraInfo['url']] + extraInfo['api']
|
|
105
|
+
}
|
|
106
|
+
tempField = XEUtils.assign(extraInfo, tempField)
|
|
107
|
+
}
|
|
108
|
+
if (tempField.controlType === controlType.select) {
|
|
109
|
+
tempField['dataSource'] = XEUtils.filter(
|
|
110
|
+
data.info.dictItems,
|
|
111
|
+
p => p.dictCode === extraInfo.dataSource
|
|
112
|
+
)
|
|
105
113
|
}
|
|
106
|
-
tempField = XEUtils.assign(extraInfo, tempField)
|
|
107
|
-
}
|
|
108
|
-
if (tempField.controlType === controlType.select) {
|
|
109
|
-
tempField['dataSource'] = XEUtils.filter(
|
|
110
|
-
data.info.dictItems,
|
|
111
|
-
p => p.dictCode === extraInfo.dataSource
|
|
112
|
-
)
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if(tempField.controlType === controlType.pager_button){
|
|
116
|
-
tempPagerButtons.push(tempField)
|
|
117
|
-
}else if(tempField.controlType===controlType.operation){
|
|
118
|
-
//操作按钮列
|
|
119
|
-
// 动态加载 visibleConditional 函数 来控制操作按钮是否显示
|
|
120
|
-
if (tempField.visibleConditional){
|
|
121
|
-
tempField.visibleConditional = eval(`(${tempField.visibleConditional})`);
|
|
122
|
-
}
|
|
123
|
-
operationFields.push(tempField)
|
|
124
114
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
115
|
+
if (tempField.controlType === controlType.pager_button) {
|
|
116
|
+
tempPagerButtons.push(tempField)
|
|
117
|
+
} else if (tempField.controlType === controlType.operation) {
|
|
118
|
+
//操作按钮列
|
|
119
|
+
// 动态加载 visibleConditional 函数 来控制操作按钮是否显示
|
|
120
|
+
if (tempField.visibleConditional) {
|
|
121
|
+
tempField.visibleConditional = eval(`(${tempField.visibleConditional})`);
|
|
122
|
+
}
|
|
123
|
+
operationFields.push(tempField)
|
|
130
124
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
tempFields.push({
|
|
135
|
-
field: controlType.operation,
|
|
136
|
-
title: '操作',
|
|
137
|
-
width: operationFields[0].width || 100,
|
|
138
|
-
fixed: 'right',
|
|
139
|
-
showOverflow: true,
|
|
140
|
-
controlType: controlType.operation,
|
|
141
|
-
params:{
|
|
142
|
-
columns:operationFields
|
|
143
|
-
}
|
|
125
|
+
} else {
|
|
126
|
+
tempFields.push(tempField)
|
|
127
|
+
}
|
|
144
128
|
})
|
|
145
|
-
}
|
|
146
|
-
tempDataInfo[loopData.code]['fields'] = tempFields
|
|
147
129
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
130
|
+
tempDataInfo[loopData.code]['pagerButtons'] = tempPagerButtons
|
|
131
|
+
if (operationFields.length > 0) {
|
|
132
|
+
//添加右侧按钮操作列
|
|
133
|
+
tempFields.push({
|
|
134
|
+
field: controlType.operation,
|
|
135
|
+
title: '操作',
|
|
136
|
+
width: operationFields[0].width || 100,
|
|
137
|
+
fixed: 'right',
|
|
138
|
+
showOverflow: true,
|
|
139
|
+
controlType: controlType.operation,
|
|
140
|
+
params: {
|
|
141
|
+
columns: operationFields
|
|
142
|
+
}
|
|
143
|
+
})
|
|
144
|
+
}
|
|
145
|
+
tempDataInfo[loopData.code]['fields'] = tempFields
|
|
146
|
+
|
|
147
|
+
})
|
|
148
|
+
data.info['dataInfo'] = tempDataInfo
|
|
149
|
+
state.moduleViewInfo[data.moduleCode] = data.info
|
|
151
150
|
},
|
|
152
151
|
SET_NEW_ID: (state, id) => {
|
|
153
|
-
|
|
152
|
+
state.newId = id
|
|
153
|
+
},
|
|
154
|
+
SET_UMS_URL: (state, url) => {
|
|
155
|
+
state.umsUrl = url
|
|
156
|
+
},
|
|
157
|
+
SET_MODULE_LANG_URL: (state, url) => {
|
|
158
|
+
state.moduleLangUrl = url
|
|
154
159
|
},
|
|
155
|
-
|
|
156
|
-
|
|
160
|
+
SET_BASE_URL: (state, url) => {
|
|
161
|
+
state.baseUrl = url
|
|
157
162
|
},
|
|
158
|
-
|
|
159
|
-
|
|
163
|
+
SET_WMS_URL: (state, url) => {
|
|
164
|
+
state.wmsUrl = url
|
|
160
165
|
},
|
|
161
|
-
|
|
162
|
-
|
|
166
|
+
SET_CUST_PRICE_NOT_TAX_PRECISION: (state, custPriceNotTaxPrecision) => {
|
|
167
|
+
state.custPriceNotTaxPrecision = custPriceNotTaxPrecision
|
|
163
168
|
},
|
|
164
|
-
|
|
165
|
-
|
|
169
|
+
SET_CUST_PRICE_PRECISION: (state, custPricePrecision) => {
|
|
170
|
+
state.custPricePrecision = custPricePrecision
|
|
166
171
|
},
|
|
167
|
-
|
|
168
|
-
|
|
172
|
+
SET_SUPPLY_PRICE_NOT_TAX_PRECISION: (state, supplyPriceNotTaxPrecision) => {
|
|
173
|
+
state.supplyPriceNotTaxPrecision = supplyPriceNotTaxPrecision
|
|
169
174
|
},
|
|
170
|
-
|
|
171
|
-
|
|
175
|
+
SET_SUPPLY_PRICE_PRECISION: (state, supplyPricePrecision) => {
|
|
176
|
+
state.supplyPricePrecision = supplyPricePrecision
|
|
172
177
|
},
|
|
173
|
-
|
|
174
|
-
|
|
178
|
+
SET_MSG_URL: (state, url) => {
|
|
179
|
+
state.msgUrl = url
|
|
175
180
|
},
|
|
176
|
-
|
|
177
|
-
|
|
181
|
+
SET_IDENTITY_URL: (state, url) => {
|
|
182
|
+
state.identityUrl = url
|
|
178
183
|
},
|
|
179
|
-
|
|
180
|
-
|
|
184
|
+
SET_BASE_SETTING: (state, baseSetting) => {
|
|
185
|
+
state.baseSetting = baseSetting
|
|
181
186
|
},
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
SET_DEFAULT_DEP: (state, defaultDep) => {
|
|
188
|
+
state.defaultDep = defaultDep
|
|
184
189
|
},
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
actions: {
|
|
190
|
+
},
|
|
191
|
+
actions: {
|
|
190
192
|
/**
|
|
191
193
|
* 系统登出
|
|
192
194
|
* @param {} param0
|
|
193
195
|
*/
|
|
194
|
-
logOut({commit}){
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
logOut({commit}) {
|
|
197
|
+
// alert('会话过期3');
|
|
198
|
+
if (window.$wujie) {
|
|
199
|
+
// alert('会话过期4');
|
|
200
|
+
//通知主应用会员过期重新登陆
|
|
199
201
|
window.$wujie.bus.$emit(
|
|
200
|
-
|
|
202
|
+
'subAppLoginOut', window.$wujie.props.webAppCode
|
|
201
203
|
)
|
|
202
204
|
}
|
|
203
205
|
},
|
|
204
|
-
setTabTitle({
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
206
|
+
setTabTitle({commit}, tabInfo) {
|
|
207
|
+
if (tabInfo.replaceQuery) {
|
|
208
|
+
let newRoutePath =
|
|
209
|
+
tabInfo.path + '?' + stringUrlQuery(tabInfo.replaceQuery)
|
|
210
|
+
history.replaceState(null, null, (window.$wujie.props.webAppActiveRule + newRoutePath))
|
|
211
|
+
}
|
|
212
|
+
//通知父应用修改Tab标签文字描述
|
|
213
|
+
if (window.$wujie) {
|
|
214
|
+
window.$wujie.bus.$emit('subAppSetTabTitle', {
|
|
215
|
+
title: tabInfo.title,
|
|
216
|
+
name: tabInfo.name,
|
|
217
|
+
query: tabInfo.query,
|
|
218
|
+
replaceQuery: tabInfo.replaceQuery,
|
|
219
|
+
path: tabInfo.path
|
|
220
|
+
})
|
|
221
|
+
}
|
|
220
222
|
},
|
|
221
|
-
closeTab({
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
223
|
+
closeTab({commit}, fullPath) {
|
|
224
|
+
if (window.$wujie) {
|
|
225
|
+
window.$wujie.bus.$emit(
|
|
226
|
+
'subAppCloseTab',
|
|
227
|
+
window.$wujie.props.webAppActiveRule + fullPath
|
|
228
|
+
)
|
|
229
|
+
}
|
|
228
230
|
},
|
|
229
|
-
moduleLoadViewInfo({
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
231
|
+
moduleLoadViewInfo({commit, state}, dataInfo) {
|
|
232
|
+
let vm = this
|
|
233
|
+
return new Promise((resolve, reject) => {
|
|
234
|
+
loadViewInfo(dataInfo.moduleCode)
|
|
235
|
+
.then(reponseData => {
|
|
236
|
+
commit('SET_MODULE_VIEW_INFO', {
|
|
237
|
+
moduleCode: dataInfo.moduleCode,
|
|
238
|
+
info: reponseData.content
|
|
239
|
+
})
|
|
240
|
+
loadLangInfo(dataInfo.moduleCode, reponseData.content.moduleLangCacheHash)
|
|
241
|
+
.then(langData => {
|
|
242
|
+
commit('SET_MODULE_LANG_INFO', {
|
|
243
|
+
moduleCode: dataInfo.moduleCode,
|
|
244
|
+
info: langData.data
|
|
245
|
+
})
|
|
246
|
+
resolve()
|
|
247
|
+
}).catch(() => {
|
|
248
|
+
resolve()
|
|
249
|
+
})
|
|
250
|
+
})
|
|
251
|
+
.catch(error => {
|
|
252
|
+
reject(error)
|
|
253
|
+
})
|
|
254
|
+
})
|
|
253
255
|
},
|
|
254
256
|
// moduleLoadLangInfo({ commit, state }, dataInfo) {
|
|
255
257
|
// let vm = this
|
|
@@ -269,46 +271,47 @@ export default new Vuex.Store({
|
|
|
269
271
|
// })
|
|
270
272
|
// },
|
|
271
273
|
// 固定返回工作台,并根据条件决定是否关闭其余标签
|
|
272
|
-
goWorkbench({
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
goWorkbench({commit}, tabsAllClose) {
|
|
275
|
+
if (window.$wujie) {
|
|
276
|
+
window.$wujie.bus.$emit('subAppGoWorkbench', tabsAllClose == false ? false : true)
|
|
277
|
+
}
|
|
276
278
|
},
|
|
277
279
|
// 替换页面
|
|
278
|
-
replaceTab({
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
280
|
+
replaceTab({commit}, fullPath) {
|
|
281
|
+
if (window.$wujie) {
|
|
282
|
+
window.$wujie.bus.$emit(
|
|
283
|
+
'subAppReplaceTab',
|
|
284
|
+
window.$wujie.props.webAppActiveRule + fullPath
|
|
285
|
+
)
|
|
286
|
+
}
|
|
285
287
|
},
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
custPriceNotTaxPrecision:state=>state.custPriceNotTaxPrecision,
|
|
290
|
-
custPricePrecision:state=>state.custPricePrecision,
|
|
291
|
-
supplyPriceNotTaxPrecision:state=>state.supplyPriceNotTaxPrecision,
|
|
292
|
-
supplyPricePrecision:state=>state.supplyPricePrecision,
|
|
293
|
-
industryVersion:state=>state.industryVersion,
|
|
294
|
-
isGenerateMatCode:state=>state.isGenerateMatCode,
|
|
295
|
-
umsUrl:state=>state.umsUrl,
|
|
296
|
-
moduleLangUrl:state=>state.moduleLangUrl,
|
|
297
|
-
baseUrl:state=>state.baseUrl,
|
|
298
|
-
msgUrl:state=>state.msgUrl,
|
|
299
|
-
identityUrl:state=>state.identityUrl,
|
|
288
|
+
},
|
|
289
|
+
modules: {},
|
|
290
|
+
getters: {
|
|
291
|
+
custPriceNotTaxPrecision: state => state.custPriceNotTaxPrecision,
|
|
292
|
+
custPricePrecision: state => state.custPricePrecision,
|
|
293
|
+
supplyPriceNotTaxPrecision: state => state.supplyPriceNotTaxPrecision,
|
|
294
|
+
supplyPricePrecision: state => state.supplyPricePrecision,
|
|
295
|
+
industryVersion: state => state.industryVersion,
|
|
296
|
+
isGenerateMatCode: state => state.isGenerateMatCode,
|
|
297
|
+
umsUrl: state => state.umsUrl,
|
|
298
|
+
moduleLangUrl: state => state.moduleLangUrl,
|
|
299
|
+
baseUrl: state => state.baseUrl,
|
|
300
|
+
msgUrl: state => state.msgUrl,
|
|
301
|
+
identityUrl: state => state.identityUrl,
|
|
300
302
|
token: state => state.token,
|
|
301
303
|
webAppCode: state => state.webAppCode,
|
|
302
304
|
moduleViewInfo: state => state.moduleViewInfo,
|
|
303
305
|
moduleLangInfo: state => state.moduleLangInfo,
|
|
304
306
|
controlSize: state => state.controlSize,
|
|
305
307
|
newId: state => () => {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
+
state.newId = state.newId + 1
|
|
309
|
+
return state.newId
|
|
308
310
|
},
|
|
309
311
|
userId: state => state.userId,
|
|
310
312
|
userName: state => state.userName,
|
|
311
313
|
staffId: state => state.staffId,
|
|
312
314
|
baseSetting: state => state.baseSetting,
|
|
313
|
-
|
|
315
|
+
defaultDep: state => state.defaultDep
|
|
316
|
+
}
|
|
314
317
|
})
|