system-clients 1.6.71 → 1.6.72-foric
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/build.gradle +1 -1
- package/package.json +3 -2
- package/src/components/equipment/PosAdd.vue +39 -67
- package/src/components/equipment/PosList.vue +113 -164
- package/src/components/equipment/PosManage.vue +4 -13
- package/src/components/parammanage/ParamPage.vue +151 -128
- package/src/components/parammanage/SinglePage.vue +157 -118
- package/src/components/server/Login.vue +70 -13
- package/src/components/server/ResSelectGroup.vue +3 -9
- package/src/plugins/GetLoginInfoService.js +505 -498
- package/static/login-do.gif +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/gradlew +0 -172
- package/gradlew.bat +0 -84
|
@@ -8,15 +8,18 @@
|
|
|
8
8
|
<label class="control-label">使用公司</label>
|
|
9
9
|
<div class="form-control" style="border: 0px">
|
|
10
10
|
<res-select restype='organization'
|
|
11
|
-
|
|
11
|
+
is-mul="false"
|
|
12
12
|
:initresid="curorgid"
|
|
13
13
|
@res-select="getorgCur">
|
|
14
14
|
</res-select>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
17
|
<label class="control-label">参数名称</label>
|
|
18
|
-
<input type="text" class="form-control" placeholder='请输入查找的参数名' v-model="
|
|
19
|
-
<button class="btn btn-primary" @click="filter_query(
|
|
18
|
+
<input type="text" class="form-control" placeholder='请输入查找的参数名' v-model="param" @keyup.enter="filter_query(param, f_orgid_current)">
|
|
19
|
+
<button class="btn btn-primary" @click="filter_query(param,f_orgid_current)">查询</button>
|
|
20
|
+
|
|
21
|
+
<button class="btn btn-primary" @click="copyView()">参数复制</button>
|
|
22
|
+
|
|
20
23
|
</div>
|
|
21
24
|
<div class="span">
|
|
22
25
|
<partial-view v-ref:params-load>
|
|
@@ -25,19 +28,15 @@
|
|
|
25
28
|
<tr>
|
|
26
29
|
<th>序号</th>
|
|
27
30
|
<th>名称</th>
|
|
28
|
-
<th>所属</th>
|
|
29
31
|
<th>操作</th>
|
|
30
32
|
</tr>
|
|
31
33
|
</template>
|
|
32
34
|
<template partial='body'>
|
|
33
|
-
<td
|
|
34
|
-
<td
|
|
35
|
-
<td style="text-align:center">{{row.orgname ? row.orgname + '专用' : '全局'}}</td>
|
|
35
|
+
<td>{{$index+1}}</td>
|
|
36
|
+
<td>{{row.name}}</td>
|
|
36
37
|
<td class="flex-around">
|
|
37
|
-
<button type="button" name="button" class="btn btn-link"
|
|
38
|
-
|
|
39
|
-
<button type="button" name="button" class="btn btn-link"
|
|
40
|
-
@click.stop="$parent.$parent.$parent.deleteParam(row, 't_parameter')">删除</button>
|
|
38
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
|
|
39
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.deleteParam(row)">删除</button>
|
|
41
40
|
</td>
|
|
42
41
|
</template>
|
|
43
42
|
</data-grid>
|
|
@@ -59,71 +58,73 @@
|
|
|
59
58
|
</tr>
|
|
60
59
|
</template>
|
|
61
60
|
<template partial='body'>
|
|
62
|
-
<td
|
|
63
|
-
<td
|
|
61
|
+
<td>{{$index+1}}</td>
|
|
62
|
+
<td>{{row.name}}</td>
|
|
64
63
|
<td class="flex-around">
|
|
65
|
-
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.modifyParam(row
|
|
66
|
-
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.deleteParam(row,
|
|
64
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.modifyParam(row)">修改</button>
|
|
65
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.deleteParam(row, $index)">删除</button>
|
|
67
66
|
</td>
|
|
68
67
|
</template>
|
|
69
68
|
</data-grid>
|
|
70
69
|
</partial-view>
|
|
71
70
|
</div>
|
|
72
71
|
|
|
73
|
-
<modal
|
|
72
|
+
<modal :show.sync="show" v-ref:modal backdrop="false">
|
|
74
73
|
<header slot="modal-header" class="modal-header">
|
|
75
74
|
<button type="button" class="close" @click="close"><span>×</span></button>
|
|
76
75
|
<h4 class="modal-title">参数配置</h4>
|
|
77
76
|
</header>
|
|
78
|
-
<article slot="modal-body" class="modal-body"
|
|
79
|
-
<
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
77
|
+
<article slot="modal-body" class="modal-body">
|
|
78
|
+
<div class="from-group">
|
|
79
|
+
<label for="">参数名称</label>
|
|
80
|
+
<input type="text" class="form-control" v-model="modifyItem.name" @keyup.enter="confirm">
|
|
81
|
+
</div>
|
|
82
|
+
</article>
|
|
83
|
+
|
|
84
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
85
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
86
|
+
<button v-show="show" type="button" class="btn btn-success" @click='confirm'>确认</button>
|
|
87
|
+
</footer>
|
|
88
|
+
</modal>
|
|
89
|
+
|
|
90
|
+
<modal :show.sync="copyShow" v-ref:modal backdrop="false">
|
|
91
|
+
<header slot="modal-header" class="modal-header">
|
|
92
|
+
<button type="button" class="close" @click="close"><span>×</span></button>
|
|
93
|
+
<h4 class="modal-title">参数复制</h4>
|
|
94
|
+
</header>
|
|
95
|
+
<article slot="modal-body" class="modal-body">
|
|
96
|
+
<div class="form-inline auto">
|
|
97
|
+
<div class="form-control" style="border: 0px">
|
|
98
|
+
<res-select restype='organization'
|
|
99
|
+
is-mul="false"
|
|
100
|
+
@res-select="getorgSource">
|
|
101
|
+
</res-select>
|
|
92
102
|
</div>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
</res-select>
|
|
101
|
-
</div>
|
|
103
|
+
<!--<button class="btn btn-primary" @click.stop="copyParams()">复制到</button>-->
|
|
104
|
+
<strong>复制到</strong>
|
|
105
|
+
<div class="form-control" style="border: 0px">
|
|
106
|
+
<res-select restype='organization'
|
|
107
|
+
is-mul="false"
|
|
108
|
+
@res-select="getorgTarget">
|
|
109
|
+
</res-select>
|
|
102
110
|
</div>
|
|
103
|
-
</
|
|
111
|
+
</div>
|
|
104
112
|
</article>
|
|
105
|
-
|
|
106
113
|
<footer slot="modal-footer" class="modal-footer">
|
|
107
|
-
<button type="button" class="btn btn-success" @click='confirm'>确认</button>
|
|
108
114
|
<button type="button" class="btn btn-default" @click='close'>取消</button>
|
|
115
|
+
<button type="button" class="btn btn-success" @click='copyParams'>确认</button>
|
|
109
116
|
</footer>
|
|
110
117
|
</modal>
|
|
111
|
-
|
|
112
118
|
</div>
|
|
113
119
|
</template>
|
|
114
120
|
<script>
|
|
115
121
|
|
|
116
|
-
import {HttpResetClass} from 'vue-client'
|
|
117
122
|
|
|
118
123
|
export default {
|
|
119
124
|
title: '用户操作',
|
|
120
125
|
data () {
|
|
121
126
|
return {
|
|
122
|
-
|
|
123
|
-
paramName: null,
|
|
124
|
-
f_cond_orgid: null
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
+
allParams: null, // 获取到所有的参数
|
|
127
128
|
model: { // 参数列表显示的数据
|
|
128
129
|
rows: []
|
|
129
130
|
},
|
|
@@ -134,9 +135,7 @@
|
|
|
134
135
|
},
|
|
135
136
|
selectContent: null, // 选中的一条数据(包含参数或参数的具体内容)
|
|
136
137
|
modifyItem: {
|
|
137
|
-
name: ''
|
|
138
|
-
isGlobal: true,
|
|
139
|
-
f_filialeids: null
|
|
138
|
+
name: ''
|
|
140
139
|
}, // 要修改的参数
|
|
141
140
|
|
|
142
141
|
copyShow: false,
|
|
@@ -148,108 +147,95 @@
|
|
|
148
147
|
},
|
|
149
148
|
|
|
150
149
|
curorgid: [this.$login.f.orgid],
|
|
151
|
-
|
|
150
|
+
|
|
151
|
+
f_orgid_current: this.$login.f.orgid,
|
|
152
|
+
f_orgid_source: '',
|
|
153
|
+
f_orgid_target: ''
|
|
152
154
|
}
|
|
153
155
|
},
|
|
154
156
|
ready () {
|
|
155
|
-
this.loadParams()
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
this.modifyItem.f_filialeids = null
|
|
161
|
-
}
|
|
162
|
-
}
|
|
157
|
+
this.loadParams().then(() => {
|
|
158
|
+
this.$emit('ready')
|
|
159
|
+
}).catch((error) => {
|
|
160
|
+
this.$emit('error', error)
|
|
161
|
+
})
|
|
163
162
|
},
|
|
164
163
|
methods: {
|
|
165
164
|
// 加载全部参数
|
|
166
165
|
loadParams () {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
this.queryParam(param)
|
|
172
|
-
},
|
|
173
|
-
async queryParam (condition) {
|
|
174
|
-
this.model.rows = []
|
|
175
|
-
let http = new HttpResetClass()
|
|
176
|
-
let res = await http.load('POST', 'rs/sql/system_getParam', {data: condition}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
|
177
|
-
this.model.rows = res.data
|
|
166
|
+
return this.$refs.paramsLoad.load('rs/sql/hql/simpleHql/all?pageSize=999999', {data: {tablename: 't_parameter'}}).then((res) => {
|
|
167
|
+
this.allParams = res.data
|
|
168
|
+
this.filter_query(null, this.$login.f.orgid)
|
|
169
|
+
})
|
|
178
170
|
},
|
|
179
171
|
selected (val) {
|
|
180
172
|
this.selectItem = val.val
|
|
181
|
-
this.
|
|
173
|
+
this.params.rows = val.val.f_paramvalues
|
|
182
174
|
},
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
let res = await http.load('POST', 'rs/sql/system_getParamValue', {data: {param_id: obj.id}}, {resolveMsg: null, rejectMsg: '获取参数出错!!'})
|
|
186
|
-
this.params.rows = res.data
|
|
175
|
+
copyView () {
|
|
176
|
+
this.copyShow = true
|
|
187
177
|
},
|
|
188
|
-
filter_query (
|
|
189
|
-
console.log('过滤查询',
|
|
190
|
-
this.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
f_filialeid: orgid
|
|
196
|
-
}
|
|
197
|
-
} else if (orgid) {
|
|
198
|
-
param = {
|
|
199
|
-
condition: '1=1',
|
|
200
|
-
f_filialeid: orgid
|
|
201
|
-
}
|
|
202
|
-
} else if (paramName) {
|
|
203
|
-
param = {
|
|
204
|
-
condition: `p.name like '%${paramName}%'`,
|
|
205
|
-
f_filialeid: this.$login.f.orgid
|
|
206
|
-
}
|
|
178
|
+
filter_query (param,orgid) {
|
|
179
|
+
console.log('过滤查询',param, orgid)
|
|
180
|
+
this.model.rows = []
|
|
181
|
+
if (param) {
|
|
182
|
+
this.model.rows = this.allParams.filter((item) => {
|
|
183
|
+
return orgid==(item.f_filialeids) && item.name.includes(param)
|
|
184
|
+
})
|
|
207
185
|
} else {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
186
|
+
this.model.rows = this.allParams.filter((item) => {
|
|
187
|
+
return orgid==(item.f_filialeids)
|
|
188
|
+
})
|
|
212
189
|
}
|
|
213
|
-
this.queryParam(param)
|
|
214
190
|
|
|
215
191
|
},
|
|
192
|
+
filter_copy (orgid) {
|
|
193
|
+
this.selectItem = null
|
|
194
|
+
this.copySource.rows = []
|
|
195
|
+
this.copySource.rows = this.allParams.filter((item) => {
|
|
196
|
+
return orgid==(item.f_filialeids)
|
|
197
|
+
})
|
|
198
|
+
},
|
|
216
199
|
// 添加参数或添加参数内容
|
|
217
200
|
add (type) {
|
|
218
|
-
this.modifyItem.name = ''
|
|
219
|
-
this.modifyItem.isGlobal = true
|
|
220
|
-
this.modifyItem.EntityType = type
|
|
221
201
|
this.show = true
|
|
202
|
+
this.modifyItem.EntityType = type
|
|
222
203
|
},
|
|
223
204
|
// 修改参数或添加参数内容
|
|
224
|
-
modifyParam (row
|
|
205
|
+
modifyParam (row) {
|
|
206
|
+
this.show = true
|
|
225
207
|
this.selectContent = row
|
|
226
208
|
this.modifyItem.name = row.name
|
|
227
209
|
this.modifyItem.id = row.id
|
|
228
|
-
this.modifyItem.EntityType =
|
|
229
|
-
this.
|
|
230
|
-
this.show = true
|
|
210
|
+
this.modifyItem.EntityType = row.EntityType
|
|
211
|
+
// this.tempName = row.name
|
|
231
212
|
},
|
|
232
213
|
// 删除
|
|
233
|
-
deleteParam (row,
|
|
234
|
-
if (
|
|
214
|
+
deleteParam (row, index) {
|
|
215
|
+
if (row.EntityType === 't_parameter') {
|
|
235
216
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
236
217
|
if (res === 'confirm') {
|
|
237
|
-
this.$
|
|
238
|
-
this.
|
|
218
|
+
this.$refs.paramsLoad.load('rs/logic/deleteParam', row).then((res) => {
|
|
219
|
+
this.operate(this.allParams,row)
|
|
220
|
+
this.operate(this.model.rows,row)
|
|
239
221
|
this.selectItem = null
|
|
240
222
|
})
|
|
241
223
|
}
|
|
242
224
|
})
|
|
243
|
-
} else if (
|
|
225
|
+
} else if (row.EntityType === 't_paramvalue') {
|
|
244
226
|
this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
|
|
245
227
|
if (res === 'confirm') {
|
|
246
|
-
this.$
|
|
247
|
-
this.
|
|
228
|
+
this.$refs.selectsLoad.load('rs/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
|
|
229
|
+
this.params.rows.splice(index, 1)
|
|
248
230
|
})
|
|
249
231
|
}
|
|
250
232
|
})
|
|
251
233
|
}
|
|
252
234
|
},
|
|
235
|
+
operate(array,row){
|
|
236
|
+
let index = array.indexOf(row)
|
|
237
|
+
array.splice(index,1)
|
|
238
|
+
},
|
|
253
239
|
// 修该内容的提交
|
|
254
240
|
confirm () {
|
|
255
241
|
let data = {}
|
|
@@ -264,14 +250,26 @@
|
|
|
264
250
|
data = {
|
|
265
251
|
name: this.modifyItem.name
|
|
266
252
|
}
|
|
267
|
-
//添加当前分公司
|
|
268
253
|
}
|
|
269
|
-
|
|
270
|
-
|
|
254
|
+
//添加当前分公司
|
|
255
|
+
data.f_filialeids = this.$login.f.orgid
|
|
256
|
+
this.$refs.paramsLoad.load('rs/entity/t_parameter', data).then((res) => {
|
|
271
257
|
//无id
|
|
272
|
-
|
|
258
|
+
if(!data.id){
|
|
259
|
+
let resdata = {
|
|
260
|
+
EntityType: "t_parameter",
|
|
261
|
+
name: data.name,
|
|
262
|
+
id: res.data.id,
|
|
263
|
+
f_paramvalues: [],
|
|
264
|
+
f_filialeids: data.f_filialeids
|
|
265
|
+
}
|
|
266
|
+
this.allParams.push(resdata)
|
|
267
|
+
this.model.rows.push(resdata)
|
|
268
|
+
}else{
|
|
269
|
+
this.selectContent.name = data.name
|
|
270
|
+
}
|
|
273
271
|
this.show = false
|
|
274
|
-
this.modifyItem = {name: ''
|
|
272
|
+
this.modifyItem = {name: ''}
|
|
275
273
|
})
|
|
276
274
|
} else if (this.modifyItem.EntityType === 't_paramvalue') {
|
|
277
275
|
if (this.modifyItem.id) {
|
|
@@ -286,27 +284,52 @@
|
|
|
286
284
|
processid: this.selectItem.id
|
|
287
285
|
}
|
|
288
286
|
}
|
|
289
|
-
this.$
|
|
287
|
+
this.$refs.selectsLoad.load('rs/entity/t_paramvalue', data).then((res) => {
|
|
290
288
|
this.show = false
|
|
291
289
|
// 如果没有id,需要在数组中添加
|
|
292
|
-
|
|
290
|
+
if (!data.id) {
|
|
291
|
+
this.params.rows.push({id: res.data.id, name: this.modifyItem.name, processid: this.selectItem.id, EntityType: 't_paramvalue'})
|
|
292
|
+
}else {
|
|
293
|
+
this.selectContent.name = data.name
|
|
294
|
+
}
|
|
295
|
+
this.modifyItem = {name: ''}
|
|
293
296
|
})
|
|
294
297
|
}
|
|
295
|
-
|
|
296
298
|
},
|
|
297
299
|
// 关闭模态框, 数据还原
|
|
298
300
|
close () {
|
|
299
301
|
this.copyShow = false
|
|
300
302
|
this.show = false
|
|
301
|
-
this.modifyItem = {name: ''
|
|
303
|
+
this.modifyItem = {name: ''}
|
|
304
|
+
},
|
|
305
|
+
|
|
306
|
+
getorgCur (val) {
|
|
307
|
+
this.f_orgid_current = val[0]
|
|
302
308
|
},
|
|
303
309
|
|
|
304
|
-
|
|
305
|
-
this.
|
|
310
|
+
getorgSource (val) {
|
|
311
|
+
this.f_orgid_source = val[0]
|
|
306
312
|
},
|
|
307
313
|
|
|
308
|
-
|
|
309
|
-
this.
|
|
314
|
+
getorgTarget (val) {
|
|
315
|
+
this.f_orgid_target = val[0]
|
|
316
|
+
},
|
|
317
|
+
|
|
318
|
+
copyParams(){
|
|
319
|
+
|
|
320
|
+
this.filter_copy(this.f_orgid_source)
|
|
321
|
+
|
|
322
|
+
if(this.f_orgid_target && this.copySource.rows.length!=0 && this.f_orgid_target!=this.copySource.rows[0].f_filialeids){
|
|
323
|
+
this.copySource.f_filialeids = this.f_orgid_target
|
|
324
|
+
this.$refs.paramsLoad.load('rs/logic/copyParam', this.copySource).then((res) => {
|
|
325
|
+
this.loadParams()
|
|
326
|
+
this.selectItem = null
|
|
327
|
+
this.$showAlert('复制成功', 'success', 2000)
|
|
328
|
+
this.copyShow = false
|
|
329
|
+
})
|
|
330
|
+
}else{
|
|
331
|
+
this.$showAlert('选择有误', 'danger', 0)
|
|
332
|
+
}
|
|
310
333
|
}
|
|
311
334
|
}
|
|
312
335
|
}
|