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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.8.5",
3
+ "version": "2.8.7",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -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
- case 'paste':
1670
- if (this.copySaveRow && this.gridEdit) {
1671
- if (this.treeConfig) {
1672
- let parentField = this.treeConfig.parentField ? this.treeConfig.parentField : 'parentId'
1673
- let childrenField = this.treeConfig.childrenField ? this.treeConfig.childrenField : 'children'
1674
- //树情况下 分批插入
1675
- this.copySaveRow.id= this.$store.getters.newId() + ''
1676
- let tmpRow = JSON.parse(JSON.stringify(this.copySaveRow))
1677
- delete tmpRow['_X_ROW_KEY']
1678
- delete tmpRow[childrenField]
1679
- tmpRow[parentField]=row==null?null:row.id
1680
- $table.insertAt(tmpRow, -1)
1681
- .then(({ row }) => {
1682
- pasteChildren(this.copySaveRow, childrenField,parentField)
1683
- this.$emit('paste', row)
1684
- })
1685
- } else {
1686
- $table.insertAt(this.copySaveRow, -1)
1687
- .then(({ row }) => {
1688
- this.$emit('paste', row)
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
  // 示例
@@ -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 { controlType } from './enum'
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
- mutations: {
33
+ },
34
+ mutations: {
35
35
  SET_TOKEN: (state, token) => {
36
- state.token = token
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
- state.industryVersion = industryVersion
47
+ SET_INDUSTRY_VERSION: (state, industryVersion) => {
48
+ state.industryVersion = industryVersion
49
49
  },
50
- SET_IS_GENERATE_MAT_CODE:(state,isGenerateMatCode)=>{
51
- state.isGenerateMatCode = isGenerateMatCode
50
+ SET_IS_GENERATE_MAT_CODE: (state, isGenerateMatCode) => {
51
+ state.isGenerateMatCode = isGenerateMatCode
52
52
  },
53
53
  SET_WEB_APP_CODE: (state, webAppCode) => {
54
- state.webAppCode = webAppCode
54
+ state.webAppCode = webAppCode
55
55
  },
56
- SET_MODULE_LANG_INFO:(state,data)=>{
57
- state.moduleLangInfo[data.moduleCode] = data.info
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
- 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']
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
- else{
127
- tempFields.push(tempField)
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
- tempDataInfo[loopData.code]['pagerButtons'] = tempPagerButtons
132
- if(operationFields.length>0){
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
- data.info['dataInfo'] = tempDataInfo
150
- state.moduleViewInfo[data.moduleCode] = data.info
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
- state.newId = id
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
- SET_UMS_URL:(state,url) => {
156
- state.umsUrl = url
160
+ SET_BASE_URL: (state, url) => {
161
+ state.baseUrl = url
157
162
  },
158
- SET_MODULE_LANG_URL:(state,url) => {
159
- state.moduleLangUrl = url
163
+ SET_WMS_URL: (state, url) => {
164
+ state.wmsUrl = url
160
165
  },
161
- SET_BASE_URL:(state,url) => {
162
- state.baseUrl = url
166
+ SET_CUST_PRICE_NOT_TAX_PRECISION: (state, custPriceNotTaxPrecision) => {
167
+ state.custPriceNotTaxPrecision = custPriceNotTaxPrecision
163
168
  },
164
- SET_WMS_URL:(state,url) => {
165
- state.wmsUrl = url
169
+ SET_CUST_PRICE_PRECISION: (state, custPricePrecision) => {
170
+ state.custPricePrecision = custPricePrecision
166
171
  },
167
- SET_CUST_PRICE_NOT_TAX_PRECISION:(state,custPriceNotTaxPrecision)=>{
168
- state.custPriceNotTaxPrecision = custPriceNotTaxPrecision
172
+ SET_SUPPLY_PRICE_NOT_TAX_PRECISION: (state, supplyPriceNotTaxPrecision) => {
173
+ state.supplyPriceNotTaxPrecision = supplyPriceNotTaxPrecision
169
174
  },
170
- SET_CUST_PRICE_PRECISION:(state,custPricePrecision)=>{
171
- state.custPricePrecision = custPricePrecision
175
+ SET_SUPPLY_PRICE_PRECISION: (state, supplyPricePrecision) => {
176
+ state.supplyPricePrecision = supplyPricePrecision
172
177
  },
173
- SET_SUPPLY_PRICE_NOT_TAX_PRECISION:(state,supplyPriceNotTaxPrecision)=>{
174
- state.supplyPriceNotTaxPrecision = supplyPriceNotTaxPrecision
178
+ SET_MSG_URL: (state, url) => {
179
+ state.msgUrl = url
175
180
  },
176
- SET_SUPPLY_PRICE_PRECISION:(state,supplyPricePrecision)=>{
177
- state.supplyPricePrecision = supplyPricePrecision
181
+ SET_IDENTITY_URL: (state, url) => {
182
+ state.identityUrl = url
178
183
  },
179
- SET_MSG_URL:(state,url) => {
180
- state.msgUrl = url
184
+ SET_BASE_SETTING: (state, baseSetting) => {
185
+ state.baseSetting = baseSetting
181
186
  },
182
- SET_IDENTITY_URL:(state,url) => {
183
- state.identityUrl = url
187
+ SET_DEFAULT_DEP: (state, defaultDep) => {
188
+ state.defaultDep = defaultDep
184
189
  },
185
- SET_BASE_SETTING:(state,baseSetting) => {
186
- state.baseSetting = baseSetting
187
- },
188
- },
189
- actions: {
190
+ },
191
+ actions: {
190
192
  /**
191
193
  * 系统登出
192
194
  * @param {} param0
193
195
  */
194
- logOut({commit}){
195
- // alert('会话过期3');
196
- if(window.$wujie){
197
- // alert('会话过期4');
198
- //通知主应用会员过期重新登陆
196
+ logOut({commit}) {
197
+ // alert('会话过期3');
198
+ if (window.$wujie) {
199
+ // alert('会话过期4');
200
+ //通知主应用会员过期重新登陆
199
201
  window.$wujie.bus.$emit(
200
- 'subAppLoginOut',window.$wujie.props.webAppCode
202
+ 'subAppLoginOut', window.$wujie.props.webAppCode
201
203
  )
202
204
  }
203
205
  },
204
- setTabTitle({ commit }, tabInfo) {
205
- if (tabInfo.replaceQuery) {
206
- let newRoutePath =
207
- tabInfo.path + '?' + stringUrlQuery(tabInfo.replaceQuery)
208
- history.replaceState(null,null,(window.$wujie.props.webAppActiveRule + newRoutePath))
209
- }
210
- //通知父应用修改Tab标签文字描述
211
- if(window.$wujie){
212
- window.$wujie.bus.$emit('subAppSetTabTitle', {
213
- title: tabInfo.title,
214
- name: tabInfo.name,
215
- query: tabInfo.query,
216
- replaceQuery: tabInfo.replaceQuery,
217
- path: tabInfo.path
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({ commit }, fullPath) {
222
- if(window.$wujie){
223
- window.$wujie.bus.$emit(
224
- 'subAppCloseTab',
225
- window.$wujie.props.webAppActiveRule + fullPath
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({ commit, state }, dataInfo) {
230
- let vm = this
231
- return new Promise((resolve, reject) => {
232
- loadViewInfo(dataInfo.moduleCode)
233
- .then(reponseData => {
234
- commit('SET_MODULE_VIEW_INFO', {
235
- moduleCode: dataInfo.moduleCode,
236
- info: reponseData.content
237
- })
238
- loadLangInfo(dataInfo.moduleCode,reponseData.content.moduleLangCacheHash)
239
- .then(langData=>{
240
- commit('SET_MODULE_LANG_INFO', {
241
- moduleCode: dataInfo.moduleCode,
242
- info: langData.data
243
- })
244
- resolve()
245
- }).catch(()=>{
246
- resolve()
247
- })
248
- })
249
- .catch(error => {
250
- reject(error)
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({ commit }, tabsAllClose) {
273
- if(window.$wujie){
274
- window.$wujie.bus.$emit('subAppGoWorkbench', tabsAllClose==false?false:true)
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({ commit }, fullPath) {
279
- if(window.$wujie){
280
- window.$wujie.bus.$emit(
281
- 'subAppReplaceTab',
282
- window.$wujie.props.webAppActiveRule + fullPath
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
- modules:{},
288
- getters: {
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
- state.newId = state.newId + 1
307
- return state.newId
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
  })